knip breaking changes
Updated December 4, 2026
On this page
Latest version 6.51.1, released December 4, 2026. Source repository
Its 6.0.0 release requires Node.js 20.19.0 or later. Node.js end of life dates.
knip 6.46.0 breaking changes
- Behavior changed
Development files that production code imports are now kept in the production graph, so production-mode results may change. github.com - Behavior changed
Node, tsx and ts-node options are no longer parsed past the script name, so script-related findings may differ from earlier releases. github.com - Behavior changed
Duplicate exports are now also reported for default-only exports and regardless of declaration order, so projects that previously passed may now see new findings. github.com - Signature changed
session:PackageJson
Was type PackageJson = {name?: string; main?: string; bin?: string | Record<string, string>; repository?: string | {type?: string; url?: string; directory?: string;}; version?: string; private?: boolean; workspaces?: string[] | {packages?... npmjs.com
knip 6.45.1 breaking changes
- Behavior changed
knip-run
The knip-run MCP tool returns structured content with an output schema and string hint identifiers. Clients parsing its previous output format may need to adapt. github.com
knip 6.45.0 breaking changes
- Removed
session:MainOptions.parsedConfig.$schema
MainOptions.parsedConfig.$schema was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.angular
MainOptions.parsedConfig.angular was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.astro
MainOptions.parsedConfig.astro was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.astro-db
MainOptions.parsedConfig.astro-db was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.astro-markdoc
MainOptions.parsedConfig.astro-markdoc was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.astro-og-canvas
MainOptions.parsedConfig.astro-og-canvas was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.asyncCompilers
MainOptions.parsedConfig.asyncCompilers was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.ava
MainOptions.parsedConfig.ava was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.babel
MainOptions.parsedConfig.babel was removed in knip 6.45.0 npmjs.com - Removed
session:MainOptions.parsedConfig.biome
MainOptions.parsedConfig.biome was removed in knip 6.45.0 npmjs.com
And 230 more in this version. Sign up to see every change
knip 6.44.1 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{createdFrom: CreateOptions; cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer[]; config: string | undefined; configFilePath: string | undefined... npmjs.com
knip 6.44.0 breaking changes
- Behavior changed
Peer dependencies declared in packageExtensions are now treated as optional. Projects that depended on them being reported as required may see different results. github.com - Behavior changed
The vite-plugin-pwa plugin no longer adds public/sw.js as a production entry file. Projects that relied on that file being treated as an entry may now see it reported as unused. github.com - Behavior changed
entry
Plugins that do not resolve their config files now use the custom entry option. Projects may see different entry files reported after upgrading. github.com - Signature changed
ReporterOptions
Was type ReporterOptions = {report: Report; issues: Issues; counters: Counters; tagHints: TagHints; configurationHints: ConfigurationHint[]; hasConfigLoadErrors: boolean; enabledPlugins: Record<string, string[]>; isDisableConfigHints... npmjs.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.catalog
Was catalog: import("../CatalogCounselor.ts").CatalogContainer; now catalog: import("../CatalogCounselor.ts").CatalogContainer[]. npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com - Signature changed
session:MainOptions.parsedConfig.workspaces
Was workspaces?: Record<string, {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean |... npmjs.com
knip 6.43.0 breaking changes
- Behavior changed
File watching now uses the project directory rather than process.cwd(), so runs started from another directory may watch different files. github.com - Configuration changed
The engines.node requirement was bumped to match Astro's, so older Node.js versions may no longer be supported. github.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com - Signature changed
session:MainOptions.parsedConfig.workspaces
Was workspaces?: Record<string, {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean |... npmjs.com
Older versions
38 older versions, each with its first changes. Sign up to see every change
Show 38 older versions
knip 6.42.0 breaking changes
- Removed
containingFilePath
The redundant containingFilePath field is no longer passed in plugin config inputs. Plugin code that reads it must be updated. github.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com
And 2 more in this version.
knip 6.41.0 breaking changes
- Behavior changed
The Expo Router plugin is now separate, and expo-router entry points were removed from the Expo plugin. Projects relying on them must enable the Expo Router plugin. github.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com
And 2 more in this version.
knip 6.40.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.39.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 2 more in this version.
knip 6.38.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.37.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 2 more in this version.
knip 6.36.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.35.1 breaking changes
- Behavior changed
When a plugin config file fails to load, knip now exits with code 2. CI scripts or wrappers that check the exit code may need to handle this value. github.com - Signature changed
ReporterOptions
Was type ReporterOptions = {report: Report; issues: Issues; counters: Counters; tagHints: TagHints; configurationHints: ConfigurationHint[]; enabledPlugins: Record<string, string[]>; isDisableConfigHints: boolean; isDisableTagHints... npmjs.com
knip 6.35.0 breaking changes
- Removed
session:MainOptions.parsedConfig.syncCompilers
MainOptions.parsedConfig.syncCompilers was removed in knip 6.35.0 npmjs.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com
And 4 more in this version.
knip 6.34.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com
knip 6.33.0 breaking changes
- Behavior changed
Configuration that is not an object is now rejected with an error instead of being accepted. Make sure your knip configuration exports an object. github.com
knip 6.32.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.31.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.30.0 breaking changes
- Removed
tsc is no longer in ignoreBinaries by default, so projects relying on it being ignored may now see it reported. github.com - Behavior changed
Only plugins enabled for a workspace are now tracked, which can change reported results for disabled plugins. github.com
And 13 more in this version.
knip 6.29.0 breaking changes
- Behavior changed
The async glob now does not follow symbolic links. Code relying on symlinked directories being traversed may see different results. github.com
knip 6.28.0 breaking changes
- Behavior changed
With ignoreExportsUsedInFile enabled, knip now reports unused re-exports that it previously ignored. Projects that relied on the old behavior may see new issues and need to update their config or code. github.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com
And 2 more in this version.
knip 6.27.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; cycles: boolean... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.26.0 breaking changes
- Behavior changed
Compiler extensions are now applied per workspace rather than globally, which can change results in monorepos. github.com - Behavior changed
Ambient declaration files are no longer reported as unused files. Code that relied on them being reported will see fewer issues. github.com
And 7 more in this version.
knip 6.25.0 breaking changes
- Signature changed
JSONReportEntry
Was type JSONReportEntry = {file: string; owners?: Array<JSONReportNamedItem>; binaries?: Array<JSONReportNamedItem>; catalog?: Array<JSONReportItem>; dependencies?: Array<JSONReportItem>; devDependencies?: Array<JSONReportItem>... npmjs.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com
And 10 more in this version.
knip 6.24.0 breaking changes
- Behavior changed
The package now assumes Node.js 24 or later, or Bun, and no longer runs a compilation step. Users on older Node.js versions must upgrade their runtime. github.com
knip 6.23.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.22.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.17.1 breaking changes
- Removed
ignoreBinaries
The release removes ignoreBinaries handling for tar. Check whether your config relies on ignoreBinaries to suppress tar. github.com
knip 6.17.0 breaking changes
- Behavior changed
SCSS imports with a scope or tilde prefix are now classified as package imports, which can change which dependencies and issues knip reports. github.com - Behavior changed
Imports of sibling workspace packages that are not declared as dependencies are now reported, which can add new issues to existing projects. github.com
And 4 more in this version.
knip 6.16.0 breaking changes
- Behavior changed
Argument parsing now uses node:util.parseArgs instead of minimist; numeric coercion and --no-x negation were preserved, but parsing details may still differ for existing invocations. github.com - Behavior changed
ignoreExportsUsedInFile
The option is now supported per workspace, so configurations relying on global scope may report different results. github.com
And 3 more in this version.
knip 6.15.0 breaking changes
- Signature changed
ReporterOptions
Was type ReporterOptions = {report: Report; issues: Issues; counters: Counters; tagHints: TagHints; configurationHints: ConfigurationHint[]; enabledPlugins: Record<string, string[]>; isDisableConfigHints: boolean; isDisableTagHints... npmjs.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com
And 2 more in this version.
knip 6.12.0 breaking changes
- Behavior changed
The config hint title is now printed to stderr. Scripts that read knip's stdout for this hint must read stderr instead. github.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com
And 2 more in this version.
knip 6.11.0 breaking changes
- Signature changed
ReporterOptions
Was type ReporterOptions = {report: Report; issues: Issues; counters: Counters; tagHints: TagHints; configurationHints: ConfigurationHint[]; enabledPlugins: Record<string, string[]>; isDisableConfigHints: boolean... npmjs.com - Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com
knip 6.10.0 breaking changes
- Behavior changed
Entries in tsconfig compilerOptions.types are now classified as type-only, which can change how knip reports dependencies. github.com - Behavior changed
Imports inside .d.ts files are now classified as type-only, which can change how knip reports dependencies. Review knip results if you rely on those reports. github.com
And 1 more in this version.
knip 6.8.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.6.1 breaking changes
- Behavior changed
The react-email plugin now supports react-email version 6, which may change how its entry points are detected. github.com
knip 6.6.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.5.0 breaking changes
- Removed
session:MainOptions.experimentalTags
The leftover experimentalTags setting has been removed, so configurations still using it no longer have any effect. npmjs.com - Behavior changed
Knip now uses tinyglobby internally instead of fast-glob, which may change glob matching results in edge cases. github.com
And 8 more in this version.
knip 6.4.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.3.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.1.0 breaking changes
- Signature changed
session:createOptions
Was const createOptions: (options: CreateOptions) => Promise<{cacheLocation: string; catalog: import("../CatalogCounselor.ts").CatalogContainer; config: string | undefined; configFilePath: string | undefined; cwd: string; dependencies... npmjs.com - Signature changed
session:MainOptions.parsedConfig
Was parsedConfig: {angular?: string | boolean | string[] | {config?: string | string[] | undefined; entry?: string | string[] | undefined; project?: string | string[] | undefined;} | undefined; astro?: string | boolean | string[] |... npmjs.com
And 1 more in this version.
knip 6.0.0 breaking changes
- Removed
Knip v6 requires Node.js v20.19.0 or newer. Upgrade Node.js before upgrading Knip. github.com - Removed
--include-libs
External type definitions are now always included, so the flag is gone. Remove it from scripts. github.com
And 21 more in this version.
knip 6.0.0-0 breaking changes
- Behavior changed
module.register
Knip only handles module.register when it is imported from node:module. github.com - Default changed
Knip no longer uses injected aliases by default; a fallback resolver is added instead. 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.