updates 16.4.3 → 16.5.0
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 +9 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4956 -8091
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,48 +6,31 @@
|
|
|
6
6
|
`updates` is a CLI tool which checks for dependency updates. It is typically able to complete in less than a second. Supported dependencies are:
|
|
7
7
|
|
|
8
8
|
- npm via `package.json`
|
|
9
|
+
- uv via `pyproject.toml`
|
|
9
10
|
- poetry via `pyproject.toml`
|
|
10
11
|
- go via `go.mod` (checking only currently, disabled by default when directory is used)
|
|
11
12
|
|
|
12
13
|
# Usage
|
|
13
14
|
|
|
14
|
-
With Node.js:
|
|
15
|
-
|
|
16
15
|
```bash
|
|
17
16
|
# check for updates
|
|
18
17
|
npx updates
|
|
19
18
|
|
|
20
|
-
# update package.json and install new dependencies
|
|
19
|
+
# update package.json and install new dependencies with your favorite package manager
|
|
21
20
|
npx updates -u && npm i
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
With Bun:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
# check for updates
|
|
28
|
-
bunx updates
|
|
29
|
-
|
|
30
|
-
# update package.json and install new dependencies
|
|
31
|
-
bunx updates -u && bun i
|
|
32
|
-
```
|
|
33
|
-
|
|
34
23
|
## Options
|
|
35
24
|
|
|
36
|
-
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times.
|
|
37
|
-
|
|
38
|
-
If an option has a optional `pkg` argument but none is given, the option will be applied to all packages instead.
|
|
25
|
+
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times. If an option has a optional `pkg` argument but none is given, the option will be applied to all packages instead.
|
|
39
26
|
|
|
40
27
|
All `pkg` options support glob matching via [picomatch](https://github.com/micromatch/picomatch) or regex (on CLI, wrap the regex in slashes, e.g. `'/^foo/'`).
|
|
41
28
|
|
|
42
|
-
## Notes
|
|
43
|
-
|
|
44
|
-
The module uses global `fetch` under the hood. In Node.js HTTP proxies from environment are [not supported](https://github.com/nodejs/undici/issues/1650), but it's still possible to enable `updates` to use them by installing the `undici` dependency into your project.
|
|
45
|
-
|
|
46
29
|
## Config File
|
|
47
30
|
|
|
48
|
-
The config file is used to configure certain options of the module. It
|
|
31
|
+
The config file is used to configure certain options of the module. It is placed at `updates.config.{js,ts,mjs,mts}` or `.config/updates.config.{js,ts,mjs,mts}`, relative to `package.json` / `pyproject.toml` / `go.mod`.
|
|
49
32
|
|
|
50
|
-
|
|
33
|
+
Since Node.js v23.6.0, typescript configuration files work out of the box. For Node between 22.5.x and v23.6.0, set `NODE_OPTIONS="--experimental-strip-types"` in your environment.
|
|
51
34
|
|
|
52
35
|
```ts
|
|
53
36
|
export default {
|
|
@@ -61,10 +44,10 @@ export default {
|
|
|
61
44
|
|
|
62
45
|
### Config Options
|
|
63
46
|
|
|
64
|
-
- `include` *Array
|
|
65
|
-
- `exclude` *Array
|
|
66
|
-
- `types` *Array
|
|
67
|
-
- `registry` *
|
|
47
|
+
- `include` *Array\<string | RegExp>*: Array of dependencies to include
|
|
48
|
+
- `exclude` *Array\<string | RegExp>*: Array of dependencies to exclude
|
|
49
|
+
- `types` *Array\<string>*: Array of dependency types
|
|
50
|
+
- `registry` *string*: URL to npm registry
|
|
68
51
|
|
|
69
52
|
CLI arguments have precedence over options in the config file, except for `include` and `exclude` options which are merged.
|
|
70
53
|
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAsBA,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA"}
|