rman 2.37.0 → 2.38.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
CHANGED
|
@@ -267,13 +267,13 @@ they still install.
|
|
|
267
267
|
```bash
|
|
268
268
|
rman deps # what could move, and what holds it back
|
|
269
269
|
rman deps -u # write the new ranges, then check that they install
|
|
270
|
-
rman deps --target
|
|
270
|
+
rman deps --target minor # stay inside each major
|
|
271
271
|
rman deps '@types/*' # only the dependencies matching this glob
|
|
272
272
|
```
|
|
273
273
|
|
|
274
|
-
**A dependency
|
|
275
|
-
|
|
276
|
-
answer, or `deps.targets` for one dependency. Only a caret or tilde range is rewritten; a version is
|
|
274
|
+
**A dependency may cross a major by default** (`deps.target: major`), as long as every other rule
|
|
275
|
+
allows it. To keep majors a decision: `--target minor` for one run, `.rmanrc "deps.target": minor`
|
|
276
|
+
for a standing answer, or `deps.targets` for one dependency. Only a caret or tilde range is rewritten; a version is
|
|
277
277
|
offered only when every rule rman can see allows it. See
|
|
278
278
|
[docs/cli/deps.md](https://github.com/panates/rman/blob/main/docs/cli/deps.md).
|
|
279
279
|
|
package/commands/deps.command.js
CHANGED
|
@@ -84,7 +84,7 @@ const depsCommand = registerCommand(app => {
|
|
|
84
84
|
examples: [
|
|
85
85
|
{ command: '$0 deps', description: '# What could move, and what holds it back' },
|
|
86
86
|
{ command: '$0 deps -u', description: '# Write the new ranges, then check that they install' },
|
|
87
|
-
{ command: '$0 deps --target
|
|
87
|
+
{ command: '$0 deps --target minor', description: '# Stay inside each major' },
|
|
88
88
|
{ command: '$0 deps "@types/*"', description: '# Only the dependencies matching this glob' },
|
|
89
89
|
],
|
|
90
90
|
handler: async (args) => {
|
|
@@ -193,7 +193,7 @@ function defaultConcurrency() {
|
|
|
193
193
|
return 16;
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
|
-
* `--target`: one of the version schemes' sizes, and by default
|
|
196
|
+
* `--target`: one of the version schemes' sizes, and by default the largest.
|
|
197
197
|
*
|
|
198
198
|
* Read off the technologies this repository loaded rather than written down, because the sizes are
|
|
199
199
|
* a scheme's - semver's three are the only ones today.
|
package/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.38.0';
|
|
@@ -116,8 +116,7 @@ export declare namespace DependencyUpdater {
|
|
|
116
116
|
restore(): void;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
* break, and taking a break is a decision a person makes, not a default.
|
|
119
|
+
* The largest move the scheme has - `major` under semver. `deps.target` or `--target` narrows it.
|
|
121
120
|
*/
|
|
122
121
|
function defaultTarget(bumps: readonly string[]): string;
|
|
123
122
|
/**
|
|
@@ -2,15 +2,22 @@ import micromatch from 'micromatch';
|
|
|
2
2
|
export var DependencyUpdater;
|
|
3
3
|
(function (DependencyUpdater) {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* break, and taking a break is a decision a person makes, not a default.
|
|
5
|
+
* The largest move the scheme has - `major` under semver. `deps.target` or `--target` narrows it.
|
|
7
6
|
*/
|
|
8
|
-
/* **It
|
|
9
|
-
* a `^5.3.0` came back as `^7.0.2
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
/* **It has been both, and this is the user's call.** It was every move from the start, then every
|
|
8
|
+
* move but the largest after a `^5.3.0` came back as `^7.0.2` the first time it ran - "taking a
|
|
9
|
+
* break is a decision a person makes". It is the largest again on the user's request, after
|
|
10
|
+
* `--target major` had to be typed to get one (`panates/peacox-ui`'s jsdom 30). What made the old
|
|
11
|
+
* reasoning weaker than it was: the rules that matter for a major are checked whatever the target
|
|
12
|
+
* - a dependency's peer ranges, the running Node and the package's `engines.node`, and under `-u`
|
|
13
|
+
* the package manager's own resolver. A repository that wants majors as a decision writes
|
|
14
|
+
* `deps.target: minor`.
|
|
15
|
+
*
|
|
16
|
+
* The values are the scheme's own `bumpNames` rather than a list written here, for the reason
|
|
17
|
+
* `version` gives: `patch`/`minor`/`major` are semver's words, and a four-part scheme would offer
|
|
18
|
+
* four. */
|
|
12
19
|
function defaultTarget(bumps) {
|
|
13
|
-
return bumps[
|
|
20
|
+
return bumps[bumps.length - 1];
|
|
14
21
|
}
|
|
15
22
|
DependencyUpdater.defaultTarget = defaultTarget;
|
|
16
23
|
/**
|