npm knip 1.0.0
Release 1.0.0

latest releases: 5.32.0, 5.31.0, 5.30.6...
21 months ago

This release makes the work that started with the Atlantic release back in november generally available. It marks the support for workspaces and plugins. The major drivers are less configuration in your projects and a better architecture for future work. A lot of groundwork has been done, using unit tests and a few pretty large codebases.

Knip's core idea is to find unused files, exports and dependencies, which isn't trivial given the wide range of project structures and the many ways to configure repositories and frameworks nowadays. When exploring the matters in various projects, it has become clear that Knip will never be perfect and 100% accurate, and without any configuration for Knip, large projects will likely have false positives. But I think this is only normal in this type of software development. For instance, ESLint will also not prevent bugs in your code, it helps to find problems in your code. Knip has a similar ambition, but beyond the scope of single files. Motivation and ambition has only grown to do as good as possible to keep projects of any size more maintainable. I believe the investment in developing Knip is totally worth it!

Breaking changes

When coming from version v0.13.3 or before, please see migration to v1.


Changes since the latest beta (1.0.0-beta.12):

  • Merge branch 'next' (8241d34)
  • Disable line to satisfy eslint import/order plugin in Windows (f04a45d)
  • Update config schema url in docs (6d9110b)
  • Fix for empty webpack config (e57b86c)
  • Bump TS target to es2022 (ac15d39)
  • Organize package.json differently (bb61a05)
  • Add lint-staged and release-it to config validator (e92d218)
  • Update some comments in code (f58e713)
  • Use central logIfDebug helper (8a3f9f6)
  • Use single require instance everywhere (572b89e)
  • Remove workspace cancellation (70bd2ba)
  • Housekeeping knip.json (d235b31)
  • Always run lint with release (57dac72)
  • Fix lint issues (0c2ecdf)

Don't miss a new knip release

NewReleases is sending notifications on new releases.