diff --git a/.changeset/brave-panthers-heal.md b/.changeset/brave-panthers-heal.md deleted file mode 100644 index 59f12df503c72..0000000000000 --- a/.changeset/brave-panthers-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Enable Snowpack's [built-in HMR support](https://www.snowpack.dev/concepts/hot-module-replacement) to enable seamless live updates while editing. diff --git a/.changeset/cold-paws-remember.md b/.changeset/cold-paws-remember.md deleted file mode 100644 index 482d8e94dd5d2..0000000000000 --- a/.changeset/cold-paws-remember.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch ---- - -Fixed a bug where Astro did not conform to JSX Expressions' [`&&`](https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator) syntax. - -Also fixed a bug where `` would render as ``. diff --git a/.changeset/fast-colts-shout.md b/.changeset/fast-colts-shout.md deleted file mode 100644 index 40932357ecad8..0000000000000 --- a/.changeset/fast-colts-shout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixed bug where a class attribute was added to the doctype diff --git a/.changeset/forty-rice-provide.md b/.changeset/forty-rice-provide.md deleted file mode 100644 index cff1ec12390e6..0000000000000 --- a/.changeset/forty-rice-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Support for dynamic Markdown through the content attribute. diff --git a/.changeset/khaki-avocados-lie.md b/.changeset/khaki-avocados-lie.md deleted file mode 100644 index 3a47406f5b074..0000000000000 --- a/.changeset/khaki-avocados-lie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Enabled Snowpack's built-in HMR engine for Astro pages diff --git a/.changeset/long-masks-itch.md b/.changeset/long-masks-itch.md deleted file mode 100644 index 6828d9482f4ab..0000000000000 --- a/.changeset/long-masks-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixed a number of bugs and re-enabled the `@astrojs/renderer-vue` renderer diff --git a/.changeset/nine-buttons-decide.md b/.changeset/nine-buttons-decide.md deleted file mode 100644 index 2c1dc395969b1..0000000000000 --- a/.changeset/nine-buttons-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 97a5d10dc454e..0000000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "mode": "exit", - "tag": "next", - "initialVersions": { - "@example/astro-markdown": "0.0.1", - "@example/blog": "0.0.1", - "@example/doc": "0.0.1", - "@example/kitchen-sink": "1.0.0", - "@example/portfolio": "0.0.1", - "@example/remote-markdown": "0.0.1", - "@example/snowpack": "3.0.0", - "@example/tailwindcss": "0.0.1", - "astro": "0.11.0", - "astro-parser": "0.11.0", - "astro-prism": "0.0.2", - "@astrojs/renderer-preact": "0.0.1", - "@astrojs/renderer-react": "0.0.1", - "@astrojs/renderer-svelte": "0.0.1", - "@astrojs/renderer-vue": "0.0.1", - "astro-scripts": "0.0.1", - "astro-languageserver": "0.4.0", - "astro-vscode": "0.4.3", - "prettier-plugin-astro": "0.0.3", - "www": "1.1.0" - }, - "changesets": [ - "brave-panthers-heal", - "cold-paws-remember", - "khaki-avocados-lie", - "nine-buttons-decide", - "shaggy-countries-battle", - "smooth-toes-tan" - ] -} diff --git a/.changeset/shaggy-countries-battle.md b/.changeset/shaggy-countries-battle.md deleted file mode 100644 index 66b11cac8f977..0000000000000 --- a/.changeset/shaggy-countries-battle.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'astro': minor ---- - -**This is a breaking change** - -Updated the rendering pipeline for `astro` to truly support any framework. - -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. - -**Features** - -- Expose a pluggable interface for controlling server-side rendering and client-side hydration -- Allows components from different frameworks to be nested within each other. - > 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. - -**Breaking Changes** - -- To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `` element. diff --git a/.changeset/smooth-toes-tan.md b/.changeset/smooth-toes-tan.md deleted file mode 100644 index bb52942ebc6ee..0000000000000 --- a/.changeset/smooth-toes-tan.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@astrojs/renderer-preact': minor -'@astrojs/renderer-react': minor -'@astrojs/renderer-svelte': minor -'@astrojs/renderer-vue': minor ---- - -Initial release diff --git a/.changeset/sour-students-remain.md b/.changeset/sour-students-remain.md deleted file mode 100644 index 2cc82193c8f66..0000000000000 --- a/.changeset/sour-students-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Rename `astroConfig` to `pages` in config. Docs updated. diff --git a/.changeset/thirty-fans-know.md b/.changeset/thirty-fans-know.md deleted file mode 100644 index ff80109313dfb..0000000000000 --- a/.changeset/thirty-fans-know.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'astro-parser': patch ---- - -Improve error display for missing local files diff --git a/.changeset/wise-olives-type.md b/.changeset/wise-olives-type.md deleted file mode 100644 index 9e63363b05d70..0000000000000 --- a/.changeset/wise-olives-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/renderer-svelte': patch ---- - -Fixed a bug that was preventing SSR from working diff --git a/examples/astro-markdown/package.json b/examples/astro-markdown/package.json index c0c590dc059c6..b4baa34ac6e9a 100644 --- a/examples/astro-markdown/package.json +++ b/examples/astro-markdown/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "0.12.0-next.1", + "astro": "0.12.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/blog/package.json b/examples/blog/package.json index 415764dc3d301..0fb5029d1669e 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/doc/package.json b/examples/doc/package.json index a6e79c7f17fd3..45fa23d497678 100644 --- a/examples/doc/package.json +++ b/examples/doc/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/kitchen-sink/package.json b/examples/kitchen-sink/package.json index 781ef4c4d6437..c3c3d67aea1a9 100644 --- a/examples/kitchen-sink/package.json +++ b/examples/kitchen-sink/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 949fd33428df6..726d8da2ff90a 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "^0.12.0-next.1" + "astro": "^0.12.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index a2f5458584600..dd07f866df3f6 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -11,7 +11,7 @@ "lint": "prettier --check \"src/**/*.js\"" }, "dependencies": { - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "date-fns": "^2.19.0", "deepmerge": "^4.2.2", "docsearch.js": "^2.6.3", @@ -25,7 +25,7 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4", "@contentful/rich-text-html-renderer": "^14.1.2", "@contentful/rich-text-types": "^14.1.2", - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "eleventy-plugin-nesting-toc": "^1.2.0", "luxon": "^1.25.0", "markdown-it": "^12.0.2", diff --git a/examples/tailwindcss/package.json b/examples/tailwindcss/package.json index 0e191f2de8a81..1a409f744959c 100644 --- a/examples/tailwindcss/package.json +++ b/examples/tailwindcss/package.json @@ -8,7 +8,7 @@ "astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'" }, "devDependencies": { - "astro": "^0.12.0-next.1", + "astro": "^0.12.0", "tailwindcss": "^2.1.2" }, "snowpack": { diff --git a/packages/astro-parser/CHANGELOG.md b/packages/astro-parser/CHANGELOG.md index c40028bfc3c3f..42e127b04a5b3 100644 --- a/packages/astro-parser/CHANGELOG.md +++ b/packages/astro-parser/CHANGELOG.md @@ -1,5 +1,11 @@ # astro-parser +## 0.12.0 + +### Patch Changes + +- d2330a5: Improve error display for missing local files + ### 0.12.0-next.0 ### Patch Changes diff --git a/packages/astro-parser/package.json b/packages/astro-parser/package.json index 64ac0d7705c20..e58e7c4cda04d 100644 --- a/packages/astro-parser/package.json +++ b/packages/astro-parser/package.json @@ -1,6 +1,6 @@ { "name": "astro-parser", - "version": "0.12.0-next.0", + "version": "0.12.0", "author": "Skypack", "license": "MIT", "type": "commonjs", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 1be8982a1a3e5..26b76ef4cebcd 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,48 @@ # astro +## 0.12.0 + +### Minor Changes + +- 8ff7998: Enable Snowpack's [built-in HMR support](https://www.snowpack.dev/concepts/hot-module-replacement) to enable seamless live updates while editing. +- ffb6380: Support for dynamic Markdown through the content attribute. +- 8ff7998: Enabled Snowpack's built-in HMR engine for Astro pages +- 643c880: **This is a breaking change** + + Updated the rendering pipeline for `astro` to truly support any framework. + + 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. + + **Features** + + - Expose a pluggable interface for controlling server-side rendering and client-side hydration + - Allows components from different frameworks to be nested within each other. + > 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. + + **Breaking Changes** + + - To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `` element. + +### Patch Changes + +- 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. + + Also fixed a bug where `` would render as ``. + +- 46871d2: Fixed bug where a class attribute was added to the doctype +- c9d833e: Fixed a number of bugs and re-enabled the `@astrojs/renderer-vue` renderer +- ce30bb0: Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation +- addd67d: Rename `astroConfig` to `pages` in config. Docs updated. +- d2330a5: Improve error display for missing local files +- Updated dependencies [643c880] +- Updated dependencies [d2330a5] +- Updated dependencies [c9d833e] + - @astrojs/renderer-preact@0.1.0 + - @astrojs/renderer-react@0.1.0 + - @astrojs/renderer-svelte@0.1.0 + - @astrojs/renderer-vue@0.1.0 + - astro-parser@0.12.0 + ## 0.12.0-next.1 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 36266a05ff0f2..0319f7e1dc0dd 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.12.0-next.1", + "version": "0.12.0", "author": "Skypack", "license": "MIT", "type": "module", @@ -35,10 +35,10 @@ "test": "uvu test -i fixtures -i benchmark -i test-utils.js" }, "dependencies": { - "@astrojs/renderer-preact": "0.1.0-next.0", - "@astrojs/renderer-react": "0.1.0-next.0", - "@astrojs/renderer-svelte": "0.1.0-next.0", - "@astrojs/renderer-vue": "0.1.0-next.0", + "@astrojs/renderer-preact": "0.1.0", + "@astrojs/renderer-react": "0.1.0", + "@astrojs/renderer-svelte": "0.1.0", + "@astrojs/renderer-vue": "0.1.0", "@babel/code-frame": "^7.12.13", "@babel/generator": "^7.13.9", "@babel/parser": "^7.13.15", @@ -48,7 +48,7 @@ "@snowpack/plugin-sass": "^1.4.0", "acorn": "^7.4.0", "astring": "^1.7.4", - "astro-parser": "0.12.0-next.0", + "astro-parser": "0.12.0", "astro-prism": "0.0.2", "autoprefixer": "^10.2.5", "cheerio": "^1.0.0-rc.6", diff --git a/packages/renderers/renderer-preact/CHANGELOG.md b/packages/renderers/renderer-preact/CHANGELOG.md index 77d9022ce244b..8b9e19fe1fbee 100644 --- a/packages/renderers/renderer-preact/CHANGELOG.md +++ b/packages/renderers/renderer-preact/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/renderer-preact +## 0.1.0 + +### Minor Changes + +- 643c880: Initial release + ## 0.1.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-preact/package.json b/packages/renderers/renderer-preact/package.json index 3feed2bff21fb..27ad7d3e77fbd 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.1.0-next.0", + "version": "0.1.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-react/CHANGELOG.md b/packages/renderers/renderer-react/CHANGELOG.md index 26b55f32c1577..00776de71ccea 100644 --- a/packages/renderers/renderer-react/CHANGELOG.md +++ b/packages/renderers/renderer-react/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/renderer-react +## 0.1.0 + +### Minor Changes + +- 643c880: Initial release + ## 0.1.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-react/package.json b/packages/renderers/renderer-react/package.json index b70b347b27a61..81de1c6e5d846 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.1.0-next.0", + "version": "0.1.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-svelte/CHANGELOG.md b/packages/renderers/renderer-svelte/CHANGELOG.md index fb3800c485d99..e7c5fd83fa29a 100644 --- a/packages/renderers/renderer-svelte/CHANGELOG.md +++ b/packages/renderers/renderer-svelte/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/renderer-svelte +## 0.1.0 + +### Minor Changes + +- 643c880: Initial release + +### Patch Changes + +- c9d833e: Fixed a bug that was preventing SSR from working + ## 0.1.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-svelte/package.json b/packages/renderers/renderer-svelte/package.json index 1a073f9f2d04c..d02f9f16fda31 100644 --- a/packages/renderers/renderer-svelte/package.json +++ b/packages/renderers/renderer-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/renderer-svelte", - "version": "0.1.0-next.0", + "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 b0a90224a8150..c0851c8a97ece 100644 --- a/packages/renderers/renderer-vue/CHANGELOG.md +++ b/packages/renderers/renderer-vue/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/renderer-vue +## 0.1.0 + +### Minor Changes + +- 643c880: Initial release + ## 0.1.0-next.0 ### Minor Changes diff --git a/packages/renderers/renderer-vue/package.json b/packages/renderers/renderer-vue/package.json index 3d2cb40626eb0..a9486073a7ba9 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.0-next.0", + "version": "0.1.0", "type": "module", "exports": { ".": "./index.js", diff --git a/www/package.json b/www/package.json index e1b357b20f4fd..5fd4c8f697abb 100644 --- a/www/package.json +++ b/www/package.json @@ -6,6 +6,6 @@ "build": "astro build ." }, "devDependencies": { - "astro": "^0.12.0-next.1" + "astro": "^0.12.0" } }