diff options
59 files changed, 167 insertions, 280 deletions
diff --git a/.changeset/chilly-gorillas-wash.md b/.changeset/chilly-gorillas-wash.md deleted file mode 100644 index 543006def..000000000 --- a/.changeset/chilly-gorillas-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -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. diff --git a/.changeset/cold-bikes-float.md b/.changeset/cold-bikes-float.md deleted file mode 100644 index 3b13d84db..000000000 --- a/.changeset/cold-bikes-float.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Added sass support diff --git a/.changeset/dull-queens-melt.md b/.changeset/dull-queens-melt.md deleted file mode 100644 index 2f8e9b069..000000000 --- a/.changeset/dull-queens-melt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/renderer-solid': minor ---- - -Initial release diff --git a/.changeset/eight-mangos-pretend.md b/.changeset/eight-mangos-pretend.md deleted file mode 100644 index 7af96468b..000000000 --- a/.changeset/eight-mangos-pretend.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch -'@astrojs/parser': patch -'create-astro': patch ---- - -compile javascript to target Node v12.x diff --git a/.changeset/empty-otters-smell.md b/.changeset/empty-otters-smell.md deleted file mode 100644 index 7c73a3b94..000000000 --- a/.changeset/empty-otters-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Allow multiple Astro servers to be running simultaneously by choosing random ports if the defaults are taken. diff --git a/.changeset/empty-trainers-chew.md b/.changeset/empty-trainers-chew.md deleted file mode 100644 index 8e35c3aea..000000000 --- a/.changeset/empty-trainers-chew.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': patch -'@astrojs/parser': patch ---- - -Adds support for global style blocks via `<style global>` - -Be careful with this escape hatch! This is best reserved for uses like importing styling libraries like Tailwind, or changing global CSS variables. diff --git a/.changeset/fair-cats-count.md b/.changeset/fair-cats-count.md deleted file mode 100644 index da045a9ce..000000000 --- a/.changeset/fair-cats-count.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@astrojs/renderer-preact': minor -'@astrojs/renderer-react': minor ---- - -Switches to [the new JSX Transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) originally introduced for React v17. This also leverages the new `jsxTransformOptions` options for renderers. - -This change also removes the need for importing your Framework's `jsxFactory` directly, which means you can wave goodbye to `import React from "react";` and `import { h } from "preact";`. - -> **If you are using mutliple frameworks** and a file doesn't reference `react` or `preact`, Astro might not be able to locate the correct renderer! You can add a pragma comment like `/** @jsxImportSource preact */` to the top of your file. Alternatively, just import the JSX pragma as you traditionally would have. diff --git a/.changeset/fair-flowers-sleep.md b/.changeset/fair-flowers-sleep.md deleted file mode 100644 index 3df51ba94..000000000 --- a/.changeset/fair-flowers-sleep.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch ---- - -Improve slot support, adding support for named slots and fallback content within `slot` elements. - -See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information. diff --git a/.changeset/famous-bees-fry.md b/.changeset/famous-bees-fry.md deleted file mode 100644 index 58186da12..000000000 --- a/.changeset/famous-bees-fry.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': minor ---- - -New Collections API (createCollection) - -BREAKING CHANGE: The expected return format from createCollection() has been changed. Visit https://docs.astro.build/core-concepts/collections to learn the new API. - -This feature was implemented with backwards-compatible deprecation warnings, to help you find and update pages that are using the legacy API. diff --git a/.changeset/five-bobcats-joke.md b/.changeset/five-bobcats-joke.md deleted file mode 100644 index 6a500b54c..000000000 --- a/.changeset/five-bobcats-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -Add support for [Solid](https://www.solidjs.com/) diff --git a/.changeset/flat-apes-pump.md b/.changeset/flat-apes-pump.md deleted file mode 100644 index 457fa9677..000000000 --- a/.changeset/flat-apes-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Restores the ability to use Fragment in astro components diff --git a/.changeset/friendly-tigers-smoke.md b/.changeset/friendly-tigers-smoke.md deleted file mode 100644 index 04e6ca451..000000000 --- a/.changeset/friendly-tigers-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/renderer-solid': patch ---- - -Uses Solid's `render` function to render our components on the client. diff --git a/.changeset/funny-beers-knock.md b/.changeset/funny-beers-knock.md deleted file mode 100644 index 4d60a99a1..000000000 --- a/.changeset/funny-beers-knock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Fix url to find page with "index" at the end file name diff --git a/.changeset/good-teachers-relax.md b/.changeset/good-teachers-relax.md deleted file mode 100644 index 6048804ba..000000000 --- a/.changeset/good-teachers-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add ability to specify hostname in devOptions diff --git a/.changeset/healthy-pants-rule.md b/.changeset/healthy-pants-rule.md deleted file mode 100644 index d265f96f7..000000000 --- a/.changeset/healthy-pants-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix for `false` being rendered in conditionals diff --git a/.changeset/lemon-jars-poke.md b/.changeset/lemon-jars-poke.md deleted file mode 100644 index 5f89da5e4..000000000 --- a/.changeset/lemon-jars-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Adds a missing dependency diff --git a/.changeset/lemon-yaks-dream.md b/.changeset/lemon-yaks-dream.md deleted file mode 100644 index a1babcba9..000000000 --- a/.changeset/lemon-yaks-dream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/renderer-preact': patch ---- - -Update `check` logic to exclude false-positives from SolidJS diff --git a/.changeset/lovely-cats-sin.md b/.changeset/lovely-cats-sin.md deleted file mode 100644 index 148708f28..000000000 --- a/.changeset/lovely-cats-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix error when no renderers are passed diff --git a/.changeset/odd-cameras-wave.md b/.changeset/odd-cameras-wave.md deleted file mode 100644 index 2eb675b42..000000000 --- a/.changeset/odd-cameras-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -create-astro does not fail when removing subdirectories diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 06f4a4ce9..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "mode": "exit", - "tag": "next", - "initialVersions": { - "@example/blog": "0.0.1", - "@example/blog-multiple-authors": "0.0.1", - "@example/docs": "0.0.1", - "@example/framework-multiple": "0.0.1", - "@example/framework-preact": "0.0.1", - "@example/framework-react": "0.0.1", - "@example/framework-svelte": "0.0.1", - "@example/framework-vue": "0.0.1", - "@example/portfolio": "0.0.1", - "@example/snowpack": "0.0.1", - "@example/starter": "0.0.1", - "@example/with-markdown": "0.0.1", - "@example/with-markdown-plugins": "0.0.2", - "@example/with-nanostores": "0.0.1", - "@example/with-tailwindcss": "0.0.1", - "astro": "0.17.2", - "@astrojs/parser": "0.15.4", - "@astrojs/prism": "0.2.2", - "@astrojs/astro-test-builtins-polyfillnode": "1.2.0", - "@astrojs/astro-test-builtins-dep": "0.0.1", - "@astrojs/test-custom-element-renderer": "0.0.1", - "create-astro": "0.5.0", - "@astrojs/markdown-support": "0.2.0", - "@astrojs/renderer-preact": "0.1.3", - "@astrojs/renderer-react": "0.1.5", - "@astrojs/renderer-svelte": "0.1.1", - "@astrojs/renderer-vue": "0.1.3", - "astro-scripts": "0.0.1", - "@astrojs/language-server": "0.5.0", - "astro-vscode": "0.5.0", - "www": "1.1.0", - "@example/framework-lit": "0.0.1", - "@astrojs/renderer-lit": "0.1.0", - "docs": "0.0.2", - "@example/framework-solid": "0.0.1", - "@astrojs/renderer-solid": "0.0.1" - }, - "changesets": [ - "chilly-gorillas-wash", - "cold-bikes-float", - "dull-queens-melt", - "eight-mangos-pretend", - "empty-otters-smell", - "empty-trainers-chew", - "fair-cats-count", - "fair-flowers-sleep", - "famous-bees-fry", - "five-bobcats-joke", - "flat-apes-pump", - "friendly-tigers-smoke", - "funny-beers-knock", - "good-teachers-relax", - "healthy-pants-rule", - "heavy-pumas-cross", - "lemon-jars-poke", - "lemon-yaks-dream", - "lovely-cats-sin", - "odd-cameras-wave", - "seven-shoes-stare", - "shy-seahorses-clean", - "silver-goats-repeat", - "strange-kids-sing", - "tender-paws-smash", - "two-squids-film", - "wicked-gifts-cover" - ] -} diff --git a/.changeset/seven-shoes-stare.md b/.changeset/seven-shoes-stare.md deleted file mode 100644 index 32dcbf102..000000000 --- a/.changeset/seven-shoes-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/renderer-vue": patch ---- - -Exclude @vue/runtime-core from processing to fix Vue SSR for nested components diff --git a/.changeset/shy-seahorses-clean.md b/.changeset/shy-seahorses-clean.md deleted file mode 100644 index 7fad0fbfc..000000000 --- a/.changeset/shy-seahorses-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes cases where buildOptions.site is not respected diff --git a/.changeset/silver-goats-repeat.md b/.changeset/silver-goats-repeat.md deleted file mode 100644 index 6d0be7c42..000000000 --- a/.changeset/silver-goats-repeat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix unfound ./snowpack-plugin-jsx.cjs error diff --git a/.changeset/strange-kids-sing.md b/.changeset/strange-kids-sing.md deleted file mode 100644 index 6d03bdfec..000000000 --- a/.changeset/strange-kids-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Remove custom Astro.fetchContent() glob implementation, use `import.meta.globEager` internally instead. diff --git a/.changeset/tender-paws-smash.md b/.changeset/tender-paws-smash.md deleted file mode 100644 index 17777da67..000000000 --- a/.changeset/tender-paws-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Correcting typo in ReadMe diff --git a/.changeset/two-squids-film.md b/.changeset/two-squids-film.md deleted file mode 100644 index a955830f4..000000000 --- a/.changeset/two-squids-film.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/parser': patch ---- - -Fixes case where custom elements are not handled within JSX expressions diff --git a/.changeset/wicked-gifts-cover.md b/.changeset/wicked-gifts-cover.md deleted file mode 100644 index 087bc7ed3..000000000 --- a/.changeset/wicked-gifts-cover.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -'astro': minor ---- - -Adds support for the client:media hydrator - -The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage: - -```jsx ---- -import Sidebar from '../components/Sidebar.jsx'; ---- - -<Sidebar client:media="(max-width: 700px)" /> -``` - -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. - -Since Astro components can have expressions, you can move common media queries to a module for sharing. For example here are defining: - -**media.js** - -```js -export const MOBILE = '(max-width: 700px)'; -``` - -And then you can reference this in your page: - -**index.astro** - -```jsx -import Sidebar from '../components/Sidebar.jsx'; -import { MOBILE } from '../media.js'; ---- - -<Sidebar client:media={MOBILE} /> -``` diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 692fc5bc8..be9913527 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/blog/package.json b/examples/blog/package.json index ec1d17e2d..284c16897 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/docs/package.json b/examples/docs/package.json index 3a13dc9ed..1fc535be9 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 004aac95b..275f5d383 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@astrojs/renderer-lit": "^0.1.0", - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index ad653a52a..9e9136a4d 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 6f460f1d7..44aaf537e 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 7216c348e..7608f0fe8 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index fd5c50738..5a0444fff 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -7,8 +7,8 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7", - "@astrojs/renderer-solid": "0.1.0-next.1" + "astro": "^0.18.0", + "@astrojs/renderer-solid": "0.1.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 02f3ca10a..b8046e91d 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 6632d6dd9..39729b889 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 8bda346dd..d183c0ee9 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index 344780752..0d030e8d5 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@contentful/rich-text-html-renderer": "^14.1.2", "@contentful/rich-text-types": "^14.1.2", - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/starter/package.json b/examples/starter/package.json index d640882bf..6cea9fc49 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index fd142e197..cae357033 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7", + "astro": "^0.18.0", "rehype-add-classes": "^1.0.0", "rehype-toc": "^3.0.2", "remark-autolink-headings": "^6.0.1", diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 978d9af2f..c1a064188 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index ed5a1d358..0d9b3799d 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "dependencies": { "nanostores": "^0.3.3" diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 4928707f6..d901e755f 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "tailwindcss": "^2.1.2", - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/packages/astro-parser/CHANGELOG.md b/packages/astro-parser/CHANGELOG.md index 7ff2508d7..76a8daaa4 100644 --- a/packages/astro-parser/CHANGELOG.md +++ b/packages/astro-parser/CHANGELOG.md @@ -1,5 +1,16 @@ # @astrojs/parser +## 0.18.0 + +### Patch Changes + +- a7e6666: compile javascript to target Node v12.x +- 294a656: Adds support for global style blocks via `<style global>` + + Be careful with this escape hatch! This is best reserved for uses like importing styling libraries like Tailwind, or changing global CSS variables. + +- b85e68a: Fixes case where custom elements are not handled within JSX expressions + ## 0.18.0-next.5 ### Patch Changes diff --git a/packages/astro-parser/package.json b/packages/astro-parser/package.json index 4b08ff4b4..15ada0d89 100644 --- a/packages/astro-parser/package.json +++ b/packages/astro-parser/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/parser", - "version": "0.18.0-next.5", + "version": "0.18.0", "author": "Skypack", "license": "MIT", "type": "commonjs", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 2c2cdc1b9..0e60aaca2 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,83 @@ # astro +## 0.18.0 + +### Minor Changes + +- f67e8f5: New Collections API (createCollection) + + BREAKING CHANGE: The expected return format from createCollection() has been changed. Visit https://docs.astro.build/core-concepts/collections to learn the new API. + + This feature was implemented with backwards-compatible deprecation warnings, to help you find and update pages that are using the legacy API. + +- 40c882a: Fix url to find page with "index" at the end file name +- 0340b0f: Adds support for the client:media hydrator + + The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage: + + ```jsx + --- + import Sidebar from '../components/Sidebar.jsx'; + --- + + <Sidebar client:media="(max-width: 700px)" /> + ``` + + 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. + + Since Astro components can have expressions, you can move common media queries to a module for sharing. For example here are defining: + + **media.js** + + ```js + export const MOBILE = '(max-width: 700px)'; + ``` + + And then you can reference this in your page: + + **index.astro** + + ```jsx + import Sidebar from '../components/Sidebar.jsx'; + import { MOBILE } from '../media.js'; + ---(<Sidebar client:media={MOBILE} />); + ``` + +### Patch Changes + +- 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. +- b8af49f: Added sass support +- a7e6666: compile javascript to target Node v12.x +- fb8bf7e: Allow multiple Astro servers to be running simultaneously by choosing random ports if the defaults are taken. +- 294a656: Adds support for global style blocks via `<style global>` + + Be careful with this escape hatch! This is best reserved for uses like importing styling libraries like Tailwind, or changing global CSS variables. + +- 8f4562a: Improve slot support, adding support for named slots and fallback content within `slot` elements. + + See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information. + +- 4a601ad: Restores the ability to use Fragment in astro components +- 0e761b9: Add ability to specify hostname in devOptions +- 164489f: Fix for `false` being rendered in conditionals +- e3182c7: Adds a missing dependency +- af935c1: Fix error when no renderers are passed +- 4726e34: Fixes cases where buildOptions.site is not respected +- c82e6be: Fix unfound ./snowpack-plugin-jsx.cjs error +- 007c220: Remove custom Astro.fetchContent() glob implementation, use `import.meta.globEager` internally instead. +- 9859f53: Correcting typo in ReadMe +- b85e68a: Fixes case where custom elements are not handled within JSX expressions +- Updated dependencies [a7e6666] +- Updated dependencies [294a656] +- Updated dependencies [bd18e14] +- Updated dependencies [bd18e14] +- Updated dependencies [1f79144] +- Updated dependencies [b85e68a] + - @astrojs/parser@0.18.0 + - @astrojs/renderer-preact@0.2.0 + - @astrojs/renderer-react@0.2.0 + - @astrojs/renderer-vue@0.1.4 + ## 0.18.0-next.7 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 6712da657..b7a68c127 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.18.0-next.7", + "version": "0.18.0", "author": "Skypack", "license": "MIT", "type": "module", @@ -44,12 +44,12 @@ }, "dependencies": { "@astrojs/markdown-support": "0.2.0", - "@astrojs/parser": "0.18.0-next.5", + "@astrojs/parser": "0.18.0", "@astrojs/prism": "0.2.2", - "@astrojs/renderer-preact": "0.2.0-next.0", - "@astrojs/renderer-react": "0.2.0-next.0", + "@astrojs/renderer-preact": "0.2.0", + "@astrojs/renderer-react": "0.2.0", "@astrojs/renderer-svelte": "0.1.1", - "@astrojs/renderer-vue": "0.1.4-next.0", + "@astrojs/renderer-vue": "0.1.4", "@babel/code-frame": "^7.12.13", "@babel/core": "^7.14.6", "@babel/generator": "^7.13.9", diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index f97e695b5..714b992da 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,13 @@ # create-astro +## 0.5.1 + +### Patch Changes + +- a7e6666: compile javascript to target Node v12.x +- bd18e14: Add support for [Solid](https://www.solidjs.com/) +- d45431d: create-astro does not fail when removing subdirectories + ## 0.5.1-next.1 ### Patch Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index adb4cdf7f..c5a9a790b 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "0.5.1-next.1", + "version": "0.5.1", "type": "module", "repository": { "type": "git", diff --git a/packages/renderers/renderer-preact/CHANGELOG.md b/packages/renderers/renderer-preact/CHANGELOG.md index 868601074..29e20ad78 100644 --- a/packages/renderers/renderer-preact/CHANGELOG.md +++ b/packages/renderers/renderer-preact/CHANGELOG.md @@ -1,5 +1,19 @@ # @astrojs/renderer-preact +## 0.2.0 + +### Minor Changes + +- bd18e14: Switches to [the new JSX Transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) originally introduced for React v17. This also leverages the new `jsxTransformOptions` options for renderers. + + This change also removes the need for importing your Framework's `jsxFactory` directly, which means you can wave goodbye to `import React from "react";` and `import { h } from "preact";`. + + > **If you are using mutliple frameworks** and a file doesn't reference `react` or `preact`, Astro might not be able to locate the correct renderer! You can add a pragma comment like `/** @jsxImportSource preact */` to the top of your file. Alternatively, just import the JSX pragma as you traditionally would have. + +### Patch Changes + +- bd18e14: Update `check` logic to exclude false-positives from SolidJS + ## 0.2.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-preact/package.json b/packages/renderers/renderer-preact/package.json index 7478262ed..5b33941fe 100644 --- a/packages/renderers/renderer-preact/package.json +++ b/packages/renderers/renderer-preact/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/renderer-preact", - "version": "0.2.0-next.0", + "version": "0.2.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-react/CHANGELOG.md b/packages/renderers/renderer-react/CHANGELOG.md index 782ba60f7..89456330e 100644 --- a/packages/renderers/renderer-react/CHANGELOG.md +++ b/packages/renderers/renderer-react/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/renderer-react +## 0.2.0 + +### Minor Changes + +- bd18e14: Switches to [the new JSX Transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) originally introduced for React v17. This also leverages the new `jsxTransformOptions` options for renderers. + + This change also removes the need for importing your Framework's `jsxFactory` directly, which means you can wave goodbye to `import React from "react";` and `import { h } from "preact";`. + + > **If you are using mutliple frameworks** and a file doesn't reference `react` or `preact`, Astro might not be able to locate the correct renderer! You can add a pragma comment like `/** @jsxImportSource preact */` to the top of your file. Alternatively, just import the JSX pragma as you traditionally would have. + ## 0.2.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-react/package.json b/packages/renderers/renderer-react/package.json index af9dad246..404a3e042 100644 --- a/packages/renderers/renderer-react/package.json +++ b/packages/renderers/renderer-react/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/renderer-react", - "version": "0.2.0-next.0", + "version": "0.2.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-solid/CHANGELOG.md b/packages/renderers/renderer-solid/CHANGELOG.md index b83cdf526..a1cf6c249 100644 --- a/packages/renderers/renderer-solid/CHANGELOG.md +++ b/packages/renderers/renderer-solid/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/renderer-solid +## 0.1.0 + +### Minor Changes + +- bd18e14: Initial release + +### Patch Changes + +- bef5103: Uses Solid's `render` function to render our components on the client. + ## 0.1.0-next.1 ### Patch Changes diff --git a/packages/renderers/renderer-solid/package.json b/packages/renderers/renderer-solid/package.json index 74a1c4e99..06356641f 100644 --- a/packages/renderers/renderer-solid/package.json +++ b/packages/renderers/renderer-solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/renderer-solid", - "version": "0.1.0-next.1", + "version": "0.1.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-vue/CHANGELOG.md b/packages/renderers/renderer-vue/CHANGELOG.md index eb9967138..2091c7f64 100644 --- a/packages/renderers/renderer-vue/CHANGELOG.md +++ b/packages/renderers/renderer-vue/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/renderer-vue +## 0.1.4 + +### Patch Changes + +- 1f79144: Exclude @vue/runtime-core from processing to fix Vue SSR for nested components + ## 0.1.4-next.0 ### Patch Changes diff --git a/packages/renderers/renderer-vue/package.json b/packages/renderers/renderer-vue/package.json index 4087a9343..5f54ef595 100644 --- a/packages/renderers/renderer-vue/package.json +++ b/packages/renderers/renderer-vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/renderer-vue", - "version": "0.1.4-next.0", + "version": "0.1.4", "type": "module", "exports": { ".": "./index.js", diff --git a/www/package.json b/www/package.json index 67dea12c8..6bcbb6031 100644 --- a/www/package.json +++ b/www/package.json @@ -7,6 +7,6 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.18.0-next.7" + "astro": "^0.18.0" } } |