@pnpm/global.packages 1100.0.18 → 1101.0.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/CHANGELOG.md +25 -0
- package/lib/cacheKey.d.ts +1 -1
- package/lib/cacheKey.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @pnpm/global.packages
|
|
2
2
|
|
|
3
|
+
## 1101.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- The three registry lookups are now named for what they are keyed by, so that none of them is called `registries` — a name the `registries` setting itself has taken:
|
|
8
|
+
|
|
9
|
+
| before | after |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `Config.registries` | `Config.registriesByScope` |
|
|
12
|
+
| `Config.namedRegistries` | `Config.registriesByPrefix` |
|
|
13
|
+
| `Config.registryOptions` | `Config.registryOptionsByUrl` |
|
|
14
|
+
|
|
15
|
+
The same rename applies to the `RegistryContext` fields, the `Registries` and `NamedRegistries` types (now `RegistriesByScope` and `RegistriesByPrefix`), `normalizeRegistries` / `normalizeNamedRegistries` (now `normalizeRegistriesByScope` / `normalizeRegistriesByPrefix`), and the `BUILTIN_NAMED_REGISTRIES` constant (now `BUILTIN_REGISTRIES_BY_PREFIX`).
|
|
16
|
+
|
|
17
|
+
This is an internal rename: no setting, error code, lockfile field, or `.pnpmfile.cjs` hook field changes. A `preResolution` hook still reads `ctx.registries`, which is the name pacquet passes as well. The `registries` and `namedRegistries` settings are read under the names users write them.
|
|
18
|
+
|
|
19
|
+
The pnpr resolve request sends `registriesByPrefix` where it sent `namedRegistries`. A pnpr server and its clients must be on matching versions, which is already the case for an experimental server.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies:
|
|
24
|
+
- @pnpm/bins.resolver@1100.0.15
|
|
25
|
+
- @pnpm/pkg-manifest.reader@1100.0.17
|
|
26
|
+
- @pnpm/types@1102.0.0
|
|
27
|
+
|
|
3
28
|
## 1100.0.18
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/lib/cacheKey.d.ts
CHANGED
package/lib/cacheKey.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createHexHash } from '@pnpm/crypto.hash';
|
|
|
2
2
|
import { lexCompare } from '@pnpm/text.ordinal-comparator';
|
|
3
3
|
export function createGlobalCacheKey(opts) {
|
|
4
4
|
const sortedAliases = [...opts.aliases].sort(lexCompare);
|
|
5
|
-
const sortedRegistries = Object.entries(opts.
|
|
5
|
+
const sortedRegistries = Object.entries(opts.registriesByScope).sort(([k1], [k2]) => lexCompare(k1, k2));
|
|
6
6
|
const hashStr = JSON.stringify([sortedAliases, sortedRegistries]);
|
|
7
7
|
return createHexHash(hashStr);
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/global.packages",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1101.0.0",
|
|
4
4
|
"description": "Utilities for managing isolated global packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/bins.resolver": "1100.0.
|
|
31
|
+
"@pnpm/bins.resolver": "1100.0.15",
|
|
32
32
|
"@pnpm/crypto.hash": "1100.0.2",
|
|
33
|
-
"@pnpm/pkg-manifest.reader": "1100.0.
|
|
33
|
+
"@pnpm/pkg-manifest.reader": "1100.0.17",
|
|
34
34
|
"@pnpm/text.ordinal-comparator": "1100.0.0",
|
|
35
|
-
"@pnpm/types": "
|
|
35
|
+
"@pnpm/types": "1102.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@pnpm/global.packages": "
|
|
38
|
+
"@pnpm/global.packages": "1101.0.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.13"
|