@plaudit/pnpm-plugin-plaudit-config 1.4.1 → 1.6.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,19 @@ 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.6.0] - 2026-05-04
9
+ ### Added
10
+ - `minimatch@^9` to the list of overrides
11
+ - An override that blocks the version of `postcss-loader` specified by `@wordpress/scripts` from being installed
12
+ - This implicitly forces it to use the one provided by `@plaudit/webpack-extensions`
13
+
14
+ ### Internals
15
+ - Added `addVersionScopingToOverrides` to help making safe overrides easier
16
+
17
+ ## [1.5.0] - 2026-05-01
18
+ ### Added
19
+ - PNPM v11 compatibility
20
+
8
21
  ## [1.4.1] - 2026-04-30
9
22
  ### Fixed
10
23
  - The `date-fns` selector
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/pnpm-plugin-plaudit-config",
3
- "version": "1.4.1",
3
+ "version": "1.6.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "./patches",
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "sideEffects": false,
13
13
  "devDependencies": {
14
- "@pnpm/hooks.pnpmfile": "^1100.0.3",
15
- "@pnpm/types": "^1100.0.0",
14
+ "@pnpm/hooks.pnpmfile": "^1100.0.4",
15
+ "@pnpm/types": "^1101.0.0",
16
16
  "typescript": "^6.0.3"
17
17
  },
18
18
  "scripts": {
package/pnpmfile.cjs CHANGED
@@ -49,19 +49,23 @@ module.exports = {
49
49
  ...mergeableConfig.projectAllowBuilds,
50
50
  },
51
51
  overrides: {
52
- "micromatch@<4": "^4",
53
52
  "react-autosize-textarea>react": "*",
54
53
  "react-autosize-textarea>react-dom": "*",
54
+ "@wordpress/scripts>postcss-loader": "-",
55
55
  "@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",
56
+ ...addVersionScopingToOverrides({
57
+ "@floating-ui/react-dom": "^2.1.8",
58
+ "@radix-ui/react-slot": "^1.2.4",
59
+ "@radix-ui/react-primitive": "^2.1.4",
60
+ "@wordpress/components": "^33.0.0",
61
+ "date-fns": "^4.0.0",
62
+ "diff": "^8.0.4",
63
+ "framer-motion": "^12.38.0",
64
+ "micromatch": "^4",
65
+ "minimatch": "^9",
66
+ "react-is": "^18.3.1",
67
+ "uuid": "^11.1.1"
68
+ }),
65
69
  ...config.overrides,
66
70
  ...mergeableConfig.projectOverrides
67
71
  },
@@ -70,7 +74,10 @@ module.exports = {
70
74
  ...config.patchedDependencies,
71
75
  ...mergeableConfig.projectPatchedDependencies
72
76
  },
73
- allowUnusedPatches: true
77
+ allowUnusedPatches: true,
78
+ dedupePeers: true,
79
+ minimumReleaseAgeExclude: ["@plaudit/*"],
80
+ nodeLinker: "hoisted"
74
81
  });
75
82
  }
76
83
  },
@@ -82,4 +89,17 @@ function forcePinDependencies(pattern, dependenciesObject) {
82
89
  return Object.fromEntries(Object.entries(dependenciesObject)
83
90
  .map(([key, value]) => pattern.test(key) ? [key, value.startsWith("^") ? value.substring(1) : value] : [key, value]));
84
91
  }
92
+ function addVersionScopingToOverrides(overrides) {
93
+ return Object.fromEntries(Object.entries(overrides)
94
+ .map(([pkg, targetVersion]) => {
95
+ let scopingVersion = targetVersion;
96
+ while (!/^\d/.test(scopingVersion) && scopingVersion.length > 0) {
97
+ scopingVersion = scopingVersion.substring(1);
98
+ }
99
+ if (scopingVersion.length === 0) {
100
+ throw new Error(`Could not convert "${targetVersion}" into a simple version`);
101
+ }
102
+ return [`${pkg}@<${scopingVersion}`, targetVersion];
103
+ }));
104
+ }
85
105
  //# sourceMappingURL=pnpmfile.cjs.map