@astrojs/compiler 0.0.0-join-base-20221208164627

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 ADDED
@@ -0,0 +1,1141 @@
1
+ # @astrojs/compiler
2
+
3
+ ## 0.0.0-join-base-20221208164627
4
+
5
+ ### Minor Changes
6
+
7
+ - ccbeb84: Adds new join-base directive
8
+
9
+ ## 0.31.0
10
+
11
+ ### Minor Changes
12
+
13
+ - abdddeb: Update Go to 1.19
14
+
15
+ ## 0.30.1
16
+
17
+ ### Patch Changes
18
+
19
+ - ff9e7ba: Fix edge case where `<` was not handled properly inside of expressions
20
+ - f31d535: Fix edge case with Prop detection for TSX output
21
+
22
+ ## 0.30.0
23
+
24
+ ### Minor Changes
25
+
26
+ - 963aaab: Provide the moduleId of the astro component
27
+
28
+ ## 0.29.19
29
+
30
+ ### Patch Changes
31
+
32
+ - 3365233: Replace internal tokenizer state logs with proper warnings
33
+
34
+ ## 0.29.18
35
+
36
+ ### Patch Changes
37
+
38
+ - 80de395: fix: avoid nil pointer dereference in table parsing
39
+ - aa3ad9d: Fix `parse` output to properly account for the location of self-closing tags
40
+ - b89dec4: Internally, replace `astro.ParseFragment` in favor of `astro.ParseFragmentWithOptions`. We now check whether an error handler is passed when calling `astro.ParseFragmentWithOptions`
41
+
42
+ ## 0.29.17
43
+
44
+ ### Patch Changes
45
+
46
+ - 1e7e098: Add warning for invalid spread attributes
47
+ - 3cc6f55: Fix handling of unterminated template literal attributes
48
+ - 48c5677: Update default `internalURL` to `astro/runtime/server/index.js`
49
+ - 2893f33: Fix a number of `table` and `expression` related bugs
50
+
51
+ ## 0.29.16
52
+
53
+ ### Patch Changes
54
+
55
+ - ec745f4: Self-closing tags will now retreive "end" positional data
56
+ - a6c2822: Fix a few TSX output errors
57
+
58
+ ## 0.29.15
59
+
60
+ ### Patch Changes
61
+
62
+ - 5f6e69b: Fix expression literal handling
63
+
64
+ ## 0.29.14
65
+
66
+ ### Patch Changes
67
+
68
+ - 6ff1d80: Fix regression introduced by https://github.com/withastro/compiler/pull/617
69
+
70
+ ## 0.29.13
71
+
72
+ ### Patch Changes
73
+
74
+ - 8f3e488: Fix regression introduced to `parse` handling in the last patch
75
+
76
+ ## 0.29.12
77
+
78
+ ### Patch Changes
79
+
80
+ - a41982a: Fix expression edge cases, improve literal parsing
81
+
82
+ ## 0.29.11
83
+
84
+ ### Patch Changes
85
+
86
+ - ee907f1: Fix #5308, duplicate style bug when using `define:vars`
87
+
88
+ ## 0.29.10
89
+
90
+ ### Patch Changes
91
+
92
+ - 07a65df: Print `\r` when printing TSX output
93
+ - 1250d0b: Add warning when `define:vars` won't work because of compilation limitations
94
+
95
+ ## 0.29.9
96
+
97
+ ### Patch Changes
98
+
99
+ - 1fe92c0: Fix TSX sourcemaps on Windows (take 4)
100
+
101
+ ## 0.29.8
102
+
103
+ ### Patch Changes
104
+
105
+ - 01b62ea: Fix sourcemap bug on Windows (again x2)
106
+
107
+ ## 0.29.7
108
+
109
+ ### Patch Changes
110
+
111
+ - 108c6c9: Fix TSX sourcemap bug on Windows (again)
112
+
113
+ ## 0.29.6
114
+
115
+ ### Patch Changes
116
+
117
+ - 4b3fafa: Fix TSX sourcemaps on Windows
118
+
119
+ ## 0.29.5
120
+
121
+ ### Patch Changes
122
+
123
+ - 73a2b69: Use an IIFE for define:vars scripts
124
+
125
+ ## 0.29.4
126
+
127
+ ### Patch Changes
128
+
129
+ - 4381efa: Return proper diagnostic code for warnings
130
+
131
+ ## 0.29.3
132
+
133
+ ### Patch Changes
134
+
135
+ - 85e1d31: AST: move `start` position of elements to the first index of their opening tag
136
+
137
+ ## 0.29.2
138
+
139
+ ### Patch Changes
140
+
141
+ - 035829b: AST: move end position of elements to the last index of their end tag
142
+
143
+ ## 0.29.1
144
+
145
+ ### Patch Changes
146
+
147
+ - a99c014: Ensure comment and text nodes have end positions when generating an AST from `parse`
148
+
149
+ ## 0.29.0
150
+
151
+ ### Minor Changes
152
+
153
+ - fd2fc28: Fix some utf8 compatability issues
154
+
155
+ ### Patch Changes
156
+
157
+ - 4b68670: TSX: fix edge case with spread attribute printing
158
+ - 6b204bd: Fix bug with trailing `style` tags being moved into the `html` element
159
+ - 66fe230: Fix: include element end location in `parse` AST
160
+
161
+ ## 0.28.1
162
+
163
+ ### Patch Changes
164
+
165
+ - aac8c89: Fix end tag sourcemappings for TSX mode
166
+ - d7f3288: TSX: Improve self-closing tag behavior and mappings
167
+ - 75dd7cc: Fix spread attribute mappings
168
+
169
+ ## 0.28.0
170
+
171
+ ### Minor Changes
172
+
173
+ - 5da0dc2: Add `resolvePath` option to control hydration path resolution
174
+ - e816a61: Remove metadata export if `resolvePath` option provided
175
+
176
+ ## 0.27.2
177
+
178
+ ### Patch Changes
179
+
180
+ - 959f96b: Fix "missing sourcemap" issue
181
+ - 94f6f3e: Fix edge case with multi-line comment usage
182
+ - 85a654a: Fix `parse` causing a compiler panic when a component with a client directive was imported but didn't have a matching import
183
+ - 5e32cbe: Improvements to TSX output
184
+
185
+ ## 0.27.1
186
+
187
+ ### Patch Changes
188
+
189
+ - cc9f174: fixed regression caused by #546
190
+
191
+ ## 0.27.0
192
+
193
+ ### Minor Changes
194
+
195
+ - c770e7b: The compiler will now return `diagnostics` and unique error codes to be handled by the consumer. For example:
196
+
197
+ ```js
198
+ import type { DiagnosticSeverity, DiagnosticCode } from '@astrojs/compiler/types';
199
+ import { transform } from '@astrojs/compiler';
200
+
201
+ async function run() {
202
+ const { diagnostics } = await transform(file, opts);
203
+
204
+ function log(severity: DiagnosticSeverity, message: string) {
205
+ switch (severity) {
206
+ case DiagnosticSeverity.Error:
207
+ return console.error(message);
208
+ case DiagnosticSeverity.Warning:
209
+ return console.warn(message);
210
+ case DiagnosticSeverity.Information:
211
+ return console.info(message);
212
+ case DiagnosticSeverity.Hint:
213
+ return console.info(message);
214
+ }
215
+ }
216
+
217
+ for (const diagnostic of diagnostics) {
218
+ let message = diagnostic.text;
219
+ if (diagnostic.hint) {
220
+ message += `\n\n[hint] ${diagnostic.hint}`;
221
+ }
222
+
223
+ // Or customize messages for a known DiagnosticCode
224
+ if (diagnostic.code === DiagnosticCode.ERROR_UNMATCHED_IMPORT) {
225
+ message = `My custom message about an unmatched import!`;
226
+ }
227
+ log(diagnostic.severity, message);
228
+ }
229
+ }
230
+ ```
231
+
232
+ ### Patch Changes
233
+
234
+ - 0b24c24: Implement automatic typing for Astro.props in the TSX output
235
+
236
+ ## 0.26.1
237
+
238
+ ### Patch Changes
239
+
240
+ - 920898c: Handle edge case with `noscript` tags
241
+ - 8ee78a6: handle slots that contains the head element
242
+ - 244e43e: Do not hoist import inside object
243
+ - b8cd954: Fix edge case with line comments and export hoisting
244
+ - 52ebfb7: Fix parse/tsx output to gracefully handle invalid HTML (style outside of body, etc)
245
+ - 884efc6: Fix edge case with multi-line export hoisting
246
+
247
+ ## 0.26.0
248
+
249
+ ### Minor Changes
250
+
251
+ - 0be58ab: Improve sourcemap support for TSX output
252
+
253
+ ### Patch Changes
254
+
255
+ - e065e29: Prevent head injection from removing script siblings
256
+
257
+ ## 0.25.2
258
+
259
+ ### Patch Changes
260
+
261
+ - 3a51b8e: Ensure that head injection occurs if there is only a hoisted script
262
+
263
+ ## 0.25.1
264
+
265
+ ### Patch Changes
266
+
267
+ - 41fae67: Do not scope empty style blocks
268
+ - 1ab8280: fix(#517): fix edge case with TypeScript transform
269
+ - a3678f9: Fix import.meta.env usage above normal imports
270
+
271
+ ## 0.25.0
272
+
273
+ ### Minor Changes
274
+
275
+ - 6446ea3: Make Astro styles being printed after user imports
276
+
277
+ ### Patch Changes
278
+
279
+ - 51bc60f: Fix edge cases with `getStaticPaths` where valid JS syntax was improperly handled
280
+
281
+ ## 0.24.0
282
+
283
+ ### Minor Changes
284
+
285
+ - 6ebcb4f: Allow preprocessStyle to return an error
286
+
287
+ ### Patch Changes
288
+
289
+ - abda605: Include filename when calculating scope
290
+
291
+ ## 0.23.5
292
+
293
+ ### Patch Changes
294
+
295
+ - 6bc8e0b: Prevent import assertion from being scanned too soon
296
+
297
+ ## 0.23.4
298
+
299
+ ### Patch Changes
300
+
301
+ - 3b9f0d2: Remove css print escape for experimentalStaticExtraction
302
+
303
+ ## 0.23.3
304
+
305
+ ### Patch Changes
306
+
307
+ - 7693d76: Fix resolution of .jsx modules
308
+
309
+ ## 0.23.2
310
+
311
+ ### Patch Changes
312
+
313
+ - 167ad21: Improve handling of namespaced components when they are multiple levels deep
314
+ - 9283258: Fix quotations in pre-quoted attributes
315
+ - 76fcef3: Better handling for imports which use special characters
316
+
317
+ ## 0.23.1
318
+
319
+ ### Patch Changes
320
+
321
+ - 79376f3: Fix regression with expression rendering
322
+
323
+ ## 0.23.0
324
+
325
+ ### Minor Changes
326
+
327
+ - d8448e2: Prevent printing the doctype in the JS output
328
+
329
+ ### Patch Changes
330
+
331
+ - a28c3d8: Fix handling of unbalanced quotes in expression attributes
332
+ - 28d1d4d: Fix handling of TS generics inside of expressions
333
+ - 356d3b6: Prevent wraping module scripts with scope
334
+
335
+ ## 0.22.1
336
+
337
+ ### Patch Changes
338
+
339
+ - 973103c: Prevents unescaping attribute expressions
340
+
341
+ ## 0.22.0
342
+
343
+ ### Minor Changes
344
+
345
+ - 558c9dd: Generate a stable scoped class that does _NOT_ factor in local styles. This will allow us to safely do style HMR without needing to update the DOM as well.
346
+ - c19cd8c: Update Astro's CSS scoping algorithm to implement zero-specificity scoping, according to [RFC0012](https://github.com/withastro/rfcs/blob/main/proposals/0012-scoped-css-with-preserved-specificity.md).
347
+
348
+ ## 0.21.0
349
+
350
+ ### Minor Changes
351
+
352
+ - 8960d82: New handling for `define:vars` scripts and styles
353
+
354
+ ### Patch Changes
355
+
356
+ - 4b318d5: Do not attempt to hoist styles or scripts inside of `<noscript>`
357
+ - d6ebab6: Fixing missing semicolon on TSX Frontmatter last-entries
358
+
359
+ ## 0.20.0
360
+
361
+ ### Minor Changes
362
+
363
+ - 48d33ff: Removes compiler special casing for the Markdown component
364
+ - 4a5352e: Removes limitation where imports/exports must be at the top of an `.astro` file. Fixes various edge cases around `getStaticPaths` hoisting.
365
+
366
+ ### Patch Changes
367
+
368
+ - 245d73e: Add support for HTML minification by passing `compact: true` to `transform`.
369
+ - 3ecdd24: Update TSX output to also generate TSX-compatible code for attributes containing dots
370
+
371
+ ## 0.19.0
372
+
373
+ ### Minor Changes
374
+
375
+ - fcb4834: Removes fallback for the site configuration
376
+
377
+ ### Patch Changes
378
+
379
+ - 02add77: Fixes many edge cases around tables when used with components, slots, or expressions
380
+ - b23dd4d: Fix handling of unmatched close brace in template literals
381
+ - 9457a91: Fix issue with `{` in template literal attributes
382
+ - c792161: Fix nested expression handling with a proper expression tokenizer stack
383
+
384
+ ## 0.18.2
385
+
386
+ ### Patch Changes
387
+
388
+ - f8547a7: Revert [#448](https://github.com/withastro/compiler/pull/448) for now
389
+
390
+ ## 0.18.1
391
+
392
+ ### Patch Changes
393
+
394
+ - aff2f23: Warning on client: usage on scripts
395
+
396
+ ## 0.18.0
397
+
398
+ ### Minor Changes
399
+
400
+ - 4b02776: Fix handling of `slot` attribute used inside of expressions
401
+
402
+ ### Patch Changes
403
+
404
+ - 62d2a8e: Properly handle nested expressions that return multiple elements
405
+ - 571d6b9: Ensure `html` and `body` elements are scoped
406
+
407
+ ## 0.17.1
408
+
409
+ ### Patch Changes
410
+
411
+ - 3885217: Support `<slot is:inline />` and preserve slot attribute when not inside component
412
+ - ea94a26: Fix issue with fallback content inside of slots
413
+
414
+ ## 0.17.0
415
+
416
+ ### Minor Changes
417
+
418
+ - 3a9d166: Add renderHead injection points
419
+
420
+ ## 0.16.1
421
+
422
+ ### Patch Changes
423
+
424
+ - 9fcc43b: Build JS during the release
425
+
426
+ ## 0.16.0
427
+
428
+ ### Minor Changes
429
+
430
+ - 470efc0: Adds component metadata to the TransformResult
431
+
432
+ ### Patch Changes
433
+
434
+ - c104d4f: Fix #418: duplicate text when only text
435
+
436
+ ## 0.15.2
437
+
438
+ ### Patch Changes
439
+
440
+ - f951822: Fix wasm `parse` to save attribute namespace
441
+ - 5221e09: Fix serialize spread attribute
442
+
443
+ ## 0.15.1
444
+
445
+ ### Patch Changes
446
+
447
+ - 26cbcdb: Prevent side-effectual CSS imports from becoming module metadata
448
+
449
+ ## 0.15.0
450
+
451
+ ### Minor Changes
452
+
453
+ - 702e848: Trailing space at the end of Astro files is now stripped from Component output.
454
+
455
+ ### Patch Changes
456
+
457
+ - 3a1a24b: Fix long-standing bug where a `class` attribute inside of a spread prop will cause duplicate `class` attributes
458
+ - 62faceb: Fixes an issue where curly braces in `<math>` elements would get parsed as expressions instead of raw text.
459
+
460
+ ## 0.14.3
461
+
462
+ ### Patch Changes
463
+
464
+ - 6177620: Fix edge case with expressions inside of tables
465
+ - 79b1ed6: Provides a better error message when we can't match client:only usage to an import statement
466
+ - a4e1957: Fix Astro scoping when `class:list` is used
467
+ - fda859a: Fix json escape
468
+
469
+ ## 0.14.2
470
+
471
+ ### Patch Changes
472
+
473
+ - 6f30e2e: Fix edge case with nested expression inside `<>`
474
+ - 15e3ff8: Fix panic when using a `<slot />` in `head`
475
+ - c048567: Fix edge case with `select` elements and expression children
476
+ - 13d2fc2: Fix #340, fixing behavior of content after an expression inside of `<select>`
477
+ - 9e37a72: Fix issue when multiple client-only components are used
478
+ - 67993d5: Add support for block comment only expressions, block comment only shorthand attributes and block comments in shorthand attributes
479
+ - 59fbea2: Fix #343, edge case with `<tr>` inside component
480
+ - 049dadf: Fix usage of expressions inside `caption` and `colgroup` elements
481
+
482
+ ## 0.14.1
483
+
484
+ ### Patch Changes
485
+
486
+ - 1a82892: Fix bug with `<script src>` not being hoisted
487
+
488
+ ## 0.14.0
489
+
490
+ ### Minor Changes
491
+
492
+ - c0da4fe: Implements [RFC0016](https://github.com/withastro/rfcs/blob/main/proposals/0016-style-script-defaults.md), the new `script` and `style` behavior.
493
+
494
+ ## 0.13.2
495
+
496
+ ### Patch Changes
497
+
498
+ - 014370d: Fix issue with named slots in <head> element
499
+ - da831c1: Fix handling of RegExp literals in frontmatter
500
+
501
+ ## 0.13.1
502
+
503
+ ### Patch Changes
504
+
505
+ - 2f8334c: Update `parse` and `serialize` functions to combine `attributes` and `directives`, fix issue with `serialize` not respecting `attributes`.
506
+ - b308955: Add self-close option to serialize util
507
+
508
+ ## 0.13.0
509
+
510
+ ### Minor Changes
511
+
512
+ - ce3f1a5: Update CSS parser to use `esbuild`, adding support for CSS nesting, `@container`, `@layer`, and other modern syntax features
513
+
514
+ ### Patch Changes
515
+
516
+ - 24a1185: Parser: Always output the `children` property in an element node, even if it has no children
517
+
518
+ ## 0.12.1
519
+
520
+ ### Patch Changes
521
+
522
+ - 097ac47: Parser: Always output the `attribute` property in an element node, even if empty
523
+ - ad62437: Add `serialize` util
524
+ - eb7eb95: Parse: fix escaping of `&` characters in AST output
525
+
526
+ ## 0.12.0
527
+
528
+ ### Minor Changes
529
+
530
+ - c6dd41d: Do not render implicit tags created during the parsing process
531
+ - c6dd41d: Remove "as" option, treats all documents as fragments that generate no implicit tags
532
+ - c6dd41d: Add `parse` function which generates an AST
533
+ - c6dd41d: Adds support for `Astro.self` (as accepted in the [Recursive Components RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-recursive-components.md)).
534
+
535
+ ### Patch Changes
536
+
537
+ - c6dd41d: Add `fragment` node types to AST definitions, expose Fragment helper to utils
538
+ - c6dd41d: Adds metadata on client:only components
539
+ - c6dd41d: Expose AST types via `@astrojs/compiler/types`
540
+ - c6dd41d: Export `./types` rather than `./types.d.ts`
541
+ - c6dd41d: Fix edge case with Fragment parsing in head, add `fragment` node to AST output
542
+ - c6dd41d: Fix <slot> behavior inside of head
543
+ - c6dd41d: Improve head injection behavior
544
+ - ef0b4b3: Move `typescript` dependency to development dependencies, as it is not needed in the package runtime.
545
+ - c6dd41d: Update exposed types
546
+ - c6dd41d: Remove usage of `escapeHTML` util
547
+ - c6dd41d: Export all types from shared types
548
+ - c6dd41d: Fix `head` behavior and a bug related to ParseFragment
549
+ - c6dd41d: Adds a warning when using an expression with a hoisted script
550
+
551
+ ## 0.12.0-next.9
552
+
553
+ ### Patch Changes
554
+
555
+ - 95ec808: Fix <slot> behavior inside of head
556
+ - 95ec808: Remove usage of `escapeHTML` util
557
+
558
+ ## 0.12.0-next.8
559
+
560
+ ### Patch Changes
561
+
562
+ - 4497628: Improve head injection behavior
563
+
564
+ ## 0.12.0-next.7
565
+
566
+ ### Patch Changes
567
+
568
+ - e26b9d6: Fix edge case with Fragment parsing in head, add `fragment` node to AST output
569
+
570
+ ## 0.12.0-next.6
571
+
572
+ ### Patch Changes
573
+
574
+ - 37ef1c1: Fix `head` behavior and a bug related to ParseFragment
575
+
576
+ ## 0.12.0-next.5
577
+
578
+ ### Patch Changes
579
+
580
+ - 97cf66b: Adds metadata on client:only components
581
+
582
+ ## 0.12.0-next.4
583
+
584
+ ### Patch Changes
585
+
586
+ - e2061dd: Export all types from shared types
587
+
588
+ ## 0.12.0-next.3
589
+
590
+ ### Patch Changes
591
+
592
+ - ef69b74: Export `./types` rather than `./types.d.ts`
593
+
594
+ ## 0.12.0-next.2
595
+
596
+ ### Patch Changes
597
+
598
+ - 073b0f1: Adds a warning when using an expression with a hoisted script
599
+
600
+ ## 0.12.0-next.1
601
+
602
+ ### Patch Changes
603
+
604
+ - a539d53: Update exposed types
605
+
606
+ ## 0.12.0-next.0
607
+
608
+ ### Minor Changes
609
+
610
+ - 8ce39c7: Do not render implicit tags created during the parsing process
611
+ - 41b825a: Remove "as" option, treats all documents as fragments that generate no implicit tags
612
+ - 483b34b: Add `parse` function which generates an AST
613
+ - 9e5e2f8: Adds support for `Astro.self` (as accepted in the [Recursive Components RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-recursive-components.md)).
614
+
615
+ ### Patch Changes
616
+
617
+ - 16b167c: Expose AST types via `@astrojs/compiler/types`
618
+
619
+ ## 0.11.4
620
+
621
+ ### Patch Changes
622
+
623
+ - 99b5de2: Reset tokenizer state when a raw element that is self-closing is encountered.
624
+
625
+ This fixes the handling of self-closing elements like `<title />` and `<script />` when used with `set:html`.
626
+
627
+ ## 0.11.3
628
+
629
+ ### Patch Changes
630
+
631
+ - dcf15bf: Fixes bug causing a crash when using Astro.resolve on a hoisted script
632
+
633
+ ## 0.11.2
634
+
635
+ ### Patch Changes
636
+
637
+ - 41cc6ef: Fix memory issue caused by duplicate WASM instantiations
638
+
639
+ ## 0.11.1
640
+
641
+ ### Patch Changes
642
+
643
+ - 4039682: Fixes hoist script tracking when passed a variable
644
+
645
+ ## 0.11.0
646
+
647
+ ### Minor Changes
648
+
649
+ - f5d4006: Switch from TinyGo to Go's built-in WASM output. While this is an unfortunate size increase for our `.wasm` file, it should also be significantly more stable and cut down on hard-to-reproduce bugs.
650
+
651
+ Please see https://github.com/withastro/compiler/pull/291 for more details.
652
+
653
+ ## 0.11.0-next--wasm.0
654
+
655
+ ### Minor Changes
656
+
657
+ - 9212ccc: Switch from TinyGo to Go's built-in WASM output. While this is an unfortunate size increase for our `WASM` file, it should also be significantly more stable and cut down on hard-to-reproduce bugs.
658
+
659
+ Please see https://github.com/withastro/compiler/pull/291 for more details.
660
+
661
+ ## 0.10.2
662
+
663
+ ### Patch Changes
664
+
665
+ - 7f7c65c: Fix conditional rendering for special elements like `iframe` and `noscript`
666
+ - 9d789c9: Fix handling of nested template literals inside of expressions
667
+ - 5fa9e53: Fix handling of special characters inside of expressions
668
+ - 8aaa956: Formalize support for magic `data-astro-raw` attribute with new, official `is:raw` directive
669
+ - c698350: Improve MathML support. `{}` inside of `<math>` is now treated as raw text rather than an expression construct.
670
+
671
+ ## 0.10.1
672
+
673
+ ### Patch Changes
674
+
675
+ - 38ae39a: Add support for `set:html` and `set:text` directives, as designed in the [`set:html` RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-set-html.md).
676
+
677
+ ## 0.10.0
678
+
679
+ ### Minor Changes
680
+
681
+ - 02d41a8: Adds support for `Astro.self` (as accepted in the [Recursive Components RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-recursive-components.md)).
682
+
683
+ ### Patch Changes
684
+
685
+ - 4fe522b: Fixes inclusion of define:vars scripts/styles using the StaticExtraction flag
686
+
687
+ ## 0.9.2
688
+
689
+ ### Patch Changes
690
+
691
+ - 92cc76b: Fix wasm build for use in Astro
692
+
693
+ ## 0.9.1
694
+
695
+ ### Patch Changes
696
+
697
+ - 85d35a5: Revert previous change that broke Windows
698
+
699
+ ## 0.9.0
700
+
701
+ ### Minor Changes
702
+
703
+ - c1a0172: changing raw_with_expression_loop in tokenizer to only handle string that has '`' differently otherwise it should treat it as normal string
704
+
705
+ ### Patch Changes
706
+
707
+ - 1fa2162: Improved types for TransformResult with hoisted scripts
708
+
709
+ ## 0.8.2
710
+
711
+ ### Patch Changes
712
+
713
+ - 502f8b8: Adds a new property, `scripts`, to `TransformResult`
714
+
715
+ ## 0.8.1
716
+
717
+ ### Patch Changes
718
+
719
+ - cd277e2: Fix bug with data-astro-raw detection
720
+
721
+ ## 0.8.0
722
+
723
+ ### Minor Changes
724
+
725
+ - 3690968: Passes the Pathname to createAstro instead of import.meta.url
726
+
727
+ ## 0.7.4
728
+
729
+ ### Patch Changes
730
+
731
+ - afc1e82: Remove console log (sorry!)
732
+
733
+ ## 0.7.3
734
+
735
+ ### Patch Changes
736
+
737
+ - cc24069: Fix some edge cases with expressions inside of `<table>` elements
738
+ - 086275c: Fix edge case with textarea inside expression
739
+
740
+ ## 0.7.2
741
+
742
+ ### Patch Changes
743
+
744
+ - 899e48d: Fix issue with active formatting elements by marking expressions as unique scopes
745
+
746
+ ## 0.7.1
747
+
748
+ ### Patch Changes
749
+
750
+ - fa039dd: Fix tokenization of attribute expression containing the solidus (`/`) character
751
+ - e365c3c: Fix bug with expressions inside of <table> elements (without reverting a previous fix to expressions inside of <a> elements)
752
+ - 7c5889f: Fix bug with `@keyframes` scoping
753
+ - df74ab3: Fix bug where named grid columns (like `[content-start]`) would be scoped, producing invalid CSS
754
+ - abe37ca: Fix handling of components and expressions inside of `<noscript>`
755
+ - 8961cf4: Fix a logical error with expression tokenization when using nested functions. Previously, only the first brace pair would be respected and following pairs would be treated as expression boundaries.
756
+
757
+ ## 0.7.0
758
+
759
+ ### Minor Changes
760
+
761
+ - 43cbac3: Adds metadata on hydration directives used by the component
762
+
763
+ ## 0.6.2
764
+
765
+ ### Patch Changes
766
+
767
+ - e785310: Fix issue with import assertions creating additional imports
768
+
769
+ ## 0.6.1
770
+
771
+ ### Patch Changes
772
+
773
+ - e40ea9c: Include LICENSE information
774
+
775
+ ## 0.6.0
776
+
777
+ ### Minor Changes
778
+
779
+ - b9e2b4b: Adds option to make CSS be extracted statically
780
+
781
+ ## 0.5.7
782
+
783
+ ### Patch Changes
784
+
785
+ - 75bd730: Fix regression with Components mixed with active formatting elements
786
+
787
+ ## 0.5.6
788
+
789
+ ### Patch Changes
790
+
791
+ - 7ca419e: Improve behavior of empty expressions in body and attributes, where `{}` is equivalent to `{(void 0)}`
792
+
793
+ ## 0.5.5
794
+
795
+ ### Patch Changes
796
+
797
+ - 7a41d7b: Fix `<>` syntax edge case inside of expressions
798
+ - b0d35b9: Fix edge case with conditional scripts
799
+
800
+ ## 0.5.4
801
+
802
+ ### Patch Changes
803
+
804
+ - f2e0322: Do not reconstruct active formatting elements on expression start
805
+ - 0103285: Bugfix: expressions in table context
806
+
807
+ ## 0.5.3
808
+
809
+ ### Patch Changes
810
+
811
+ - 50cbc57: Fix fragment expression behavior edge case
812
+
813
+ ## 0.5.2
814
+
815
+ ### Patch Changes
816
+
817
+ - 8f0e3d7: Fix fragment parsing bugs when frontmatter is missing or top-level expressions are present
818
+
819
+ ## 0.5.1
820
+
821
+ ### Patch Changes
822
+
823
+ - 1f0ba41: Fix bug when fragment parsing frontmatter is missing
824
+
825
+ ## 0.5.0
826
+
827
+ ### Minor Changes
828
+
829
+ - 901faef: Passes projectRoot to createAstro
830
+
831
+ ## 0.4.0
832
+
833
+ ### Minor Changes
834
+
835
+ - 7e1aded: Change behavior of `as: "fragment"` option to support arbitrary `head` and `body` tags
836
+
837
+ ## 0.3.9
838
+
839
+ ### Patch Changes
840
+
841
+ - 2884a82: Bugfix: CSS comments insert semicolon
842
+
843
+ ## 0.3.8
844
+
845
+ ### Patch Changes
846
+
847
+ - 2c8f5d8: Fix another component-only edge case
848
+
849
+ ## 0.3.7
850
+
851
+ ### Patch Changes
852
+
853
+ - eb0d17f: Fix edge case with files that contain a single component
854
+
855
+ ## 0.3.6
856
+
857
+ ### Patch Changes
858
+
859
+ - af003e9: Fix syntax error in transformed output
860
+
861
+ ## 0.3.5
862
+
863
+ ### Patch Changes
864
+
865
+ - bca7e00: Fixed issue where an Astro Components could only add one style or script
866
+ - 2a2f951: Fix regression where leading `<style>` elements could break generated tags
867
+ - db162f8: Fix case-sensitivity of void elements
868
+ - 44ee189: Fixed issue where expressions did not work within SVG elements
869
+ - 9557113: Fix panic when preprocessed style is empty
870
+
871
+ ## 0.3.4
872
+
873
+ ### Patch Changes
874
+
875
+ - 351f298: Fix edge case with with `textarea` inside of a Component when the document generated an implicit `head` tag
876
+ - 0bcfd4b: Fix CSS scoping of \* character inside of calc() expressions
877
+ - 4be512f: Encode double quotes inside of quoted attributes
878
+ - ad865e5: Fix behavior of expressions inside of <table> elements
879
+
880
+ ## 0.3.3
881
+
882
+ ### Patch Changes
883
+
884
+ - 6d2a3c2: Fix handling of top-level component nodes with leading styles
885
+ - 2ce10c6: Fix "call to released function" issue
886
+
887
+ ## 0.3.2
888
+
889
+ ### Patch Changes
890
+
891
+ - 8800f80: Fix comments and strings inside of attribute expressions
892
+
893
+ ## 0.3.1
894
+
895
+ ### Patch Changes
896
+
897
+ - 432eaaf: Fix for compiler regression causing nil pointer
898
+
899
+ ## 0.3.0
900
+
901
+ ### Minor Changes
902
+
903
+ - 1255477: Drop support for elements inside of Frontmatter, which was undefined behavior that caused lots of TypeScript interop problems
904
+
905
+ ### Patch Changes
906
+
907
+ - 44dc0c6: Fixes issue with \x00 character on OSX
908
+ - d74acfa: Fix regression with expressions inside of <select> elements
909
+ - f50ae69: Bugfix: don’t treat import.meta as import statement
910
+
911
+ ## 0.2.27
912
+
913
+ ### Patch Changes
914
+
915
+ - 460c1e2: Use `$metadata.resolvePath` utility to support the `client:only` directive
916
+
917
+ ## 0.2.26
918
+
919
+ ### Patch Changes
920
+
921
+ - 3e5ef91: Implement getStaticPaths hoisting
922
+ - 8a434f9: Fix namespace handling to support attributes like `xmlns:xlink`
923
+
924
+ ## 0.2.25
925
+
926
+ ### Patch Changes
927
+
928
+ - 59f36cb: Fix custom-element slot behavior to remain spec compliant
929
+ - 79b2e6f: Fix style/script ordering
930
+ - 6041ee5: Add support for `client:only` directive
931
+ - 2cd35f6: Fix apostrophe handling inside of elements which are inside of expressions ([#1478](https://github.com/snowpackjs/astro/issues/1478))
932
+
933
+ ## 0.2.24
934
+
935
+ ### Patch Changes
936
+
937
+ - bfd1b94: Fix issue with `style` and `script` processing where siblings would be skipped
938
+ - 726d272: Fix <Fragment> and <> handling
939
+ - f052465: Fix CSS variable parsing in the scoped CSS transform
940
+
941
+ ## 0.2.23
942
+
943
+ ### Patch Changes
944
+
945
+ - 632c29b: Fix nil pointer dereference when every element on page is a component
946
+ - 105a159: Fix bug where text inside of elements inside of an expression was not read properly (https://github.com/snowpackjs/astro/issues/1617)
947
+
948
+ ## 0.2.22
949
+
950
+ ### Patch Changes
951
+
952
+ - 04c1b63: Fix bug with dynamic classes
953
+
954
+ ## 0.2.21
955
+
956
+ ### Patch Changes
957
+
958
+ - 7b46e9f: Revert automatic DOCTYPE injection to fix package
959
+
960
+ ## 0.2.20
961
+
962
+ ### Patch Changes
963
+
964
+ - 39298e4: Fix small bugs with script/style hoisting behavior
965
+ - bd1014a: Bugfix: style tags in SVG
966
+
967
+ ## 0.2.19
968
+
969
+ ### Patch Changes
970
+
971
+ - 318dd69: Fix handling of self-closing "raw" tags like <script /> and <style />
972
+ - 9372c10: Support `define:vars` with root `html` element on pages
973
+ - c4491cd: Fix bug with <script define:vars> when not using the `hoist` attribute
974
+
975
+ ## 0.2.18
976
+
977
+ ### Patch Changes
978
+
979
+ - 2f4b772: Prevents overrunning an array when checking for raw attribute
980
+
981
+ ## 0.2.17
982
+
983
+ ### Patch Changes
984
+
985
+ - 4f9155a: Bugfix: fix character limit of 4096 characters
986
+ - 83df04c: Upgrade to Go 1.17
987
+
988
+ ## 0.2.16
989
+
990
+ ### Patch Changes
991
+
992
+ - 9ad8da7: Allows a data-astro-raw attr to parse children as raw text
993
+ - 61b77de: Bugfix: CSS and selector scoping
994
+
995
+ ## 0.2.15
996
+
997
+ ### Patch Changes
998
+
999
+ - 8fbae5e: Bugfix: fix component detection bug in parser
1000
+ - 37b5b6e: Bugfix: wait to release processStyle() until after fn call
1001
+
1002
+ ## 0.2.14
1003
+
1004
+ ### Patch Changes
1005
+
1006
+ - f59c886: Bugfix: allow for detection of void tags (e.g. <img>)
1007
+ - 4c8d14a: Fixes textContent containing a forward slash
1008
+
1009
+ ## 0.2.13
1010
+
1011
+ ### Patch Changes
1012
+
1013
+ - f262b61: Fix for string template usage within expressions
1014
+
1015
+ ## 0.2.12
1016
+
1017
+ ### Patch Changes
1018
+
1019
+ - c9fa9eb: Fix for apostrophe within elements
1020
+
1021
+ ## 0.2.11
1022
+
1023
+ ### Patch Changes
1024
+
1025
+ - 27629b2: Reverts the apostrophe change that broke markdown parsing
1026
+
1027
+ ## 0.2.10
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - 57eb728: Fixes hydrated scripts not recognized when using fragment transformation
1032
+
1033
+ ## 0.2.9
1034
+
1035
+ ### Patch Changes
1036
+
1037
+ - 3ea8d8c: Fix for string interpolation within titles
1038
+ - ef7cb1e: Fixes bug with textContent containing apostrophe character
1039
+
1040
+ ## 0.2.8
1041
+
1042
+ ### Patch Changes
1043
+
1044
+ - b2d5564: Fixes wasm build
1045
+
1046
+ ## 0.2.6
1047
+
1048
+ ### Patch Changes
1049
+
1050
+ - fix small issue with `preprocessStyle` handling of `null` or `undefined`
1051
+
1052
+ ## 0.2.5
1053
+
1054
+ ### Patch Changes
1055
+
1056
+ - Fix issue with CI deployment
1057
+
1058
+ ## 0.2.4
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - 4410c5a: Add support for a `preprocessStyle` function
1063
+ - 934e6a6: Chore: add linting, format code
1064
+
1065
+ ## 0.1.15
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - 5c02abf: Fix split so it always splits on first non-import/export
1070
+ - 93c1cd9: Bugfix: handle RegExp in Astro files
1071
+ - 94c59fa: Bugfix: tokenizer tries to parse JS comments
1072
+ - 46a5c75: Adds the top-level Astro object
1073
+ - 7ab9148: Improve JS scanning algorithm to be more fault tolerant, less error prone
1074
+
1075
+ ## 0.1.12
1076
+
1077
+ ### Patch Changes
1078
+
1079
+ - 96dc356: Adds hydrationMap support for custom elements
1080
+
1081
+ ## 0.1.11
1082
+
1083
+ ### Patch Changes
1084
+
1085
+ - 939283d: Adds the component export for use in hydration
1086
+
1087
+ ## 0.1.10
1088
+
1089
+ ### Patch Changes
1090
+
1091
+ - 3a336ef: Adds a hydration map to enable hydration within Astro components
1092
+
1093
+ ## 0.1.9
1094
+
1095
+ ### Patch Changes
1096
+
1097
+ - 7d887de: Allows the Astro runtime to create the Astro.slots object
1098
+
1099
+ ## 0.1.8
1100
+
1101
+ ### Patch Changes
1102
+
1103
+ - d159658: Publish via PR
1104
+
1105
+ ## 0.1.7
1106
+
1107
+ ### Patch Changes
1108
+
1109
+ - c52e69b: Include astro.wasm in the package
1110
+
1111
+ ## 0.1.6
1112
+
1113
+ ### Patch Changes
1114
+
1115
+ - bd05f7c: Actually include _any_ files?
1116
+
1117
+ ## 0.1.5
1118
+
1119
+ ### Patch Changes
1120
+
1121
+ - c4ed69e: Includes the wasm binary in the npm package
1122
+
1123
+ ## 0.1.4
1124
+
1125
+ ### Patch Changes
1126
+
1127
+ - 2f1f1b8: Pass custom element tag names to renderComponent as strings
1128
+
1129
+ ## 0.1.3
1130
+
1131
+ ### Patch Changes
1132
+
1133
+ - e4e2de5: Update to [`tinygo@0.20.0`](https://github.com/tinygo-org/tinygo/releases/tag/v0.20.0) and remove `go@1.16.x` restriction.
1134
+ - ae71546: Add support for `fragment` compilation, to be used with components rather than pages
1135
+ - 8c2aaf9: Allow multiple top-level conditional expressions
1136
+
1137
+ ## 0.1.0
1138
+
1139
+ ### Patch Changes
1140
+
1141
+ - c9407cd: Fix for using conditionals at the top-level