Skip to content

Update documentation for v3.0.0 API#624

Open
niik wants to merge 2 commits intomainfrom
docs-updates
Open

Update documentation for v3.0.0 API#624
niik wants to merge 2 commits intomainfrom
docs-updates

Conversation

@niik
Copy link
Copy Markdown
Member

@niik niik commented Mar 10, 2026

Summary

Updates all documentation to reflect the v3.0.0 API changes.

Changes

API Updates

  • Replace GitProcess class with standalone functions: exec, spawn, parseError
  • Rename IGitSpawnExecutionOptions to IGitSpawnOptions
  • Update env type from generic object to Record<string, string | undefined>

New Features Documented

  • AbortController / AbortSignal support for cancellation
  • encoding option for Buffer output (IGitStringResult, IGitBufferResult)
  • ExecError class for execution failures
  • killSignal and maxBuffer (now defaults to Infinity) options

Other Updates

  • Update Node.js requirement from v12 to v20
  • Update release process to reference GitHub Actions workflows
  • Add cancellation examples to exec.md

niik and others added 2 commits March 10, 2026 14:00
- Replace GitProcess class with standalone exec, spawn, parseError functions
- Update Node.js requirement from v12 to v18
- Document new options: encoding, signal (AbortController), killSignal, maxBuffer
- Add ExecError, IGitSpawnOptions, IGitStringResult, IGitBufferResult types
- Add cancellation examples using AbortController
- Update environment variable types to Record<string, string | undefined>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@niik niik enabled auto-merge March 10, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant