@plaudit/pnpm-plugin-plaudit-config 1.9.0 → 1.10.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
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.10.0] - 2026-05-21
|
|
9
|
+
### Added
|
|
10
|
+
- A patch to enable `module_dependencies` in concert with our build script
|
|
11
|
+
|
|
8
12
|
## [1.9.0] - 2026-05-18
|
|
9
13
|
### Added
|
|
10
14
|
- `"@vaadin/vaadin-usage-statistics": false`, `"es5-ext": true`, and `"fsevents": true` to the `DEFAULT_ALLOWED_BUILDS` map
|
package/dist/pnpmfile.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pnpmfile.d.mts","sourceRoot":"","sources":["../src/pnpmfile.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"pnpmfile.d.mts","sourceRoot":"","sources":["../src/pnpmfile.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAe9C,KAAK,iBAAiB,GAAG,YAAY,GAAC,gBAAgB,GAAC;IAAC,mBAAmB,CAAC,EAAE;QAAC,IAAI,CAAC,EAAE,qBAAqB,CAAA;KAAC,CAAC;IAAC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAGxK,KAAK,qBAAqB,GAAG;IAC5B,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,kBAAkB,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IACjD,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAC7C,0BAA0B,CAAC,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAAA;CAChE,CAAC;AAIF,eAAO,MAAM,KAAK;;yBA6BI,iBAAiB;8BA1CuC;YAAC,IAAI,CAAC,EAAE,qBAAqB,CAAA;SAAC;mCAA6B,MAAM,EAAE;qBAAe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE7I,CAAC"}
|
package/dist/pnpmfile.mjs
CHANGED
|
@@ -4,7 +4,8 @@ import { DEFAULT_ALLOWED_BUILDS, DEFAULT_OVERRIDES } from "./lib.mjs";
|
|
|
4
4
|
* A map of "<package id>[@<version identifier>]" -> "file in the 'patches' folder" pairs
|
|
5
5
|
*/
|
|
6
6
|
const activePatches = {
|
|
7
|
-
// "webpack@5.*": "webpack.patch"
|
|
7
|
+
// "webpack@5.*": "webpack.patch"
|
|
8
|
+
"@wordpress/dependency-extraction-webpack-plugin@6.*": "@wordpress__dependency-extraction-webpack-plugin.patch"
|
|
8
9
|
};
|
|
9
10
|
const globalForcePinDependenciesRegex = false; ///^@wordpress\//;
|
|
10
11
|
const dependencyKeys = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|
|
@@ -18,6 +19,9 @@ export const hooks = {
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
22
|
+
if (pkg.name === "@wordpress/e2e-test-utils-playwright") {
|
|
23
|
+
pkg.dependencies = { ...pkg.dependencies, "@playwright/test": "^1.58.2" };
|
|
24
|
+
}
|
|
21
25
|
if (rootPkg === undefined || pkg === rootPkg) {
|
|
22
26
|
rootPkg = pkg;
|
|
23
27
|
}
|
|
@@ -25,6 +29,9 @@ export const hooks = {
|
|
|
25
29
|
if (pkg.peerDependencies?.['@types/node']) {
|
|
26
30
|
pkg.peerDependencies['@types/node'] += " || >24";
|
|
27
31
|
}
|
|
32
|
+
if (pkg.peerDependencies?.["@playwright/test"] === ">=1") {
|
|
33
|
+
pkg.peerDependencies["@playwright/test"] = "^1.58.2";
|
|
34
|
+
}
|
|
28
35
|
if (pkg.peerDependencies?.eslint) {
|
|
29
36
|
if (pkg.peerDependencies.eslint.includes("^9") && !pkg.peerDependencies.eslint.includes("^10")) {
|
|
30
37
|
pkg.peerDependencies.eslint += " || ^10.0.0";
|
package/dist/pnpmfile.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pnpmfile.mjs","sourceRoot":"","sources":["../src/pnpmfile.mts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAM/B,OAAO,EAAC,sBAAsB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAEpE;;GAEG;AACH,MAAM,aAAa,GAA2B;
|
|
1
|
+
{"version":3,"file":"pnpmfile.mjs","sourceRoot":"","sources":["../src/pnpmfile.mts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAM/B,OAAO,EAAC,sBAAsB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAEpE;;GAEG;AACH,MAAM,aAAa,GAA2B;IAC7C,iCAAiC;IACjC,qDAAqD,EAAE,wDAAwD;CACtG,CAAC;AACX,MAAM,+BAA+B,GAAG,KAAK,CAAC,CAAA,kBAAkB;AAEhE,MAAM,cAAc,GAAG,CAAC,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,CAAU,CAAC;AAahH,IAAI,OAAO,GAAuE,SAAS,CAAC;AAE5F,MAAM,CAAC,MAAM,KAAK,GAAG;IACpB,WAAW,CAAC,GAAG;QAC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,CAAC;QACzB,OAAO,kBAAkB,CAAC;IAC3B,CAAC;IACD,OAAO,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC;SAChC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/pnpm-plugin-plaudit-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/lib.mjs"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@pnpm/hooks.pnpmfile": "^1100.0.
|
|
21
|
-
"@pnpm/types": "^1101.1.
|
|
20
|
+
"@pnpm/hooks.pnpmfile": "^1100.0.10",
|
|
21
|
+
"@pnpm/types": "^1101.1.1",
|
|
22
22
|
"typescript": "^6.0.3"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
diff --git a/lib/index.js b/lib/index.js
|
|
2
|
+
index 8bc7cb29312161fde29039f146c9f0de4d278fc8..888f7a0dacf42ddea85ad6a0b44ff1f0e62f6415 100644
|
|
3
|
+
--- a/lib/index.js
|
|
4
|
+
+++ b/lib/index.js
|
|
5
|
+
@@ -88,9 +88,19 @@ class DependencyExtractionWebpackPlugin {
|
|
6
|
+
typeof externalRequest === 'undefined' &&
|
|
7
|
+
this.options.useDefaults
|
|
8
|
+
) {
|
|
9
|
+
- externalRequest = this.useModules
|
|
10
|
+
- ? defaultRequestToExternalModule( request )
|
|
11
|
+
- : defaultRequestToExternal( request );
|
|
12
|
+
+ if ( this.useModules ) {
|
|
13
|
+
+ externalRequest = defaultRequestToExternalModule( request );
|
|
14
|
+
+ } else {
|
|
15
|
+
+ try {
|
|
16
|
+
+ externalRequest =
|
|
17
|
+
+ defaultRequestToExternalModule( request );
|
|
18
|
+
+ } catch {
|
|
19
|
+
+ // Not a script module, fall through.
|
|
20
|
+
+ }
|
|
21
|
+
+ if ( typeof externalRequest === 'undefined' ) {
|
|
22
|
+
+ externalRequest = defaultRequestToExternal( request );
|
|
23
|
+
+ }
|
|
24
|
+
+ }
|
|
25
|
+
}
|
|
26
|
+
} catch ( err ) {
|
|
27
|
+
return callback( err );
|
|
28
|
+
@@ -289,6 +299,10 @@ class DependencyExtractionWebpackPlugin {
|
|
29
|
+
const chunkStaticDeps = new Set();
|
|
30
|
+
/** @type {Set<string>} */
|
|
31
|
+
const chunkDynamicDeps = new Set();
|
|
32
|
+
+ /** @type {Set<string>} */
|
|
33
|
+
+ const chunkScriptModuleStaticDeps = new Set();
|
|
34
|
+
+ /** @type {Set<string>} */
|
|
35
|
+
+ const chunkScriptModuleDynamicDeps = new Set();
|
|
36
|
+
|
|
37
|
+
if ( injectPolyfill ) {
|
|
38
|
+
chunkStaticDeps.add( 'wp-polyfill' );
|
|
39
|
+
@@ -310,12 +324,32 @@ class DependencyExtractionWebpackPlugin {
|
|
40
|
+
( isStatic ? chunkStaticDeps : chunkDynamicDeps ).add(
|
|
41
|
+
m.request
|
|
42
|
+
);
|
|
43
|
+
+ } else if ( m.externalType === 'import' || m.externalType === 'module') {
|
|
44
|
+
+ const isStatic =
|
|
45
|
+
+ DependencyExtractionWebpackPlugin.hasStaticDependencyPathToRoot(
|
|
46
|
+
+ compilation,
|
|
47
|
+
+ m
|
|
48
|
+
+ );
|
|
49
|
+
+
|
|
50
|
+
+ (isStatic
|
|
51
|
+
+ ? chunkScriptModuleStaticDeps
|
|
52
|
+
+ : chunkScriptModuleDynamicDeps
|
|
53
|
+
+ ).add(userRequest);
|
|
54
|
+
} else {
|
|
55
|
+
chunkStaticDeps.add(
|
|
56
|
+
this.mapRequestToDependency( userRequest )
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
+ if (m.blocks) {
|
|
61
|
+
+ for (const block of m.blocks) {
|
|
62
|
+
+ if (block.constructor.name === AsyncDependenciesBlock.name || block.constructor.name === DependenciesBlock.name) {
|
|
63
|
+
+ for (const dep of block.dependencies) {
|
|
64
|
+
+ processModule(compilation.moduleGraph.getModule(dep));
|
|
65
|
+
+ }
|
|
66
|
+
+ }
|
|
67
|
+
+ }
|
|
68
|
+
+ }
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// Search for externalized modules in all chunks.
|
|
72
|
+
@@ -383,6 +417,18 @@ class DependencyExtractionWebpackPlugin {
|
|
73
|
+
version: contentHash,
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
+ if (
|
|
77
|
+
+ chunkScriptModuleStaticDeps.size ||
|
|
78
|
+
+ chunkScriptModuleDynamicDeps.size
|
|
79
|
+
+ ) {
|
|
80
|
+
+ assetData.module_dependencies = [
|
|
81
|
+
+ ...Array.from( chunkScriptModuleStaticDeps ).sort(),
|
|
82
|
+
+ ...Array.from( chunkScriptModuleDynamicDeps )
|
|
83
|
+
+ .sort()
|
|
84
|
+
+ .map( ( id ) => ( { id, import: 'dynamic' } ) ),
|
|
85
|
+
+ ];
|
|
86
|
+
+ }
|
|
87
|
+
+
|
|
88
|
+
if ( this.useModules ) {
|
|
89
|
+
assetData.type = 'module';
|
|
90
|
+
}
|
package/pnpmfile.mjs
CHANGED
|
@@ -4,7 +4,8 @@ import { DEFAULT_ALLOWED_BUILDS, DEFAULT_OVERRIDES } from "./lib.mjs";
|
|
|
4
4
|
* A map of "<package id>[@<version identifier>]" -> "file in the 'patches' folder" pairs
|
|
5
5
|
*/
|
|
6
6
|
const activePatches = {
|
|
7
|
-
// "webpack@5.*": "webpack.patch"
|
|
7
|
+
// "webpack@5.*": "webpack.patch"
|
|
8
|
+
"@wordpress/dependency-extraction-webpack-plugin@6.*": "@wordpress__dependency-extraction-webpack-plugin.patch"
|
|
8
9
|
};
|
|
9
10
|
const globalForcePinDependenciesRegex = false; ///^@wordpress\//;
|
|
10
11
|
const dependencyKeys = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|
|
@@ -18,6 +19,9 @@ export const hooks = {
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
22
|
+
if (pkg.name === "@wordpress/e2e-test-utils-playwright") {
|
|
23
|
+
pkg.dependencies = { ...pkg.dependencies, "@playwright/test": "^1.58.2" };
|
|
24
|
+
}
|
|
21
25
|
if (rootPkg === undefined || pkg === rootPkg) {
|
|
22
26
|
rootPkg = pkg;
|
|
23
27
|
}
|
|
@@ -25,6 +29,9 @@ export const hooks = {
|
|
|
25
29
|
if (pkg.peerDependencies?.['@types/node']) {
|
|
26
30
|
pkg.peerDependencies['@types/node'] += " || >24";
|
|
27
31
|
}
|
|
32
|
+
if (pkg.peerDependencies?.["@playwright/test"] === ">=1") {
|
|
33
|
+
pkg.peerDependencies["@playwright/test"] = "^1.58.2";
|
|
34
|
+
}
|
|
28
35
|
if (pkg.peerDependencies?.eslint) {
|
|
29
36
|
if (pkg.peerDependencies.eslint.includes("^9") && !pkg.peerDependencies.eslint.includes("^10")) {
|
|
30
37
|
pkg.peerDependencies.eslint += " || ^10.0.0";
|