Skip to content

Releases

v23.1.1

Choose a tag to compare

@github-actions github-actions released this 10 Oct 22:01

What's Changed

  • Add support for excluding deprecated versions by @XhmikosR in #1996
  • Use the jsonc-aware parseJson for the catalog check in upgradePackageData by @XhmikosR in #2040
  • Extract getCooldownInfo shared by runLocal and runGlobal by @XhmikosR in #2039
  • Collapse the four catalog path reconstruction loops into one by @XhmikosR in #2038
  • Dedupe doctor test helpers: escapeRegExp, lockfile name, ncu runner by @XhmikosR in #2037
  • Extract fetchVersions shared by the greatest, minor, patch, and semver targets by @XhmikosR in #2036
  • Collapse the pnpm, yarn, and npm native cooldown branches into one helper by @XhmikosR in #2035
  • Only rewrite the cache file when something was added by @XhmikosR in #2034
  • Resolve node engine and peer specs once per package in filterPredicate by @XhmikosR in #2041
  • Add support for devEngines by @XhmikosR in #2026
  • Reuse renderDependencyTable in printErrors by @XhmikosR in #2042
  • Drop always-true guards in upgradePackageDefinitions and getAllPackages by @XhmikosR in #2043
  • Use keyValueBy for the cli options map and defaults by @XhmikosR in #2044
  • Build the interactive prompt once in chooseUpgrades by @XhmikosR in #2046
  • Build filter predicates once instead of per dependency name by @XhmikosR in #2047
  • Share the version diff index between partChanged and colorizeDiff by @XhmikosR in #2048
  • Parse the yaml catalog file once per run instead of once per dependency by @XhmikosR in #2049
  • Merge readPnpmWorkspaces and readYarnConfig into readYamlSibling by @XhmikosR in #2050
  • Sanitize registry and package manager text in error output by @XhmikosR in #2022
  • Drop the redundant filter and reject re-spread in cli options by @XhmikosR in #2033
  • Collapse the repeated npm config print blocks into one helper by @XhmikosR in #2045
  • Use lib/exists in pnpm adapter instead of a local pathExists by @XhmikosR in #2032
  • build(deps): bump node from a0b9bf0 to e67514e by @dependabot[bot] in #2056
  • Extract createProgressBar into logging by @XhmikosR in #2051
  • Memoize the yarn version lookup in getPeerDependencies by @XhmikosR in #2031
  • Replace chalk with styleText by @XhmikosR in #2018
  • Simplify spawnCommand for spawn-please v4 by @XhmikosR in #2021
  • Fetch engines.node concurrently with pMap by @XhmikosR in #2054
  • build(deps): bump the github-actions group with 3 updates by @dependabot[bot] in #2058
  • build(deps-dev): bump the development-dependencies group across 1 directory with 5 updates by @dependabot[bot] in #2057
  • Paired codehtml and typepublic by @XhmikosR in #2059
  • Replace the #catalog path sentinel with a catalog flag on PackageInfo by @XhmikosR in #2060
  • Single lockfile table shared by findLockfile, determinePackageManager, and doctor by @XhmikosR in #2062
  • Replace fp-and-or with native code by @XhmikosR in #2061
  • fix: ignore versionless packageManager field by @onuracar-dev in #2067
  • build(deps-dev): bump the development-dependencies group with 4 updates by @dependabot[bot] in #2069
  • build(deps): bump fast-uri from 3.1.5 to 3.1.7 by @dependabot[bot] in #2071
  • build(deps): bump the github-actions group with 3 updates by @dependabot[bot] in #2076
  • Single source of truth for which file holds a package manager's catalogs by @XhmikosR in #2063
  • Add a makeTempDir test helper and use it for all temp dir creation by @XhmikosR in #2068
  • fix: use makeTempDir in dep.test.ts by @raineorshine in #2081
  • Parse upgraded package data with the format upgradePackageData wrote by @XhmikosR in #2064
  • Revamp build-changelog.ts by @XhmikosR in #2073
  • test: cover coercion of a string format in a nested package's ncurc by @raineorshine in #2082
  • fix: reject a cooldown string that cannot be read by @raineorshine in #2083
  • build(deps-dev): bump js-yaml from 4.3.1 to 4.3.2 by @dependabot[bot] in #2084
  • Expand env vars in npm and yarn auth config keys by @XhmikosR in #2079
  • package.json: use the lint:types script in test by @XhmikosR in #2074
  • build(deps-dev): bump the development-dependencies group across 1 directory with 7 updates by @dependabot[bot] in #2075
  • Expose spawn and usesAddCommand on the package manager adapters by @XhmikosR in #2065
  • build(deps): bump node from e67514e to 50c8e8c by @dependabot[bot] in #2086
  • build(deps-dev): bump the development-dependencies group across 1 directory with 3 updates by @dependabot[bot] in #2090
  • build(deps-dev): bump the development-dependencies group across 1 directory with 8 updates by @dependabot[bot] in #2094
  • build(deps-dev): bump the development-dependencies group across 1 directory with 4 updates by @dependabot[bot] in #2097
  • build(deps-dev): bump vitest from 4.1.11 to 5.0.1 by @dependabot[bot] in #2096
  • build(deps): bump smol-toml and markdownlint-cli2 by @dependabot[bot] in #2098
  • Apply option parse to ncurc and module values, not just the cli path by @XhmikosR in #2066
  • Fetch peer dependencies from the registry instead of spawning npm view by @XhmikosR in #2089
  • CI: revert the macOS changes by @XhmikosR in #2101
  • CI: cancel superseded PR runs, never main runs by @raineorshine in #2100
  • Update dependencies and fix npm vulnerabilities by @XhmikosR in #2099
  • Keep non-violating upgrades when the peer recursion cannot resolve a conflict by @raineorshine in #2085
  • build(deps): bump node from 50c8e8c to ebfe2f9 by @dependabot[bot] in #2105

