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

chore(deps): update dependency npm-check-updates to v16 #101

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

Conversation

kuro-kuroite
Copy link
Owner

@kuro-kuroite kuro-kuroite commented Jul 25, 2022

This PR contains the following updates:

Package Type Update Change
npm-check-updates devDependencies major ^11.8.5 -> ^16.10.9

Release Notes

raineorshine/npm-check-updates

v16.10.9

Compare Source

v16.10.8

Compare Source

v16.10.7

Compare Source

v16.10.6

Compare Source

v16.10.5

Compare Source

v16.10.4

Compare Source

v16.10.3

Compare Source

v16.10.2

Compare Source

v16.10.1

Compare Source

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

v12.2.1

Compare Source

v12.2.0

Compare Source

  • Added --retry <n> option to automatically retried failed requests for package information. Defaults to 3 retries.

Hopefully this relieves the frustrating situation of having npm-check-updates fail at the end of a long upgrade! You can control the number of retries with --retry <n>, including setting it to 0 for no retries (the previous behavior).

v12.1.0

Compare Source

v12.0.5

Compare Source

v12.0.3

Compare Source

v12.0.2

Compare Source

v12.0.1

Compare Source

v12.0.0

Compare Source

Breaking
  • node >= 12 is required. Time to upgrade that old-ass server you never touch.
  • peerDependencies are now excluded by default. Peer dependencies should use the lowest possible version that works. The old behavior encouraged a bad practice of uprading peer dependencies. You can use --dep prod,dev,optional,peer for the old behavior (#​951).
  • Dependencies with > will be converted to >=. The old behavior was causing upgrades to > [latest] which was impossible (#​957).

Configuration

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

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

♻️ Rebasing: Whenever PR is behind base branch, 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.

@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from db09793 to eda8489 Compare August 1, 2022 08:41
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from eda8489 to 1a0263a Compare August 8, 2022 08:42
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 1a0263a to 46219f6 Compare August 29, 2022 08:44
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from a37c87f to f7f29c9 Compare October 3, 2022 08:51
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from f7f29c9 to 1862e2e Compare October 10, 2022 08:55
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 1862e2e to 6b2aab5 Compare October 17, 2022 08:56
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 6b2aab5 to 443fab7 Compare November 7, 2022 08:52
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 6a3eb03 to 3fafe91 Compare December 5, 2022 08:43
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 8b702a0 to 5099e54 Compare January 2, 2023 08:42
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 5099e54 to 31e582a Compare January 30, 2023 08:46
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 9024e9e to 520ed96 Compare March 13, 2023 08:45
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 520ed96 to cb434dc Compare March 20, 2023 08:35
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from cb434dc to 379570f Compare March 27, 2023 08:40
@kuro-kuroite kuro-kuroite force-pushed the renovate/npm-check-updates-16.x branch from 379570f to efebc19 Compare April 17, 2023 08:44
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.

2 participants