@plaudit/pnpm-plugin-plaudit-config 1.5.0 → 1.7.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,20 @@ 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.7.0] - 2026-05-11
9
+ ### Added
10
+ - `fs-ext-extra-prebuilt` to the list of packages with denied build scripts
11
+ - Thanks WordPress!
12
+
13
+ ## [1.6.0] - 2026-05-04
14
+ ### Added
15
+ - `minimatch@^9` to the list of overrides
16
+ - An override that blocks the version of `postcss-loader` specified by `@wordpress/scripts` from being installed
17
+ - This implicitly forces it to use the one provided by `@plaudit/webpack-extensions`
18
+
19
+ ### Internals
20
+ - Added `addVersionScopingToOverrides` to help making safe overrides easier
21
+
8
22
  ## [1.5.0] - 2026-05-01
9
23
  ### Added
10
24
  - PNPM v11 compatibility
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/pnpm-plugin-plaudit-config",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "./patches",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "sideEffects": false,
13
13
  "devDependencies": {
14
- "@pnpm/hooks.pnpmfile": "^1100.0.4",
14
+ "@pnpm/hooks.pnpmfile": "^1100.0.6",
15
15
  "@pnpm/types": "^1101.0.0",
16
16
  "typescript": "^6.0.3"
17
17
  },
package/pnpmfile.cjs CHANGED
@@ -39,9 +39,10 @@ module.exports = {
39
39
  const mergeableConfig = config.rootProjectManifest?.pnpm ?? {};
40
40
  return Object.assign(config, {
41
41
  allowBuilds: {
42
+ "@parcel/watcher": false,
42
43
  "core-js": true,
43
44
  "core-js-pure": true,
44
- "@parcel/watcher": false,
45
+ "fs-ext-extra-prebuilt": false,
45
46
  "unrs-resolver": false,
46
47
  ...Object.fromEntries((mergeableConfig.onlyBuiltDependencies ?? []).map(dep => [dep, true])),
47
48
  ...Object.fromEntries((mergeableConfig.ignoredBuiltDependencies ?? []).map(dep => [dep, false])),
@@ -49,19 +50,23 @@ module.exports = {
49
50
  ...mergeableConfig.projectAllowBuilds,
50
51
  },
51
52
  overrides: {
52
- "micromatch@<4": "^4",
53
53
  "react-autosize-textarea>react": "*",
54
54
  "react-autosize-textarea>react-dom": "*",
55
+ "@wordpress/scripts>postcss-loader": "-",
55
56
  "@types/wordpress__blocks": "-",
56
- "@floating-ui/react-dom@<2.1.8": "^2.1.8",
57
- "@radix-ui/react-slot@<1.2.4": "^1.2.4",
58
- "@radix-ui/react-primitive@<2.1.4": "^2.1.4",
59
- "@wordpress/components@<33.0.0": "^33.0.0",
60
- "date-fns@<4.0.0": "^4.0.0",
61
- "diff@<8.0.4": "^8.0.4",
62
- "framer-motion@<12.38.0": "^12.38.0",
63
- "react-is@<18.3.1": "^18.3.1",
64
- "uuid@<11.1.1": "^11.1.1",
57
+ ...addVersionScopingToOverrides({
58
+ "@floating-ui/react-dom": "^2.1.8",
59
+ "@radix-ui/react-slot": "^1.2.4",
60
+ "@radix-ui/react-primitive": "^2.1.4",
61
+ "@wordpress/components": "^33.0.0",
62
+ "date-fns": "^4.0.0",
63
+ "diff": "^8.0.4",
64
+ "framer-motion": "^12.38.0",
65
+ "micromatch": "^4",
66
+ "minimatch": "^9",
67
+ "react-is": "^18.3.1",
68
+ "uuid": "^11.1.1"
69
+ }),
65
70
  ...config.overrides,
66
71
  ...mergeableConfig.projectOverrides
67
72
  },
@@ -85,4 +90,17 @@ function forcePinDependencies(pattern, dependenciesObject) {
85
90
  return Object.fromEntries(Object.entries(dependenciesObject)
86
91
  .map(([key, value]) => pattern.test(key) ? [key, value.startsWith("^") ? value.substring(1) : value] : [key, value]));
87
92
  }
93
+ function addVersionScopingToOverrides(overrides) {
94
+ return Object.fromEntries(Object.entries(overrides)
95
+ .map(([pkg, targetVersion]) => {
96
+ let scopingVersion = targetVersion;
97
+ while (!/^\d/.test(scopingVersion) && scopingVersion.length > 0) {
98
+ scopingVersion = scopingVersion.substring(1);
99
+ }
100
+ if (scopingVersion.length === 0) {
101
+ throw new Error(`Could not convert "${targetVersion}" into a simple version`);
102
+ }
103
+ return [`${pkg}@<${scopingVersion}`, targetVersion];
104
+ }));
105
+ }
88
106
  //# sourceMappingURL=pnpmfile.cjs.map