astro 0.21.3 → 0.21.7

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 DELETED
@@ -1,1368 +0,0 @@
1
- # astro
2
-
3
- ## 0.21.3
4
-
5
- ### Patch Changes
6
-
7
- - 8a5de030: Fix client:visible with multiple copies of same component
8
- - 9ed6b3c0: Update compiler with the following patches:
9
- - Fix components supporting only one style or script
10
- - Fix regression where leading `<style>` elements could break generated tags
11
- - Fix case-sensitivity of void elements
12
- - Fix expressions not working within SVG elements
13
- - Fix panic when preprocessed style is empty
14
- - 7a7427e4: Fix CSS URLs on Windows
15
- - Updated dependencies [4cec1256]
16
- - @astrojs/renderer-svelte@0.2.1
17
-
18
- ## 0.21.2
19
-
20
- ### Patch Changes
21
-
22
- - 22dd6bf6: Support `lang="postcss"` in addition to `lang="pcss"`
23
- - d3476f24: Bump Sass dependency version
24
- - 679d4395: Added `MarkdownParser` and `MarkdownParserResponse` to `@types`
25
- - e4945232: Fix a host of compiler bugs, including:
26
- - CSS scoping of `*` character inside of `calc()` expressions
27
- - Encoding of double quotes inside of quoted attributes
28
- - Expressions inside of `<table>` elements
29
- - 8cb77959: Fixes building of non-hoisted scripts
30
- - fc5f4163: Fix regression with `astro build` 404.astro output
31
- - Updated dependencies [679d4395]
32
- - @astrojs/markdown-remark@0.5.0
33
-
34
- ## 0.21.1
35
-
36
- ### Patch Changes
37
-
38
- - 8775730e: Fix CSS scanning bug that could lead to infinite loops
39
- - aec4e8da: Fix client:only behavior when only a single renderer is configured
40
-
41
- ## 0.21.0
42
-
43
- ### Minor Changes
44
-
45
- - e6aaeff5: Astro 0.21 is here! [Read the complete migration guide](https://docs.astro.build/migration/0.21.0/).
46
-
47
- This new version of Astro includes:
48
-
49
- - A new, faster, [Go-based compiler](https://github.com/withastro/astro-compiler)
50
- - A completely new runtime backed by [Vite](https://vitejs.dev/), with significantly dev experience improvements
51
- - Improved support for loading Astro config files, including `.cjs`, `.js`, and `.ts` files
52
- - And [many more features](https://astro.build/blog/astro-021-preview/)!
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies [e6aaeff5]
57
- - Updated dependencies [e6aaeff5]
58
- - Updated dependencies [e6aaeff5]
59
- - @astrojs/renderer-preact@0.3.0
60
- - @astrojs/renderer-react@0.3.0
61
- - @astrojs/renderer-svelte@0.2.0
62
- - @astrojs/renderer-vue@0.2.0
63
- - @astrojs/markdown-remark@0.4.0
64
- - @astrojs/prism@0.3.0
65
-
66
- ## 0.21.0-next.12
67
-
68
- ### Patch Changes
69
-
70
- - 8733599e: Adds missing vite dependency, vixing svelte and vue
71
- - 2e0c790b: Fix Lit renderer built
72
-
73
- ## 0.21.0-next.11
74
-
75
- ### Patch Changes
76
-
77
- - 00d2b625: Add Vite dependencies to astro
78
- - Updated dependencies [00d2b625]
79
- - @astrojs/markdown-remark@0.4.0-next.2
80
-
81
- ## 0.21.0-next.10
82
-
83
- ### Patch Changes
84
-
85
- - c7682168: Fix build by making vendored vite resolve to copy
86
-
87
- ## 0.21.0-next.9
88
-
89
- ### Patch Changes
90
-
91
- - 41c6a772: Fix for dev server not starting
92
- - 3b511059: Fix for OSX .astro file corruption
93
-
94
- ## 0.21.0-next.8
95
-
96
- ### Patch Changes
97
-
98
- - c82ceff7: Bug fix for Debug when passed JSON contain HTML strings
99
- - 53d9cf5e: Fixes dev server not stopping cleanly
100
- - 8986d33b: Improve error display
101
- - Updated dependencies [8986d33b]
102
- - @astrojs/renderer-vue@0.2.0-next.2
103
-
104
- ## 0.21.0-next.7
105
-
106
- ### Patch Changes
107
-
108
- - dbc49ed6: Fix HMR regression
109
- - 6b598b24: Fix middleware order
110
- - 0ce86dfd: Fixes Vue scoped styles when built
111
-
112
- ## 0.21.0-next.6
113
-
114
- ### Patch Changes
115
-
116
- - dbc49ed6: Fix HMR regression
117
- - 6b598b24: Fix middleware order
118
- - 0ce86dfd: Fixes Vue scoped styles when built
119
-
120
- ## 0.21.0-next.5
121
-
122
- ### Patch Changes
123
-
124
- - 0f9c1910: Fixes routing regression in next.4. Subpath support was inadvertedly prevent any non-index routes from working when not using a subpath.
125
-
126
- ## 0.21.0-next.4
127
-
128
- ### Patch Changes
129
-
130
- - b958088c: Make astro-root be a display: contents element
131
- - 65d17857: Fixes hoisted scripts to be bundled during the build
132
- - 3b8f201c: Add build output
133
- - 824c1f20: Re-implement client:only support
134
- - 3cd1458a: Bugfix: Bundled CSS missing files on Windows
135
- - 4e55be90: Fixes layout file detection on non-unix environments
136
- - fca1a99d: Provides first-class support for a site deployed to a subpath
137
-
138
- Now you can deploy your site to a subpath more easily. Astro will use your `buildOptions.site` URL and host the dev server from there.
139
-
140
- If your site config is `http://example.com/blog` you will need to go to `http://localhost:3000/blog/` in dev and when using `astro preview`.
141
-
142
- Includes a helpful 404 page when encountering this in dev and preview.
143
-
144
- - 65216ef9: Bugfix: PostCSS not working in all contexts
145
- - Updated dependencies [3cd1458a]
146
- - @astrojs/renderer-preact@0.3.0-next.1
147
- - @astrojs/renderer-react@0.3.0-next.1
148
- - @astrojs/renderer-svelte@0.2.0-next.1
149
- - @astrojs/renderer-vue@0.2.0-next.1
150
-
151
- ## 0.21.0-next.3
152
-
153
- ### Patch Changes
154
-
155
- - 7eaabbb0: Fix error with Markdown content attribute parsing
156
- - fd52bcee: Update the build to build/bundle assets
157
- - 7eaabbb0: Fix bug with attribute serialization
158
- - Updated dependencies [7eaabbb0]
159
- - @astrojs/markdown-remark@0.4.0-next.1
160
-
161
- ## 0.21.0-next.2
162
-
163
- ### Patch Changes
164
-
165
- - fbae2bc5: **Improve support for Astro config files.**
166
-
167
- In addition to properly loading `.cjs` and `.js` files in all cases, Astro now supports `astro.config.ts` files.
168
-
169
- For convenience, you may now also move your `astro.config.js` file to a top-level `config/` directory.
170
-
171
- - 2e1bded7: Improve Tailwind HMR in `dev` mode
172
- - Fix bug when using `<Markdown></Markdown>` with no content
173
- - Support `PUBLIC_` prefixed `.env` variables
174
- - Respect `tsconfig.json` and `jsconfig.json` paths as aliases
175
-
176
- ## 0.21.0-next.1
177
-
178
- ### Patch Changes
179
-
180
- - 11ee158a: Fix issue with `style` and `script` processing where siblings would be skipped
181
-
182
- Fix `Fragment` and `<>` handling for backwards compatability
183
-
184
- Fix CSS `--custom-proprty` parsing when using scoped CSS
185
-
186
- ## 0.21.0-next.0
187
-
188
- ### Minor Changes
189
-
190
- - d84bfe71: Astro 0.21 Beta release! This introduces the new version of Astro that includes:
191
-
192
- - A new, faster, Go-based compiler
193
- - A runtime backed by Vite, with faster dev experience
194
- - New features
195
-
196
- See more at https://astro.build/blog/astro-021-preview/
197
-
198
- ### Patch Changes
199
-
200
- - Updated dependencies [d84bfe71]
201
- - Updated dependencies [d84bfe71]
202
- - Updated dependencies [d84bfe71]
203
- - @astrojs/prism@0.3.0-next.0
204
- - @astrojs/markdown-remark@0.4.0-next.0
205
- - @astrojs/renderer-preact@0.3.0-next.0
206
- - @astrojs/renderer-react@0.3.0-next.0
207
- - @astrojs/renderer-svelte@0.2.0-next.0
208
- - @astrojs/renderer-vue@0.2.0-next.0
209
-
210
- ## 0.20.12
211
-
212
- ### Patch Changes
213
-
214
- - Updated dependencies [31d06880]
215
- - @astrojs/renderer-vue@0.1.9
216
-
217
- ## 0.20.11
218
-
219
- ### Patch Changes
220
-
221
- - 6813106a: Improve getStaticPaths memoization to successfully store values in the cache
222
-
223
- ## 0.20.10
224
-
225
- ### Patch Changes
226
-
227
- - dbd2f507: Adds the `astro check` command
228
-
229
- This adds a new command, `astro check` which runs diagnostics on a project. The same diagnostics run within the Astro VSCode plugin! Just run:
230
-
231
- ```shell
232
- astro check
233
- ```
234
-
235
- Which works a lot like `tsc` and will give you error messages, if any were found. We recommend adding this to your CI setup to prevent errors from being merged.
236
-
237
- ## 0.20.9
238
-
239
- ### Patch Changes
240
-
241
- - Updated dependencies [756e3769]
242
- - @astrojs/renderer-react@0.2.2
243
-
244
- ## 0.20.8
245
-
246
- ### Patch Changes
247
-
248
- - 30835635: Fixed props shadowing
249
-
250
- ## 0.20.7
251
-
252
- ### Patch Changes
253
-
254
- - 3a0dcbe9: Fix pretty byte output in build stats
255
- - 98d785af: Expose slots to components
256
-
257
- ## 0.20.6
258
-
259
- ### Patch Changes
260
-
261
- - dd92871f: During CSS bundling separate processing of `rel="preload"` from normal loading stylesheets, to preserve preloads, and source element attributes like `media`.
262
- - d771dad6: Remove check for referenced files
263
- - 9cf2df81: Improve stats logging to use `pretty-bytes` so that 20B doesn't get output as 0kB, which is accurate, but confusing
264
- - 09b2f0e4: Fix passing Markdown content through props (#1259)
265
- - Updated dependencies [97d37f8f]
266
- - @astrojs/renderer-preact@0.2.2
267
- - @astrojs/renderer-react@0.2.1
268
- - @astrojs/renderer-svelte@0.1.2
269
- - @astrojs/renderer-vue@0.1.8
270
-
271
- ## 0.20.5
272
-
273
- ### Patch Changes
274
-
275
- - b03f8771: Add human readable config verification errors
276
- - b03f8771: Sitemaps will not create entries for 404.html pages
277
- - b03f8771: Fix parsing of an empty `<pre></pre>` tag in markdown files, which expected the pre tag to have a child
278
- - b03f8771: Add new `<Code>` component, powered by the more modern shiki syntax highlighter.
279
- - b03f8771: Fix astro bin bug in some pre-ESM versions of Node v14.x
280
- - Updated dependencies [b03f8771]
281
- - Updated dependencies [b03f8771]
282
- - @astrojs/markdown-support@0.3.1
283
-
284
- ## 0.20.4
285
-
286
- ### Patch Changes
287
-
288
- - 231964f0: Adds interfaces for built-in components
289
-
290
- ## 0.20.3
291
-
292
- ### Patch Changes
293
-
294
- - 290f2032: Fix knownEntrypoint warning for \_\_astro_hoisted_scripts.js
295
-
296
- ## 0.20.2
297
-
298
- ### Patch Changes
299
-
300
- - 788c769d: # Hoisted scripts
301
-
302
- This change adds support for hoisted scripts, allowing you to bundle scripts together for a page and hoist them to the top (in the head):
303
-
304
- ```astro
305
- <script hoist>
306
- // Anything goes here!
307
- </script>
308
- ```
309
-
310
- - Updated dependencies [5d2ea578]
311
- - @astrojs/parser@0.20.2
312
-
313
- ## 0.20.1
314
-
315
- ### Patch Changes
316
-
317
- - ff92be63: Add a new "astro preview" command
318
-
319
- ## 0.20.0
320
-
321
- ### Minor Changes
322
-
323
- - affcd04f: **[BREAKING CHANGE]** stop bundling, building, and processing public files. This fixes an issue where we weren't actually honoring the "do not process" property of the public directory.
324
-
325
- If you were using the `public/` directory as expected and not using it to build files for you, then this should not be a breaking change. However, will notice that these files are no longer bundled.
326
-
327
- If you were using the `public/` directory to build files (for example, like `public/index.scss`) then you can expect this to no longer work. As per the correct Astro documentation.
328
-
329
- ### Patch Changes
330
-
331
- - Updated dependencies [397d8f3d]
332
- - @astrojs/markdown-support@0.3.0
333
-
334
- ## 0.19.4
335
-
336
- ### Patch Changes
337
-
338
- - 44fb8ebc: Remove non-null assertions, fix lint issues and enable lint in CI.
339
- - 9482fade: Makes sure Astro.resolve works in nested component folders
340
-
341
- ## 0.19.3
342
-
343
- ### Patch Changes
344
-
345
- - f9cd0310: Fix TypeScript "types" reference in package.json
346
- - f9cd0310: Improve schema validation using zod
347
- - efb41f22: Add `<Debug>` component for JavaScript-free client-side debugging.
348
-
349
- ```astro
350
- ---
351
- import Debug from 'astro/debug';
352
- const obj = { /* ... */ }
353
- ---
354
-
355
- <Debug {obj} />
356
- ```
357
-
358
- ## 0.19.2
359
-
360
- ### Patch Changes
361
-
362
- - 3e605d7e: Add real-world check for ESM-CJS compatability to preflight check
363
- - 1e0e2f41: Including Prism's `language-` class on code block `<pre>` tags
364
- - 166c9ed6: Fix an issue where getStaticPaths is called multiple times per build
365
- - c06da5dd: Add configuration options for url format behavior: buildOptions.pageDirectoryUrl & trailingSlash
366
- - c06da5dd: Move 404.html output from /404/index.html to /404.html
367
-
368
- ## 0.19.1
369
-
370
- ### Patch Changes
371
-
372
- - ece0953a: Fix CSS :global() selector bug
373
- - Updated dependencies [a421329f]
374
- - @astrojs/markdown-support@0.2.4
375
-
376
- ## 0.19.0
377
-
378
- ### Minor Changes
379
-
380
- - 239065e2: **[BREAKING]** Replace the Collections API with new file-based routing.
381
-
382
- This is a breaking change which impacts collections, pagination, and RSS support.
383
- Runtime warnings have been added to help you migrate old code to the new API.
384
- If you have trouble upgrading, reach out on https://astro.build/chat
385
-
386
- This change was made due to confusion around our Collection API, which many users found difficult to use. The new file-based routing approach should feel more familiar to anyone who has used Next.js or SvelteKit.
387
-
388
- Documentation added:
389
-
390
- - https://astro-docs-git-main-pikapkg.vercel.app/core-concepts/routing
391
- - https://astro-docs-git-main-pikapkg.vercel.app/guides/pagination
392
- - https://astro-docs-git-main-pikapkg.vercel.app/guides/rss
393
- - https://astro-docs-git-main-pikapkg.vercel.app/reference/api-reference#getstaticpaths
394
-
395
- - 239065e2: Adds support for Astro.resolve
396
-
397
- `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
398
-
399
- Astro _does not_ resolve relative links within HTML, such as images:
400
-
401
- ```html
402
- <img src="../images/penguin.png" />
403
- ```
404
-
405
- The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`:
406
-
407
- ```astro
408
- <img src={Astro.resolve('../images/penguin.png')} />
409
- ```
410
-
411
- - 239065e2: Adds support for client:only hydrator
412
-
413
- The new `client:only` hydrator allows you to define a component that should be skipped during the build and only hydrated in the browser.
414
-
415
- In most cases it is best to render placeholder content during the build, but that may not always be feasible if an NPM dependency attempts to use browser APIs as soon as is imported.
416
-
417
- **Note** If more than one renderer is included in your Astro config, you need to include a hint to determine which renderer to use. Renderers will be matched to the name provided in your Astro config, similar to `<MyComponent client:only="@astrojs/renderer-react" />`. Shorthand can be used for `@astrojs` renderers, i.e. `<MyComponent client:only="react" />` will use `@astrojs/renderer-react`.
418
-
419
- An example usage:
420
-
421
- ```jsx
422
- ---
423
- import BarChart from '../components/BarChart.jsx';
424
- ---
425
-
426
- <BarChart client:only />
427
- /**
428
- * If multiple renderers are included in the Astro config,
429
- * this will ensure that the component is hydrated with
430
- * the Preact renderer.
431
- */
432
- <BarChart client:only="preact" />
433
- /**
434
- * If a custom renderer is required, use the same name
435
- * provided in the Astro config.
436
- */
437
- <BarChart client:only="my-custom-renderer" />
438
- ```
439
-
440
- This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
441
-
442
- ### Patch Changes
443
-
444
- - @astrojs/parser@0.18.6
445
-
446
- ## 0.19.0-next.3
447
-
448
- ### Minor Changes
449
-
450
- - 1971ab3c: Adds support for client:only hydrator
451
-
452
- The new `client:only` hydrator allows you to define a component that should be skipped during the build and only hydrated in the browser.
453
-
454
- In most cases it is best to render placeholder content during the build, but that may not always be feasible if an NPM dependency attempts to use browser APIs as soon as is imported.
455
-
456
- **Note** If more than one renderer is included in your Astro config, you need to include a hint to determine which renderer to use. Renderers will be matched to the name provided in your Astro config, similar to `<MyComponent client:only="@astrojs/renderer-react" />`. Shorthand can be used for `@astrojs` renderers, i.e. `<MyComponent client:only="react" />` will use `@astrojs/renderer-react`.
457
-
458
- An example usage:
459
-
460
- ```jsx
461
- ---
462
- import BarChart from '../components/BarChart.jsx';
463
- ---
464
-
465
- <BarChart client:only />
466
- /**
467
- * If multiple renderers are included in the Astro config,
468
- * this will ensure that the component is hydrated with
469
- * the Preact renderer.
470
- */
471
- <BarChart client:only="preact" />
472
- /**
473
- * If a custom renderer is required, use the same name
474
- * provided in the Astro config.
475
- */
476
- <BarChart client:only="my-custom-renderer" />
477
- ```
478
-
479
- This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
480
-
481
- ### Patch Changes
482
-
483
- - 1f13e403: Fix CSS scoping issue
484
- - 78b5bde1: Adds support for Astro.resolve
485
-
486
- `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
487
-
488
- Astro _does not_ resolve relative links within HTML, such as images:
489
-
490
- ```html
491
- <img src="../images/penguin.png" />
492
- ```
493
-
494
- The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`:
495
-
496
- ```astro
497
- <img src={Astro.resolve('../images/penguin.png')} />
498
- ```
499
-
500
- ## 0.19.0-next.2
501
-
502
- ### Patch Changes
503
-
504
- - 089d1e7a: update dependencies, and fix a bad .flat() call
505
-
506
- ## 0.19.0-next.1
507
-
508
- ### Patch Changes
509
-
510
- - c881e71e: Revert 939b9d0 "Allow dev server port to be set by PORT environment variable"
511
-
512
- ## 0.19.0-next.0
513
-
514
- ### Minor Changes
515
-
516
- - 0f0cc2b9: **[BREAKING]** Replace the Collections API with new file-based routing.
517
-
518
- This is a breaking change which impacts collections, pagination, and RSS support.
519
- Runtime warnings have been added to help you migrate old code to the new API.
520
- If you have trouble upgrading, reach out on https://astro.build/chat
521
-
522
- This change was made due to confusion around our Collection API, which many users found difficult to use. The new file-based routing approach should feel more familiar to anyone who has used Next.js or SvelteKit.
523
-
524
- Documentation added:
525
-
526
- - https://astro-docs-git-main-pikapkg.vercel.app/core-concepts/routing
527
- - https://astro-docs-git-main-pikapkg.vercel.app/guides/pagination
528
- - https://astro-docs-git-main-pikapkg.vercel.app/guides/rss
529
- - https://astro-docs-git-main-pikapkg.vercel.app/reference/api-reference#getstaticpaths
530
-
531
- ## 0.18.10
532
-
533
- ### Patch Changes
534
-
535
- - 2321b577: - Allow Markdown with scoped styles to coexist happily with code syntax highlighting via Prism
536
- - 618ea3a8: Properly escapes script tags with nested client:load directives when passing Astro components into framework components via props. Browsers interpret script end tags in strings as script end tags, resulting in syntax errors.
537
- - 939b9d01: Allow dev server port to be set by `PORT` environment variable
538
- - Updated dependencies [1339d5e3]
539
- - @astrojs/renderer-vue@0.1.7
540
-
541
- ## 0.18.9
542
-
543
- ### Patch Changes
544
-
545
- - 8cf0e65a: Fixes a previous revert, makes sure head content is injected into the right place
546
- - 8cf0e65a: Refactor the CLI entrypoint to support stackblitz and improve the runtime check
547
-
548
- ## 0.18.8
549
-
550
- ### Patch Changes
551
-
552
- - b1959f0f: Reverts a change to head content that was breaking docs site
553
-
554
- ## 0.18.7
555
-
556
- ### Patch Changes
557
-
558
- - 268a36f3: Fixes issue with head content being rendered in the wrong place
559
- - 39df7952: Makes `fetch` available in all framework components
560
- - Updated dependencies [f7e86150]
561
- - @astrojs/renderer-preact@0.2.1
562
-
563
- ## 0.18.6
564
-
565
- ### Patch Changes
566
-
567
- - 27672096: Exclude remote srcset URLs
568
- - 03349560: Makes Astro.request available in Astro components
569
-
570
- ## 0.18.5
571
-
572
- ### Patch Changes
573
-
574
- - a1491cc6: Fix Vue components nesting
575
- - Updated dependencies [cd2b5df4]
576
- - Updated dependencies [a1491cc6]
577
- - @astrojs/parser@0.18.5
578
- - @astrojs/renderer-vue@0.1.6
579
-
580
- ## 0.18.4
581
-
582
- ### Patch Changes
583
-
584
- - Updated dependencies [460e625]
585
- - @astrojs/markdown-support@0.2.3
586
-
587
- ## 0.18.3
588
-
589
- ### Patch Changes
590
-
591
- - Updated dependencies [7015356]
592
- - @astrojs/markdown-support@0.2.2
593
-
594
- ## 0.18.2
595
-
596
- ### Patch Changes
597
-
598
- - 829d5ba: Fix TSX issue with JSX multi-rendering
599
- - 23b0d2d: Adds support for image srcset to the build
600
- - Updated dependencies [70f0a09]
601
- - Updated dependencies [fdb1c15]
602
- - @astrojs/markdown-support@0.2.1
603
- - @astrojs/renderer-vue@0.1.5
604
-
605
- ## 0.18.1
606
-
607
- ### Patch Changes
608
-
609
- - d8cebb0: Removes a warning in Svelte hydrated components
610
- - e90615f: Fixes warnings for Astro internals for fetch-content and slots
611
-
612
- ## 0.18.0
613
-
614
- ### Minor Changes
615
-
616
- - f67e8f5: New Collections API (createCollection)
617
-
618
- BREAKING CHANGE: The expected return format from createCollection() has been changed. Visit https://docs.astro.build/core-concepts/collections to learn the new API.
619
-
620
- This feature was implemented with backwards-compatible deprecation warnings, to help you find and update pages that are using the legacy API.
621
-
622
- - 40c882a: Fix url to find page with "index" at the end file name
623
- - 0340b0f: Adds support for the client:media hydrator
624
-
625
- The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage:
626
-
627
- ```jsx
628
- ---
629
- import Sidebar from '../components/Sidebar.jsx';
630
- ---
631
-
632
- <Sidebar client:media="(max-width: 700px)" />
633
- ```
634
-
635
- This allows you to define components which, for example, only run on mobile devices. A common example is a slide-in sidebar that is needed to add navigation to a mobile app, but is never displayed in desktop view.
636
-
637
- Since Astro components can have expressions, you can move common media queries to a module for sharing. For example here are defining:
638
-
639
- **media.js**
640
-
641
- ```js
642
- export const MOBILE = '(max-width: 700px)';
643
- ```
644
-
645
- And then you can reference this in your page:
646
-
647
- **index.astro**
648
-
649
- ```jsx
650
- import Sidebar from '../components/Sidebar.jsx';
651
- import { MOBILE } from '../media.js';
652
- ---(<Sidebar client:media={MOBILE} />);
653
- ```
654
-
655
- ### Patch Changes
656
-
657
- - e89a99f: This includes the props passed to a hydration component when generating the hash/id. This prevents multiple instances of the same component with differing props to be treated as the same component when hydrated by Astro.
658
- - b8af49f: Added sass support
659
- - a7e6666: compile javascript to target Node v12.x
660
- - fb8bf7e: Allow multiple Astro servers to be running simultaneously by choosing random ports if the defaults are taken.
661
- - 294a656: Adds support for global style blocks via `<style global>`
662
-
663
- Be careful with this escape hatch! This is best reserved for uses like importing styling libraries like Tailwind, or changing global CSS variables.
664
-
665
- - 8f4562a: Improve slot support, adding support for named slots and fallback content within `slot` elements.
666
-
667
- See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information.
668
-
669
- - 4a601ad: Restores the ability to use Fragment in astro components
670
- - 0e761b9: Add ability to specify hostname in devOptions
671
- - 164489f: Fix for `false` being rendered in conditionals
672
- - e3182c7: Adds a missing dependency
673
- - af935c1: Fix error when no renderers are passed
674
- - 4726e34: Fixes cases where buildOptions.site is not respected
675
- - c82e6be: Fix unfound ./snowpack-plugin-jsx.cjs error
676
- - 007c220: Remove custom Astro.fetchContent() glob implementation, use `import.meta.globEager` internally instead.
677
- - 9859f53: Correcting typo in ReadMe
678
- - b85e68a: Fixes case where custom elements are not handled within JSX expressions
679
- - Updated dependencies [a7e6666]
680
- - Updated dependencies [294a656]
681
- - Updated dependencies [bd18e14]
682
- - Updated dependencies [bd18e14]
683
- - Updated dependencies [1f79144]
684
- - Updated dependencies [b85e68a]
685
- - @astrojs/parser@0.18.0
686
- - @astrojs/renderer-preact@0.2.0
687
- - @astrojs/renderer-react@0.2.0
688
- - @astrojs/renderer-vue@0.1.4
689
-
690
- ## 0.18.0-next.7
691
-
692
- ### Patch Changes
693
-
694
- - e89a99f: This includes the props passed to a hydration component when generating the hash/id. This prevents multiple instances of the same component with differing props to be treated as the same component when hydrated by Astro.
695
- - b8af49f: Added sass support
696
- - 4726e34: Fixes cases where buildOptions.site is not respected
697
-
698
- ## 0.18.0-next.6
699
-
700
- ### Patch Changes
701
-
702
- - Updated dependencies [1f79144]
703
- - @astrojs/renderer-vue@0.1.4-next.0
704
-
705
- ## 0.18.0-next.5
706
-
707
- ### Patch Changes
708
-
709
- - 294a656: Adds support for global style blocks via `<style global>`
710
-
711
- Be careful with this escape hatch! This is best reserved for uses like importing styling libraries like Tailwind, or changing global CSS variables.
712
-
713
- - 164489f: Fix for `false` being rendered in conditionals
714
- - af935c1: Fix error when no renderers are passed
715
- - Updated dependencies [294a656]
716
- - @astrojs/parser@0.18.0-next.5
717
-
718
- ## 0.18.0-next.4
719
-
720
- ### Patch Changes
721
-
722
- - c82e6be: Fix unfound ./snowpack-plugin-jsx.cjs error
723
-
724
- ## 0.18.0-next.3
725
-
726
- ### Minor Changes
727
-
728
- - Add support for [the new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) for React 17 and Preact.
729
- - Add support for [Solid](https://www.solidjs.com/) when using the new [`@astrojs/renderer-solid`](https://npm.im/@astrojs/renderer-solid) package.
730
-
731
- ### Patch Changes
732
-
733
- - 4a601ad: Restores the ability to use Fragment in astro components
734
- - Updated dependencies [bd18e14]
735
- - Updated dependencies [bd18e14]
736
- - @astrojs/renderer-preact@0.2.0-next.0
737
- - @astrojs/renderer-react@0.2.0-next.0
738
-
739
- ## 0.18.0-next.2
740
-
741
- ### Minor Changes
742
-
743
- - f67e8f5: New Collections API (createCollection)
744
-
745
- BREAKING CHANGE: The expected return format from createCollection() has been changed. Visit https://docs.astro.build/core-concepts/collections to learn the new API.
746
-
747
- This feature was implemented with backwards-compatible deprecation warnings, to help you find and update pages that are using the legacy API.
748
-
749
- - 40c882a: Fix url to find page with "index" at the end file name
750
-
751
- ### Patch Changes
752
-
753
- - a7e6666: compile javascript to target Node v12.x
754
- - fb8bf7e: Allow multiple Astro servers to be running simultaneously by choosing random ports if the defaults are taken.
755
- - 0e761b9: Add ability to specify hostname in devOptions
756
- - 007c220: Remove custom Astro.fetchContent() glob implementation, use `import.meta.globEager` internally instead.
757
- - b85e68a: Fixes case where custom elements are not handled within JSX expressions
758
- - Updated dependencies [a7e6666]
759
- - Updated dependencies [b85e68a]
760
- - @astrojs/parser@0.18.0-next.2
761
-
762
- ## 0.18.0-next.1
763
-
764
- ### Patch Changes
765
-
766
- - e3182c7: Adds a missing dependency
767
-
768
- ## 0.18.0-next.0
769
-
770
- ### Minor Changes
771
-
772
- - 0340b0f: Adds support for the client:media hydrator
773
-
774
- The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage:
775
-
776
- ```jsx
777
- ---
778
- import Sidebar from '../components/Sidebar.jsx';
779
- ---
780
-
781
- <Sidebar client:media="(max-width: 700px)" />
782
- ```
783
-
784
- This allows you to define components which, for example, only run on mobile devices. A common example is a slide-in sidebar that is needed to add navigation to a mobile app, but is never displayed in desktop view.
785
-
786
- Since Astro components can have expressions, you can move common media queries to a module for sharing. For example here are defining:
787
-
788
- **media.js**
789
-
790
- ```js
791
- export const MOBILE = '(max-width: 700px)';
792
- ```
793
-
794
- And then you can reference this in your page:
795
-
796
- **index.astro**
797
-
798
- ```jsx
799
- import Sidebar from '../components/Sidebar.jsx';
800
- import { MOBILE } from '../media.js';
801
- ---(<Sidebar client:media={MOBILE} />);
802
- ```
803
-
804
- ### Patch Changes
805
-
806
- - 8f4562a: Improve slot support, adding support for named slots and fallback content within `slot` elements.
807
-
808
- See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information.
809
-
810
- - 9859f53: Correcting typo in ReadMe
811
-
812
- ## 0.17.3
813
-
814
- ### Patch Changes
815
-
816
- - [release/0.17] Update compile target to better support Node v12.
817
-
818
- ## 0.17.2
819
-
820
- ### Patch Changes
821
-
822
- - 1b73f95: Only show the buildOptions.site notice if not already set
823
- - fb78b76: Improve error handling for unsupported Node versions
824
- - d93f768: Add support for components defined in Frontmatter. Previously, the following code would throw an error. Now it is officially supported!
825
-
826
- ```astro
827
- ---
828
- const { level = 1 } = Astro.props;
829
- const Element = `h${level}`;
830
- ---
831
-
832
- <Element>Hello world!</Element>
833
- ```
834
-
835
- ## 0.17.1
836
-
837
- ### Patch Changes
838
-
839
- - 1e01251: Fixes bug with React renderer that would not hydrate correctly
840
- - 42a6ace: Add support for components defined in Frontmatter. Previously, the following code would throw an error. Now it is officially supported!
841
-
842
- ```astro
843
- ---
844
- const { level = 1 } = Astro.props;
845
- const Element = `h${level}`;
846
- ---
847
-
848
- <Element>Hello world!</Element>
849
- ```
850
-
851
- - Updated dependencies [1e01251]
852
- - @astrojs/renderer-react@0.1.5
853
-
854
- ## 0.17.0
855
-
856
- ### Minor Changes
857
-
858
- - 0a7b6de: ## Adds directive syntax for component hydration
859
-
860
- This change updates the syntax for partial hydration from `<Button:load />` to `<Button client:load />`.
861
-
862
- **Why?**
863
-
864
- Partial hydration is about to get super powers! This clears the way for more dynamic partial hydration, i.e. `<MobileMenu client:media="(max-width: 40em)" />`.
865
-
866
- **How to upgrade**
867
-
868
- Just update `:load`, `:idle`, and `:visible` to match the `client:load` format, thats it! Don't worry, the original syntax is still supported but it's recommended to future-proof your project by updating to the newer syntax.
869
-
870
- ## 0.16.3
871
-
872
- ### Patch Changes
873
-
874
- - 5d1ff62: Hotfix for snowpack regression
875
-
876
- ## 0.16.2
877
-
878
- ### Patch Changes
879
-
880
- - 20b4a60: Bugfix: do not override user `alias` passed into snowpack config
881
- - 42a1fd7: Add command line flag `--silent` to astro to set no output.
882
-
883
- ## 0.16.1
884
-
885
- ### Patch Changes
886
-
887
- - 2d3e369: Fix for using the snowpack polyfillNode option
888
-
889
- ## 0.16.0
890
-
891
- ### Minor Changes
892
-
893
- - d396943: Add support for [`remark`](https://github.com/remarkjs/remark#readme) and [`rehype`](https://github.com/rehypejs/rehype#readme) plugins for both `.md` pages and `.astro` pages using the [`<Markdown>`](/docs/guides/markdown-content.md) component.
894
-
895
- For example, the `astro.config.mjs` could be updated to include the following. [Read the Markdown documentation](/docs/guides/markdown-content.md) for more information.
896
-
897
- > **Note** Enabling custom `remarkPlugins` or `rehypePlugins` removes Astro's built-in support for [GitHub-flavored Markdown](https://github.github.com/gfm/) support, [Footnotes](https://github.com/remarkjs/remark-footnotes) syntax, [Smartypants](https://github.com/silvenon/remark-smartypants). You must explicitly add these plugins to your `astro.config.mjs` file, if desired.
898
-
899
- ```js
900
- export default {
901
- markdownOptions: {
902
- remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
903
- rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
904
- },
905
- };
906
- ```
907
-
908
- ### Patch Changes
909
-
910
- - Updated dependencies [d396943]
911
- - Updated dependencies [f83407e]
912
- - @astrojs/markdown-support@0.2.0
913
-
914
- ## 0.15.5
915
-
916
- ### Patch Changes
917
-
918
- - 7b4c97c: Adds support for `hydrationPolyfills` in renderers
919
-
920
- Renderers can not specify polyfills that must run before the component code runs for hydration:
921
-
922
- ```js
923
- export default {
924
- name: '@matthewp/my-renderer',
925
- server: './server.js',
926
- client: './client.js',
927
- hydrationPolyfills: ['./my-polyfill.js'],
928
- };
929
- ```
930
-
931
- These will still wait for hydration to occur, but will run before the component script does.
932
-
933
- ## 0.15.4
934
-
935
- ### Patch Changes
936
-
937
- - 6a660f1: Adds low-level custom element support that renderers can use to enable server side rendering. This will be used in renderers such as a Lit renderer.
938
- - Updated dependencies [6a660f1]
939
- - @astrojs/parser@0.15.4
940
-
941
- ## 0.15.3
942
-
943
- ### Patch Changes
944
-
945
- - 17579c2: Improves the error message when attempting to use `window` in a component.
946
-
947
- ## 0.15.2
948
-
949
- ### Patch Changes
950
-
951
- - 1e735bb: Allows passing in a class to a child component which will be scoped
952
- - e28d5cb: Improve error handling within `.astro` files (#526)
953
- - aa86057: Updates collections to match URLs by exact template filename
954
- - f721275: Fix issue where Markdown could close it's parent element early (#494)
955
-
956
- ## 0.15.1
957
-
958
- ### Patch Changes
959
-
960
- - 8865158: Fixes postcss bug with the 'from' property
961
-
962
- ## 0.15.0
963
-
964
- ### Minor Changes
965
-
966
- - a136c85: **This is a breaking change!**
967
-
968
- Astro props are now accessed from the `Astro.props` global. This change is meant to make prop definitions more ergonomic, leaning into JavaScript patterns you already know (destructuring and defaults). Astro components previously used a prop syntax borrowed from [Svelte](https://svelte.dev/docs#1_export_creates_a_component_prop), but it became clear that this was pretty confusing for most users.
969
-
970
- ```diff
971
- ---
972
- + const { text = 'Hello world!' } = Astro.props;
973
- - export let text = 'Hello world!';
974
- ---
975
-
976
- <div>{text}</div>
977
- ```
978
-
979
- [Read more about the `.astro` syntax](https://docs.astro.build/syntax/#data-and-props)
980
-
981
- ***
982
-
983
- ### How do I define what props my component accepts?
984
-
985
- Astro frontmatter scripts are TypeScript! Because of this, we can leverage TypeScript types to define the shape of your props.
986
-
987
- ```ts
988
- ---
989
- export interface Props {
990
- text?: string;
991
- }
992
- const { text = 'Hello world!' } = Astro.props as Props;
993
- ---
994
- ```
995
-
996
- > **Note** Casting `Astro.props as Props` is a temporary workaround. We expect our Language Server to handle this automatically soon!
997
-
998
- ### How do I access props I haven't explicitly defined?
999
-
1000
- One of the great things about this change is that it's straight-forward to access _any_ props. Just use `...props`!
1001
-
1002
- ```ts
1003
- ---
1004
- export interface Props {
1005
- text?: string;
1006
- [attr: string]: unknown;
1007
- }
1008
- const { text = 'Hello world!', ...props } = Astro.props as Props;
1009
- ---
1010
- ```
1011
-
1012
- ### What about prop validation?
1013
-
1014
- We considered building prop validation into Astro, but decided to leave that implementation up to you! This way, you can use any set of tools you like.
1015
-
1016
- ```ts
1017
- ---
1018
- const { text = 'Hello world!' } = Astro.props;
1019
-
1020
- if (typeof text !== 'string') throw new Error(`Expected "text" to be of type "string" but recieved "${typeof string}"!`);
1021
- ---
1022
- ```
1023
-
1024
- ### Patch Changes
1025
-
1026
- - 4cd84c6: #528 Removes unused trapWarn function
1027
- - feb9a31: Fixes livereload on static pages
1028
- - 47ac2cc: Fix #521, allowing `{...spread}` props to work again
1029
- - 5629349: Bugfix: PostCSS errors in internal Snowpack PostCSS plugin
1030
- - Updated dependencies [21dc28c]
1031
- - Updated dependencies [47ac2cc]
1032
- - @astrojs/renderer-react@0.1.4
1033
- - @astrojs/parser@0.15.0
1034
-
1035
- ## 0.14.1
1036
-
1037
- ### Patch Changes
1038
-
1039
- - 3f3e4f1: Allow `pageSize: Infinity` when creating a collection
1040
- - 44f429a: Allow node: prefix to load builtins
1041
-
1042
- ## 0.14.0
1043
-
1044
- ### Minor Changes
1045
-
1046
- - 09b5779: Removes mounting the project folder and adds a `src` root option
1047
-
1048
- ## 0.13.12
1049
-
1050
- _Rolling back to 0.13.10 to prevent a regression in the dev server output._
1051
-
1052
- ## 0.13.11
1053
-
1054
- ### Patch Changes
1055
-
1056
- - 6573bea: Fixed README header aspect ratio
1057
- - 2671b6f: Fix [472](https://github.com/withastro/astro/issues/472) by not injecting `astro-*` scoped class unless it is actually used
1058
- - b547892: Makes providing a head element on pages optional
1059
- - b547892: Allows astro documents to omit the head element
1060
- - 0abd251: Allows renderers to provide knownEntrypoint config values
1061
- - Updated dependencies [0abd251]
1062
- - @astrojs/renderer-preact@0.1.3
1063
- - @astrojs/renderer-react@0.1.3
1064
- - @astrojs/renderer-vue@0.1.3
1065
-
1066
- ## 0.13.10
1067
-
1068
- ### Patch Changes
1069
-
1070
- - 233fbcd: Fix race condition caused by parallel build
1071
- - Updated dependencies [7f8d586]
1072
- - @astrojs/parser@0.13.10
1073
-
1074
- ## 0.13.9
1075
-
1076
- ### Patch Changes
1077
-
1078
- - 3ada25d: Pass configured Tailwind config file to the tailwindcss plugin
1079
- - f9f2da4: Add repository key to all package.json
1080
- - Updated dependencies [f9f2da4]
1081
- - @astrojs/parser@0.13.9
1082
- - @astrojs/prism@0.2.2
1083
- - @astrojs/markdown-support@0.1.2
1084
-
1085
- ## 0.13.8
1086
-
1087
- ### Patch Changes
1088
-
1089
- - 251b0b5: Less verbose HMR script
1090
- - 54c291e: Fix <script type="module"> resolution
1091
- - 272769d: Improve asset resolution
1092
- - 490f2be: Add support for Fragments with `<>` and `</>` syntax
1093
- - Updated dependencies [490f2be]
1094
- - @astrojs/parser@0.13.8
1095
-
1096
- ## 0.13.7
1097
-
1098
- ### Patch Changes
1099
-
1100
- - Updated dependencies [9d4a40f]
1101
- - @astrojs/renderer-preact@0.1.2
1102
- - @astrojs/renderer-react@0.1.2
1103
-
1104
- ## 0.13.6
1105
-
1106
- ### Patch Changes
1107
-
1108
- - 016833a: Honors users HMR settings
1109
- - 73a43d9: Prevent dev from locking up on empty selectors
1110
-
1111
- ## 0.13.5
1112
-
1113
- ### Patch Changes
1114
-
1115
- - 9f51e2d: Fix issue with arrow components in Preact/React
1116
-
1117
- ## 0.13.4
1118
-
1119
- ### Patch Changes
1120
-
1121
- - 2d85409: Fixes serialization of boolean attributes
1122
- - e0989c6: Fix scoped CSS selector when class contains a colon
1123
- - 42dee79: Allows doctype to be written with any casing
1124
-
1125
- ## 0.13.3
1126
-
1127
- ### Patch Changes
1128
-
1129
- - ab2972b: Update package.json engines for esm support
1130
- - Updated dependencies [ab2972b]
1131
- - @astrojs/parser@0.13.3
1132
- - @astrojs/prism@0.2.1
1133
- - @astrojs/renderer-preact@0.1.1
1134
- - @astrojs/renderer-react@0.1.1
1135
- - @astrojs/renderer-svelte@0.1.1
1136
- - @astrojs/renderer-vue@0.1.2
1137
-
1138
- ## 0.13.2
1139
-
1140
- ### Patch Changes
1141
-
1142
- - c374a54: Bugfix: createCollection() API can be used without fetchContent()
1143
-
1144
- ## 0.13.1
1145
-
1146
- ### Patch Changes
1147
-
1148
- - 61b5590: Pass "site" config to Snowpack as "baseUrl"
1149
-
1150
- ## 0.13.0
1151
-
1152
- ### Minor Changes
1153
-
1154
- - ce93361: Set the minimum Node version in the engines field
1155
- - 1bab906: Removes a second instance of snowpack which degraded peformance
1156
-
1157
- ### Patch Changes
1158
-
1159
- - 5fbc1cb: nit: ask user to modify devOptions.port when addr in use for dev
1160
-
1161
- ## 0.12.10
1162
-
1163
- ### Patch Changes
1164
-
1165
- - 5cda571: Fix an issue with how files are watched during development
1166
-
1167
- ## 0.12.9
1168
-
1169
- ### Patch Changes
1170
-
1171
- - 21b0c73: Removes some warnings that are internal to Astro
1172
-
1173
- ## 0.12.8
1174
-
1175
- ### Patch Changes
1176
-
1177
- - f66fd1f: Fixes regression caused by attempting to prebuild an internal dep
1178
-
1179
- ## 0.12.7
1180
-
1181
- ### Patch Changes
1182
-
1183
- - f6ef53b: Fixed a bug where recursive markdown was not working properly
1184
- - 5a871f3: Fixes logging to default to the info level
1185
- - f4a747f: improve build output
1186
-
1187
- ## 0.12.6
1188
-
1189
- ### Patch Changes
1190
-
1191
- - 522c873: Fixes bug where astro build would fail when trying to log
1192
-
1193
- ## 0.12.5
1194
-
1195
- ### Patch Changes
1196
-
1197
- - b1364af: Updates logging to display messages from Snowpack
1198
- - cc532cd: Properly resolve `tailwindcss` depedency if using Tailwind
1199
- - Updated dependencies [b1364af]
1200
- - @astrojs/renderer-vue@0.1.1
1201
-
1202
- ## 0.12.4
1203
-
1204
- ### Patch Changes
1205
-
1206
- - 0d6afae: Fixes a few small bugs with the `Markdown` component when there are multiple instances on the same page
1207
- - 1d930ff: Adds [`--verbose`](https://docs.astro.build/cli.md#--verbose) and [`--reload`](https://github.com/withastro/astro/blob/main/docs/cli/#--reload) flags to the `astro` CLI.
1208
-
1209
- ## 0.12.3
1210
-
1211
- ### Patch Changes
1212
-
1213
- - fe6a985: Fixes resolution when esinstall installs Markdown and Prism components
1214
-
1215
- ## 0.12.2
1216
-
1217
- ### Patch Changes
1218
-
1219
- - 50e6f49: Fixes issues with using astro via the create script
1220
- - Updated dependencies [50e6f49]
1221
- - @astrojs/markdown-support@0.1.1
1222
-
1223
- ## 0.12.1
1224
-
1225
- ### Patch Changes
1226
-
1227
- - Updated dependencies [6de740d]
1228
- - astro-parser@0.12.1
1229
-
1230
- ## 0.12.0
1231
-
1232
- ### Minor Changes
1233
-
1234
- - 8ff7998: Enable Snowpack's [built-in HMR support](https://www.snowpack.dev/concepts/hot-module-replacement) to enable seamless live updates while editing.
1235
- - ffb6380: Support for dynamic Markdown through the content attribute.
1236
- - 8ff7998: Enabled Snowpack's built-in HMR engine for Astro pages
1237
- - 643c880: **This is a breaking change**
1238
-
1239
- Updated the rendering pipeline for `astro` to truly support any framework.
1240
-
1241
- For the vast majority of use cases, `astro` should _just work_ out of the box. Astro now depends on `@astrojs/renderer-preact`, `@astrojs/renderer-react`, `@astrojs/renderer-svelte`, and `@astrojs/renderer-vue`, rather than these being built into the core library. This opens the door for anyone to contribute additional renderers for Astro to support their favorite framework, as well as the ability for users to control which renderers should be used.
1242
-
1243
- **Features**
1244
-
1245
- - Expose a pluggable interface for controlling server-side rendering and client-side hydration
1246
- - Allows components from different frameworks to be nested within each other.
1247
- > Note: `svelte` currently does support non-destructive hydration, so components from other frameworks cannot currently be nested inside of a Svelte component. See https://github.com/sveltejs/svelte/issues/4308.
1248
-
1249
- **Breaking Changes**
1250
-
1251
- - To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `<astro-fragment>` element.
1252
-
1253
- ### Patch Changes
1254
-
1255
- - 3d20623: Fixed a bug where Astro did not conform to JSX Expressions' [`&&`](https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator) syntax.
1256
-
1257
- Also fixed a bug where `<span data-attr="" />` would render as `<span data-attr="undefined" />`.
1258
-
1259
- - 46871d2: Fixed bug where a class attribute was added to the doctype
1260
- - c9d833e: Fixed a number of bugs and re-enabled the `@astrojs/renderer-vue` renderer
1261
- - ce30bb0: Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation
1262
- - addd67d: Rename `astroConfig` to `pages` in config. Docs updated.
1263
- - d2330a5: Improve error display for missing local files
1264
- - Updated dependencies [643c880]
1265
- - Updated dependencies [d2330a5]
1266
- - Updated dependencies [c9d833e]
1267
- - @astrojs/renderer-preact@0.1.0
1268
- - @astrojs/renderer-react@0.1.0
1269
- - @astrojs/renderer-svelte@0.1.0
1270
- - @astrojs/renderer-vue@0.1.0
1271
- - astro-parser@0.12.0
1272
-
1273
- ## 0.12.0-next.1
1274
-
1275
- ### Patch Changes
1276
-
1277
- - ce30bb0: Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation
1278
-
1279
- ## 0.12.0-next.0
1280
-
1281
- ### Minor Changes
1282
-
1283
- - 8ff7998: Enable Snowpack's [built-in HMR support](https://www.snowpack.dev/concepts/hot-module-replacement) to enable seamless live updates while editing.
1284
- - 8ff7998: Enabled Snowpack's built-in HMR engine for Astro pages
1285
- - 643c880: **This is a breaking change**
1286
-
1287
- Updated the rendering pipeline for `astro` to truly support any framework.
1288
-
1289
- For the vast majority of use cases, `astro` should _just work_ out of the box. Astro now depends on `@astrojs/renderer-preact`, `@astrojs/renderer-react`, `@astrojs/renderer-svelte`, and `@astrojs/renderer-vue`, rather than these being built into the core library. This opens the door for anyone to contribute additional renderers for Astro to support their favorite framework, as well as the ability for users to control which renderers should be used.
1290
-
1291
- **Features**
1292
-
1293
- - Expose a pluggable interface for controlling server-side rendering and client-side hydration
1294
- - Allows components from different frameworks to be nested within each other.
1295
- > Note: `svelte` currently does support non-destructive hydration, so components from other frameworks cannot currently be nested inside of a Svelte component. See https://github.com/sveltejs/svelte/issues/4308.
1296
-
1297
- **Breaking Changes**
1298
-
1299
- - To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `<astro-fragment>` element.
1300
-
1301
- ### Patch Changes
1302
-
1303
- - 3d20623: Fixed a bug where Astro did not conform to JSX Expressions' [`&&`](https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator) syntax.
1304
-
1305
- Also fixed a bug where `<span data-attr="" />` would render as `<span data-attr="undefined" />`.
1306
-
1307
- - Updated dependencies [643c880]
1308
- - @astrojs/renderer-preact@0.1.0-next.0
1309
- - @astrojs/renderer-react@0.1.0-next.0
1310
- - @astrojs/renderer-svelte@0.1.0-next.0
1311
- - @astrojs/renderer-vue@0.1.0-next.0
1312
-
1313
- ## 0.11.0
1314
-
1315
- ### Minor Changes
1316
-
1317
- - 19e20f2: Add Tailwind JIT support for Astro
1318
-
1319
- ### Patch Changes
1320
-
1321
- - c43ee95: Bugfix: CSS bundling randomizes order
1322
- - 9cdada0: Fixes a few edge case bugs with Astro's handling of Markdown content
1323
- - Updated dependencies [9cdada0]
1324
- - astro-parser@0.11.0
1325
-
1326
- ## 0.10.0
1327
-
1328
- `astro` has been bumped to `0.10.0` to avoid conflicts with the previously published `astro` package (which was graciously donated to us at `v0.9.2`).
1329
-
1330
- ### Minor Changes
1331
-
1332
- - b3886c2: Enhanced **Markdown** support! Markdown processing has been moved from `micromark` to `remark` to prepare Astro for user-provided `remark` plugins _in the future_.
1333
-
1334
- This change also introduces a built-in `<Markdown>` component for embedding Markdown and any Astro-supported component format inside of `.astro` files. [Read more about Astro's Markdown support.](https://docs.astro.build/markdown/)
1335
-
1336
- ### Patch Changes
1337
-
1338
- - 9d092b5: Bugfix: Windows collection API path bug
1339
- - Updated dependencies [b3886c2]
1340
- - astro-parser@0.1.0
1341
-
1342
- ## 0.0.13
1343
-
1344
- ### Patch Changes
1345
-
1346
- - 7184149: Added canonical URL and site globals for .astro files
1347
- - b81abd5: Add CSS bundling
1348
- - 7b55d3d: chore: Remove non-null assertions
1349
- - 000464b: Fix bug when building Svelte components
1350
- - 95b1733: Fix: wait for async operation to finish
1351
- - e0a4f5f: Allow renaming for default import components
1352
- - 9feffda: Bugfix: fixes double <pre> tags generated from markdown code blocks
1353
- - 87ab4c6: Bugfix: Scoped CSS with pseudoclasses and direct children selectors
1354
- - e0fc2ca: fix: build stuck on unhandled promise reject
1355
-
1356
- ## 0.0.11
1357
-
1358
- ### Patch Changes
1359
-
1360
- - 3ad0aac: Fix `fetchContent` API bug for nested `.md` files
1361
-
1362
- ## 0.0.10
1363
-
1364
- ### Patch Changes
1365
-
1366
- - d924fcb: Fix issue with Prism component missing dependency
1367
- - Updated dependencies [d924fcb]
1368
- - astro-prism@0.0.2