npm / isomorphic-git
isomorphic-git
What changed in isomorphic-git 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
33 breaking8 security14 new APIs and options5 performance2 behavior and defaults1 tooling54 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initisomorphic-git 1117 changes
Breaking changes 33
LGPL code was removed from the codebase, which may affect developers’ licensing decisions.
Throws when TREE is given a ref that cannot be resolved.
The author.date parameter was removed in favor of author.timestamp.
The undocumented authPassword alias was removed in favor of password.
The undocumented authUsername alias was removed in favor of username.
The autoTranslateSSH feature was removed; callers can use UnknownTransportError data.suggestion to implement their own translation.
fastCheckout was renamed checkout, and the old checkout function was removed.
The committer.date parameter was removed in favor of committer.timestamp.
The deprecated emitter parameter was removed.
The error API replaces E codes with typed error classes, shortening names and enabling instanceof checks and typed .data properties.
The deprecated fs parameter was removed.
HTTP clients are now separate files that users import and provide to request-making functions; the http parameter is required.
log no longer accepts signing, returns readCommit-shaped objects, and throws rather than placing errors in its result array.
message events now emit full, untrimmed data; the rawmessage event was removed.
The parameter was removed; its behavior is now the default and only behavior.
The noGitSuffix parameter was removed because using the provided URL unchanged is now the default.
The parameter was removed; its behavior is now the default and only behavior.
onAuth replaces username, password, token, oauth2format, and the credentialManager plugin as the single authentication mechanism; it supports raw headers, retries, and cancellation.
The plugin system was removed in favor of passing arguments and callbacks.
core was replaced by plugins.createCore and plugins.deleteCore.
plugins.set was replaced by plugins.fs, plugins.emitter, plugins.credentialManager, plugins.pgp, and plugins.http.
push now throws if any remote refs fail to update and returns a typed result organized by ref.
The rawmessage event was removed; untrimmed data is now emitted by message.
readObject uses the object schemas of readCommit, readTree, and readTag; trees are arrays and results form a discriminated union.
Official support for Safari 11 was dropped.
The deprecated sign command was removed.
The tagger.date parameter was removed in favor of tagger.timestamp.
TagObject.signature was renamed to gpgsig to match CommitObject.
Functions that returned Buffer objects now return Uint8Array objects.
Provided URLs are used as-is rather than being changed to end with .git; User-Agent handling is left to the user.
The verify function was removed; callers can verify signatures outside isomorphic-git using returned signing payloads.
walkBeta2 was renamed walk, and walkBeta1 was removed.
writeObject uses the object schemas of readCommit, readTree, and readTag; trees are arrays rather than objects with an entries property.
Security 8
Credentials are dropped when a redirect changes the origin, preventing them from being sent to a different origin.
Credentials are stripped from the remote URL in the fetch head description.
Remote refs are sanitized.
Fixes prototype pollution.
Fixes unsafe symlink handling during cherry pick.
isomorphic-git: Arbitrary file write outside of working tree via directory symlink during checkout (potential RCE)
isomorphic-git: Circular symbolic references cause non-terminating resolution (DoS)
isomorphic-git: Path traversal via a ".." tree-entry name writes files outside the working directory on clone/checkout
New APIs and options 14
Adds an author filter to log so developers can filter log entries by author.
remove accepts an array of filepaths, allowing multiple files to be removed in one call.
Adds abort signal support, allowing developers to cancel operations.
Built-in HTTP clients now support custom fetchOptions.
Adds the disallowEmpty option to commit.
Adds the refresh option to status.
Adds the refresh option to statusMatrix.
Adds support for cherry-picking a single commit.
Git commands can now be run in submodules.
Migrates from BrowserFS to ZenFS.
A default export was added, along with support for importing the ES module build in Node 12 and later.
fetch gained a pruneTags parameter.
A cancel property lets authentication stop gracefully, throwing UserCanceledError instead of HttpError.
A headers property lets onAuth provide arbitrary HTTP headers.
Performance 5
The Node build uses node:crypto to hash SHA-1.
Each object is inflated once in GitPackIndex.fromPack, improving performance.
The index is written once per walk instead of once per file, reducing index writes during a walk.
Avoids reading a packed parent during commit.
Pack verification uses less memory on Node.
Behavior and default changes 2
log now includes changed file object ids.
The callback can return a GitAuth object to retry authentication as many times as needed.
Tooling 1
The onAuth typings were adjusted, and an http.d.ts declaration file was added.
Fixes and other changes 54
Refspec handling now supports negative refspecs and refspecs without a destination.
Fixed symlink handling during merge and cherry-pick.
Conflict markers are separated from unterminated lines.
The UMD bundle's license file is now included in the npm package.
Uses Node's stream module in the Node HTTP client.
Commit tree and parent headers are read positionally, matching Git.
File timestamps are compared at subsecond precision.
Malformed pkt-line lengths are now rejected.
isomorphic-git can read and write version 3 index files.
Config section headers with comments, tabs, and escaped subsections are now parsed correctly.
Config values are now escaped and unescaped like canonical Git, improving compatibility with Git configuration behavior.
Read and readdir errors other than file-not-found are now rethrown.
Pako decompression errors are preserved when reading objects, making the original decompression failure available to callers.
status returns absent for case-mismatched paths on case-insensitive filesystems.
Each packfile checksum is verified once under concurrent reads.
Config variable names containing digits are now parsed correctly when tabs surround the equal sign.
Checkout, branch, merge, and commit now peel annotated tags to commits.
Refuses to cherry-pick over local changes, preventing local work from being overwritten.
Paths are sorted by UTF-8 bytes, matching Git’s ordering.
Patterns in .git/info/exclude are anchored to the working directory.
Fixes an issue involving an incorrect ref.
Restores PushRejectedError when pushing against an advanced remote.
Filepaths are matched on path component boundaries.
Returns the best merge bases for DAG histories.
Filepath-filtered logs now include file mode changes.
Checkout now restores filepaths from the index.
CRLF sequences that straddle two chunks are no longer split.
URL credentials are now read with the WHATWG parser.
Fixes recursive mkdir.
Recognizes scp-like syntax with a user other than git.
Fixed the global acquire lock.
No longer crashes when a peeled tag's tag is filtered out by the prefix.
Status now honours core.autocrlf when hashing the working copy.
.gitignore rules are applied only to files that are not tracked.
Excludes Git system files when expanding a ref.
statusMatrix no longer traverses symlinks in GitWalkerFs.
Binary files are preserved when writing a conflicted working tree.
Fixes handling of NTFS Alternate Data Streams.
Supports Windows file paths in utils/join.js.
Auth callbacks now receive the username from credential configuration.
The jsdelivr field now points to the minified browser build, so CDN consumers receive that build.
Fixes cases where the browser entrypoint was not used in some non-node build contexts.
checkout now surfaces silent rejections in batchAllSettled.
Error handling is improved when a packfile cannot be read.
Supports Git worktrees with absolute gitdir paths.
Adds packfile integrity validation.
commit now updates a detached HEAD.
Handles symlinks correctly.
Special-cases the cp command in FileSystem.js.
Fixes an error in readTree.
The fatal error message was improved.
Modified files are no longer treated as conflicted unless checkout would actually change them.
fetch and push now respect previously ignored Git config settings, including pushRemote, pushDefault, pushurl, and merge.
fetch without a ref parameter works when HEAD points to a branch that does not exist.