@plaudit/webpack-extensions 3.6.0 → 3.6.2
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,15 @@ 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
|
+
## [3.6.2] - 2026-04-09
|
|
9
|
+
### Changed
|
|
10
|
+
- The error message for multiple render files to include instructions for solving it
|
|
11
|
+
|
|
12
|
+
## [3.6.1] - 2026-04-06
|
|
13
|
+
### Fixed
|
|
14
|
+
- The emitter for the Extensions v1 format including an extra path element
|
|
15
|
+
- This comes from version `2.89.1`
|
|
16
|
+
|
|
8
17
|
## [3.6.0] - 2026-03-31
|
|
9
18
|
### Changed
|
|
10
19
|
- The block.json handling logic to use encoded location data in filenames that are enumerated within block.json
|
|
@@ -97,6 +106,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
97
106
|
- Legacy PostCSS features that have been integrated into modern CSS
|
|
98
107
|
- `@extends` support
|
|
99
108
|
|
|
109
|
+
## [2.89.1] - 2026-04-06
|
|
110
|
+
### Fixed
|
|
111
|
+
- The emitter for the Extensions v1 format including an extra path element
|
|
112
|
+
|
|
100
113
|
## [2.89.0] - 2026-03-31
|
|
101
114
|
### Changed
|
|
102
115
|
- The block.json handling logic to use encoded location data in filenames that are enumerated within block.json
|
|
@@ -412,7 +412,7 @@ class EnhancedBlockJSONPlugin extends AbstractBiPhasicGroupAndEntryPlugin_1.Abst
|
|
|
412
412
|
}
|
|
413
413
|
delete blockJson[invalidTemplateLocation];
|
|
414
414
|
if (renderTemplate.length > 1) {
|
|
415
|
-
compilation.warnings.push((0, shared_1.newWebpackErrorForFile)("Encountered a block with multiple possible render files", (0, node_path_1.join)(sourceDir, 'block.json')));
|
|
415
|
+
compilation.warnings.push((0, shared_1.newWebpackErrorForFile)("Encountered a block with multiple possible render files. Please set the render key in block.json to the proper one", (0, node_path_1.join)(sourceDir, 'block.json')));
|
|
416
416
|
blockJson[validTemplateLocation] = renderTemplate.find(p => p.endsWith(".php")) ?? renderTemplate[0];
|
|
417
417
|
}
|
|
418
418
|
else {
|
|
@@ -20,8 +20,12 @@ class ExtensionsConfigFileGeneratorPluginV1 extends AbstractBiPhasicGroupAndEntr
|
|
|
20
20
|
processAssets(compilation, parsedAssetJsonProvider) {
|
|
21
21
|
const regex = /^(.+?)-((?<prefix>editor-|view-|)(?<type>style|script|script-module))\.(?<extension>css|m?js)$/i;
|
|
22
22
|
const mapping = {};
|
|
23
|
+
const prefix = this.extensionsDest + node_path_1.default.sep;
|
|
23
24
|
for (let fileWithAssetData of Object.keys(this.extractRelevantAssetData(compilation, parsedAssetJsonProvider))) {
|
|
24
25
|
let match;
|
|
26
|
+
if (fileWithAssetData.startsWith(prefix)) {
|
|
27
|
+
fileWithAssetData = fileWithAssetData.substring(prefix.length);
|
|
28
|
+
}
|
|
25
29
|
if ((match = regex.exec(fileWithAssetData)) && match[1] && match[2]) {
|
|
26
30
|
if (match.groups?.['type'] === 'style' && match.groups['extension'] !== 'css') {
|
|
27
31
|
fileWithAssetData = fileWithAssetData.replace(/\.m?js$/i, ".css");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@plaudit/gutenberg-api-extensions": "^2.
|
|
31
|
+
"@plaudit/gutenberg-api-extensions": "^2.90.1",
|
|
32
32
|
"@types/browser-sync-webpack-plugin": "^2.2.5",
|
|
33
|
-
"@types/node": "^25.5.
|
|
33
|
+
"@types/node": "^25.5.2",
|
|
34
34
|
"@types/postcss-functions": "^4.0.4",
|
|
35
35
|
"@types/postcss-import": "^14.0.3",
|
|
36
36
|
"@types/tapable": "^2.3.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@plaudit/postcss-color-function": "^5.0.0",
|
|
44
44
|
"@plaudit/postcss-strip-units": "^3.0.0",
|
|
45
45
|
"@plaudit/postcss-variables": "^2.0.1",
|
|
46
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.
|
|
47
|
-
"@wordpress/scripts": "^31.
|
|
46
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.43.0",
|
|
47
|
+
"@wordpress/scripts": "^31.8.0",
|
|
48
48
|
"autoprefixer": "^10.4.27",
|
|
49
49
|
"browser-sync": "^3.0.4",
|
|
50
50
|
"copy-webpack-plugin": "10.2.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
54
54
|
"http-proxy-middleware": "^3.0.5",
|
|
55
55
|
"json2php": "^0.0.12",
|
|
56
|
-
"postcss": "^8.5.
|
|
56
|
+
"postcss": "^8.5.9",
|
|
57
57
|
"postcss-calc": "^10.1.1",
|
|
58
58
|
"postcss-functions": "^4.0.2",
|
|
59
59
|
"postcss-import": "^16.1.1",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"postcss-property-lookup": "^3.0.0",
|
|
64
64
|
"postcss-reporter": "^7.1.0",
|
|
65
65
|
"postcss-url": "^10.1.3",
|
|
66
|
-
"webpack": "^5.
|
|
66
|
+
"webpack": "^5.106.0",
|
|
67
67
|
"webpack-remove-empty-scripts": "^1.1.1",
|
|
68
68
|
"xml-formatter": "^3.7.0"
|
|
69
69
|
},
|