@plaudit/pnpm-plugin-plaudit-config 1.12.2 → 1.13.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 +4 -0
- package/dist/pnpmfile.mjs +2 -2
- package/dist/pnpmfile.mjs.map +1 -1
- package/package.json +3 -3
- package/patches/postcss-ordered-values.patch +34 -0
- package/pnpmfile.mjs +2 -2
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.13.0] - 2026-06-05
|
|
9
|
+
### Added
|
|
10
|
+
- A patch for `postcss-ordered-values` to make `list-style` work with "functions"
|
|
11
|
+
|
|
8
12
|
## [1.12.2] - 2026-05-28
|
|
9
13
|
### Fixed
|
|
10
14
|
- The `@wordpress/dependency-extraction-webpack-plugin` patch not handling the same module being imported in different ways across multiple files
|
package/dist/pnpmfile.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { reactDependencies } from "./shared.mjs";
|
|
|
5
5
|
* A map of "<package id>[@<version identifier>]" -> "file in the 'patches' folder" pairs
|
|
6
6
|
*/
|
|
7
7
|
const activePatches = {
|
|
8
|
-
|
|
9
|
-
"
|
|
8
|
+
"@wordpress/dependency-extraction-webpack-plugin@6.*": "@wordpress__dependency-extraction-webpack-plugin.patch",
|
|
9
|
+
"postcss-ordered-values": "postcss-ordered-values.patch"
|
|
10
10
|
};
|
|
11
11
|
const globalForcePinDependenciesRegex = false; ///^@wordpress\//;
|
|
12
12
|
const dependencyKeys = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|
package/dist/pnpmfile.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pnpmfile.mjs","sourceRoot":"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B,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.13.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.
|
|
20
|
+
"@pnpm/hooks.pnpmfile": "^1100.0.12",
|
|
21
|
+
"@pnpm/types": "^1101.3.0",
|
|
22
22
|
"typescript": "^6.0.3"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
diff --git a/src/rules/listStyle.js b/src/rules/listStyle.js
|
|
2
|
+
index ea7d5bc68cea664beaef42c1afac587b3014a745..c4f8831a6a7e45d5fed03f72d3b54b3d50f8a7ec 100644
|
|
3
|
+
--- a/src/rules/listStyle.js
|
|
4
|
+
+++ b/src/rules/listStyle.js
|
|
5
|
+
@@ -14,6 +14,9 @@ module.exports = function listStyleNormalizer(listStyle) {
|
|
6
|
+
const order = { type: '', position: '', image: '' };
|
|
7
|
+
|
|
8
|
+
listStyle.walk((decl) => {
|
|
9
|
+
+ if (decl.listStyleAlreadyWalked) {
|
|
10
|
+
+ return;
|
|
11
|
+
+ }
|
|
12
|
+
if (decl.type === 'word') {
|
|
13
|
+
if (definedTypes.has(decl.value)) {
|
|
14
|
+
// its a type field
|
|
15
|
+
@@ -36,9 +39,19 @@ module.exports = function listStyleNormalizer(listStyle) {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (decl.type === 'function') {
|
|
19
|
+
+ markFunctionNodesAsProcessed(decl);
|
|
20
|
+
order.image = `${order.image} ${valueParser.stringify(decl)}`;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
return `${order.type.trim()} ${order.position.trim()} ${order.image.trim()}`.trim();
|
|
25
|
+
};
|
|
26
|
+
+
|
|
27
|
+
+function markFunctionNodesAsProcessed(decl) {
|
|
28
|
+
+ if (decl.nodes) {
|
|
29
|
+
+ for (const node of decl.nodes) {
|
|
30
|
+
+ node.listStyleAlreadyWalked = true;
|
|
31
|
+
+ markFunctionNodesAsProcessed(node);
|
|
32
|
+
+ }
|
|
33
|
+
+ }
|
|
34
|
+
+}
|
package/pnpmfile.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { reactDependencies } from "./shared.mjs";
|
|
|
5
5
|
* A map of "<package id>[@<version identifier>]" -> "file in the 'patches' folder" pairs
|
|
6
6
|
*/
|
|
7
7
|
const activePatches = {
|
|
8
|
-
|
|
9
|
-
"
|
|
8
|
+
"@wordpress/dependency-extraction-webpack-plugin@6.*": "@wordpress__dependency-extraction-webpack-plugin.patch",
|
|
9
|
+
"postcss-ordered-values": "postcss-ordered-values.patch"
|
|
10
10
|
};
|
|
11
11
|
const globalForcePinDependenciesRegex = false; ///^@wordpress\//;
|
|
12
12
|
const dependencyKeys = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|