New Contributors

Full Changelog: v23.1.0...v23.1.1

v23.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Aug 22:52

Added new option: --interactiveSelect

Usage:

ncu -i --interactiveSelect [value]

Default: auto

Control which upgrades are pre-selected in interactive mode. Only applies with --interactive.

autoPre-selects patch and minor upgrades with --format group, which is enabled by default, and all upgrades otherwise. This is what ncu -i does. (default)
noneNothing is pre-selected.
patchPatch upgrades are pre-selected.
minorPatch and minor upgrades are pre-selected.
allAll upgrades are pre-selected, including major.

Specify auto explicitly to restore the default when another value is set in your config file.

Major version zero upgrades (e.g. 0.1.0 → 0.2.0) are only pre-selected by all, since anything may change before 1.0.0. Custom groups returned by --groupFunction are likewise only pre-selected by all.

Other Changes

  • LICENSE: use clean GPL-2.0 by @XhmikosR in #1979
  • Strip terminal escape sequences from package and registry text by @XhmikosR in #1994
  • Select the pnpm global config by the installed major version by @XhmikosR in #1995
  • Do not let rejectOnError:false swallow spawn errors by @XhmikosR in #1997
  • Warn when peer dependency lookups fail instead of silently disabling --peer by @XhmikosR in #1984
  • Test getModuleMismatchError directly instead of through a real config load by @XhmikosR in #1998
  • Further e2e.sh improvements by @XhmikosR in #1993
  • Update dependencies by @XhmikosR in #1992
  • Wrap option default values in code tags by @XhmikosR in #2001
  • Always run the deep test CLI from build by @XhmikosR in #2000
  • Reject invalid values in array options by @XhmikosR in #2002
  • doctor: pass color through to the package manager spawn by @XhmikosR in #2003
  • Fix operator precedence in the invalid filter message by @XhmikosR in #2004
  • Replace the github url version tag only in the fragment by @XhmikosR in #2005
  • Clean up misleading names and dead code in npm, logging and filterAndReject by @XhmikosR in #2006
  • Fix pnpm global and prefix args being spread into single characters by @XhmikosR in #2007
  • Apply boolean false from the rc config as --no- by @XhmikosR in #2008
  • Restrict yaml catalog upgrades to catalog paths by @XhmikosR in #2009
  • Only log the merged yarn config when it is not empty by @XhmikosR in #2010
  • Fix --no-color being ignored by @XhmikosR in #2013
  • Run getOwnerPerDependency at --concurrency by @XhmikosR in #2017
  • Fix crash when a dist-tag points to a version missing from the packument by @XhmikosR in #2011
  • Fix two rc-config tests that asserted nothing by @XhmikosR in #2020
  • Restore CHANGELOG.md and automate release-driven changelog sync by @raineorshine with @Copilot in #2014
  • Add min-release-age=7 to .npmrc by @XhmikosR in #2025
  • Remove the temp working directory created by the build-changelog tests by @XhmikosR in #2024
  • Update dependencies by @XhmikosR in #2023
  • feat(pnpm): read registries from pnpm-workspace.yaml by @smarlhens in #1973
  • feat: add --interactiveSelect to control pre-selected upgrades by @raineorshine in #2029

