diff --git a/.changeset/warm-socks-exercise.md b/.changeset/warm-socks-exercise.md new file mode 100644 index 0000000000..f776943130 --- /dev/null +++ b/.changeset/warm-socks-exercise.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Add rawContent and compiledContent to MD layout props diff --git a/examples/basics/package.json b/examples/basics/package.json index b9e02f62d3..ae8810318c 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 281a1ea315..3574c1718c 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 4d8af4e8b8..7a0ea3ca7b 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -11,6 +11,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/component/package.json b/examples/component/package.json index 863bd4b568..ee4684ec4d 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --root demo preview" }, "devDependencies": { - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 06fc1a556a..7439a843bb 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -21,6 +21,6 @@ "devDependencies": { "@astrojs/preact": "^1.0.0", "@astrojs/react": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 9e05dab8ac..4dee55a6de 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 8ef09e8ee1..ba26b4f5fd 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/alpinejs": "^3.7.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 9e6b4ab6a4..5ab433f422 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/lit": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index fe78e3a609..88090bb3dd 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,7 +15,7 @@ "@astrojs/solid-js": "^1.0.0", "@astrojs/svelte": "^1.0.0", "@astrojs/vue": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 866635ee93..130351e7ec 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index ce1af197d9..3dcd62de47 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -13,7 +13,7 @@ "@astrojs/react": "^1.0.0", "@types/react": "^18.0.10", "@types/react-dom": "^18.0.5", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index bb070711c9..c7492fff34 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/solid-js": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 27e337fbf1..439de97c07 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/svelte": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 64d6f0b366..3012ed2f28 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/vue": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "vue": "^3.2.37" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 529dcfa67f..a9e3177927 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index d1fbc949bb..270e6d074d 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 8b47ea2d21..12d2f338ae 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1", + "astro": "^1.0.0", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index c14725f11e..549da23417 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@astrojs/node": "^1.0.0", "@astrojs/svelte": "^1.0.0", - "astro": "^1.0.1", + "astro": "^1.0.0", "concurrently": "^7.2.1", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/subpath/package.json b/examples/subpath/package.json index e6b8c5dbda..14fe1204cc 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/react": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index d796b7955d..2085838d47 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^1.0.0", - "astro": "^1.0.1", + "astro": "^1.0.0", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.0.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 4bd2d86808..112eedb4c5 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index ffae9fee15..558b8f2bdc 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@astrojs/mdx": "^0.8.1", "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1", + "astro": "^1.0.0", "preact": "^10.6.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 30b1347ead..de962c70f4 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -16,6 +16,6 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.0" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index d95e2d6096..1391a72aea 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^1.0.0", - "astro": "^1.0.1", + "astro": "^1.0.0", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 5a8323eb74..b4c4e61acf 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.1", + "astro": "^1.0.0", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index aa56c5eccf..4da833516a 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "devDependencies": { - "astro": "^1.0.1", + "astro": "^1.0.0", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index fef7fd7167..4d648c5701 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,11 +1,5 @@ # astro -## 1.0.1 - -### Patch Changes - -- [#4222](https://github.com/withastro/astro/pull/4222) [`b5ef1c211`](https://github.com/withastro/astro/commit/b5ef1c2113693523f10479d472e855ab9c41395d) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Add rawContent and compiledContent to MD layout props - ## 1.0.0 > Astro v1.0 is out! Read the [official announcement post](https://astro.build/blog/astro-1/). @@ -456,7 +450,18 @@ The **Astro v1.0.0 Release Candidate** comes includes new features, tons of bug Astro supports streaming in its templates. Any time Astro encounters an async boundary it will stream out HTML that occurs before it. For example: ```astro + --- + import LoadTodos from '../components/LoadTodos.astro'; + --- + + + App + + + + + ``` In this arbtrary example Astro will streaming out the `` section and everything else until it encounters `` and then stop. LoadTodos, which is also an Astro component will stream its contents as well; stopping and waiting at any other asynchronous components. @@ -464,7 +469,15 @@ The **Astro v1.0.0 Release Candidate** comes includes new features, tons of bug As part of this Astro also now supports async iterables within its templates. This means you can do this: ```astro - + ``` Which will stream out `
  • `s one at a time, waiting a second between each. @@ -2605,7 +2618,9 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve 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): ```astro - + ``` - Updated dependencies [5d2ea578] diff --git a/packages/astro/package.json b/packages/astro/package.json index 36e017eeb1..6d985aa3f5 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.1", + "version": "1.0.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a45019341c..6b77dc3334 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,14 +56,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.7.3 dependencies: preact: 10.10.1 @@ -73,14 +73,14 @@ importers: examples/component: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -96,7 +96,7 @@ importers: '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -115,7 +115,7 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: astro: link:../../packages/astro @@ -123,7 +123,7 @@ importers: specifiers: '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^1.0.1 + astro: ^1.0.0 dependencies: alpinejs: 3.10.3 devDependencies: @@ -134,7 +134,7 @@ importers: specifiers: '@astrojs/lit': ^1.0.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.1 + astro: ^1.0.0 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -150,7 +150,7 @@ importers: '@astrojs/solid-js': ^1.0.0 '@astrojs/svelte': ^1.0.0 '@astrojs/vue': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -175,7 +175,7 @@ importers: examples/framework-preact: specifiers: '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.7.3 dependencies: preact: 10.10.1 @@ -188,7 +188,7 @@ importers: '@astrojs/react': ^1.0.0 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.0.1 + astro: ^1.0.0 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -203,7 +203,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 solid-js: ^1.4.3 dependencies: solid-js: 1.4.8 @@ -214,7 +214,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 svelte: ^3.48.0 dependencies: svelte: 3.49.0 @@ -225,7 +225,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -235,20 +235,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -262,7 +262,7 @@ importers: specifiers: '@astrojs/node': ^1.0.0 '@astrojs/svelte': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 concurrently: ^7.2.1 lightcookie: ^1.0.25 svelte: ^3.48.0 @@ -282,7 +282,7 @@ importers: examples/subpath: specifiers: '@astrojs/react': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -295,7 +295,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -313,7 +313,7 @@ importers: examples/with-markdown-shiki: specifiers: '@astrojs/markdown-remark': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro @@ -322,7 +322,7 @@ importers: specifiers: '@astrojs/mdx': ^0.8.1 '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 preact: ^10.6.5 devDependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -334,7 +334,7 @@ importers: specifiers: '@astrojs/preact': ^1.0.0 '@nanostores/preact': ^0.1.3 - astro: ^1.0.1 + astro: ^1.0.0 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -348,7 +348,7 @@ importers: examples/with-tailwindcss: specifiers: '@astrojs/tailwind': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.0 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -363,7 +363,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: @@ -373,7 +373,7 @@ importers: examples/with-vitest: specifiers: - astro: ^1.0.1 + astro: ^1.0.0 vitest: ^0.20.3 devDependencies: astro: link:../../packages/astro