# npm-check-updates v23.0.0 - Product: npm-check-updates (https://whatsnew.fyi/product/npm-check-updates) - Vendor: npm-check-updates - Date: 2026-07-26 - Version: v23.0.0 - Original notes: https://github.com/raineorshine/npm-check-updates/releases/tag/v23.0.0 - Permalink: https://whatsnew.fyi/product/npm-check-updates/releases/v23.0.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- Changes to check: - **Requirement raised:** `Node.js` → `22` (from the vendor's breaking-changes section) - **Removed:** `CommonJS build` (from the vendor's breaking-changes section) - **Behavior changed:** `default export` (from the vendor's breaking-changes section) - **Signature changed:** `filterVersion` → `filter` (from the vendor's breaking-changes section) - **Signature changed:** `rejectVersion` → `reject` (from the vendor's breaking-changes section) - **Behavior changed:** `--format` (from the vendor's breaking-changes section) - **Behavior changed:** `--target semver` (from the vendor's breaking-changes section) - **changed** — Minimum supported Node.js version is now 22; supported versions are ^22.22.2 || ^24.15.0 || >=26.0.0 (and npm >=10) - **removed** — CommonJS build dropped; package is now pure ESM only - **changed** — Default export is now callable directly as ncu() - **removed** — filterVersion and rejectVersion options no longer accept predicate functions; use filter or reject instead - **changed** — Output is now grouped by default; use --format no-group to get flat output - **changed** — --target semver now respects explicit upper bounds in version ranges - **added** — Native TypeScript loading support - **changed** — npm-registry-fetch is now lazy-loaded for faster startup - **fixed** — Scoped package 404s with encoded @ character - **fixed** — --doctor and --errorLevel 2 crash - **fixed** — Registry settings ignored by --enginesNode and --ownerChanged - **fixed** — YAML catalog preservation - **fixed** — Abort packument stream once required fields are parsed for better performance - **fixed** — CLI options being overridden by .ncurc in --deep mode - **fixed** — Upgrade a package in all selected sections when versions differ ###### ⚠️ 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):* ```js // 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: ```js // 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: ```js // 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: ```bash 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:** https://github.com/raineorshine/npm-check-updates/compare/v22.2.9...v23.0.0