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

Update dependency npm-check-updates to v16 #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kindlymachine[bot]
Copy link

@kindlymachine kindlymachine bot commented Jul 25, 2022

This PR contains the following updates:

Package Type Update Change
npm-check-updates devDependencies major 12.2.1 -> 16.10.0

Release Notes

raineorshine/npm-check-updates

v16.10.0

Compare Source

Feature
  • Added filterResults option to filter out upgrades based on a user provided function.

filterResults runs after new versions are fetched, in contrast to filter and filterVersion, which run before. This allows you to filter out upgrades with filterResults based on how the version has changed (e.g. a major version change).

Only available in .ncurc.js or when importing npm-check-updates as a module.

/** Filter out non-major version updates.
  @​param {string} packageName               The name of the dependency.
  @​param {string} currentVersion            Current version declaration (may be range).
  @​param {SemVer[]} currentVersionSemver    Current version declaration in semantic versioning format (may be range).
  @​param {string} upgradedVersion           Upgraded version.
  @​param {SemVer} upgradedVersionSemver     Upgraded version in semantic versioning format.
  @​returns {boolean}                        Return true if the upgrade should be kept, otherwise it will be ignored.
*/
filterResults: (packageName, {currentVersion, currentVersionSemver, upgradedVersion, upgradedVersionSemver}) => {
  const currentMajorVersion = currentVersionSemver?.[0]?.major
  const upgradedMajorVersion = upgradedVersionSemver?.major
  if (currentMajorVersion && upgradedMajorVersion) {
    return currentMajorVersion < upgradedMajorVersion
  }
  return true
}

For the SemVer type definition, see: https://git.coolaj86.com/coolaj86/semver-utils.js#semverutils-parse-semverstring

Thanks to mslowiak for this enhancement!

v16.9.0

Compare Source

v16.8.2

Compare Source

v16.8.1

Compare Source

v16.8.0

Compare Source

Feature

  • Added --format lines

    $ ncu --format lines
    @​ava/typescript@^4.0.0
    ava@^5.2.0
    eslint@^8.36.0
    lerna@^6.5.1
    typescript@^5.0.2

This is particularly useful for upgrading global modules:

npm install -g $(ncu -g --format lines)

Thanks to @​vanodevium for the PR!

v16.7.13

Compare Source

v16.7.12

Compare Source

v16.7.11

Compare Source

v16.7.10

Compare Source

v16.7.9

Compare Source

v16.7.8

Compare Source

v16.7.7

Compare Source

v16.7.6

Compare Source

v16.7.5

Compare Source

v16.7.4

Compare Source

v16.7.3

Compare Source

v16.7.2

Compare Source

v16.7.1

Compare Source

v16.7.0

Compare Source

v16.6.5

Compare Source

v16.6.4

Compare Source

v16.6.3

Compare Source

v16.6.2

Compare Source

v16.6.1

Compare Source

v16.6.0

Compare Source

v16.5.6

Compare Source

v16.5.5

Compare Source

v16.5.4

Compare Source

v16.5.3

Compare Source

v16.5.2

Compare Source

v16.5.1

Compare Source

v16.5.0

Compare Source

v16.4.3

Compare Source

v16.4.2

Compare Source

v16.4.1

Compare Source

v16.4.0

Compare Source

Feature

Added --cacheClear option for—you guessed it—clearing the cache 🫥.

This brings the suite of cache-related options to:

  • --cache : Cache versions to the cache file.
  • --cacheClear : Clear the default cache, or the cache file specified by --cacheFile.
  • --cacheExpiration <min> : Cache expiration in minutes (default: 10).
  • --cacheFile <path> : Filepath for the cache file (default: "~/.ncu-cache.json").

Thanks to @​ly3xqhl8g9 whose code is gratefully more lucid than his username.

v16.3.25

Compare Source

v16.3.24

Compare Source

v16.3.23

Compare Source

v16.3.22

Compare Source

v16.3.21

Compare Source

v16.3.20

Compare Source

v16.3.19

Compare Source

v16.3.18

Compare Source

v16.3.17

Compare Source

v16.3.16

Compare Source

