@wordpress/block-serialization-spec-parser 5.57.0 → 6.1.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
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 6.1.0 (2026-11-04)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Only accept HTML whitespace in block delimiters. ([#85930](https://github.com/WordPress/gutenberg/pull/85930))
10
+
11
+ ## 6.0.0 (2026-10-20)
12
+
13
+ ### Breaking Changes
14
+
15
+ - Raise the minimum required Node.js version to `>=22.13.0`, for stable `require(esm)` support ([#84313](https://github.com/WordPress/gutenberg/pull/84313)).
16
+
5
17
  ## 5.57.0 (2026-10-07)
6
18
 
7
19
  ## 5.56.0 (2026-09-23)
@@ -51,6 +63,12 @@
51
63
 
52
64
  ## 5.34.0 (2025-10-29)
53
65
 
66
+ ## 5.33.2 (2026-10-28)
67
+
68
+ ### Bug Fixes
69
+
70
+ - Only accept HTML whitespace in block delimiters.
71
+
54
72
  ## 5.33.0 (2025-10-17)
55
73
 
56
74
  ## 5.32.0 (2025-10-01)
@@ -79,6 +97,12 @@
79
97
 
80
98
  ## 5.20.0 (2025-03-13)
81
99
 
100
+ ## 5.19.2 (2026-10-28)
101
+
102
+ ### Bug Fixes
103
+
104
+ - Only accept HTML whitespace in block delimiters.
105
+
82
106
  ## 5.19.0 (2025-02-28)
83
107
 
84
108
  ## 5.18.0 (2025-02-12)
@@ -101,6 +125,12 @@
101
125
 
102
126
  ## 5.9.0 (2024-10-03)
103
127
 
128
+ ## 5.8.2 (2026-10-28)
129
+
130
+ ### Bug Fixes
131
+
132
+ - Only accept HTML whitespace in block delimiters.
133
+
104
134
  ## 5.8.0 (2024-09-19)
105
135
 
106
136
  ## 5.7.0 (2024-09-05)
@@ -117,6 +147,12 @@
117
147
 
118
148
  ## 5.1.0 (2024-06-15)
119
149
 
150
+ ## 5.0.2 (2026-10-28)
151
+
152
+ ### Bug Fixes
153
+
154
+ - Only accept HTML whitespace in block delimiters.
155
+
120
156
  ## 5.0.0 (2024-05-31)
121
157
 
122
158
  ### Breaking Changes
@@ -137,6 +173,12 @@
137
173
 
138
174
  ## 4.52.0 (2024-02-21)
139
175
 
176
+ ## 4.51.2 (2026-10-28)
177
+
178
+ ### Bug Fixes
179
+
180
+ - Only accept HTML whitespace in block delimiters.
181
+
140
182
  ## 4.51.0 (2024-02-09)
141
183
 
142
184
  ## 4.50.0 (2024-01-24)
@@ -155,6 +197,12 @@
155
197
 
156
198
  ## 4.43.0 (2023-10-05)
157
199
 
200
+ ## 4.42.14 (2026-10-28)
201
+
202
+ ### Bug Fixes
203
+
204
+ - Only accept HTML whitespace in block delimiters.
205
+
158
206
  ## 4.42.0 (2023-09-20)
159
207
 
160
208
  ## 4.41.0 (2023-08-31)
@@ -169,6 +217,12 @@
169
217
 
170
218
  ## 4.36.0 (2023-06-23)
171
219
 
220
+ ## 4.35.3 (2026-10-28)
221
+
222
+ ### Bug Fixes
223
+
224
+ - Only accept HTML whitespace in block delimiters.
225
+
172
226
  ## 4.35.0 (2023-06-07)
173
227
 
174
228
  ## 4.34.0 (2023-05-24)
@@ -187,6 +241,12 @@
187
241
 
188
242
  ## 4.27.0 (2023-02-15)
189
243
 
244
+ ## 4.26.3 (2026-10-28)
245
+
246
+ ### Bug Fixes
247
+
248
+ - Only accept HTML whitespace in block delimiters.
249
+
190
250
  ## 4.26.0 (2023-02-01)
191
251
 
192
252
  ## 4.25.0 (2023-01-11)
@@ -205,6 +265,12 @@
205
265
 
206
266
  ## 4.18.0 (2022-09-21)
207
267
 
268
+ ## 4.17.2 (2026-10-28)
269
+
270
+ ### Bug Fixes
271
+
272
+ - Only accept HTML whitespace in block delimiters.
273
+
208
274
  ## 4.17.0 (2022-09-13)
209
275
 
210
276
  ## 4.16.0 (2022-08-24)
@@ -227,6 +293,12 @@
227
293
 
228
294
  ## 4.7.0 (2022-04-21)
229
295
 
296
+ ## 4.6.2 (2026-10-28)
297
+
298
+ ### Bug Fixes
299
+
300
+ - Only accept HTML whitespace in block delimiters.
301
+
230
302
  ## 4.6.0 (2022-04-08)
231
303
 
232
304
  ## 4.5.0 (2022-03-23)
@@ -235,8 +307,20 @@
235
307
 
236
308
  ## 4.3.0 (2022-01-27)
237
309
 
310
+ ## 4.2.1 (2026-10-28)
311
+
312
+ ### Bug Fixes
313
+
314
+ - Only accept HTML whitespace in block delimiters.
315
+
238
316
  ## 4.2.0 (2021-07-21)
239
317
 
318
+ ## 4.1.2 (2026-10-28)
319
+
320
+ ### Bug Fixes
321
+
322
+ - Only accept HTML whitespace in block delimiters.
323
+
240
324
  ## 4.1.0 (2021-05-20)
241
325
 
242
326
  ## 4.0.0 (2021-05-14)
@@ -248,6 +332,30 @@
248
332
 
249
333
  ## 3.8.0 (2021-03-17)
250
334
 
335
+ ## 3.7.3 (2026-10-28)
336
+
337
+ ### Bug Fixes
338
+
339
+ - Only accept HTML whitespace in block delimiters.
340
+
341
+ ## 3.4.1 (2026-10-28)
342
+
343
+ ### Bug Fixes
344
+
345
+ - Only accept HTML whitespace in block delimiters.
346
+
347
+ ## 3.3.2 (2026-10-28)
348
+
349
+ ### Bug Fixes
350
+
351
+ - Only accept HTML whitespace in block delimiters.
352
+
353
+ ## 3.0.1 (2026-10-28)
354
+
355
+ ### Bug Fixes
356
+
357
+ - Only accept HTML whitespace in block delimiters.
358
+
251
359
  ## 3.0.0 (2019-03-06)
252
360
 
253
361
  ### Breaking Changes
@@ -258,6 +366,12 @@
258
366
 
259
367
  - A `parser.php` file generated from the PEGJS grammar is now added upon installation.
260
368
 
369
+ ## 2.0.4 (2026-10-28)
370
+
371
+ ### Bug Fixes
372
+
373
+ - Only accept HTML whitespace in block delimiters.
374
+
261
375
  ## 2.0.2 (2018-12-12)
262
376
 
263
377
  ## 2.0.1 (2018-11-30)
package/grammar.pegjs CHANGED
@@ -328,4 +328,4 @@ Block_Attributes
328
328
  }
329
329
 
330
330
  __
331
- = [ \t\r\n]+
331
+ = [ \t\f\r\n]+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-serialization-spec-parser",
3
- "version": "5.57.0",
3
+ "version": "6.1.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",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/WordPress/gutenberg/issues"
22
22
  },
23
23
  "engines": {
24
- "node": ">=18.12.0"
24
+ "node": ">=22.13.0"
25
25
  },
26
26
  "main": "parser.js",
27
27
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "phpegjs": "^1.0.0-beta7"
37
37
  },
38
38
  "devDependencies": {
39
- "vitest": "^5.0.3"
39
+ "vitest": "^5.0.5"
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": "12441e2520c78b2254a792a8cba40c34110be060"
50
+ "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
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");