Skip to content

Releases: webpro-nl/knip

Release 1.0.2

11 Jan 12:42
Compare
Choose a tag to compare
  • Update dependencies (656c3f8)
  • Add $schema to Knip's own config (a5fd4c6)
  • Implement more of babel config api mock (fixes #42) (7ff9363)

Release 1.0.1

11 Jan 10:11
Compare
Choose a tag to compare
  • Use single way to maybeAddListedReferencedDependency and add tests (4917172)
  • Point remaining url's from next to main branch (246fd61)

Release 1.0.0

10 Jan 13:08
Compare
Choose a tag to compare

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)

Release 1.0.0-beta.12

09 Jan 22:14
Compare
Choose a tag to compare
Release 1.0.0-beta.12 Pre-release
Pre-release
  • Fix ts config paths with baseUrl in descendent workspaces (d254ead)
  • Fix extends array in nyc config (a188300)
  • Fix require array in mocha plugin (8619872)
  • Optimize/simplify TS config loader (6cb883e)

Release 1.0.0-beta.11

09 Jan 15:40
Compare
Choose a tag to compare
Release 1.0.0-beta.11 Pre-release
Pre-release
  • Move TS config loader to smaller dependency (5535018)
  • Add strict production mode to release hooks and GA workflow (663a045)

Release 1.0.0-beta.10

09 Jan 14:10
Compare
Choose a tag to compare
Release 1.0.0-beta.10 Pre-release
Pre-release
  • Update dependencies (c6f4453)
  • Move typescript to production dependencies (08ed168)
  • Add strict production mode to own dog food (7195318)
  • Fix a few type imports (d8d6058)
  • Add postinstall npm script in production mode (6113699)
  • Revisit peer dependencies handling and add tests (80469a1)
  • Consider only non-type imports in strict production mode (b2c8266)
  • Revisit the --production and --strict modes (e03e8d0)
  • Add FAQ and all around edits (12e8353)

Release 1.0.0-beta.9

07 Jan 18:14
Compare
Choose a tag to compare
Release 1.0.0-beta.9 Pre-release
Pre-release
  • Improve storybook plugin addons handling + add glob patterns for stories to project files (620ed63)
  • Support regexes to match package name in plugin enabler (5a01d66)
  • Update docs (f768eba)
  • Improve create-plugin script and add test + fixture dir (145aa9c)
  • Add plugin for lint-staged (closes #33) (6dcc813)
  • Improve regex to get package name from absolute path (1b75bab)
  • Bail out for the npx -y exception (then a dependency does not need to be listed) (0412eec)
  • Add release-it plugin (closes #34) (da30a28)
  • Add coverage for a plugin config depending an another workspace by package name (8779a4e)
  • Move test files (745dc65)

Release 1.0.0-beta.8

03 Jan 23:03
Compare
Choose a tag to compare
Release 1.0.0-beta.8 Pre-release
Pre-release
  • Move breaking changes to separate migration to v1 document and more doc edits and fixes (8c5cc42)
  • Support array of configs and babel options in webpack plugin (11931c9)

Release 1.0.0-beta.7

03 Jan 16:01
Compare
Choose a tag to compare
Release 1.0.0-beta.7 Pre-release
Pre-release
  • Update dependencies (3107f33)
  • Fix isStrict flag for dependencies and improve docs + tests (3d6adf4)
  • Rename npm-scripts folder to manifest (8885523)
  • Add special case related to typed peer dependency to test (f62d8bb)
  • Improve webpack config file pattern and allow config to be a function (12d78c7)
  • Minor changes all around (0fb209b)
  • Fix up sentry plugin (8fd756f)
  • Add test for babel plugin (0646558)
  • Improve titles of tests (5e5dbcf)
  • Add fixtures and tests for commitlint, nyc, prettier, sentry & webpack plugins (6f71d26)

Release 1.0.0-beta.6

31 Dec 13:04
Compare
Choose a tag to compare
Release 1.0.0-beta.6 Pre-release
Pre-release
  • Update dependencies (89d1b8c)
  • Use root workspace name constant where possible (aec03d5)
  • Fix bug where plugin config as array is not handled properly (444ce80)