v0.2.0
Features
-
Added a comprehensive Git diff API supporting multiple comparison modes, including working tree, staged changes, commits, commit ranges, and file-based comparisons.
-
Introduced a new diff module at
src/lib/diff.tsthat provides a wide range of functions for comparing repository states. -
Implemented a core
difffunction with support for common Git diff flags such as--patch,--stat,--numstat,--name-only, and--name-status. -
Added specialized helper functions for common diff use cases:
diffWorkingTreediffStageddiffHeaddiffCommitsdiffRangediffFiles
-
Added diff statistics APIs including:
diffStatsdiffStatsStageddiffStatsCommits
-
Enabled tracking of file counts, additions, deletions, and binary file changes.
-
Added change detection and status utilities:
hasDiffhasStagedDiffhasOnlyWhitespaceChangeshasOnlyEOLChangeshasBinaryChanges
-
Added APIs for listing and counting changed or staged files:
diffChangedFilesgetChangedFilesgetStagedFileschangedFileCountstagedFileCount
-
Enhanced untracked file handling in
src/lib/status.tswith:hasUntrackedFilesgetUntrackedFiles
-
Added an internal utility
parseNumStat(src/lib/utils/parseNumStat.ts) to convertgit diff --numstatoutput into a structured format.
Chores
- Updated build configuration.
What's Changed
- chore(deps): update pnpm to v10.27.0 by @renovate[bot] in #7
- feat: add diff utilities and refactor status by @teneplaysofficial in #8
New Contributors
- @teneplaysofficial made their first contribution in #8
Full Changelog: v0.1.0...v0.2.0