v16.3.15

Compare Source

v16.3.14

Compare Source

v16.3.13

Compare Source

v16.3.12

Compare Source

v16.3.11

Compare Source

v16.3.10

Compare Source

v16.3.9

Compare Source

v16.3.8

Compare Source

v16.3.7

Compare Source

v16.3.6

Compare Source

v16.3.5

Compare Source

v16.3.4

Compare Source

v16.3.3

Compare Source

v16.3.2

Compare Source

v16.3.1

Compare Source

v16.3.0

Compare Source

Feature

  • Added workspace support! 🚢

Upgrade all workspaces:

ncu --workspaces
ncu -ws

Upgrade a single workspace:

ncu --workspace a
ncu -w a

Upgrade more than one workspace:

ncu --workspace a --workspace b
ncu -w a -w b

Upgrade all workspaces AND the root project:

ncu --workspaces --root

Upgrade a single workspace AND the root project:

ncu --workspace a --root

Notes

  • If workspaces or --workspace is run in --interactive mode, ncu will prompt to npm install once in the root project rather than separately in each workspace (#​1182).
  • Running --deep will not trigger workspace support.

v16.2.1

Compare Source

v16.2.0

Compare Source

v16.1.3

Compare Source

v16.1.2

Compare Source

v16.1.1

Compare Source

v16.1.0

Compare Source

v16.0.6

Compare Source

v16.0.5

Compare Source

v16.0.4

Compare Source

v16.0.3

Compare Source

v16.0.2

Compare Source

v16.0.1

Compare Source

v16.0.0

Compare Source

Breaking
  • Automatic detection of package data on stdin has been removed. This feature was deprecated in v14.0.0. Add --stdin for old behavior.
  • Wild card filters now apply to scoped packages. Previously, ncu -f '*vite*' would not include @vitejs/plugin-react. Now, filters will match any part of the package name, including the scope. Use a more specific glob or regex expression for old behavior.

raineorshine/npm-check-updates@v15.3.4...v16.0.0

v15.3.4

Compare Source

v15.3.3

Compare Source

v15.3.2

Compare Source

v15.3.1

Compare Source

v15.3.0

Compare Source

v15.2.6

Compare Source

v15.2.5

Compare Source

v15.2.4

Compare Source

v15.2.3

Compare Source

v15.2.2

Compare Source

v15.2.1

Compare Source

v15.2.0

Compare Source

v15.1.0

Compare Source

v15.0.5

Compare Source

v15.0.4

Compare Source

v15.0.3

Compare Source

v15.0.2

Compare Source

v15.0.1

Compare Source

v15.0.0

Compare Source

Breaking
  • node >= 14.14 is now required (#​1145)
    • Needed to upgrade update-notifier with has a moderate severity vulnerability
  • yarn autodetect has been improved (#​1148)
    • This is a patch, though technically it is breaking. In the obscure case where --packageManager is not given, there is no package-lock.json in the current folder, and there is a yarn.lock in an ancestor directory, npm-check-updates will now use yarn.
    • More practically, if you needed to specify --packageManager yarn explicitly before, you may not have to now

raineorshine/npm-check-updates@v14.1.1...v15.0.0

v14.1.1

Compare Source

v14.1.0

Compare Source

Features

Group

You can now group upgrades by risk level using --format group:

image ##### Interactive Mode

Interactive mode was completely rewritten for a better user experience.

Inspired by npm-check.

image

Combine with --format group for a truly luxe experience:

image ##### Static Registry

A new option --packageManager staticRegistry allows upgrades to be recommended from a static JSON file. This can be used to power custom versioning infrastructure that is completely independent from the npm registry.

Thanks to agrouse who did a fine job on the PR.

Example:

$ ncu --packageManager staticRegistry --registry ./my-registry.json

my-registry.json:

{
  "prettier": "2.7.0",
  "typescript": "4.7.0"
}

The latest versions of prettier and typescript are set in the registry file. When ncu is run, it will recommend upgrades from the static registry file without touching the npm registry:

$ ncu --packageManager staticRegistry --registry ./my-registry.json
Checking /Users/raine/projects/ncu-issues/14.1.0/package.json
[====================] 2/2 100%

 prettier    ^2.0.1  →  ^2.7.0
 typescript  ^3.4.0  →  ^4.7.0

Run ncu -u to upgrade package.json

v14.0.2

Compare Source

v14.0.1

Compare Source

v14.0.0

Compare Source

Breaking

Prerelease versions are now "upgraded" to versions with a different preid.

For example, if you have a dependency at 1.3.3-next.1 and the version fetched by ncu is 1.2.3-dev.2, ncu will suggest an "upgrade" to 1.2.3-dev.2. This is because prerelease versions with different preids are incomparable. Since they are incomparable, ncu now assumes the fetched version is desired.

Since this change affects only prereleases, there is no impact on default ncu usage that fetches the latest version. With --pre 1 or --target newest or --target greatest, this change could affect which version is suggested if versions with different preids are published. The change was made to support the new --target @&#8203;[tag] feature.

If you have a use case where this change is not what is desired, please report an issue. The intention is for zero disruption to current usage.

Features
  • You can now upgrade to a specific tag, e.g. --target @&#8203;next. Thanks to IMalyugin.

raineorshine/npm-check-updates@v13.1.5...v14.0.0

v13.1.5

Compare Source

v13.1.4

Compare Source

v13.1.3

Compare Source

v13.1.2

Compare Source

v13.1.1

Compare Source

v13.1.0

Compare Source

v13.0.4

Compare Source

v13.0.3

Compare Source

v13.0.2

Compare Source

v13.0.1

Compare Source

v13.0.0

Compare Source

Breaking
  • node >= 14 is now required
  • Several options which have long been deprecated have been removed:
    • --greatest - Instead use --target greatest
    • --newest - Instead use --target newest
    • --ownerChanged - Instead use --format ownerChanged
    • --semverLevel - Renamed to --target

raineorshine/npm-check-updates@v12.5.12...v13.0.0

v12.5.12

Compare Source

v12.5.11

Compare Source

v12.5.10

Compare Source

v12.5.9

Compare Source

v12.5.8

Compare Source

v12.5.7

Compare Source

v12.5.6

Compare Source

v12.5.5

Compare Source

v12.5.4

Compare Source

v12.5.3

Compare Source

v12.5.2

Compare Source

v12.5.1

Compare Source

v12.5.0

Compare Source

v12.4.0

Compare Source

v12.3.1

Compare Source

v12.3.0

Compare Source


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by Renovate Bot.

@kindlymachine kindlymachine bot requested a review from statik as a code owner July 25, 2022 06:11
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 348adff to d9ebaf3 Compare August 8, 2022 06:11
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from c9fb8b0 to fb9b354 Compare September 5, 2022 06:34
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 886ce39 to 379b87c Compare September 19, 2022 06:36
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 8eeb257 to 1d6bad7 Compare October 3, 2022 06:23
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from e8d39fa to fb2393a Compare October 10, 2022 06:35
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from fb2393a to d02e3aa Compare October 17, 2022 06:37
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from c956397 to c0f4bc0 Compare October 31, 2022 06:14
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 4364a1b to 567d177 Compare November 21, 2022 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from 567d177 to ed8d92f Compare November 28, 2022 06:11
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from c95a23d to d16265e Compare December 19, 2022 06:12
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 5f13653 to b704af9 Compare December 26, 2022 06:11
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from b704af9 to 9ca50c1 Compare January 9, 2023 13:36
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from d8f5ea5 to 030ed28 Compare January 30, 2023 06:12
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from 030ed28 to 203344e Compare February 6, 2023 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from 203344e to 35afaca Compare February 13, 2023 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 6720b05 to de51516 Compare February 27, 2023 06:12
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from de51516 to 5885bed Compare March 6, 2023 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 403c882 to d369036 Compare March 20, 2023 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch 2 times, most recently from 30e4820 to 8879e89 Compare April 3, 2023 06:13
@kindlymachine kindlymachine bot force-pushed the renovate/npm-check-updates-16.x branch from 8879e89 to c3f6c27 Compare April 3, 2023 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants