Skip to content

Update dependency npm-check-updates to v21#18

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-check-updates-21.x
Open

Update dependency npm-check-updates to v21#18
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-check-updates-21.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 15, 2026

This PR contains the following updates:

Package Change Age Confidence
npm-check-updates ^19.4.1^21.0.0 age confidence

Release Notes

raineorshine/npm-check-updates (npm-check-updates)

v21.0.2

Compare Source

What's Changed

Full Changelog: raineorshine/npm-check-updates@v21.0.1...v21.0.2

v21.0.1

Compare Source

What's Changed

Full Changelog: raineorshine/npm-check-updates@v21.0.0...v21.0.1

v21.0.0

Compare Source

⚠️ Breaking Changes

This is a major breaking change with significant architectural updates.

ESM Migration & Module System
  • Pure ESM: Converted to pure ESM with dual-build support (ESM/CJS) via Vite 8.
  • Import Syntax: Programmatic usage now requires named imports or namespace imports.
    • Old: import ncu from 'npm-check-updates'
    • New: import * as ncu from 'npm-check-updates' or import { run } from 'npm-check-updates'
  • Node.js Requirements: Now requires ^20.19.0 || ^22.12.0 || >=24.0.0. This is required for native require(esm) support and the Rolldown engine.
  • npm Requirements: Minimum version increased to >=10.0.0.
Configuration Files (.ncurc.js)
  • Files named .ncurc.js that use module.exports will now fail in projects that are not "type": "module".
  • Fix: Rename these files to .ncurc.cjs or convert them to use export default.
Dependency Updates (Pure ESM versions)
Package Old Version New Version
camelcase ^6.3.0 ^9.0.0
chai ^4.3.10 ^6.2.2
chai-as-promised ^7.1.2 ^8.0.2
find-up 5.0.0 8.0.0
p-map ^4.0.0 ^7.0.4
untildify ^4.0.0 ^6.0.0
Tooling & Build Changes
  • Vite 8 Upgrade: Migrated to Vite 8 with the new Rust-based Rolldown bundler (10-30x faster builds).
  • TypeScript 6.0: Adopted latest type-system features and performance improvements.
  • Strip ANSI: Replaced strip-ansi with Node.js built-in util.stripVTControlCharacters.
  • Test Runner: Replaced vite-node with tsx for TypeScript support in ESM context.

Migration Guide

If you are upgrading to v21 from earlier versions:

1. Environment Check
  • Ensure you meet the new Node.js requirement: ^20.19.0 || ^22.12.0 || >=24.0.0.
  • Update npm to at least 10.0.0.
2. Update Configuration Files

If you have a .ncurc.js file:

  • Option A: Rename it to .ncurc.cjs.

  • Option B: Convert it to ESM:

    import { defineConfig } from 'npm-check-updates'
    
    export default defineConfig({
      upgrade: true,
      filter: name => name.startsWith('@​myorg/'),
    })
3. Update Programmatic Usage

If you import npm-check-updates in your scripts:

  • ESM: Change import ncu from ... to import * as ncu from 'npm-check-updates'.
  • CommonJS: Ensure you are destructuring the named exports or using the full object:
const ncu = require('npm-check-updates')
// Use ncu.run(...)

Testing

Tests now use tsx for module loading. When running tests manually:

mocha --node-option import=tsx 'test/**/*.test.ts'

Or use the npm script:

npm test
Related Issues & PRs

PR 1649


v20.0.2

Compare Source

What's Changed
  • Show auto-detected cooldown source at normal log level; fix test isolation by @​bayraak in #​1662
New Contributors

Full Changelog: raineorshine/npm-check-updates@v20.0.1...v20.0.2

v20.0.1

Compare Source

What's Changed

Full Changelog: raineorshine/npm-check-updates@v20.0.0...v20.0.1

v20.0.0

Compare Source

Auto Cooldown

The cooldown option is now automatically applied from the respective package manager's config:

  • npm - min-release-age (#​1632)
  • yarn - npmMinimalAgeGate (excluding npmPreapprovedPackages) (#​1643)
  • pnpm - minimumReleaseAge (excluding minimumReleaseAgeExclude) (#​1639)

Why is this a breaking change?

Other changes

New Contributors

Full Changelog: raineorshine/npm-check-updates@v19.6.6...v20.0.0

v19.6.6

Compare Source

Full Changelog: raineorshine/npm-check-updates@v19.6.5...v19.6.6

v19.6.5

Compare Source

What's Changed

New Contributors

Full Changelog: raineorshine/npm-check-updates@v19.6.3...v19.6.5

v19.6.3

Compare Source

Full Changelog: raineorshine/npm-check-updates@v19.6.2...v19.6.3

v19.6.2

Compare Source

What's Changed

Full Changelog: raineorshine/npm-check-updates@v19.6.1...v19.6.2

v19.6.1

Compare Source

What's Changed

Full Changelog: raineorshine/npm-check-updates@v19.6.0...v19.6.1

v19.6.0

Compare Source

What's Changed

  • Display link to compare the changes between package versions (--format diff) by @​diegocr in #​1602

New Contributors

Full Changelog: raineorshine/npm-check-updates@v19.5.0...v19.6.0

v19.5.0

Compare Source

What's Changed

  • feat(homepage): Add --format homepage option to print homepage.

e.g.

$ ncu --format homepage
...
 mocha                      ^11.7.2  →   ^11.7.5    https://mochajs.org/
 npm-registry-fetch         ^19.0.0  →   ^19.1.1
 prettier                   ^3.6.2  →    ^3.8.1     https://prettier.io
...

Full Changelog: raineorshine/npm-check-updates@v19.4.1...v19.5.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-check-updates-21.x branch from 12f265a to f916939 Compare April 19, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants