@pnpm/config.version-policy 1100.1.6 → 1100.1.8

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/CHANGELOG.md ADDED
@@ -0,0 +1,136 @@
1
+ # @pnpm/config.version-policy
2
+
3
+ ## 1100.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @pnpm/types@1101.5.0
9
+
10
+ ## 1100.1.7
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies:
15
+ - @pnpm/types@1101.4.0
16
+
17
+ ## 1100.1.6
18
+
19
+ ### Patch Changes
20
+
21
+ - 25a829e: `pnpm audit --fix` now writes a single combined `minimumReleaseAgeExclude` entry per package (e.g. `axios@0.18.1 || 0.21.1`) instead of one entry per version, matching the format documented for the setting. Existing per-version entries in `pnpm-workspace.yaml` are merged into the combined form rather than left as duplicates. Installs that auto-collect immature versions into `minimumReleaseAgeExclude` now report the same combined entries, so the "Added N entries" message matches what is written to the manifest [#12534](https://github.com/pnpm/pnpm/issues/12534).
22
+ - fbdc0eb: Fixed `minimumReleaseAgeExclude` and `trustPolicyExclude` so multiple exact-version entries for the same package behave the same as a single `||` disjunction entry. Previously only the first matching rule's versions were honored, so a config like `[form-data@4.0.6, form-data@2.5.6]` could still flag `form-data@2.5.6` as violating `minimumReleaseAge`, while `[form-data@4.0.6 || 2.5.6]` worked as expected [#12463](https://github.com/pnpm/pnpm/issues/12463).
23
+ - Updated dependencies [852d537]
24
+ - @pnpm/error@1100.0.1
25
+
26
+ ## 1100.1.5
27
+
28
+ ### Patch Changes
29
+
30
+ - a31faa7: Updated dependency ranges. Notably:
31
+
32
+ - `@pnpm/logger` peer dependency range moved to `^1100.0.0`.
33
+ - `msgpackr` 1.11.8 → 2.0.4 (store index files remain byte-compatible in both directions).
34
+ - `open` ^7.4.2 → ^11.0.0, `memoize` ^10 → ^11, `cli-truncate` ^5 → ^6, `pidtree` ^0.6 → ^1.
35
+ - `@yarnpkg/core` 4.5.0 → 4.8.0, `@rushstack/worker-pool` 0.7.7 → 0.7.18, `@cyclonedx/cyclonedx-library` 10.0.0 → 10.1.0, `@pnpm/config.nerf-dart` ^1 → ^2, `@pnpm/log.group` 3.0.2 → 4.0.1, `@pnpm/util.lex-comparator` ^3 → ^4.
36
+
37
+ - Updated dependencies [681b593]
38
+ - @pnpm/types@1101.3.2
39
+
40
+ ## 1100.1.4
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [bf1b731]
45
+ - @pnpm/types@1101.3.1
46
+
47
+ ## 1100.1.3
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [a017bf3]
52
+ - @pnpm/types@1101.3.0
53
+
54
+ ## 1100.1.2
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [35d2355]
59
+ - @pnpm/types@1101.2.0
60
+
61
+ ## 1100.1.1
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [64afc92]
66
+ - @pnpm/types@1101.1.1
67
+
68
+ ## 1100.1.0
69
+
70
+ ### Minor Changes
71
+
72
+ - b6e2c8c: Make `pnpm self-update` respect `minimumReleaseAge` (and `minimumReleaseAgeExclude`) when resolving which pnpm version to install.
73
+
74
+ When the `latest` dist-tag points to a version newer than the configured age threshold, `self-update` now selects the newest mature version instead unless excluded by `minimumReleaseAgeExclude`.
75
+
76
+ Also makes `dlx` and `outdated` surface invalid `minimumReleaseAgeExclude` patterns under the same `ERR_PNPM_INVALID_MINIMUM_RELEASE_AGE_EXCLUDE` error code already used by `install`, instead of leaking the internal `ERR_PNPM_INVALID_VERSION_UNION` / `ERR_PNPM_NAME_PATTERN_IN_VERSION_UNION` codes.
77
+
78
+ ## 1100.0.3
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [b61e268]
83
+ - @pnpm/types@1101.1.0
84
+
85
+ ## 1100.0.2
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies [184ce26]
90
+ - @pnpm/config.matcher@1100.0.1
91
+
92
+ ## 1100.0.1
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [ff28085]
97
+ - @pnpm/types@1101.0.0
98
+
99
+ ## 1000.0.1
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [76718b3]
104
+ - Updated dependencies [a8f016c]
105
+ - Updated dependencies [cc1b8e3]
106
+ - Updated dependencies [491a84f]
107
+ - Updated dependencies [7d2fd48]
108
+ - Updated dependencies [efb48dc]
109
+ - Updated dependencies [cb367b9]
110
+ - Updated dependencies [7b1c189]
111
+ - Updated dependencies [8ffb1a7]
112
+ - Updated dependencies [05fb1ae]
113
+ - Updated dependencies [71de2b3]
114
+ - Updated dependencies [10bc391]
115
+ - Updated dependencies [831f574]
116
+ - Updated dependencies [2df8b71]
117
+ - Updated dependencies [15549a9]
118
+ - Updated dependencies [cc7c0d2]
119
+ - Updated dependencies [efb48dc]
120
+ - @pnpm/types@1001.0.0
121
+ - @pnpm/config.matcher@1001.0.0
122
+ - @pnpm/error@1001.0.0
123
+
124
+ ## 1000.0.0
125
+
126
+ ### Major Changes
127
+
128
+ - dee39ec: Initial release.
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [7c1382f]
133
+ - Updated dependencies [dee39ec]
134
+ - Updated dependencies [7c1382f]
135
+ - @pnpm/types@1000.9.0
136
+ - @pnpm/matcher@1000.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/config.version-policy",
3
- "version": "1100.1.6",
3
+ "version": "1100.1.8",
4
4
  "description": "Parses and evaluates package version policy specs and produces package-version matchers",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,15 +27,15 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "semver": "^7.8.4",
31
- "@pnpm/error": "1100.0.1",
32
30
  "@pnpm/config.matcher": "1100.0.1",
33
- "@pnpm/types": "1101.3.2"
31
+ "@pnpm/error": "1100.0.1",
32
+ "@pnpm/types": "1101.5.0",
33
+ "semver": "^7.8.4"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@jest/globals": "30.4.1",
37
- "@types/semver": "7.7.1",
38
- "@pnpm/config.version-policy": "1100.1.6"
37
+ "@pnpm/config.version-policy": "1100.1.8",
38
+ "@types/semver": "7.7.1"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=22.13"
package/lib/index.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import type { PackageVersionPolicy } from '@pnpm/types';
2
- export declare function createPackageVersionPolicy(patterns: string[]): PackageVersionPolicy;
3
- /**
4
- * Like {@link createPackageVersionPolicy}, but rewraps parser errors with an
5
- * `INVALID_<KEY>` PnpmError so the message points at the user-facing config key
6
- * (e.g. `minimumReleaseAgeExclude`) instead of the internal parser code.
7
- */
8
- export declare function createPackageVersionPolicyOrThrow(patterns: string[], key: string): PackageVersionPolicy;
9
- export interface PublishedByPolicyOptions {
10
- minimumReleaseAge?: number;
11
- minimumReleaseAgeExclude?: string[];
12
- }
13
- export interface PublishedByPolicy {
14
- publishedBy?: Date;
15
- publishedByExclude?: PackageVersionPolicy;
16
- }
17
- /**
18
- * Derives the resolver's `publishedBy` cutoff date and `publishedByExclude`
19
- * policy from the user's `minimumReleaseAge` / `minimumReleaseAgeExclude`
20
- * config. Centralized so every call site computes the cutoff at the same
21
- * instant and surfaces invalid exclude patterns under the same error code.
22
- */
23
- export declare function getPublishedByPolicy(opts: PublishedByPolicyOptions): PublishedByPolicy;
24
- /**
25
- * Merges a list of package version policy specs (e.g. `minimumReleaseAgeExclude`
26
- * entries) into one canonical entry per package. Specs for the same package are
27
- * combined: a bare name/pattern (no version) excludes every version and absorbs
28
- * any version-specific specs for that package, otherwise the exact versions are
29
- * deduplicated, sorted by semver, and joined into a single `name@v1 || v2` entry.
30
- * Packages keep their first-seen order so the output is stable.
31
- */
32
- export declare function mergePackageVersionSpecs(specs: string[]): string[];
33
- export declare function expandPackageVersionSpecs(specs: string[]): Set<string>;