diff --git a/.changeset/warm-socks-exercise.md b/.changeset/warm-socks-exercise.md deleted file mode 100644 index f77694313..000000000 --- a/.changeset/warm-socks-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add rawContent and compiledContent to MD layout props diff --git a/examples/basics/package.json b/examples/basics/package.json index ae8810318..b9e02f62d 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.0" + "astro": "^1.0.1" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 3574c1718..281a1ea31 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.0" + "astro": "^1.0.1" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 7a0ea3ca7..4d8af4e8b 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.0" + "astro": "^1.0.1" } } diff --git a/examples/component/package.json b/examples/component/package.json index ee4684ec4..863bd4b56 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --root demo preview" }, "devDependencies": { - "astro": "^1.0.0" + "astro": "^1.0.1" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 7439a843b..06fc1a556 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.0" + "astro": "^1.0.1" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 4dee55a6d..9e05dab8a 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.0" + "astro": "^1.0.1" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index ba26b4f5f..8ef09e8ee 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.0" + "astro": "^1.0.1" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 5ab433f42..9e6b4ab6a 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.0" + "astro": "^1.0.1" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 88090bb3d..fe78e3a60 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.0" + "astro": "^1.0.1" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 130351e7e..866635ee9 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.0" + "astro": "^1.0.1" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 3dcd62de4..ce1af197d 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.0" + "astro": "^1.0.1" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index c7492fff3..bb070711c 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.0" + "astro": "^1.0.1" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 439de97c0..27e337fbf 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.0" + "astro": "^1.0.1" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 3012ed2f2..64d6f0b36 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.0" + "astro": "^1.0.1" }, "dependencies": { "vue": "^3.2.37" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index a9e317792..529dcfa67 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.0" + "astro": "^1.0.1" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 270e6d074..d1fbc949b 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.0" + "astro": "^1.0.1" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 12d2f338a..8b47ea2d2 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.0", - "astro": "^1.0.0", + "astro": "^1.0.1", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 549da2341..c14725f11 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.0", + "astro": "^1.0.1", "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 14fe1204c..e6b8c5dbd 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/react": "^1.0.0", - "astro": "^1.0.0" + "astro": "^1.0.1" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 2085838d4..d796b7955 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.0", + "astro": "^1.0.1", "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 112eedb4c..4bd2d8680 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.0" + "astro": "^1.0.1" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 558b8f2bd..ffae9fee1 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.0", + "astro": "^1.0.1", "preact": "^10.6.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index de962c70f..30b1347ea 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.0" + "astro": "^1.0.1" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 1391a72ae..d95e2d609 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.0", + "astro": "^1.0.1", "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 b4c4e61ac..5a8323eb7 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.0", + "astro": "^1.0.1", "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 4da833516..aa56c5ecc 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "devDependencies": { - "astro": "^1.0.0", + "astro": "^1.0.1", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 4d648c570..fef7fd716 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,11 @@ # 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/). @@ -450,18 +456,7 @@ 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. @@ -469,15 +464,7 @@ 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. @@ -2618,9 +2605,7 @@ 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 6d985aa3f..36e017eeb 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0", + "version": "1.0.1", "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 6b77dc333..a45019341 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,14 +56,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.0 + astro: ^1.0.1 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: '@astrojs/preact': ^1.0.0 - astro: ^1.0.0 + astro: ^1.0.1 preact: ^10.7.3 dependencies: preact: 10.10.1 @@ -73,14 +73,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0 + astro: ^1.0.1 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 devDependencies: astro: link:../../packages/astro @@ -123,7 +123,7 @@ importers: specifiers: '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^1.0.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -235,20 +235,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.0 + astro: ^1.0.1 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0 + astro: ^1.0.1 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^1.0.0 - astro: ^1.0.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 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.0 + astro: ^1.0.1 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: @@ -373,7 +373,7 @@ importers: examples/with-vitest: specifiers: - astro: ^1.0.0 + astro: ^1.0.1 vitest: ^0.20.3 devDependencies: astro: link:../../packages/astro