@wordpress/block-serialization-spec-parser 6.0.0 → 6.2.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 +110 -0
- package/grammar.pegjs +1 -1
- package/package.json +3 -3
- package/parser.js +2 -2
- package/parser.php +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 6.2.0 (2026-11-18)
|
|
6
|
+
|
|
7
|
+
## 6.1.0 (2026-11-04)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- Only accept HTML whitespace in block delimiters. ([#85930](https://github.com/WordPress/gutenberg/pull/85930))
|
|
12
|
+
|
|
5
13
|
## 6.0.0 (2026-10-20)
|
|
6
14
|
|
|
7
15
|
### Breaking Changes
|
|
@@ -57,6 +65,12 @@
|
|
|
57
65
|
|
|
58
66
|
## 5.34.0 (2025-10-29)
|
|
59
67
|
|
|
68
|
+
## 5.33.2 (2026-10-28)
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
- Only accept HTML whitespace in block delimiters.
|
|
73
|
+
|
|
60
74
|
## 5.33.0 (2025-10-17)
|
|
61
75
|
|
|
62
76
|
## 5.32.0 (2025-10-01)
|
|
@@ -85,6 +99,12 @@
|
|
|
85
99
|
|
|
86
100
|
## 5.20.0 (2025-03-13)
|
|
87
101
|
|
|
102
|
+
## 5.19.2 (2026-10-28)
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
- Only accept HTML whitespace in block delimiters.
|
|
107
|
+
|
|
88
108
|
## 5.19.0 (2025-02-28)
|
|
89
109
|
|
|
90
110
|
## 5.18.0 (2025-02-12)
|
|
@@ -107,6 +127,12 @@
|
|
|
107
127
|
|
|
108
128
|
## 5.9.0 (2024-10-03)
|
|
109
129
|
|
|
130
|
+
## 5.8.2 (2026-10-28)
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
- Only accept HTML whitespace in block delimiters.
|
|
135
|
+
|
|
110
136
|
## 5.8.0 (2024-09-19)
|
|
111
137
|
|
|
112
138
|
## 5.7.0 (2024-09-05)
|
|
@@ -123,6 +149,12 @@
|
|
|
123
149
|
|
|
124
150
|
## 5.1.0 (2024-06-15)
|
|
125
151
|
|
|
152
|
+
## 5.0.2 (2026-10-28)
|
|
153
|
+
|
|
154
|
+
### Bug Fixes
|
|
155
|
+
|
|
156
|
+
- Only accept HTML whitespace in block delimiters.
|
|
157
|
+
|
|
126
158
|
## 5.0.0 (2024-05-31)
|
|
127
159
|
|
|
128
160
|
### Breaking Changes
|
|
@@ -143,6 +175,12 @@
|
|
|
143
175
|
|
|
144
176
|
## 4.52.0 (2024-02-21)
|
|
145
177
|
|
|
178
|
+
## 4.51.2 (2026-10-28)
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
- Only accept HTML whitespace in block delimiters.
|
|
183
|
+
|
|
146
184
|
## 4.51.0 (2024-02-09)
|
|
147
185
|
|
|
148
186
|
## 4.50.0 (2024-01-24)
|
|
@@ -161,6 +199,12 @@
|
|
|
161
199
|
|
|
162
200
|
## 4.43.0 (2023-10-05)
|
|
163
201
|
|
|
202
|
+
## 4.42.14 (2026-10-28)
|
|
203
|
+
|
|
204
|
+
### Bug Fixes
|
|
205
|
+
|
|
206
|
+
- Only accept HTML whitespace in block delimiters.
|
|
207
|
+
|
|
164
208
|
## 4.42.0 (2023-09-20)
|
|
165
209
|
|
|
166
210
|
## 4.41.0 (2023-08-31)
|
|
@@ -175,6 +219,12 @@
|
|
|
175
219
|
|
|
176
220
|
## 4.36.0 (2023-06-23)
|
|
177
221
|
|
|
222
|
+
## 4.35.3 (2026-10-28)
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
- Only accept HTML whitespace in block delimiters.
|
|
227
|
+
|
|
178
228
|
## 4.35.0 (2023-06-07)
|
|
179
229
|
|
|
180
230
|
## 4.34.0 (2023-05-24)
|
|
@@ -193,6 +243,12 @@
|
|
|
193
243
|
|
|
194
244
|
## 4.27.0 (2023-02-15)
|
|
195
245
|
|
|
246
|
+
## 4.26.3 (2026-10-28)
|
|
247
|
+
|
|
248
|
+
### Bug Fixes
|
|
249
|
+
|
|
250
|
+
- Only accept HTML whitespace in block delimiters.
|
|
251
|
+
|
|
196
252
|
## 4.26.0 (2023-02-01)
|
|
197
253
|
|
|
198
254
|
## 4.25.0 (2023-01-11)
|
|
@@ -211,6 +267,12 @@
|
|
|
211
267
|
|
|
212
268
|
## 4.18.0 (2022-09-21)
|
|
213
269
|
|
|
270
|
+
## 4.17.2 (2026-10-28)
|
|
271
|
+
|
|
272
|
+
### Bug Fixes
|
|
273
|
+
|
|
274
|
+
- Only accept HTML whitespace in block delimiters.
|
|
275
|
+
|
|
214
276
|
## 4.17.0 (2022-09-13)
|
|
215
277
|
|
|
216
278
|
## 4.16.0 (2022-08-24)
|
|
@@ -233,6 +295,12 @@
|
|
|
233
295
|
|
|
234
296
|
## 4.7.0 (2022-04-21)
|
|
235
297
|
|
|
298
|
+
## 4.6.2 (2026-10-28)
|
|
299
|
+
|
|
300
|
+
### Bug Fixes
|
|
301
|
+
|
|
302
|
+
- Only accept HTML whitespace in block delimiters.
|
|
303
|
+
|
|
236
304
|
## 4.6.0 (2022-04-08)
|
|
237
305
|
|
|
238
306
|
## 4.5.0 (2022-03-23)
|
|
@@ -241,8 +309,20 @@
|
|
|
241
309
|
|
|
242
310
|
## 4.3.0 (2022-01-27)
|
|
243
311
|
|
|
312
|
+
## 4.2.1 (2026-10-28)
|
|
313
|
+
|
|
314
|
+
### Bug Fixes
|
|
315
|
+
|
|
316
|
+
- Only accept HTML whitespace in block delimiters.
|
|
317
|
+
|
|
244
318
|
## 4.2.0 (2021-07-21)
|
|
245
319
|
|
|
320
|
+
## 4.1.2 (2026-10-28)
|
|
321
|
+
|
|
322
|
+
### Bug Fixes
|
|
323
|
+
|
|
324
|
+
- Only accept HTML whitespace in block delimiters.
|
|
325
|
+
|
|
246
326
|
## 4.1.0 (2021-05-20)
|
|
247
327
|
|
|
248
328
|
## 4.0.0 (2021-05-14)
|
|
@@ -254,6 +334,30 @@
|
|
|
254
334
|
|
|
255
335
|
## 3.8.0 (2021-03-17)
|
|
256
336
|
|
|
337
|
+
## 3.7.3 (2026-10-28)
|
|
338
|
+
|
|
339
|
+
### Bug Fixes
|
|
340
|
+
|
|
341
|
+
- Only accept HTML whitespace in block delimiters.
|
|
342
|
+
|
|
343
|
+
## 3.4.1 (2026-10-28)
|
|
344
|
+
|
|
345
|
+
### Bug Fixes
|
|
346
|
+
|
|
347
|
+
- Only accept HTML whitespace in block delimiters.
|
|
348
|
+
|
|
349
|
+
## 3.3.2 (2026-10-28)
|
|
350
|
+
|
|
351
|
+
### Bug Fixes
|
|
352
|
+
|
|
353
|
+
- Only accept HTML whitespace in block delimiters.
|
|
354
|
+
|
|
355
|
+
## 3.0.1 (2026-10-28)
|
|
356
|
+
|
|
357
|
+
### Bug Fixes
|
|
358
|
+
|
|
359
|
+
- Only accept HTML whitespace in block delimiters.
|
|
360
|
+
|
|
257
361
|
## 3.0.0 (2019-03-06)
|
|
258
362
|
|
|
259
363
|
### Breaking Changes
|
|
@@ -264,6 +368,12 @@
|
|
|
264
368
|
|
|
265
369
|
- A `parser.php` file generated from the PEGJS grammar is now added upon installation.
|
|
266
370
|
|
|
371
|
+
## 2.0.4 (2026-10-28)
|
|
372
|
+
|
|
373
|
+
### Bug Fixes
|
|
374
|
+
|
|
375
|
+
- Only accept HTML whitespace in block delimiters.
|
|
376
|
+
|
|
267
377
|
## 2.0.2 (2018-12-12)
|
|
268
378
|
|
|
269
379
|
## 2.0.1 (2018-11-30)
|
package/grammar.pegjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-serialization-spec-parser",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Block serialization specification parser for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"phpegjs": "^1.0.0-beta7"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"vitest": "^5.0
|
|
39
|
+
"vitest": "^5.1.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"build:js": "pegjs --format commonjs -o ./parser.js ./grammar.pegjs",
|
|
48
48
|
"build:php": "node bin/create-php-parser.js"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1000cdf1dffd5b5e69f75cc4360aa76db8252264"
|
|
51
51
|
}
|
package/parser.js
CHANGED
|
@@ -249,8 +249,8 @@ function peg$parse(input, options) {
|
|
|
249
249
|
/** <?php return json_decode( $attrs, true ); ?> **/
|
|
250
250
|
return maybeJSON( attrs );
|
|
251
251
|
},
|
|
252
|
-
peg$c32 = /^[ \t\r\n]/,
|
|
253
|
-
peg$c33 = peg$classExpectation([" ", "\t", "\r", "\n"], false, false),
|
|
252
|
+
peg$c32 = /^[ \t\f\r\n]/,
|
|
253
|
+
peg$c33 = peg$classExpectation([" ", "\t", "\f", "\r", "\n"], false, false),
|
|
254
254
|
|
|
255
255
|
peg$currPos = 0,
|
|
256
256
|
peg$savedPos = 0,
|
package/parser.php
CHANGED
|
@@ -1564,8 +1564,8 @@ class Gutenberg_PEG_Parser {
|
|
|
1564
1564
|
$this->peg_c20 = "}";
|
|
1565
1565
|
$this->peg_c21 = array( "type" => "literal", "value" => "}", "description" => "\"}\"" );
|
|
1566
1566
|
$this->peg_c22 = "";
|
|
1567
|
-
$this->peg_c23 = array(array(32,32), array(9,9), array(13,13), array(10,10));
|
|
1568
|
-
$this->peg_c24 = array( "type" => "class", "value" => "[ \t\r\n]", "description" => "[ \t\r\n]" );
|
|
1567
|
+
$this->peg_c23 = array(array(32,32), array(9,9), array(12,12), array(13,13), array(10,10));
|
|
1568
|
+
$this->peg_c24 = array( "type" => "class", "value" => "[ \t\f\r\n]", "description" => "[ \t\f\r\n]" );
|
|
1569
1569
|
|
|
1570
1570
|
$peg_startRuleFunctions = array( 'Block_List' => array($this, "peg_parseBlock_List") );
|
|
1571
1571
|
$peg_startRuleFunction = array($this, "peg_parseBlock_List");
|