diff --git a/.changeset/pre.json b/.changeset/pre.json index 5bae7a5d6..d1850515f 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -23,5 +23,11 @@ "prettier-plugin-astro": "0.0.3", "www": "1.1.0" }, - "changesets": [] + "changesets": [ + "brave-panthers-heal", + "cold-paws-remember", + "khaki-avocados-lie", + "shaggy-countries-battle", + "smooth-toes-tan" + ] } diff --git a/examples/astro-markdown/package.json b/examples/astro-markdown/package.json index 5fa32485f..4dc9b59f4 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.11.0", + "astro": "0.12.0-next.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/blog/package.json b/examples/blog/package.json index 3075b2afe..068e4a0a4 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.11.0", + "astro": "^0.12.0-next.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/doc/package.json b/examples/doc/package.json index e6dc1a8f5..1d69aad73 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.11.0", + "astro": "^0.12.0-next.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/kitchen-sink/package.json b/examples/kitchen-sink/package.json index d3c29befa..ecab9ac6e 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.11.0", + "astro": "^0.12.0-next.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 298d68383..48a427145 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.11.0" + "astro": "^0.12.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/remote-markdown/package.json b/examples/remote-markdown/package.json index bd581fac9..e88dbab2e 100644 --- a/examples/remote-markdown/package.json +++ b/examples/remote-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.11.0", + "astro": "0.12.0-next.0", "nodemon": "^2.0.7" }, "snowpack": { diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index c2f61044a..d1907feba 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -11,7 +11,7 @@ "lint": "prettier --check \"src/**/*.js\"" }, "dependencies": { - "astro": "^0.11.0", + "astro": "^0.12.0-next.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.11.0", + "astro": "^0.12.0-next.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 700be8e67..19fa49a42 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.11.0", + "astro": "^0.12.0-next.0", "tailwindcss": "^2.1.2" }, "snowpack": { diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 4cb4c9fba..9a05332f3 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,39 @@ # astro +## 0.12.0-next.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. +- 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 ``. + +- Updated dependencies [643c880] + - @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 + ## 0.11.0 ### Minor Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 309f10e36..c5482d1d7 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.11.0", + "version": "0.12.0-next.0", "author": "Skypack", "license": "MIT", "type": "module", @@ -32,10 +32,10 @@ "test": "uvu test -i fixtures -i benchmark -i test-utils.js" }, "dependencies": { - "@astrojs/renderer-preact": "0.0.1", - "@astrojs/renderer-react": "0.0.1", - "@astrojs/renderer-svelte": "0.0.1", - "@astrojs/renderer-vue": "0.0.1", + "@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", "@babel/code-frame": "^7.12.13", "@babel/generator": "^7.13.9", "@babel/parser": "^7.13.15", diff --git a/packages/renderers/renderer-preact/CHANGELOG.md b/packages/renderers/renderer-preact/CHANGELOG.md new file mode 100644 index 000000000..d74189a72 --- /dev/null +++ b/packages/renderers/renderer-preact/CHANGELOG.md @@ -0,0 +1,6 @@ +# @astrojs/renderer-preact + +## 0.1.0-next.0 +### Minor Changes + +- 643c880: Initial release diff --git a/packages/renderers/renderer-preact/package.json b/packages/renderers/renderer-preact/package.json index c6bb915e9..3feed2bff 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.0.1", + "version": "0.1.0-next.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-react/CHANGELOG.md b/packages/renderers/renderer-react/CHANGELOG.md new file mode 100644 index 000000000..a4f91f761 --- /dev/null +++ b/packages/renderers/renderer-react/CHANGELOG.md @@ -0,0 +1,6 @@ +# @astrojs/renderer-react + +## 0.1.0-next.0 +### Minor Changes + +- 643c880: Initial release diff --git a/packages/renderers/renderer-react/package.json b/packages/renderers/renderer-react/package.json index 91151b915..b70b347b2 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.0.1", + "version": "0.1.0-next.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-svelte/CHANGELOG.md b/packages/renderers/renderer-svelte/CHANGELOG.md new file mode 100644 index 000000000..5cd51e11e --- /dev/null +++ b/packages/renderers/renderer-svelte/CHANGELOG.md @@ -0,0 +1,6 @@ +# @astrojs/renderer-svelte + +## 0.1.0-next.0 +### Minor Changes + +- 643c880: Initial release diff --git a/packages/renderers/renderer-svelte/package.json b/packages/renderers/renderer-svelte/package.json index 8442f51b5..1a073f9f2 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.0.1", + "version": "0.1.0-next.0", "type": "module", "exports": { ".": "./index.js", diff --git a/packages/renderers/renderer-vue/CHANGELOG.md b/packages/renderers/renderer-vue/CHANGELOG.md new file mode 100644 index 000000000..52a025687 --- /dev/null +++ b/packages/renderers/renderer-vue/CHANGELOG.md @@ -0,0 +1,6 @@ +# @astrojs/renderer-vue + +## 0.1.0-next.0 +### Minor Changes + +- 643c880: Initial release diff --git a/packages/renderers/renderer-vue/package.json b/packages/renderers/renderer-vue/package.json index a01084328..3d2cb4062 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.0.1", + "version": "0.1.0-next.0", "type": "module", "exports": { ".": "./index.js", diff --git a/tools/astro-languageserver/package.json b/tools/astro-languageserver/package.json index 9c79da104..0a797fa9e 100644 --- a/tools/astro-languageserver/package.json +++ b/tools/astro-languageserver/package.json @@ -15,7 +15,7 @@ "dev": "astro-scripts dev 'src/index.ts'" }, "devDependencies": { - "astro": "^0.11.0", + "astro": "^0.12.0-next.0", "astro-scripts": "0.0.1", "source-map": "^0.7.3", "typescript": "^4.3.1-rc", diff --git a/www/package.json b/www/package.json index 3cded0ff6..6d8ddca24 100644 --- a/www/package.json +++ b/www/package.json @@ -6,6 +6,6 @@ "build": "astro build ." }, "devDependencies": { - "astro": "^0.11.0" + "astro": "^0.12.0-next.0" } }