npm-check-updates 22.2.7 → 22.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -11
- package/build/cli.cjs +21 -21
- package/build/cli.cjs.map +1 -1
- package/build/cli.js +377 -410
- package/build/cli.js.map +1 -1
- package/build/index.cjs +182 -249
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +2 -5
- package/build/index.js +4286 -8852
- package/build/index.js.map +1 -1
- package/package.json +37 -35
- package/build/cli.d.ts +0 -1
package/README.md
CHANGED
|
@@ -5,19 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
**npm-check-updates upgrades your package.json dependencies to the _latest_ versions, ignoring specified versions.**
|
|
7
7
|
|
|
8
|
-
- maintains existing semantic versioning _policies_, i.e. `"react": "^
|
|
8
|
+
- maintains existing semantic versioning _policies_, i.e. `"react": "^18.3.1"` to `"react": "^19.2.7"`.
|
|
9
9
|
- _only_ modifies package.json file. Run `npm install` to update your installed packages and package-lock.json.
|
|
10
10
|
- sensible defaults, but highly customizable
|
|
11
11
|
- compatible with npm, yarn, pnpm, deno, and bun
|
|
12
12
|
- CLI and module usage
|
|
13
|
-
-
|
|
13
|
+
- Pure ESM architecture with dual-build support (ESM/CJS)
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
> `npm-check-updates` is now a dual ESM/CJS module. If you use a `.ncurc.js` config or programmatic imports,
|
|
18
|
-
> please see the [ESM Migration Guide in the CHANGELOG](CHANGELOG.md#migration-guide) for required updates.
|
|
19
|
-
|
|
20
|
-
<img width="500" alt="example output" src="https://github.com/user-attachments/assets/4808618b-ac20-4fc0-92e0-a777de70a2b6">
|
|
15
|
+
<img width="500" alt="ncu example output" src="https://github.com/user-attachments/assets/9e91d8bc-e1ba-4112-92f3-abb6c2170164" />
|
|
21
16
|
|
|
22
17
|
$${\color{red}Red}$$ major upgrade (and all [major version zero](https://semver.org/#spec-item-4))<br/>
|
|
23
18
|
$${\color{cyan}Cyan}$$ minor upgrade<br/>
|
|
@@ -28,8 +23,6 @@ $${\color{green}Green}$$ patch upgrade<br/>
|
|
|
28
23
|
- **Node.js:** `^20.19.0 || ^22.12.0 || >=24.0.0`
|
|
29
24
|
- **npm:** `>=10.0.0`
|
|
30
25
|
|
|
31
|
-
> npm-check-updates v21+ requires modern Node.js and npm versions to support native ESM and Vite 8's Rolldown bundler.
|
|
32
|
-
|
|
33
26
|
## Installation
|
|
34
27
|
|
|
35
28
|
Install globally to use `npm-check-updates` or the shorter `ncu`:
|
|
@@ -508,7 +501,7 @@ cooldown: packageName => (packageName.startsWith('@my-company') ? 0 : 3)
|
|
|
508
501
|
|
|
509
502
|
### Package Manager Configurations
|
|
510
503
|
|
|
511
|
-
If `--cooldown` is not set explicitly, `ncu` automatically reads the cooldown configuration from your package manager's config
|
|
504
|
+
If `--cooldown` is not set explicitly, `ncu` automatically reads the cooldown configuration from your package manager's own native config — each package manager only consults its own config and these are not cross-applied between package managers:
|
|
512
505
|
|
|
513
506
|
<table>
|
|
514
507
|
<tr><td>npm</td><td>Reads <code>min-release-age</code> from <code>.npmrc</code>, excluding packages matched by <code>min-release-age-exclude</code>.</td></tr>
|