@wordpress/block-serialization-spec-parser 6.0.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,12 @@
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
+
5
11
  ## 6.0.0 (2026-10-20)
6
12
 
7
13
  ### Breaking Changes
@@ -57,6 +63,12 @@
57
63
 
58
64
  ## 5.34.0 (2025-10-29)
59
65
 
66
+ ## 5.33.2 (2026-10-28)
67
+
68
+ ### Bug Fixes
69
+
70
+ - Only accept HTML whitespace in block delimiters.
71
+
60
72
  ## 5.33.0 (2025-10-17)
61
73
 
62
74
  ## 5.32.0 (2025-10-01)
@@ -85,6 +97,12 @@
85
97
 
86
98
  ## 5.20.0 (2025-03-13)
87
99
 
100
+ ## 5.19.2 (2026-10-28)
101
+
102
+ ### Bug Fixes
103
+
104
+ - Only accept HTML whitespace in block delimiters.
105
+
88
106
  ## 5.19.0 (2025-02-28)
89
107
 
90
108
  ## 5.18.0 (2025-02-12)
@@ -107,6 +125,12 @@
107
125
 
108
126
  ## 5.9.0 (2024-10-03)
109
127
 
128
+ ## 5.8.2 (2026-10-28)
129
+
130
+ ### Bug Fixes
131
+
132
+ - Only accept HTML whitespace in block delimiters.
133
+
110
134
  ## 5.8.0 (2024-09-19)
111
135
 
112
136
  ## 5.7.0 (2024-09-05)
@@ -123,6 +147,12 @@
123
147
 
124
148
  ## 5.1.0 (2024-06-15)
125
149
 
150
+ ## 5.0.2 (2026-10-28)
151
+
152
+ ### Bug Fixes
153
+
154
+ - Only accept HTML whitespace in block delimiters.
155
+
126
156
  ## 5.0.0 (2024-05-31)
127
157
 
128
158
  ### Breaking Changes
@@ -143,6 +173,12 @@
143
173
 
144
174
  ## 4.52.0 (2024-02-21)
145
175
 
176
+ ## 4.51.2 (2026-10-28)
177
+
178
+ ### Bug Fixes
179
+
180
+ - Only accept HTML whitespace in block delimiters.
181
+
146
182
  ## 4.51.0 (2024-02-09)
147
183
 
148
184
  ## 4.50.0 (2024-01-24)
@@ -161,6 +197,12 @@
161
197
 
162
198
  ## 4.43.0 (2023-10-05)
163
199
 
200
+ ## 4.42.14 (2026-10-28)
201
+
202
+ ### Bug Fixes
203
+
204
+ - Only accept HTML whitespace in block delimiters.
205
+
164
206
  ## 4.42.0 (2023-09-20)
165
207
 
166
208
  ## 4.41.0 (2023-08-31)
@@ -175,6 +217,12 @@
175
217
 
176
218
  ## 4.36.0 (2023-06-23)
177
219
 
220
+ ## 4.35.3 (2026-10-28)
221
+
222
+ ### Bug Fixes
223
+
224
+ - Only accept HTML whitespace in block delimiters.
225
+
178
226
  ## 4.35.0 (2023-06-07)
179
227
 
180
228
  ## 4.34.0 (2023-05-24)
@@ -193,6 +241,12 @@
193
241
 
194
242
  ## 4.27.0 (2023-02-15)
195
243
 
244
+ ## 4.26.3 (2026-10-28)
245
+
246
+ ### Bug Fixes
247
+
248
+ - Only accept HTML whitespace in block delimiters.
249
+
196
250
  ## 4.26.0 (2023-02-01)
197
251
 
198
252
  ## 4.25.0 (2023-01-11)
@@ -211,6 +265,12 @@
211
265
 
212
266
  ## 4.18.0 (2022-09-21)
213
267
 
268
+ ## 4.17.2 (2026-10-28)
269
+
270
+ ### Bug Fixes
271
+
272
+ - Only accept HTML whitespace in block delimiters.
273
+
214
274
  ## 4.17.0 (2022-09-13)
215
275
 
216
276
  ## 4.16.0 (2022-08-24)
@@ -233,6 +293,12 @@
233
293
 
234
294
  ## 4.7.0 (2022-04-21)
235
295
 
296
+ ## 4.6.2 (2026-10-28)
297
+
298
+ ### Bug Fixes
299
+
300
+ - Only accept HTML whitespace in block delimiters.
301
+
236
302
  ## 4.6.0 (2022-04-08)
237
303
 
238
304
  ## 4.5.0 (2022-03-23)
@@ -241,8 +307,20 @@
241
307
 
242
308
  ## 4.3.0 (2022-01-27)
243
309
 
310
+ ## 4.2.1 (2026-10-28)
311
+
312
+ ### Bug Fixes
313
+
314
+ - Only accept HTML whitespace in block delimiters.
315
+
244
316
  ## 4.2.0 (2021-07-21)
245
317
 
318
+ ## 4.1.2 (2026-10-28)
319
+
320
+ ### Bug Fixes
321
+
322
+ - Only accept HTML whitespace in block delimiters.
323
+
246
324
  ## 4.1.0 (2021-05-20)
247
325
 
248
326
  ## 4.0.0 (2021-05-14)
@@ -254,6 +332,30 @@
254
332
 
255
333
  ## 3.8.0 (2021-03-17)
256
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
+
257
359
  ## 3.0.0 (2019-03-06)
258
360
 
259
361
  ### Breaking Changes
@@ -264,6 +366,12 @@
264
366
 
265
367
  - A `parser.php` file generated from the PEGJS grammar is now added upon installation.
266
368
 
369
+ ## 2.0.4 (2026-10-28)
370
+
371
+ ### Bug Fixes
372
+
373
+ - Only accept HTML whitespace in block delimiters.
374
+
267
375
  ## 2.0.2 (2018-12-12)
268
376
 
269
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": "6.0.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",
@@ -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": "8d30f92cbbde3ddf781c8799443c649befbbcb88"
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");