From 1ee08baf912f4850bd5dc312a752f9eebba971ec Mon Sep 17 00:00:00 2001 From: "Fred K. Bot" <108291165+fredkbot@users.noreply.github.com> Date: Wed, 10 Aug 2022 13:54:12 -0700 Subject: [PATCH] [ci] release (#4228) Co-authored-by: github-actions[bot] --- .changeset/empty-bottles-allow.md | 5 - .changeset/modern-papayas-rhyme.md | 5 - .changeset/nasty-gifts-push.md | 5 - .changeset/neat-bats-heal.md | 5 - .changeset/silly-chairs-pretend.md | 5 - .changeset/tall-eels-wink.md | 5 - .changeset/tall-walls-visit.md | 5 - .changeset/two-ducks-end.md | 5 - examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/demo/package.json | 2 +- examples/component/package.json | 2 +- examples/docs/package.json | 4 +- examples/env-vars/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 4 +- examples/framework-preact/package.json | 4 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 4 +- examples/ssr/package.json | 2 +- examples/subpath/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 6 +- examples/with-nanostores/package.json | 4 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 100 ++++-------------- packages/astro/package.json | 2 +- packages/integrations/cloudflare/CHANGELOG.md | 8 +- packages/integrations/cloudflare/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 6 ++ packages/integrations/mdx/package.json | 2 +- packages/integrations/preact/CHANGELOG.md | 6 ++ packages/integrations/preact/package.json | 2 +- pnpm-lock.yaml | 68 ++++++------ 43 files changed, 109 insertions(+), 195 deletions(-) delete mode 100644 .changeset/empty-bottles-allow.md delete mode 100644 .changeset/modern-papayas-rhyme.md delete mode 100644 .changeset/nasty-gifts-push.md delete mode 100644 .changeset/neat-bats-heal.md delete mode 100644 .changeset/silly-chairs-pretend.md delete mode 100644 .changeset/tall-eels-wink.md delete mode 100644 .changeset/tall-walls-visit.md delete mode 100644 .changeset/two-ducks-end.md diff --git a/.changeset/empty-bottles-allow.md b/.changeset/empty-bottles-allow.md deleted file mode 100644 index 1f6e63d09..000000000 --- a/.changeset/empty-bottles-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Return 404 status code for 404.astro in SSR diff --git a/.changeset/modern-papayas-rhyme.md b/.changeset/modern-papayas-rhyme.md deleted file mode 100644 index f6751130c..000000000 --- a/.changeset/modern-papayas-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/cloudflare": patch ---- - -Update README diff --git a/.changeset/nasty-gifts-push.md b/.changeset/nasty-gifts-push.md deleted file mode 100644 index 8c175ef77..000000000 --- a/.changeset/nasty-gifts-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Properly invalidate Astro modules when a child script updates in HMR diff --git a/.changeset/neat-bats-heal.md b/.changeset/neat-bats-heal.md deleted file mode 100644 index c816116c5..000000000 --- a/.changeset/neat-bats-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Update "Astro.props.content" -> "Astro.props.frontmatter" in README diff --git a/.changeset/silly-chairs-pretend.md b/.changeset/silly-chairs-pretend.md deleted file mode 100644 index 0b0175cc7..000000000 --- a/.changeset/silly-chairs-pretend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Remove dev server during build diff --git a/.changeset/tall-eels-wink.md b/.changeset/tall-eels-wink.md deleted file mode 100644 index af06792c7..000000000 --- a/.changeset/tall-eels-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Bump Vite to 3.0.5 diff --git a/.changeset/tall-walls-visit.md b/.changeset/tall-walls-visit.md deleted file mode 100644 index 9168d09d8..000000000 --- a/.changeset/tall-walls-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/preact': patch ---- - -Fix compat support for libraries diff --git a/.changeset/two-ducks-end.md b/.changeset/two-ducks-end.md deleted file mode 100644 index 737b992c9..000000000 --- a/.changeset/two-ducks-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -`astro add` now supports `-y` diff --git a/examples/basics/package.json b/examples/basics/package.json index b9e02f62d..f406e3a42 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.2" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 281a1ea31..30b88adf1 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,8 +10,8 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "@astrojs/preact": "^1.0.1", + "astro": "^1.0.2" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 4d8af4e8b..cee6bd82d 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.2" } } diff --git a/examples/component/package.json b/examples/component/package.json index 863bd4b56..6ac595f2c 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.2" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 06fc1a556..6f162cd3a 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -19,8 +19,8 @@ "react-dom": "^18.1.0" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", + "@astrojs/preact": "^1.0.1", "@astrojs/react": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.2" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 9e05dab8a..c81422f32 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.2" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 8ef09e8ee..46584d156 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.2" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 9e6b4ab6a..021e10e25 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.2" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index fe78e3a60..1842ccc42 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -10,12 +10,12 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", + "@astrojs/preact": "^1.0.1", "@astrojs/react": "^1.0.0", "@astrojs/solid-js": "^1.0.0", "@astrojs/svelte": "^1.0.0", "@astrojs/vue": "^1.0.0", - "astro": "^1.0.1" + "astro": "^1.0.2" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 866635ee9..639a5481a 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,8 +10,8 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "@astrojs/preact": "^1.0.1", + "astro": "^1.0.2" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index ce1af197d..04c8f8122 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.2" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index bb070711c..030ab9417 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.2" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 27e337fbf..a99e0bc4b 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.2" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 64d6f0b36..2e512b7fa 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.2" }, "dependencies": { "vue": "^3.2.37" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 529dcfa67..8baf7af46 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.2" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index d1fbc949b..98010658c 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.2" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 8b47ea2d2..a67cf0455 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,8 +10,8 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1", + "@astrojs/preact": "^1.0.1", + "astro": "^1.0.2", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index c14725f11..b9562db88 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.2", "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 e6b8c5dbd..6b06fec17 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.2" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index d796b7955..f9230e3bb 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.2", "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 4bd2d8680..95b133e22 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.2" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index ffae9fee1..c0107b1cf 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -10,9 +10,9 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/mdx": "^0.8.1", - "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1", + "@astrojs/mdx": "^0.8.2", + "@astrojs/preact": "^1.0.1", + "astro": "^1.0.2", "preact": "^10.6.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 30b1347ea..d5e9f6116 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -15,7 +15,7 @@ "preact": "^10.7.3" }, "devDependencies": { - "@astrojs/preact": "^1.0.0", - "astro": "^1.0.1" + "@astrojs/preact": "^1.0.1", + "astro": "^1.0.2" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index d95e2d609..7de897bc6 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.2", "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 5a8323eb7..17b02d2aa 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.2", "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 aa56c5ecc..93380e019 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.2", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 3603548b9..77d2b930c 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,19 @@ # astro +## 1.0.2 + +### Patch Changes + +- [#4247](https://github.com/withastro/astro/pull/4247) [`714a8399e`](https://github.com/withastro/astro/commit/714a8399e20f334d2ba341c98d8ef5d590af9c39) Thanks [@matthewp](https://github.com/matthewp)! - Return 404 status code for 404.astro in SSR + +* [#4240](https://github.com/withastro/astro/pull/4240) [`561a34d91`](https://github.com/withastro/astro/commit/561a34d91209c9d4959f74beaa17008edb27ff5d) Thanks [@matthewp](https://github.com/matthewp)! - Properly invalidate Astro modules when a child script updates in HMR + +- [#4234](https://github.com/withastro/astro/pull/4234) [`c38e7f189`](https://github.com/withastro/astro/commit/c38e7f1890ba5bc97ddacee91ea196bcfc7652e6) Thanks [@bluwy](https://github.com/bluwy)! - Remove dev server during build + +* [#4213](https://github.com/withastro/astro/pull/4213) [`f8e385339`](https://github.com/withastro/astro/commit/f8e3853394c2f2f48fac4b5eb2284e1960e59a13) Thanks [@bluwy](https://github.com/bluwy)! - Bump Vite to 3.0.5 + +- [#4225](https://github.com/withastro/astro/pull/4225) [`e918b3883`](https://github.com/withastro/astro/commit/e918b3883e156a0de2148517b619a2cf451917d2) Thanks [@mayank99](https://github.com/mayank99)! - `astro add` now supports `-y` + ## 1.0.1 ### Patch Changes @@ -456,18 +470,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. @@ -475,15 +478,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 -
    - {(async function* () { - for (const number of numbers) { - await wait(1000); - yield
  • Number: {number}
  • ; - yield '\n'; - } - })()} -
+ ``` Which will stream out `
  • `s one at a time, waiting a second between each. @@ -2618,9 +2613,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] @@ -2722,21 +2715,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve An example usage: ```astro - --- - import BarChart from '../components/BarChart.jsx'; - --- - - - - - - - ``` This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time. @@ -2760,16 +2739,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve An example usage: ```astro - --- - import BarChart from '../components/BarChart.jsx'; - --- - - /** * If multiple renderers are included in the Astro config, * this will ensure that the - component is hydrated with * the Preact renderer. */ - - /** * If a custom renderer is required, use the same name * provided in the Astro config. */ - ``` This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time. @@ -2917,11 +2887,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage: ```astro - --- - import Sidebar from '../components/Sidebar.jsx'; - --- - ``` 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. @@ -2939,12 +2905,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve **index.astro** ```astro - --- - import Sidebar from '../components/Sidebar.jsx'; - import { MOBILE } from '../media.js'; - --- - ; ``` ### Patch Changes @@ -3069,11 +3030,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage: ```astro - --- - import Sidebar from '../components/Sidebar.jsx'; - --- - ``` 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. @@ -3091,12 +3048,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve **index.astro** ```astro - --- - import Sidebar from '../components/Sidebar.jsx'; - import { MOBILE } from '../media.js'; - --- - ``` ### Patch Changes @@ -3265,12 +3217,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve Astro frontmatter scripts are TypeScript! Because of this, we can leverage TypeScript types to define the shape of your props. ```astro - --- - export interface Props { - text?: string; - } - const { text = 'Hello world!' } = Astro.props as Props; - --- + ``` > **Note** Casting `Astro.props as Props` is a temporary workaround. We expect our Language Server to handle this automatically soon! @@ -3280,13 +3227,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve One of the great things about this change is that it's straight-forward to access _any_ props. Just use `...props`! ```astro - --- - export interface Props { - text?: string; - [attr: string]: unknown; - } - const { text = 'Hello world!', ...props } = Astro.props as Props; - --- + ``` ### What about prop validation? @@ -3294,12 +3235,7 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve We considered building prop validation into Astro, but decided to leave that implementation up to you! This way, you can use any set of tools you like. ```astro - --- - const { text = 'Hello world!' } = Astro.props; - if (typeof text !== 'string') - throw new Error(`Expected "text" to be of type "string" but recieved "${typeof string}"!`); - --- ``` ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index f6cf58e68..7fc26ec16 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.1", + "version": "1.0.2", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/cloudflare/CHANGELOG.md b/packages/integrations/cloudflare/CHANGELOG.md index 9280f7081..4014369f0 100644 --- a/packages/integrations/cloudflare/CHANGELOG.md +++ b/packages/integrations/cloudflare/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/cloudflare +## 1.0.1 + +### Patch Changes + +- [#4232](https://github.com/withastro/astro/pull/4232) [`bfbd32588`](https://github.com/withastro/astro/commit/bfbd32588f7e2c0a9e43cd1a571a0dc9c5f7e645) Thanks [@Ekwuno](https://github.com/Ekwuno)! - Update README + ## 1.0.0 ### Major Changes @@ -58,7 +64,7 @@ The new `Astro.clientAddress` property allows you to get the IP address of the requested user. ```astro -
    Your address {Astro.clientAddress}
    + ``` This property is only available when building for SSR, and only if the adapter you are using supports providing the IP address. If you attempt to access the property in a SSG app it will throw an error. diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index 1c13bdbef..c5341d7d0 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/cloudflare", "description": "Deploy your site to cloudflare pages functions", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index c8e389628..08a6037e8 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/mdx +## 0.8.2 + +### Patch Changes + +- [#4237](https://github.com/withastro/astro/pull/4237) [`9d5ab5508`](https://github.com/withastro/astro/commit/9d5ab55086964fbede17da3d78c209c6d8d13711) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update "Astro.props.content" -> "Astro.props.frontmatter" in README + ## 0.8.1 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 3aca2ea27..d8f62ac23 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Use MDX within Astro", - "version": "0.8.1", + "version": "0.8.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index b2c7cfe41..8fd92823a 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/preact +## 1.0.1 + +### Patch Changes + +- [#4213](https://github.com/withastro/astro/pull/4213) [`f8e385339`](https://github.com/withastro/astro/commit/f8e3853394c2f2f48fac4b5eb2284e1960e59a13) Thanks [@bluwy](https://github.com/bluwy)! - Fix compat support for libraries + ## 1.0.0 ### Major Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 114d09c21..137b789a6 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/preact", "description": "Use Preact components within Astro", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 265f3716e..73eef731a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,14 +56,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: - '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + '@astrojs/preact': ^1.0.1 + astro: ^1.0.2 preact: ^10.7.3 dependencies: preact: 10.10.2 @@ -73,14 +73,14 @@ importers: examples/component: specifiers: - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -91,12 +91,12 @@ importers: examples/docs: specifiers: '@algolia/client-search': ^4.13.1 - '@astrojs/preact': ^1.0.0 + '@astrojs/preact': ^1.0.1 '@astrojs/react': ^1.0.0 '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.1 + astro: ^1.0.2 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.2 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.2 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.2 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -145,12 +145,12 @@ importers: examples/framework-multiple: specifiers: - '@astrojs/preact': ^1.0.0 + '@astrojs/preact': ^1.0.1 '@astrojs/react': ^1.0.0 '@astrojs/solid-js': ^1.0.0 '@astrojs/svelte': ^1.0.0 '@astrojs/vue': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.2 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -174,8 +174,8 @@ importers: examples/framework-preact: specifiers: - '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + '@astrojs/preact': ^1.0.1 + astro: ^1.0.2 preact: ^10.7.3 dependencies: preact: 10.10.2 @@ -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.2 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.2 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.2 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.2 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -235,20 +235,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: - '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + '@astrojs/preact': ^1.0.1 + astro: ^1.0.2 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.2 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.2 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.2 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -313,16 +313,16 @@ importers: examples/with-markdown-shiki: specifiers: '@astrojs/markdown-remark': ^1.0.0 - astro: ^1.0.1 + astro: ^1.0.2 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro examples/with-mdx: specifiers: - '@astrojs/mdx': ^0.8.1 - '@astrojs/preact': ^1.0.0 - astro: ^1.0.1 + '@astrojs/mdx': ^0.8.2 + '@astrojs/preact': ^1.0.1 + astro: ^1.0.2 preact: ^10.6.5 devDependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -332,9 +332,9 @@ importers: examples/with-nanostores: specifiers: - '@astrojs/preact': ^1.0.0 + '@astrojs/preact': ^1.0.1 '@nanostores/preact': ^0.1.3 - astro: ^1.0.1 + astro: ^1.0.2 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.2 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.2 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.2 vitest: ^0.20.3 devDependencies: astro: link:../../packages/astro