New Contributors

Full Changelog: v23.0.2...v23.1.0

v23.0.2

Choose a tag to compare

@github-actions github-actions released this 07 Aug 19:15

What's Changed

Full Changelog: v23.0.1...v23.0.2

v23.0.1

Choose a tag to compare

@github-actions github-actions released this 02 Aug 23:52

What's Changed

Full Changelog: v23.0.0...v23.0.1

v23.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Jul 18:40

⚠️ Breaking changes & migration

1. Node.js 22+ required (#1844)
The minimum supported Node.js is now 22. Supported versions: ^22.22.2 || ^24.15.0 || >=26.0.0 (and npm >=10).

  • Migration: Upgrade Node before installing. On older Node, stay on v22.x.

2. Pure ESM package — CJS build dropped, default export is now callable (#1916, #1894)
The package is now pure ESM (no more CommonJS build), and the default export is now callable directly. ncu.run() and ncu.defineConfig() still work as namespaced properties.

  • Migration (ESM):
    // before
    import * as ncu from 'npm-check-updates'
    const upgraded = await ncu.run({ /* ... */ })
    // after
    import ncu from 'npm-check-updates'
    const upgraded = await ncu({ /* ... */ }) // ncu.run({...}) also still works
  • Migration (CommonJS): Still usable via Node's native require() of ESM (Node 22+), but the import shape changed:
    // before
    const ncu = require('npm-check-updates')
    // after
    const { default: ncu } = require('npm-check-updates')
    ncu({ /* ... */ }).then(upgraded => console.log(upgraded))

3. filterVersion / rejectVersion no longer accept a predicate function. Use filter / reject instead. (#1933)
These options now accept only a string, wildcard, glob, comma/space-delimited list, or /regex/. (CLI usage is unchanged — the CLI never supported functions.)

  • Migration: If you passed a function to filterVersion/rejectVersion in .ncurc.js or via the module API, move it to filter / reject instead. Those receive the package name and the parsed current version, so they can match on both:
    // before
    filterVersion: (name, semver) => !(name.startsWith('@myorg/') && +semver[0].major > 5)
    // after
    filter:        (name, semver) => !(name.startsWith('@myorg/') && +semver[0].major > 5)

4. Output is now grouped by default (#1937)
--format now defaults to ["group"], so upgrades are grouped by major / minor / patch out of the box. This is a better default for most users.

  • Migration: To get the old flat output, use:
    ncu --format no-group
    The new no- prefix removes a value from the default list instead of replacing the whole list, so --format no-group,time disables grouping while adding publish times.

5. --target semver now respects explicit upper bounds (#1920)
An explicit upper bound in a range is now preserved and never exceeded, e.g. ^9.5.0 <10 → ^9.7.0 <10 (previously the bound could be overrun). This can change which versions are selected for ranges with explicit upper bounds.

✨ Other improvements

  • Native TypeScript loading (#1888), lazy-loaded npm-registry-fetch for faster startup (#1898), and reduced dependencies for a lighter install.
  • Numerous bug fixes: scoped-package 404s with encoded @ (#1923), --doctor + --errorLevel 2 crash (#1900), registry settings ignored by --enginesNode/--ownerChanged (#1925), and YAML catalog preservation (#1922), abort packument stream once required fields are parsed (#1901) for better performance, fix cli options being overridden by .ncurc in --deep mode (#1902), and upgrade a package in all selected sections when versions differ.

Full changelog: v22.2.9...v23.0.0

v22.2.9

Choose a tag to compare

@github-actions github-actions released this 28 Jun 19:31

What's Changed

Full Changelog: v22.2.8...v22.2.9

v22.2.8

Choose a tag to compare

@github-actions github-actions released this 27 Jun 19:14

What's Changed

Full Changelog: v22.2.7...v22.2.8

v22.2.7

Choose a tag to compare

@github-actions github-actions released this 20 Jun 22:00

What's Changed

Full Changelog: v22.2.6...v22.2.7

v22.2.6

Choose a tag to compare

@github-actions github-actions released this 20 Jun 18:58

What's Changed

  • build(deps-dev): bump @typescript-eslint/eslint-plugin by @dependabot[bot] in #1787
  • build(deps-dev): bump @typescript-eslint/parser from 8.60.1 to 8.61.0 by @dependabot[bot] in #1788
  • build(deps-dev): bump @microsoft/api-extractor from 7.58.7 to 7.58.8 by @dependabot[bot] in #1789
  • build(deps-dev): bump eslint-plugin-n from 18.0.1 to 18.1.0 by @dependabot[bot] in #1790
  • build(deps-dev): bump prettier from 3.8.3 to 3.8.4 by @dependabot[bot] in #1792
  • build(deps-dev): bump semver from 7.8.2 to 7.8.3 by @dependabot[bot] in #1793
  • build(deps-dev): bump cosmiconfig from 9.0.1 to 9.0.2 by @dependabot[bot] in #1791
  • build(deps-dev): bump shell-quote from 1.8.3 to 1.8.4 by @dependabot[bot] in #1795
  • Dependabot: add github-actions updates and group updates with a cooldown by @XhmikosR in #1785
  • CI: harden and align GitHub Actions workflows by @XhmikosR in #1786
  • feat: respect min-release-age-exclude with min-release-age npm config by @Cherry in #1797
  • feat: add Claude Code SKILL file for npm-check-updates by @ilteoood in #1798
  • build(deps): bump esbuild from 0.28.0 to 0.28.1 by @dependabot[bot] in #1799
  • Quote global package specs with a period in the scope for PowerShell compatibility by @raineorshine with @Copilot in #1800
  • Add a GitHub workflow to clean up closed PRs' caches by @XhmikosR in #1804
  • package.json: fix npm scripts to be cross-platform by @XhmikosR in #1805
  • Replace the unmaintained npm-run-all with npm-run-all2 and remove unused deps by @XhmikosR in #1806
  • build workflow: add npm pack --dry-run by @XhmikosR in #1807
  • test/e2e.sh: fix shellcheck issues by @XhmikosR in #1808
  • Replace rfdc with native structuredClone by @XhmikosR in #1809
  • Replace js-yaml with yaml by @XhmikosR in #1810
  • Replace dequal with node:util isDeepStrictEqual by @XhmikosR in #1811
  • fix: do not call semver.minVersion on non-semver package protocols by @duniul in #1767
  • Convert inline code backticks to <code> in generated HTML tables by @XhmikosR in #1814
  • Fix skills by @XhmikosR in #1815
  • Vite: use 'oxc' for minify by @XhmikosR in #1816
  • build(deps): bump form-data from 4.0.5 to 4.0.6 by @dependabot[bot] in #1817
  • build-options.ts: split README and schema writes, drop duplicate RunOptions.json write by @XhmikosR in #1818
  • Remove lodash-es by @XhmikosR in #1819
  • Replace cosmiconfig with lilconfig by @XhmikosR in #1812
  • Remove redundant Promise.resolve in fetchUpgradedPackument by @XhmikosR in #1823
  • Switch to async/await in a few more places by @XhmikosR in #1824
  • Replace forEach with for...of by @XhmikosR in #1825
  • Yarn test fixes by @XhmikosR in #1828
  • fix padLeft adding trailing spaces to blank lines by @XhmikosR in #1829
  • Remove unused dev dependencies by @XhmikosR in #1820
  • fix: replace async reduce with for-of loop in --deep to avoid OOM by @XhmikosR in #1831
  • test.yml: remove redundant permissions block by @XhmikosR in #1832
  • fix MaxListenersExceededWarning when calling run() repeatedly by @XhmikosR in #1833
  • fix: resolve workspace paths relative to --packageFile dir, not cwd by @XhmikosR in #1834
  • fix: inline semver-utils types in the d.ts rollup by @XhmikosR in #1835
  • Drop rimraf in favor of Vite emptyOutDir by @XhmikosR in #1821
  • CI: add Node.js 26 by @XhmikosR in #1836
  • CI tweaks by @XhmikosR in #1837
  • Move src/scripts to the root folder by @XhmikosR in #1827

New Contributors

Full Changelog: v22.2.5...v22.2.6

v22.2.5

Choose a tag to compare

@github-actions github-actions released this 06 Jun 00:44

e951cf4 Bump minor and patch.
0f9f53d prettier
edf4212 Make deep tests path-agnostic with regex patterns
b820131 Only show missing time when time or cooldown format is requested

Full Changelog: v22.2.3...v22.2.5