---
title: "degit 3.10.1 Breaking Changes on npm | Since.dev"
description: "What each degit release removed, renamed or changed: 22 breaking changes in 15 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/degit
last_updated: 2026-12-04
---

# 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

Latest version `3.10.1`, released October 21, 2026. [Source repository](https://github.com/Rich-Harris/degit)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [3.10.1](#v-3-10-1): 21 breaking changes in 14 versions.

## degit 3.10.1 breaking changes

degit 3.10.1, released October 21, 2026: 3 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](https://github.com/Rich-Harris/degit/releases/tag/v3.10.1)
- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.10.1)
- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.10.1)

## degit 3.9.0 breaking changes

degit 3.9.0, released September 1, 2026: 2 breaking changes.

- **Signature changed** `default`  

Was function degit(src: string, opts?: ConstructorOptions): Degit; now function degit(src?: string, opts?: ConstructorOptions): Degit. [npmjs.com](https://www.npmjs.com/package/degit/v/3.9.0)
- **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](https://www.npmjs.com/package/degit/v/3.9.0)

## degit 3.8.0 breaking changes

degit 3.8.0, released August 17, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/degit/v/3.8.0)

## degit 3.7.1 breaking changes

degit 3.7.1, released August 15, 2026: 1 breaking change.

- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.7.1)

## degit 3.7.0 breaking changes

degit 3.7.0, released August 12, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/degit/v/3.7.0)

## degit 3.6.5 breaking changes

degit 3.6.5, released July 29, 2026: 2 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](https://github.com/Rich-Harris/degit/releases/tag/v3.6.5)
- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.6.5)

## Older versions

9 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### degit 3.6.4 breaking changes

degit 3.6.4, released July 29, 2026: 1 breaking change.

- **Removed** `Options.platform`  

Options.platform was removed in degit 3.6.4 [npmjs.com](https://www.npmjs.com/package/degit/v/3.6.4)

### degit 3.6.2 breaking changes

degit 3.6.2, released July 23, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/degit/v/3.6.2)

### degit 3.6.1 breaking changes

degit 3.6.1, released July 16, 2026: 1 breaking change.

- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.6.1)

### degit 3.4.7 breaking changes

degit 3.4.7, released June 11, 2026: 1 breaking change.

- **Behavior changed**  

Error details from a failed clone are no longer printed by default; users who need them must pass --verbose. [github.com](https://github.com/Rich-Harris/degit/releases/tag/v3.4.7)

### degit 3.4.6 breaking changes

degit 3.4.6, released June 9, 2026: 2 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](https://github.com/Rich-Harris/degit/releases/tag/v3.4.6)
- **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](https://www.npmjs.com/package/degit/v/3.4.6)

### degit 3.4.0 breaking changes

degit 3.4.0, released June 4, 2026: 3 breaking changes.

- **Removed** `Options.exec`  

Options.exec was removed in degit 3.4.0 [npmjs.com](https://www.npmjs.com/package/degit/v/3.4.0)
- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.4.0)

And 1 more in this version.

### degit 3.2.0 breaking changes

degit 3.2.0, released May 24, 2026: 1 breaking change.

- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.2.0)

### degit 3.1.1 breaking changes

degit 3.1.1, released May 24, 2026: 1 breaking change.

- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.1.1)

### degit 3.0.0 breaking changes

degit 3.0.0, released May 21, 2026: 1 breaking change.

- **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](https://github.com/Rich-Harris/degit/releases/tag/v3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
