knip
6.48.0 · 22 Nov 2026ISC34.2M / weekRepositoryHomepagenpmAtom feed
6.48.0 is the newest release of 6.x.
In short
20 new4 faster35 fixed23 internal
Release note
Load formatly only when formatting files
Treat undefined plugin config like an absent key
Replace Zod with handwritten configuration validation
Load configuration parsers and Jiti on demand
Handle CLI help and version before loading the analyzer
Make performance measurements reusable and cover analysis phases
Show startup overhead alongside run time
Show config location and reason in configuration hints
Preserve double hyphens in CLI links
Read vue.config.cjs in the Vue plugin
Find dangerfile.mts and Dangerfile.* in the Danger plugin
Add AWS CDK plugin
Find JavaScript root and route files and remix.config.mjs in the Remix plugin
Find payload.config.js in the Payload CMS plugin
Skip
configandresolvearguments without a valueKeep production entries that Vite build.lib.entry also names
Keep locally used destructured bindings
Treat npm flags without values as booleans in npm exec
Require committed fixtures in TESTS.md
Skip fromArgs arguments without a value
Remove redundant bare --config handling from the Rollup plugin
Resolve Vite entry files without glob expansion
Resolve literal plugin files through the shared entry resolver
Document export analysis for deferred production entries
Test literal entries across plugins
Run
astro checkon the docs in CIReport unused subpath imports in package.json (resolve #2317)
Report unused subpath exports with includeSubpathExports
Resolve pnpm workspace: aliases to their workspace
Bump @astrojs/markdown-satteri to 0.4.7 to match satteri 0.11
Add every msw.workerDirectory entry in MSW plugin
Add Evalite plugin
Read images.loaderFile and cache handler paths in the Next.js plugin
Read an existing --app directory as a cloud assembly in the AWS CDK plugin
Follow a namespace import re-exported with export default
Compare session issue order with a fresh run only where it is defined
Run test files in batches to stay under the Windows command-line limit
Resolve bare plugin input paths regardless of dependency reporting
Anchor gitignore patterns with a middle slash
Detect node tests behind c8 options
Find JavaScript plugins, middleware and app.config in the Nuxt plugin
Add Web Test Runner plugin
Check Node.js builtins independently of the runtime
Track MDX content mapper provider dependencies
Treat
require('./mod').Aas a named importEdit and extend some docs
Exclude development deferResolve files in production mode
Resolve plugin inputs in core and credit the packages they reach
Take Marko taglib packages from the workspace dependencies and the resolver
Read providerImportSource from @next/mdx and @mdx-js/rollup options
Pass
dependenciestoregisterCompilersin the plugin docs generatorPass getScriptCommands to plugins to break import cycle
Move isShadowed logic out of walk.ts to break import cycles
Document knip-bun performance on large projects
Import sharp as ESM and use setField in docs link plugin
Add MikroORM plugin
Handle the
reportcommand in the c8 pluginTreat dynamic import namespace passed as a value as used
Scope dynamic import namespace bindings to their callback or block
Shadow destructured declarators, nested classes and loop bodies precisely
Keep the captured import binding in alias and container records
Pin input handler behaviors the test suite did not cover
Restructure createInputHandler as one case per input type
Apply one report policy to inputs resolved as files
Report an unresolvable alias import as unresolved
Record session refs for packages reached through paths
Add a production option to the input helpers
Document path and node_modules inputs in the plugin docs
Expand glob entries from scripts in source files
Resolve local paths in 13 plugin configs as files
Resolve local npx and npm exec package folders as files
Emit ESLint plugins and configs as dependencies
Emit tsconfig plugins and tslib as dependencies
Emit package-only values as dependencies in 8 plugins
Stop crediting development inputs in production mode
Exclude files of development scripts in production mode
Emit packages loaded at runtime as production dependencies
Add strict-mode test with workspaces fixture
Don't crash on floating rejections
Pin oxc-parser to 0.156 and fix the emnapi runtime peer for astro check
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.