@astrojs/compiler 0.0.0-win-20221104182032

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