Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump knip from 1.12.3 to 2.2.0 #337

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 29, 2023

Bumps knip from 1.12.3 to 2.2.0.

Release notes

Sourced from knip's releases.

Release 2.2.0

  • Fix file casing (2818d68)
  • Remove unused export (671de45)
  • Return single dependencies array from _getDependenciesFromScripts (4a77e35)
  • Bring all ignored dependencies + binaries handling together and later in the process (300035a)
  • Minor refactor in workspace config normalizer for readability (38ce7d9)
  • Introduce script node visitors (46b8110)
  • Fix npx binary resolver (522c8a7)
  • Add --quiet and --verbose to generic binary resolver (20680f4)
  • Add custom zx resolver (6830f97)
  • Fix nodemon resolver (c72149e)
  • Start using generic arg resolvers in fallback binary resolver (425d306)
  • Move AST visitors to their own factories and add file condition (c5da961)
  • Minor refactor return value of compilers helper (fcccb26)
  • Case file names after their class (6c08af3)
  • Ignore @​public class/enum members (7e4e8e0)

Release 2.1.3

  • Update dependencies (c295f01)
  • Update tailwind docs (a2f8ce3)
  • Update tailwindcss plugin with .cjs support (#102) (6dc5217)

Release 2.1.2

  • Remove $lib/* from docs (already in `.svelte-kit/tsoncig.json) after fixing regression in ab1c6449aa1630ab5a354b256b956254822cd55b (cc4b288)
  • Swallow bash parser errors (but show in --debug) (9989522)
  • Improve error handling a bit (7b2d232)
  • Update docs (28170c7)
  • Rename paths to pathKeys for clarity (5856d62)
  • Resolve only custom paths from config (ab1c644)
  • docs: add additional svelte import paths (#101) (1c66d2b)

Release 2.1.1

  • Since TypeScript v5, extends can be an array (414ac29)
  • Update dependencies (44dddb8)
  • fix(svelte): layout reset reported as false positive (unused file) (#100) (44b525c)

Release 2.1.0

  • Add vite plugin (5b80b8c)
  • Add condition to jest plugin enabler for internal jest-preset packages (fdef35d)
  • Append /jest-preset to external preset specifiers so the main program can find them (b4401b0)
  • Add package.json#jest to jest plugin confg file patterns (d51c42a)
  • Add condition to eslint plugin enabler for internal eslint-config packages (709fa19)
  • Improve output for loader errors (e436728)
  • Simplify ts libLocation resolution (73833a0)
  • Split entry and config file patterns in vitest plugin (fixes #99) (e31ab3a)
  • Remove cruft from fixtures (83c9348)
  • Move two fixture files (1cd1477)
  • Remove .prettierignore (a458bc5)
  • Format files in test fixtures (11dd60c)

... (truncated)

Changelog

Sourced from knip's changelog.

Release Notes v2

Breaking changes

When coming from v1, there are no breaking changes in terms of configuration.

Changes

There are some changes regarding CLI arguments and output:

  • Knip now runs on every workspace automatically (except for the ones in ignoreWorkspaces: []).
  • The "Unlisted or unresolved dependencies" is split in "Unlisted dependencies" and "Unresolved imports".
  • Bug fixes and increased correctness impact output (potentially causing CI to now succeed or fail).
  • The --include-entry-exports CLI flag has been removed.
  • The --workspace [dir] argument no longer includes ancestor workspaces.

New features

Rewriting a major part of Knip's core from scratch allows for some new exciting features:

  • Performance. Files are read only once, and their ASTs are traversed only once. Projects of any size will notice the difference. Total running time for some projects decreases with 90%.
  • Compilers. You can now include other file types such as .mdx, .vue and .svelte in the analysis.

Internally, the ts-morph dependency is replaced by typescript itself.

Other improvements

  • Improved support for workspaces.
  • Improved module resolutions, self-referencing imports, and other things you don't want to worry about.
  • Configure ignoreDependencies and ignoreBinaries at the workspace level.
  • Simplified plugins model: plugin dependency finder may now return any type of dependency in a single array: npm packages, local workspace packages, local files, etc. (module and path resolution are handled outside the plugin).
  • Many bugfixes.
Commits
  • 08e7903 Release 2.2.0
  • 2818d68 Fix file casing
  • 671de45 Remove unused export
  • 4a77e35 Return single dependencies array from _getDependenciesFromScripts
  • 300035a Bring all ignored dependencies + binaries handling together and later in the ...
  • 38ce7d9 Minor refactor in workspace config normalizer for readability
  • 46b8110 Introduce script node visitors
  • 522c8a7 Fix npx binary resolver
  • 20680f4 Add --quiet and --verbose to generic binary resolver
  • 6830f97 Add custom zx resolver
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [knip](https://github.com/webpro/knip) from 1.12.3 to 2.2.0.
- [Release notes](https://github.com/webpro/knip/releases)
- [Changelog](https://github.com/webpro/knip/blob/main/docs/release-notes-v2.md)
- [Commits](webpro-nl/knip@1.12.3...2.2.0)

---
updated-dependencies:
- dependency-name: knip
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 29, 2023
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 30, 2023

Superseded by #338.

@dependabot dependabot bot closed this Mar 30, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/knip-2.2.0 branch March 30, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants