@pnpm/hooks.pnpmfile 1100.0.27 → 1100.0.28
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 +14 -0
- package/lib/requireHooks.js +4 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @pnpm/pnpmfile
|
|
2
2
|
|
|
3
|
+
## 1100.0.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The `importPackage` pnpmfile hook is deprecated. pnpm now prints a warning when a pnpmfile defines it, and the hook will be removed in the next major version. It also opts the installation out of the parallel package importer, making installation slower. If you rely on this hook, comment on [#14101](https://github.com/pnpm/pnpm/issues/14101).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/core-loggers@1100.3.3
|
|
11
|
+
- @pnpm/error@1100.1.3
|
|
12
|
+
- @pnpm/hooks.types@1101.0.0
|
|
13
|
+
- @pnpm/lockfile.types@1100.0.20
|
|
14
|
+
- @pnpm/store.controller-types@1101.1.2
|
|
15
|
+
- @pnpm/types@1102.0.0
|
|
16
|
+
|
|
3
17
|
## 1100.0.27
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/lib/requireHooks.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { hookLogger } from '@pnpm/core-loggers';
|
|
2
2
|
import { createHashFromMultipleFiles } from '@pnpm/crypto.hash';
|
|
3
|
-
import { PnpmError } from '@pnpm/error';
|
|
3
|
+
import { PnpmError, redactAndSanitize } from '@pnpm/error';
|
|
4
|
+
import { globalWarn } from '@pnpm/logger';
|
|
4
5
|
import { pathAbsolute } from 'path-absolute';
|
|
5
6
|
import { requirePnpmfile } from './requirePnpmfile.js';
|
|
6
7
|
export async function requireHooks(prefix, opts) {
|
|
@@ -147,6 +148,8 @@ export async function requireHooks(prefix, opts) {
|
|
|
147
148
|
}
|
|
148
149
|
importProvider = file;
|
|
149
150
|
cookedHooks.importPackage = fileHooks.importPackage;
|
|
151
|
+
globalWarn(`The "importPackage" hook (defined in ${redactAndSanitize(file)}) is deprecated and will be removed in the next major version of pnpm. ` +
|
|
152
|
+
'It keeps working until then, but it opts the installation out of the parallel package importer, making it slower.');
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
// Process top-level resolvers and fetchers exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/hooks.pnpmfile",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.28",
|
|
4
4
|
"description": "Reading a .pnpmfile.cjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/core-loggers": "1100.3.
|
|
30
|
+
"@pnpm/core-loggers": "1100.3.3",
|
|
31
31
|
"@pnpm/crypto.hash": "1100.0.2",
|
|
32
|
-
"@pnpm/error": "1100.1.
|
|
33
|
-
"@pnpm/hooks.types": "
|
|
34
|
-
"@pnpm/lockfile.types": "1100.0.
|
|
35
|
-
"@pnpm/store.controller-types": "1101.1.
|
|
36
|
-
"@pnpm/types": "
|
|
32
|
+
"@pnpm/error": "1100.1.3",
|
|
33
|
+
"@pnpm/hooks.types": "1101.0.0",
|
|
34
|
+
"@pnpm/lockfile.types": "1100.0.20",
|
|
35
|
+
"@pnpm/store.controller-types": "1101.1.2",
|
|
36
|
+
"@pnpm/types": "1102.0.0",
|
|
37
37
|
"chalk": "^6.0.0",
|
|
38
38
|
"path-absolute": "^2.0.0"
|
|
39
39
|
},
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "30.4.1",
|
|
45
|
-
"@pnpm/fetching.fetcher-base": "1100.2.
|
|
46
|
-
"@pnpm/hooks.pnpmfile": "1100.0.
|
|
45
|
+
"@pnpm/fetching.fetcher-base": "1100.2.8",
|
|
46
|
+
"@pnpm/hooks.pnpmfile": "1100.0.28",
|
|
47
47
|
"@pnpm/logger": "1100.0.0",
|
|
48
48
|
"@pnpm/test-fixtures": "1100.0.1"
|
|
49
49
|
},
|