degit breaking changes
degit 3.10.1 (October 21, 2026) is its newest release with breaking changes, 3 of them. The first: Download failures now reject with DegitError instead of a plain object in degit 3.10.1. Every breaking API change we have recorded in degit on npm: 22 breaking changes in 15 versions. Below, its 15 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.10.1, released October 21, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
degit 3.10.1 breaking changes
- Behavior changed
Failed downloads reject with a DegitError, an Error that carries a code property, rather than a plain object. Code that inspects the rejection value should check for DegitError or the code property. github.com - Behavior changed
Archive downloads now stop after 5 HTTP redirects, require a Location header on redirects, and refuse redirects to non-HTTPS URLs. Downloads that relied on longer chains or plain HTTP redirects will now fail. github.com - Behavior changed
search_replace
search_replace regex execution is now bounded to 1 second, and files larger than 10MB are skipped. Directives relying on slow regexes or large files will behave differently. github.com
degit 3.9.0 breaking changes
- Signature changed
default
Was function degit(src: string, opts?: ConstructorOptions): Degit; now function degit(src?: string, opts?: ConstructorOptions): Degit. npmjs.com - Signature changed
DegitErrorCode
Was type DegitErrorCode = 'DEST_NOT_EMPTY' | 'MISSING_REF' | 'COULD_NOT_DOWNLOAD' | 'BAD_SRC' | 'UNSUPPORTED_HOST' | 'BAD_REF' | 'COULD_NOT_FETCH' | 'MISSING_SUBDIR'; now type DegitErrorCode = 'DEST_NOT_EMPTY' | 'MISSING_REF' |... npmjs.com
degit 3.8.0 breaking changes
- Signature changed
InfoCode
Was type InfoCode = 'SUCCESS' | 'FILE_DOES_NOT_EXIST' | 'FILE_OUTSIDE_DEST' | 'NO_FILES_MATCHED' | 'REMOVED' | 'DEST_NOT_EMPTY' | 'DEST_IS_EMPTY' | 'USING_CACHE' | 'FOUND_MATCH' | 'FILE_EXISTS' | 'PROXY' | 'DOWNLOADING' | 'EXTRACTING'; now... npmjs.com
degit 3.7.1 breaking changes
- Behavior changed
Remove and keep directives that resolve to the destination root now fail instead of deleting the whole clone. Check degit.json for any such directives. github.com
degit 3.7.0 breaking changes
- Signature changed
InfoCode
Was type InfoCode = 'SUCCESS' | 'FILE_DOES_NOT_EXIST' | 'FILE_OUTSIDE_DEST' | 'REMOVED' | 'DEST_NOT_EMPTY' | 'DEST_IS_EMPTY' | 'USING_CACHE' | 'FOUND_MATCH' | 'FILE_EXISTS' | 'PROXY' | 'DOWNLOADING' | 'EXTRACTING'; now type InfoCode =... npmjs.com
degit 3.6.5 breaking changes
- Behavior changed
In git mode, a missing subdirectory now causes an error instead of creating an empty destination. Code that expected an empty directory must handle the error. github.com - Behavior changed
repo.subdir
Using mode 'git' now respects repo.subdir, where it was previously ignored, and reports the correct mode. Code relying on the old behavior may get different files. github.com
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
degit 3.6.4 breaking changes
- Removed
Options.platform
Options.platform was removed in degit 3.6.4 npmjs.com
degit 3.6.2 breaking changes
- Signature changed
DegitErrorCode
Was type DegitErrorCode = 'DEST_NOT_EMPTY' | 'MISSING_REF' | 'COULD_NOT_DOWNLOAD' | 'BAD_SRC' | 'UNSUPPORTED_HOST' | 'BAD_REF' | 'COULD_NOT_FETCH'; now type DegitErrorCode = 'DEST_NOT_EMPTY' | 'MISSING_REF' | 'COULD_NOT_DOWNLOAD' |... npmjs.com
degit 3.6.1 breaking changes
- Configuration changed
Configuration in degit.json is read as JSON data, so JavaScript code in that file no longer runs. Users who relied on executable logic there must move it to static JSON. github.com
degit 3.4.7 breaking changes
- Behavior changed
Error details from a failed clone are no longer printed by default; users who need them must pass --verbose. github.com
degit 3.4.6 breaking changes
- Behavior changed
remove
The remove operation now refuses paths that escape the destination directory. Code that relied on removing files outside the destination must change. github.com - Signature changed
InfoCode
Was type InfoCode = 'SUCCESS' | 'FILE_DOES_NOT_EXIST' | 'REMOVED' | 'DEST_NOT_EMPTY' | 'DEST_IS_EMPTY' | 'USING_CACHE' | 'FOUND_MATCH' | 'FILE_EXISTS' | 'PROXY' | 'DOWNLOADING' | 'EXTRACTING'; now type InfoCode = 'SUCCESS' |... npmjs.com
degit 3.4.0 breaking changes
- Removed
Options.exec
Options.exec was removed in degit 3.4.0 npmjs.com - Behavior changed
Degit now downloads tarballs by default and falls back to SSH when that fails. Code that relies on the previous download path may behave differently. github.com
And 1 more in this version.
degit 3.2.0 breaking changes
- Behavior changed
Info messages from the degit CLI now go to stdout, while warnings and errors stay on stderr. Scripts that read stderr or stdout for CLI messages may need updating. github.com
degit 3.1.1 breaking changes
- Default changed
The CLI help text was updated to state that the branch defaults to the repository's default branch. Confirm that your scripts expect this default. github.com
degit 3.0.0 breaking changes
- Removed
This release targets Node 20 and later; Node 8 users must stay on the v2 branch, which is the legacy Node 8-compatible line. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.