diff --git a/.changeset/breezy-llamas-behave.md b/.changeset/breezy-llamas-behave.md deleted file mode 100644 index ca0cc3e54f68a..0000000000000 --- a/.changeset/breezy-llamas-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix certain characters showing incorrectly in `astro check` diff --git a/.changeset/brown-drinks-leave.md b/.changeset/brown-drinks-leave.md deleted file mode 100644 index 261342ab6e50f..0000000000000 --- a/.changeset/brown-drinks-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -public assets should always take priority over page routes in SSR deployments diff --git a/.changeset/chatty-bikes-sin.md b/.changeset/chatty-bikes-sin.md deleted file mode 100644 index 99d999bda7b8f..0000000000000 --- a/.changeset/chatty-bikes-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Updates the component to pass the `alt` attribute down to the element diff --git a/.changeset/chilled-cherries-decide.md b/.changeset/chilled-cherries-decide.md deleted file mode 100644 index d04ab1d38926e..0000000000000 --- a/.changeset/chilled-cherries-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/sitemap": patch ---- - -Update README to reflect `@astrojs/sitemap@0.2.0` changes diff --git a/.changeset/chilled-pandas-confess.md b/.changeset/chilled-pandas-confess.md deleted file mode 100644 index 2f77aac40840a..0000000000000 --- a/.changeset/chilled-pandas-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Ensure the before-hydration scripts are built diff --git a/.changeset/cold-bears-sneeze.md b/.changeset/cold-bears-sneeze.md deleted file mode 100644 index 483d87cd38e35..0000000000000 --- a/.changeset/cold-bears-sneeze.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdown-remark': minor ---- - -fixed generated slugs in markdown that ends with a dash diff --git a/.changeset/cold-eyes-run.md b/.changeset/cold-eyes-run.md deleted file mode 100644 index 8775c1919b460..0000000000000 --- a/.changeset/cold-eyes-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add export keyword to astro config file stub created by add cli command diff --git a/.changeset/dull-eagles-beg.md b/.changeset/dull-eagles-beg.md deleted file mode 100644 index b36a15b1ac973..0000000000000 --- a/.changeset/dull-eagles-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Use a base middleware for better base path handling in dev. diff --git a/.changeset/famous-coins-destroy.md b/.changeset/famous-coins-destroy.md deleted file mode 100644 index f47932b19b618..0000000000000 --- a/.changeset/famous-coins-destroy.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -'astro': minor -'@astrojs/cloudflare': minor -'@astrojs/deno': minor -'@astrojs/image': minor -'@astrojs/netlify': minor -'@astrojs/node': minor -'@astrojs/sitemap': minor -'@astrojs/vercel': minor ---- - -New `output` configuration option - -This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: - -* `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. -* `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. - -If `output` is omitted from your config, the default value `"static"` will be used. - -When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will *adapt* your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). - -To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: - -```diff -import { defineConfig } from 'astro/config'; -import netlify from '@astrojs/netlify/functions'; - -export default defineConfig({ - adapter: netlify(), -+ output: 'server', -}); -``` \ No newline at end of file diff --git a/.changeset/flat-shoes-camp.md b/.changeset/flat-shoes-camp.md deleted file mode 100644 index a8f1a9c4e2a3b..0000000000000 --- a/.changeset/flat-shoes-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -[#3859](https://github.com/withastro/astro/pull/3859) Overhaul Astro error handling, using Vite's built-in error overlay when possible diff --git a/.changeset/fuzzy-donuts-wonder.md b/.changeset/fuzzy-donuts-wonder.md deleted file mode 100644 index b310239136295..0000000000000 --- a/.changeset/fuzzy-donuts-wonder.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': patch ---- - -**BREAKING** Implement [RFC0012](https://github.com/withastro/rfcs/blob/main/proposals/0012-scoped-css-with-preserved-specificity.md) to preserve authored specificity for Astro scoped styles. - -If you use a mix of global styles and Astro scoped styles, **please visually inspect your site** after upgrading to confirm that styles are working as expected. - -If you previously relied on Astro's scoped styles to increase the specificity of your selectors, please update your selectors to use an additional class. For example, updating `div` to `div.my-class` will match the previous behavior. diff --git a/.changeset/gentle-mails-mate.md b/.changeset/gentle-mails-mate.md deleted file mode 100644 index eb3d561f229ae..0000000000000 --- a/.changeset/gentle-mails-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/image": patch ---- - -Handle EXIF orientation flag diff --git a/.changeset/great-insects-beam.md b/.changeset/great-insects-beam.md deleted file mode 100644 index 4e0e889f06c6d..0000000000000 --- a/.changeset/great-insects-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Add support for injected "page-ssr" scripts diff --git a/.changeset/happy-parrots-stare.md b/.changeset/happy-parrots-stare.md deleted file mode 100644 index 54d117320b7f8..0000000000000 --- a/.changeset/happy-parrots-stare.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': minor -'@astrojs/cloudflare': minor -'@astrojs/netlify': minor -'@astrojs/vercel': minor ---- - -Support for 404 and 500 pages in SSR diff --git a/.changeset/khaki-tables-design.md b/.changeset/khaki-tables-design.md deleted file mode 100644 index 210b97e845bd6..0000000000000 --- a/.changeset/khaki-tables-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Removes Node's `fileURLToPath` dependency in the production SSR endpoint diff --git a/.changeset/large-seas-drum.md b/.changeset/large-seas-drum.md deleted file mode 100644 index 81cdc898d65a3..0000000000000 --- a/.changeset/large-seas-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Adds warnings for legacy markdown behavior diff --git a/.changeset/lemon-tools-rescue.md b/.changeset/lemon-tools-rescue.md deleted file mode 100644 index 2d8044b61796b..0000000000000 --- a/.changeset/lemon-tools-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -Fixes support for using templates from any GitHub repository diff --git a/.changeset/loud-apes-flash.md b/.changeset/loud-apes-flash.md deleted file mode 100644 index 598f26d058466..0000000000000 --- a/.changeset/loud-apes-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Removes warnings for integrations/ssr diff --git a/.changeset/lovely-lions-attend.md b/.changeset/lovely-lions-attend.md deleted file mode 100644 index e81a2b6dcf27c..0000000000000 --- a/.changeset/lovely-lions-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/svelte': patch ---- - -Fix optional props not being recognized properly in the editor diff --git a/.changeset/mighty-poets-prove.md b/.changeset/mighty-poets-prove.md deleted file mode 100644 index 9bd49e5b696e6..0000000000000 --- a/.changeset/mighty-poets-prove.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/lit': patch ---- - -Fixes Lit compat with Vite 3.0.1 diff --git a/.changeset/moody-crabs-occur.md b/.changeset/moody-crabs-occur.md deleted file mode 100644 index 050e9ec0d82e9..0000000000000 --- a/.changeset/moody-crabs-occur.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/markdown-remark': patch ---- - -Avoid parsing JSX, components, and Astro islands when using "plain" md mode. This brings `markdown.mode: 'md'` in-line with our docs description. diff --git a/.changeset/moody-teachers-knock.md b/.changeset/moody-teachers-knock.md deleted file mode 100644 index 71746ae4a93f5..0000000000000 --- a/.changeset/moody-teachers-knock.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@astrojs/image": patch -"@astrojs/partytown": patch -"@astrojs/prefetch": patch -"@astrojs/sitemap": patch -"@astrojs/tailwind": patch ---- - -[READMEs] removed "experimental" from astro add instructions diff --git a/.changeset/new-coats-cheer.md b/.changeset/new-coats-cheer.md deleted file mode 100644 index 12b4c0797f6bb..0000000000000 --- a/.changeset/new-coats-cheer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': minor ---- - -Add remarkPlugins and rehypePlugins to config, with the same default plugins as our standard Markdown parser diff --git a/.changeset/old-walls-draw.md b/.changeset/old-walls-draw.md deleted file mode 100644 index cda5405b33625..0000000000000 --- a/.changeset/old-walls-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Added missing `media` attributes from the JSX definitions for the `meta` element diff --git a/.changeset/olive-dryers-sell.md b/.changeset/olive-dryers-sell.md deleted file mode 100644 index 15f3b531e25cd..0000000000000 --- a/.changeset/olive-dryers-sell.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'astro': minor -'@astrojs/cloudflare': minor -'@astrojs/deno': minor -'@astrojs/netlify': minor -'@astrojs/vercel': minor -'@astrojs/node': minor ---- - -Adds support for Astro.clientAddress - -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/.changeset/perfect-islands-teach.md b/.changeset/perfect-islands-teach.md deleted file mode 100644 index 7d83eb44db9ca..0000000000000 --- a/.changeset/perfect-islands-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Fixing TypeScript definition exports for image components diff --git a/.changeset/popular-taxis-prove.md b/.changeset/popular-taxis-prove.md deleted file mode 100644 index 101dfd7ddaa7c..0000000000000 --- a/.changeset/popular-taxis-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Overhaul HMR handling for more stable live reload behavior diff --git a/.changeset/real-camels-roll.md b/.changeset/real-camels-roll.md deleted file mode 100644 index 61cf8186deb19..0000000000000 --- a/.changeset/real-camels-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': minor ---- - -Support Prism and Shiki syntax highlighting based on project config diff --git a/.changeset/rotten-candles-count.md b/.changeset/rotten-candles-count.md deleted file mode 100644 index 04bd7b77e1e5b..0000000000000 --- a/.changeset/rotten-candles-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/vercel': minor ---- - -Removed requirement for `ENABLE_VC_BUILD=1`, since Build Output v3 is now stable. [Learn more](https://vercel.com/blog/build-output-api). diff --git a/.changeset/rude-stingrays-fry.md b/.changeset/rude-stingrays-fry.md deleted file mode 100644 index 53eb4047755d9..0000000000000 --- a/.changeset/rude-stingrays-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Added missing "loading" attribute to IFrameHTMLAttributes diff --git a/.changeset/shiny-pumpkins-return.md b/.changeset/shiny-pumpkins-return.md deleted file mode 100644 index 6482832a51102..0000000000000 --- a/.changeset/shiny-pumpkins-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Include page url in MDX glob result diff --git a/.changeset/silent-clocks-pump.md b/.changeset/silent-clocks-pump.md deleted file mode 100644 index 197d357f5fe78..0000000000000 --- a/.changeset/silent-clocks-pump.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/mdx': minor -'astro': patch ---- - -Support YAML frontmatter in MDX files diff --git a/.changeset/sixty-drinks-search.md b/.changeset/sixty-drinks-search.md deleted file mode 100644 index 3565b2fcf3671..0000000000000 --- a/.changeset/sixty-drinks-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix `define:vars` bugs with both `style` and `script` diff --git a/.changeset/smooth-seahorses-hear.md b/.changeset/smooth-seahorses-hear.md deleted file mode 100644 index 0c203dc1002ab..0000000000000 --- a/.changeset/smooth-seahorses-hear.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/node': patch ---- - -Fixes Node adapter to accept a request body diff --git a/.changeset/spotty-apricots-deny.md b/.changeset/spotty-apricots-deny.md deleted file mode 100644 index 36d62d97322fe..0000000000000 --- a/.changeset/spotty-apricots-deny.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Allow defining aliases with tsconfig diff --git a/.changeset/strange-needles-hide.md b/.changeset/strange-needles-hide.md deleted file mode 100644 index bcfab67013ba0..0000000000000 --- a/.changeset/strange-needles-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix: find a hosting network differently based on Node version -- adjusted for Node v18.4+ diff --git a/.changeset/strong-stingrays-compete.md b/.changeset/strong-stingrays-compete.md deleted file mode 100644 index f01d4cc8c4a25..0000000000000 --- a/.changeset/strong-stingrays-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add support for `.html` components and pages diff --git a/.changeset/thirty-beans-poke.md b/.changeset/thirty-beans-poke.md deleted file mode 100644 index 2b1ae5c987b8e..0000000000000 --- a/.changeset/thirty-beans-poke.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': minor -'@astrojs/image': minor -'@astrojs/svelte': minor -'@astrojs/vue': minor ---- - -Bump to Vite 3! diff --git a/.changeset/tiny-glasses-play.md b/.changeset/tiny-glasses-play.md deleted file mode 100644 index 1515d63ee7944..0000000000000 --- a/.changeset/tiny-glasses-play.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/image': minor ---- - -- Fixes two bugs that were blocking SSR support when deployed to a hosting service -- The built-in `sharp` service now automatically rotates images based on EXIF data diff --git a/.changeset/two-hounds-sort.md b/.changeset/two-hounds-sort.md deleted file mode 100644 index b6be5ea04eb69..0000000000000 --- a/.changeset/two-hounds-sort.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'astro': minor -'@astrojs/markdown-component': minor -'@astrojs/markdown-remark': minor ---- - -The use of components and JSX expressions in Markdown are no longer supported by default. - -For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). - -Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. - -```js -// https://astro.build/config -export default defineConfig({ - legacy: { - astroFlavoredMarkdown: true, - } -}); -``` diff --git a/.changeset/unlucky-panthers-yawn.md b/.changeset/unlucky-panthers-yawn.md deleted file mode 100644 index b8e325b15990f..0000000000000 --- a/.changeset/unlucky-panthers-yawn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Deprecate Astro.canonicalURL, in favor of Astro.url instead. diff --git a/.changeset/wet-wombats-prove.md b/.changeset/wet-wombats-prove.md deleted file mode 100644 index da0b0193469f5..0000000000000 --- a/.changeset/wet-wombats-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Improve warning logs on astro.config change diff --git a/.changeset/wild-socks-drive.md b/.changeset/wild-socks-drive.md deleted file mode 100644 index c69216ca37c44..0000000000000 --- a/.changeset/wild-socks-drive.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'astro': minor -'@astrojs/markdown-component': minor ---- - -Move the Markdown component to its own package - -This change moves the Markdown component into its own package where it will be maintained separately. All that needs to change from a user's perspective is the import statement: - -```astro ---- -import { Markdown } from 'astro/components'; ---- -``` - -Becomes: - -```astro ---- -import Markdown from '@astrojs/markdown-component'; ---- -``` diff --git a/.changeset/yellow-drinks-judge.md b/.changeset/yellow-drinks-judge.md deleted file mode 100644 index fdd65d6b93a2c..0000000000000 --- a/.changeset/yellow-drinks-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add Astro.url helper for getting the request URL diff --git a/.changeset/young-radios-call.md b/.changeset/young-radios-call.md deleted file mode 100644 index 754c363a90956..0000000000000 --- a/.changeset/young-radios-call.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/markdown-remark': minor ---- - -**BREAKING** Renamed Markdown utility function `getHeaders()` to `getHeadings()`. diff --git a/examples/basics/package.json b/examples/basics/package.json index 08b97ddffb380..bbf4af9ed6b73 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 98f9b97de0827..01f9d337095c2 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/blog/package.json b/examples/blog/package.json index 73a2fbb9b298f..dbf65313d27a1 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 5931c5aad51e0..c08d46ea97bbf 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/component/package.json b/examples/component/package.json index fcabd8fa290bb..7368c0f2250f9 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-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 45388106d83d5..fc97ca1264d0c 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -20,6 +20,6 @@ "devDependencies": { "@astrojs/preact": "^0.5.2", "@astrojs/react": "^0.4.2", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 98a27403881e5..fb5988240a2eb 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 0be076443bcf3..40fc1a9dd3c22 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 395975ce0d16f..6c4a5e98a3f06 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.3.1", - "astro": "^1.0.0-rc.0" + "@astrojs/lit": "^0.3.2", + "astro": "^1.0.0-rc.1" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 267dc962eab80..b60efadfd1cdf 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,13 +9,13 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.3.1", + "@astrojs/lit": "^0.3.2", "@astrojs/preact": "^0.5.2", "@astrojs/react": "^0.4.2", "@astrojs/solid-js": "^0.4.1", - "@astrojs/svelte": "^0.4.1", - "@astrojs/vue": "^0.4.1", - "astro": "^1.0.0-rc.0" + "@astrojs/svelte": "^0.5.0", + "@astrojs/vue": "^0.5.0", + "astro": "^1.0.0-rc.1" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 399598b1a1cca..b6cb70b2b1b55 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 2fd19584edb38..4557160f8eef4 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -12,7 +12,7 @@ "@astrojs/react": "^0.4.2", "@types/react": "^18.0.10", "@types/react-dom": "^18.0.5", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 001c82a6f492f..f07b84f71f915 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/solid-js": "^0.4.1", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index c67b6b1e77b65..8dce08b7c528a 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/svelte": "^0.4.1", - "astro": "^1.0.0-rc.0" + "@astrojs/svelte": "^0.5.0", + "astro": "^1.0.0-rc.1" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 7d86d3af8c2c8..09ec9ab3ffb25 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/vue": "^0.4.1", - "astro": "^1.0.0-rc.0" + "@astrojs/vue": "^0.5.0", + "astro": "^1.0.0-rc.1" }, "dependencies": { "vue": "^3.2.37" diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json index a301ffce9e4f7..075667e38e498 100644 --- a/examples/integrations-playground/package.json +++ b/examples/integrations-playground/package.json @@ -9,14 +9,14 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.3.1", - "@astrojs/partytown": "^0.1.8", + "@astrojs/lit": "^0.3.2", + "@astrojs/partytown": "^0.1.9", "@astrojs/react": "^0.4.2", - "@astrojs/sitemap": "^0.2.6", + "@astrojs/sitemap": "^0.3.0", "@astrojs/solid-js": "0.4.1", - "@astrojs/tailwind": "^0.2.4", + "@astrojs/tailwind": "^0.2.5", "@astrojs/turbolinks": "^0.1.4", - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "solid-js": "^1.4.3" }, "dependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 6ece017e89733..3e9248bdaf6e2 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 177e757179671..cc5beb04acfd0 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 9ff80cc8bd338..07f636354ea48 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index cbd7ad3322f20..7d9fd3c467a60 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -9,9 +9,9 @@ "server": "node server/server.mjs" }, "devDependencies": { - "@astrojs/node": "^0.1.6", - "@astrojs/svelte": "^0.4.1", - "astro": "^1.0.0-rc.0", + "@astrojs/node": "^0.2.0", + "@astrojs/svelte": "^0.5.0", + "astro": "^1.0.0-rc.1", "concurrently": "^7.2.1", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/starter/package.json b/examples/starter/package.json index e424bea669a98..1582fa8c4b300 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 306364799df1c..2e95ab9833e33 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/react": "^0.4.2", - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 705c315f3955a..56c0d945417d1 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/markdown-remark": "^0.12.0", - "astro": "^1.0.0-rc.0", + "@astrojs/markdown-remark": "^0.13.0", + "astro": "^1.0.0-rc.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 caf1b0038afc3..6f3e4edaa14bd 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/markdown-remark": "^0.12.0", - "astro": "^1.0.0-rc.0" + "@astrojs/markdown-remark": "^0.13.0", + "astro": "^1.0.0-rc.1" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 9fb102d4b6eb9..a182f91a579f4 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -9,9 +9,9 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/mdx": "^0.2.1", + "@astrojs/mdx": "^0.3.0", "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "preact": "^10.6.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index f579f40722e80..bf97aaa6d3eb8 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -15,6 +15,6 @@ }, "devDependencies": { "@astrojs/preact": "^0.5.2", - "astro": "^1.0.0-rc.0" + "astro": "^1.0.0-rc.1" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index ff7b17c8d74db..74106b3bb0354 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/tailwind": "^0.2.4", - "astro": "^1.0.0-rc.0", + "@astrojs/tailwind": "^0.2.5", + "astro": "^1.0.0-rc.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 598d496e6cd2a..c8d395560eee4 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-rc.0", + "astro": "^1.0.0-rc.1", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 0f821ed8da9fc..8773d72c23e50 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,136 @@ # astro +## 1.0.0-rc.1 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#4018](https://github.com/withastro/astro/pull/4018) [`0cc6ede36`](https://github.com/withastro/astro/commit/0cc6ede362996b9faba57481a790d6eb7fba2045) Thanks [@okikio](https://github.com/okikio)! - Support for 404 and 500 pages in SSR + +- [#3992](https://github.com/withastro/astro/pull/3992) [`ccae43142`](https://github.com/withastro/astro/commit/ccae43142619cedd479c9879a9c0fcee92263213) Thanks [@matthewp](https://github.com/matthewp)! - Removes warnings for integrations/ssr + +* [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + +- [#3570](https://github.com/withastro/astro/pull/3570) [`04070c0c1`](https://github.com/withastro/astro/commit/04070c0c12c00a3e17842ce48e36edc3f2c890a3) Thanks [@matthewp](https://github.com/matthewp)! - Bump to Vite 3! + +* [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default. + + For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). + + Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. + + ```js + // https://astro.build/config + export default defineConfig({ + legacy: { + astroFlavoredMarkdown: true, + }, + }); + ``` + +- [#3986](https://github.com/withastro/astro/pull/3986) [`bccd88f0e`](https://github.com/withastro/astro/commit/bccd88f0ebe1fbf383c0cee4b27a4c24c72dea72) Thanks [@matthewp](https://github.com/matthewp)! - Move the Markdown component to its own package + + This change moves the Markdown component into its own package where it will be maintained separately. All that needs to change from a user's perspective is the import statement: + + ```astro + --- + import { Markdown } from 'astro/components'; + --- + ``` + + Becomes: + + ```astro + --- + import Markdown from '@astrojs/markdown-component'; + --- + ``` + +### Patch Changes + +- [#3988](https://github.com/withastro/astro/pull/3988) [`9841c21e8`](https://github.com/withastro/astro/commit/9841c21e8ecc1ed2dbf46648355871800ac0b172) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix certain characters showing incorrectly in `astro check` + +* [#4000](https://github.com/withastro/astro/pull/4000) [`1c1b9da62`](https://github.com/withastro/astro/commit/1c1b9da624ec811e3e4a34b63f07bce61d2dcd04) Thanks [@tony-sull](https://github.com/tony-sull)! - public assets should always take priority over page routes in SSR deployments + +- [#4042](https://github.com/withastro/astro/pull/4042) [`7e5ac1f45`](https://github.com/withastro/astro/commit/7e5ac1f45c4865cfc04c658d18e70aedbae38772) Thanks [@matthewp](https://github.com/matthewp)! - Ensure the before-hydration scripts are built + +* [#3944](https://github.com/withastro/astro/pull/3944) [`e82ff13f1`](https://github.com/withastro/astro/commit/e82ff13f18e8776844555fe3acd2b366cf8f1e11) Thanks [@mihkeleidast](https://github.com/mihkeleidast)! - Add export keyword to astro config file stub created by add cli command + +- [#3942](https://github.com/withastro/astro/pull/3942) [`21462feb4`](https://github.com/withastro/astro/commit/21462feb4a27c1d9a9c29647daf2ea0de986ddf0) Thanks [@AllanChain](https://github.com/AllanChain)! - Use a base middleware for better base path handling in dev. + +* [#3991](https://github.com/withastro/astro/pull/3991) [`4dd341c8a`](https://github.com/withastro/astro/commit/4dd341c8a1a3ffe00916bb6c4d7cea7000c9d254) Thanks [@natemoo-re](https://github.com/natemoo-re)! - [#3859](https://github.com/withastro/astro/pull/3859) Overhaul Astro error handling, using Vite's built-in error overlay when possible + +- [#4024](https://github.com/withastro/astro/pull/4024) [`1215e731b`](https://github.com/withastro/astro/commit/1215e731b8a334fce364aca77bda1085f3679e57) Thanks [@natemoo-re](https://github.com/natemoo-re)! - **BREAKING** Implement [RFC0012](https://github.com/withastro/rfcs/blob/main/proposals/0012-scoped-css-with-preserved-specificity.md) to preserve authored specificity for Astro scoped styles. + + If you use a mix of global styles and Astro scoped styles, **please visually inspect your site** after upgrading to confirm that styles are working as expected. + + If you previously relied on Astro's scoped styles to increase the specificity of your selectors, please update your selectors to use an additional class. For example, updating `div` to `div.my-class` will match the previous behavior. + +* [#4046](https://github.com/withastro/astro/pull/4046) [`c811be49a`](https://github.com/withastro/astro/commit/c811be49abf17b151e04b9a63126267065f53b3f) Thanks [@matthewp](https://github.com/matthewp)! - Adds warnings for legacy markdown behavior + +- [#4009](https://github.com/withastro/astro/pull/4009) [`01ba07d8f`](https://github.com/withastro/astro/commit/01ba07d8fa7eb67530b47b8530d65906f1aebf6e) Thanks [@matthewp](https://github.com/matthewp)! - Fixes Lit compat with Vite 3.0.1 + +* [#4008](https://github.com/withastro/astro/pull/4008) [`399d7e269`](https://github.com/withastro/astro/commit/399d7e269834d11c046b390705a9a53d3738f3cf) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Avoid parsing JSX, components, and Astro islands when using "plain" md mode. This brings `markdown.mode: 'md'` in-line with our docs description. + +- [#3974](https://github.com/withastro/astro/pull/3974) [`54865612e`](https://github.com/withastro/astro/commit/54865612ea412f3d6d9a986d9dc6d4bebb7c8a63) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Added missing `media` attributes from the JSX definitions for the `meta` element + +* [#3932](https://github.com/withastro/astro/pull/3932) [`27ee8b97a`](https://github.com/withastro/astro/commit/27ee8b97ae3868d93bcd6c9302a401901394018f) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Overhaul HMR handling for more stable live reload behavior + +- [#4044](https://github.com/withastro/astro/pull/4044) [`6f88597c3`](https://github.com/withastro/astro/commit/6f88597c36339a8c7760023f530293a2dceaf493) Thanks [@lostra01](https://github.com/lostra01)! - Added missing "loading" attribute to IFrameHTMLAttributes + +* [#3995](https://github.com/withastro/astro/pull/3995) [`b2b367c96`](https://github.com/withastro/astro/commit/b2b367c969493aaf21c974064beb241d05228066) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Support YAML frontmatter in MDX files + +- [#3976](https://github.com/withastro/astro/pull/3976) [`fbef6a7f7`](https://github.com/withastro/astro/commit/fbef6a7f720d12697362d3f74c8c026c726d2ba3) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fix `define:vars` bugs with both `style` and `script` + +* [#4023](https://github.com/withastro/astro/pull/4023) [`4ca6a0933`](https://github.com/withastro/astro/commit/4ca6a0933d92dd559327dd46a28712d918caebf7) Thanks [@matthewp](https://github.com/matthewp)! - Fixes Node adapter to accept a request body + +- [#4010](https://github.com/withastro/astro/pull/4010) [`d503c5bf3`](https://github.com/withastro/astro/commit/d503c5bf3db39afeecb28522861ac5d78c919408) Thanks [@matthewp](https://github.com/matthewp)! - Allow defining aliases with tsconfig + +* [#4032](https://github.com/withastro/astro/pull/4032) [`beddf073b`](https://github.com/withastro/astro/commit/beddf073b5222b92da172475f5b8a578bffa73a0) Thanks [@arimgibson](https://github.com/arimgibson)! - Fix: find a hosting network differently based on Node version -- adjusted for Node v18.4+ + +- [#3867](https://github.com/withastro/astro/pull/3867) [`7250e4e86`](https://github.com/withastro/astro/commit/7250e4e86da41e7c662afa4b67f7cefc7da15e69) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for `.html` components and pages + +* [#3959](https://github.com/withastro/astro/pull/3959) [`ddefb172f`](https://github.com/withastro/astro/commit/ddefb172f66bcd646dd0b75a7ea8360157dd2ba0) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Deprecate Astro.canonicalURL, in favor of Astro.url instead. + +- [#3968](https://github.com/withastro/astro/pull/3968) [`95eaa207d`](https://github.com/withastro/astro/commit/95eaa207d8bd4cb5ca2cc1c6279a9bd4096b33d7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Improve warning logs on astro.config change + +* [#3959](https://github.com/withastro/astro/pull/3959) [`ddefb172f`](https://github.com/withastro/astro/commit/ddefb172f66bcd646dd0b75a7ea8360157dd2ba0) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Add Astro.url helper for getting the request URL + +- [#4031](https://github.com/withastro/astro/pull/4031) [`6e27a5fdc`](https://github.com/withastro/astro/commit/6e27a5fdc21276cad26cd50e16a2709a40a7cbac) Thanks [@natemoo-re](https://github.com/natemoo-re)! - **BREAKING** Renamed Markdown utility function `getHeaders()` to `getHeadings()`. + +- Updated dependencies [[`ba11b3399`](https://github.com/withastro/astro/commit/ba11b33996d79c32da947986edb0f32dbcc04aaf), [`399d7e269`](https://github.com/withastro/astro/commit/399d7e269834d11c046b390705a9a53d3738f3cf), [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6), [`6e27a5fdc`](https://github.com/withastro/astro/commit/6e27a5fdc21276cad26cd50e16a2709a40a7cbac)]: + - @astrojs/markdown-remark@0.13.0 + ## 1.0.0-beta.73 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 081c68066e34e..76b84b6001ac1 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0-rc.0", + "version": "1.0.0-rc.1", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", @@ -84,7 +84,7 @@ "dependencies": { "@astrojs/compiler": "^0.22.0", "@astrojs/language-server": "^0.20.0", - "@astrojs/markdown-remark": "^0.12.0", + "@astrojs/markdown-remark": "^0.13.0", "@astrojs/prism": "0.6.1", "@astrojs/telemetry": "^0.4.1", "@astrojs/webapi": "^0.12.0", diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index f951815e5add5..e0fcaab499033 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,11 @@ # create-astro +## 0.14.2 + +### Patch Changes + +- [#3971](https://github.com/withastro/astro/pull/3971) [`e6e216061`](https://github.com/withastro/astro/commit/e6e2160614c9af320419a599c42211d0147760f4) Thanks [@tony-sull](https://github.com/tony-sull)! - Fixes support for using templates from any GitHub repository + ## 0.14.1 ### Patch Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 96bd5199ba4ef..aaec6d2aacdab 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "0.14.1", + "version": "0.14.2", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/cloudflare/CHANGELOG.md b/packages/integrations/cloudflare/CHANGELOG.md index c6eae1744786a..4a6cac29ee392 100644 --- a/packages/integrations/cloudflare/CHANGELOG.md +++ b/packages/integrations/cloudflare/CHANGELOG.md @@ -1,5 +1,44 @@ # @astrojs/cloudflare +## 0.3.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#4018](https://github.com/withastro/astro/pull/4018) [`0cc6ede36`](https://github.com/withastro/astro/commit/0cc6ede362996b9faba57481a790d6eb7fba2045) Thanks [@okikio](https://github.com/okikio)! - Support for 404 and 500 pages in SSR + +- [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + ## 0.2.4 ### Patch Changes diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index 4835549c0bd72..26c4fb30daa16 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": "0.2.4", + "version": "0.3.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/deno/CHANGELOG.md b/packages/integrations/deno/CHANGELOG.md index 60ffb5fcb1deb..f5795a75c3ade 100644 --- a/packages/integrations/deno/CHANGELOG.md +++ b/packages/integrations/deno/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/node +## 0.2.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + ## 0.1.10 ### Patch Changes diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index c20e2d4178a54..5c9867677f62a 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/deno", "description": "Deploy your site to a Deno server", - "version": "0.1.10", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index d39e9a977ea7a..78c8cc09274f7 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,49 @@ # @astrojs/image +## 0.2.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#3570](https://github.com/withastro/astro/pull/3570) [`04070c0c1`](https://github.com/withastro/astro/commit/04070c0c12c00a3e17842ce48e36edc3f2c890a3) Thanks [@matthewp](https://github.com/matthewp)! - Bump to Vite 3! + +- [#4013](https://github.com/withastro/astro/pull/4013) [`ef9345767`](https://github.com/withastro/astro/commit/ef9345767b898b436acc6da32da4936b882fd926) Thanks [@tony-sull](https://github.com/tony-sull)! - - Fixes two bugs that were blocking SSR support when deployed to a hosting service + - The built-in `sharp` service now automatically rotates images based on EXIF data + +### Patch Changes + +- [#3961](https://github.com/withastro/astro/pull/3961) [`d73c04a9e`](https://github.com/withastro/astro/commit/d73c04a9e58c7d320cdb4f34604de76b30199778) Thanks [@tony-sull](https://github.com/tony-sull)! - Updates the component to pass the `alt` attribute down to the element + +* [#4021](https://github.com/withastro/astro/pull/4021) [`9aecf7c7c`](https://github.com/withastro/astro/commit/9aecf7c7c7211f34236d8dde624ca388310d3727) Thanks [@delucis](https://github.com/delucis)! - Handle EXIF orientation flag + +- [#4048](https://github.com/withastro/astro/pull/4048) [`e60d6d9c1`](https://github.com/withastro/astro/commit/e60d6d9c1df7d53613c2bf46c6cfc06ac04100c5) Thanks [@tony-sull](https://github.com/tony-sull)! - Removes Node's `fileURLToPath` dependency in the production SSR endpoint + +* [#4004](https://github.com/withastro/astro/pull/4004) [`ef9c4152b`](https://github.com/withastro/astro/commit/ef9c4152b2b399e25bf4e8aa7b37adcf6d0d8f17) Thanks [@sarah11918](https://github.com/sarah11918)! - [READMEs] removed "experimental" from astro add instructions + +- [#3980](https://github.com/withastro/astro/pull/3980) [`eaf187f2c`](https://github.com/withastro/astro/commit/eaf187f2c40493abec28113c742ef392c812d0e2) Thanks [@tony-sull](https://github.com/tony-sull)! - Fixing TypeScript definition exports for image components + ## 0.1.3 ### Patch Changes diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index 324273799afee..e1dfeed8e27b6 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/image", "description": "Load and transform images in your Astro site.", - "version": "0.1.3", + "version": "0.2.0", "type": "module", "types": "./dist/types.d.ts", "author": "withastro", diff --git a/packages/integrations/lit/CHANGELOG.md b/packages/integrations/lit/CHANGELOG.md index a91319076a1c4..dc79672b1c7b8 100644 --- a/packages/integrations/lit/CHANGELOG.md +++ b/packages/integrations/lit/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/lit +## 0.3.2 + +### Patch Changes + +- [#4009](https://github.com/withastro/astro/pull/4009) [`01ba07d8f`](https://github.com/withastro/astro/commit/01ba07d8fa7eb67530b47b8530d65906f1aebf6e) Thanks [@matthewp](https://github.com/matthewp)! - Fixes Lit compat with Vite 3.0.1 + ## 0.3.1 ### Patch Changes diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 9775b9b6a6b47..41c449cb1cd3e 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/lit", - "version": "0.3.1", + "version": "0.3.2", "description": "Use Lit components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index c2a5738bbff07..8521e92f2210d 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,21 @@ # @astrojs/mdx +## 0.3.0 + +### Minor Changes + +- [#3977](https://github.com/withastro/astro/pull/3977) [`19433eb4a`](https://github.com/withastro/astro/commit/19433eb4a4441522f68492ca914ad2ab4f061343) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Add remarkPlugins and rehypePlugins to config, with the same default plugins as our standard Markdown parser + +* [#4002](https://github.com/withastro/astro/pull/4002) [`3b8a74452`](https://github.com/withastro/astro/commit/3b8a7445247221100462ba035f6778b43ea180e7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Support Prism and Shiki syntax highlighting based on project config + +- [#3995](https://github.com/withastro/astro/pull/3995) [`b2b367c96`](https://github.com/withastro/astro/commit/b2b367c969493aaf21c974064beb241d05228066) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Support YAML frontmatter in MDX files + +### Patch Changes + +- [#4050](https://github.com/withastro/astro/pull/4050) [`9ab66c4ba`](https://github.com/withastro/astro/commit/9ab66c4ba9bf2250990114c76b792f26d0694365) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Add support for injected "page-ssr" scripts + +* [#3981](https://github.com/withastro/astro/pull/3981) [`61fec6304`](https://github.com/withastro/astro/commit/61fec63044e1585348e8405bee6fdf4dec635efa) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Include page url in MDX glob result + ## 0.2.1 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index f2107f466b32f..8f9a1357a8665 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.2.1", + "version": "0.3.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/netlify/CHANGELOG.md b/packages/integrations/netlify/CHANGELOG.md index 4c18c516879d5..9a455bf2720df 100644 --- a/packages/integrations/netlify/CHANGELOG.md +++ b/packages/integrations/netlify/CHANGELOG.md @@ -1,5 +1,44 @@ # @astrojs/netlify +## 0.5.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#4018](https://github.com/withastro/astro/pull/4018) [`0cc6ede36`](https://github.com/withastro/astro/commit/0cc6ede362996b9faba57481a790d6eb7fba2045) Thanks [@okikio](https://github.com/okikio)! - Support for 404 and 500 pages in SSR + +- [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + ## 0.4.10 ### Patch Changes diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index 39eb10ebd96c5..2a0eadf6a7330 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/netlify", "description": "Deploy your site to Netlify", - "version": "0.4.10", + "version": "0.5.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/node/CHANGELOG.md b/packages/integrations/node/CHANGELOG.md index e5d599cc12a29..e6cbb0dff86bc 100644 --- a/packages/integrations/node/CHANGELOG.md +++ b/packages/integrations/node/CHANGELOG.md @@ -1,5 +1,46 @@ # @astrojs/node +## 0.2.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + +### Patch Changes + +- [#4023](https://github.com/withastro/astro/pull/4023) [`4ca6a0933`](https://github.com/withastro/astro/commit/4ca6a0933d92dd559327dd46a28712d918caebf7) Thanks [@matthewp](https://github.com/matthewp)! - Fixes Node adapter to accept a request body + ## 0.1.6 ### Patch Changes diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index d39d49124453f..3fb1450960d39 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/node", "description": "Deploy your site to a Node.js server", - "version": "0.1.6", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/partytown/CHANGELOG.md b/packages/integrations/partytown/CHANGELOG.md index 5d32dbbbbc6ce..769bef9126c42 100644 --- a/packages/integrations/partytown/CHANGELOG.md +++ b/packages/integrations/partytown/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/partytown +## 0.1.9 + +### Patch Changes + +- [#4004](https://github.com/withastro/astro/pull/4004) [`ef9c4152b`](https://github.com/withastro/astro/commit/ef9c4152b2b399e25bf4e8aa7b37adcf6d0d8f17) Thanks [@sarah11918](https://github.com/sarah11918)! - [READMEs] removed "experimental" from astro add instructions + ## 0.1.8 ### Patch Changes diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 1d355484b2488..93f82b38245dd 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/partytown", "description": "Astro + Partytown integration", - "version": "0.1.8", + "version": "0.1.9", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/prefetch/CHANGELOG.md b/packages/integrations/prefetch/CHANGELOG.md index f124afb02576e..d07f6bede4d08 100644 --- a/packages/integrations/prefetch/CHANGELOG.md +++ b/packages/integrations/prefetch/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/prefetch +## 0.0.6 + +### Patch Changes + +- [#4004](https://github.com/withastro/astro/pull/4004) [`ef9c4152b`](https://github.com/withastro/astro/commit/ef9c4152b2b399e25bf4e8aa7b37adcf6d0d8f17) Thanks [@sarah11918](https://github.com/sarah11918)! - [READMEs] removed "experimental" from astro add instructions + ## 0.0.5 ### Patch Changes diff --git a/packages/integrations/prefetch/package.json b/packages/integrations/prefetch/package.json index c25a928021314..794415b32778c 100644 --- a/packages/integrations/prefetch/package.json +++ b/packages/integrations/prefetch/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/prefetch", "description": "Faster page navigations by prefetching links when the browser is idle.", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index 4a788e14fc713..81e8a13ee12ae 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,38 @@ # @astrojs/sitemap +## 0.3.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +### Patch Changes + +- [#3978](https://github.com/withastro/astro/pull/3978) [`b37d7078a`](https://github.com/withastro/astro/commit/b37d7078a009869bf482912397a073dca490d3da) Thanks [@Chrissdroid](https://github.com/Chrissdroid)! - Update README to reflect `@astrojs/sitemap@0.2.0` changes + +* [#4004](https://github.com/withastro/astro/pull/4004) [`ef9c4152b`](https://github.com/withastro/astro/commit/ef9c4152b2b399e25bf4e8aa7b37adcf6d0d8f17) Thanks [@sarah11918](https://github.com/sarah11918)! - [READMEs] removed "experimental" from astro add instructions + ## 0.2.6 ### Patch Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index af279beb4eee9..51096c82296cf 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for Astro", - "version": "0.2.6", + "version": "0.3.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index 7c9ae59811dc2..801eee706387e 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/svelte +## 0.5.0 + +### Minor Changes + +- [#3570](https://github.com/withastro/astro/pull/3570) [`04070c0c1`](https://github.com/withastro/astro/commit/04070c0c12c00a3e17842ce48e36edc3f2c890a3) Thanks [@matthewp](https://github.com/matthewp)! - Bump to Vite 3! + +### Patch Changes + +- [#3993](https://github.com/withastro/astro/pull/3993) [`40a45e3ef`](https://github.com/withastro/astro/commit/40a45e3ef6284c024d442cf7cb8e36d8354a35d1) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix optional props not being recognized properly in the editor + ## 0.4.1 ### Patch Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index c9f837cb06ea9..c500b87eedbc1 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "0.4.1", + "version": "0.5.0", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/tailwind/CHANGELOG.md b/packages/integrations/tailwind/CHANGELOG.md index 6ea8753c9f065..ff2085bed3bf3 100644 --- a/packages/integrations/tailwind/CHANGELOG.md +++ b/packages/integrations/tailwind/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/tailwind +## 0.2.5 + +### Patch Changes + +- [#4004](https://github.com/withastro/astro/pull/4004) [`ef9c4152b`](https://github.com/withastro/astro/commit/ef9c4152b2b399e25bf4e8aa7b37adcf6d0d8f17) Thanks [@sarah11918](https://github.com/sarah11918)! - [READMEs] removed "experimental" from astro add instructions + ## 0.2.4 ### Patch Changes diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index b8d3bdbe59a95..0338976087b96 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/tailwind", "description": "Tailwind + Astro Integrations", - "version": "0.2.4", + "version": "0.2.5", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 53f8b13aa11d0..0ac7d22912d99 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,46 @@ # @astrojs/vercel +## 0.3.0 + +### Minor Changes + +- [#4015](https://github.com/withastro/astro/pull/4015) [`6fd161d76`](https://github.com/withastro/astro/commit/6fd161d7691cbf9d3ffa4646e46059dfd0940010) Thanks [@matthewp](https://github.com/matthewp)! - New `output` configuration option + + This change introduces a new "output target" configuration option (`output`). Setting the output target lets you decide the format of your final build, either: + + - `"static"` (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host. + - `"server"`: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests. + + If `output` is omitted from your config, the default value `"static"` will be used. + + When using the `"server"` output target, you must also include a runtime adapter via the `adapter` configuration. An adapter will _adapt_ your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc). + + To migrate: No action is required for most users. If you currently define an `adapter`, you will need to also add `output: 'server'` to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify: + + ```diff + import { defineConfig } from 'astro/config'; + import netlify from '@astrojs/netlify/functions'; + + export default defineConfig({ + adapter: netlify(), + + output: 'server', + }); + ``` + +* [#4018](https://github.com/withastro/astro/pull/4018) [`0cc6ede36`](https://github.com/withastro/astro/commit/0cc6ede362996b9faba57481a790d6eb7fba2045) Thanks [@okikio](https://github.com/okikio)! - Support for 404 and 500 pages in SSR + +- [#3973](https://github.com/withastro/astro/pull/3973) [`5a23483ef`](https://github.com/withastro/astro/commit/5a23483efb3ba614b05a00064f84415620605204) Thanks [@matthewp](https://github.com/matthewp)! - Adds support for Astro.clientAddress + + 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. + +* [#4020](https://github.com/withastro/astro/pull/4020) [`1666fdb4c`](https://github.com/withastro/astro/commit/1666fdb4c508bed1f41aea16196aa127b64cb506) Thanks [@JuanM04](https://github.com/JuanM04)! - Removed requirement for `ENABLE_VC_BUILD=1`, since Build Output v3 is now stable. [Learn more](https://vercel.com/blog/build-output-api). + ## 0.2.6 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index a3320421312c1..9cb39a4df96e0 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "0.2.6", + "version": "0.3.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index 91c56d629966d..5aac294d7e9b9 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vue +## 0.5.0 + +### Minor Changes + +- [#3570](https://github.com/withastro/astro/pull/3570) [`04070c0c1`](https://github.com/withastro/astro/commit/04070c0c12c00a3e17842ce48e36edc3f2c890a3) Thanks [@matthewp](https://github.com/matthewp)! - Bump to Vite 3! + ## 0.4.1 ### Patch Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 0c694f68384fe..74a4118e9ea07 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "0.4.1", + "version": "0.5.0", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/markdown/component/CHANGELOG.md b/packages/markdown/component/CHANGELOG.md new file mode 100644 index 0000000000000..9643d05ba7240 --- /dev/null +++ b/packages/markdown/component/CHANGELOG.md @@ -0,0 +1,38 @@ +# @astrojs/markdown-component + +## 0.2.0 + +### Minor Changes + +- [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default. + + For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). + + Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. + + ```js + // https://astro.build/config + export default defineConfig({ + legacy: { + astroFlavoredMarkdown: true, + }, + }); + ``` + +* [#3986](https://github.com/withastro/astro/pull/3986) [`bccd88f0e`](https://github.com/withastro/astro/commit/bccd88f0ebe1fbf383c0cee4b27a4c24c72dea72) Thanks [@matthewp](https://github.com/matthewp)! - Move the Markdown component to its own package + + This change moves the Markdown component into its own package where it will be maintained separately. All that needs to change from a user's perspective is the import statement: + + ```astro + --- + import { Markdown } from 'astro/components'; + --- + ``` + + Becomes: + + ```astro + --- + import Markdown from '@astrojs/markdown-component'; + --- + ``` diff --git a/packages/markdown/component/package.json b/packages/markdown/component/package.json index fcbb120c525a7..2b2743ae6f628 100644 --- a/packages/markdown/component/package.json +++ b/packages/markdown/component/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-component", - "version": "0.1.0", + "version": "0.2.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 17fbae5bb00e9..35a0da2372946 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,32 @@ # @astrojs/markdown-remark +## 0.13.0 + +### Minor Changes + +- [`ba11b3399`](https://github.com/withastro/astro/commit/ba11b33996d79c32da947986edb0f32dbcc04aaf) Thanks [@RafidMuhymin](https://github.com/RafidMuhymin)! - fixed generated slugs in markdown that ends with a dash + +* [#4016](https://github.com/withastro/astro/pull/4016) [`00fab4ce1`](https://github.com/withastro/astro/commit/00fab4ce135eb799cac69140403d7724686733d6) Thanks [@bholmesdev](https://github.com/bholmesdev)! - The use of components and JSX expressions in Markdown are no longer supported by default. + + For long term support, migrate to the `@astrojs/mdx` integration for MDX support (including `.mdx` pages!). + + Not ready to migrate to MDX? Add the legacy flag to your Astro config to re-enable the previous Markdown support. + + ```js + // https://astro.build/config + export default defineConfig({ + legacy: { + astroFlavoredMarkdown: true, + }, + }); + ``` + +- [#4031](https://github.com/withastro/astro/pull/4031) [`6e27a5fdc`](https://github.com/withastro/astro/commit/6e27a5fdc21276cad26cd50e16a2709a40a7cbac) Thanks [@natemoo-re](https://github.com/natemoo-re)! - **BREAKING** Renamed Markdown utility function `getHeaders()` to `getHeadings()`. + +### Patch Changes + +- [#4008](https://github.com/withastro/astro/pull/4008) [`399d7e269`](https://github.com/withastro/astro/commit/399d7e269834d11c046b390705a9a53d3738f3cf) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Avoid parsing JSX, components, and Astro islands when using "plain" md mode. This brings `markdown.mode: 'md'` in-line with our docs description. + ## 0.12.0 ### Minor Changes diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 5cb1c7cbd7cc9..cb8096a4db396 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-remark", - "version": "0.12.0", + "version": "0.13.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d9e730c901c34..97b3cb7681176 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,14 +59,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: '@astrojs/preact': ^0.5.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.7.3 dependencies: preact: 10.10.0 @@ -77,7 +77,7 @@ importers: examples/blog-multiple-authors: specifiers: '@astrojs/preact': ^0.5.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -89,14 +89,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -112,7 +112,7 @@ importers: '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -131,14 +131,14 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: alpinejs: ^3.10.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 dependencies: alpinejs: 3.10.3 devDependencies: @@ -146,9 +146,9 @@ importers: examples/framework-lit: specifiers: - '@astrojs/lit': ^0.3.1 + '@astrojs/lit': ^0.3.2 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -159,14 +159,14 @@ importers: examples/framework-multiple: specifiers: - '@astrojs/lit': ^0.3.1 + '@astrojs/lit': ^0.3.2 '@astrojs/preact': ^0.5.2 '@astrojs/react': ^0.4.2 '@astrojs/solid-js': ^0.4.1 - '@astrojs/svelte': ^0.4.1 - '@astrojs/vue': ^0.4.1 + '@astrojs/svelte': ^0.5.0 + '@astrojs/vue': ^0.5.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -195,7 +195,7 @@ importers: examples/framework-preact: specifiers: '@astrojs/preact': ^0.5.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.7.3 dependencies: preact: 10.10.0 @@ -208,7 +208,7 @@ importers: '@astrojs/react': ^0.4.2 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -223,7 +223,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^0.4.1 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 solid-js: ^1.4.3 dependencies: solid-js: 1.4.8 @@ -233,8 +233,8 @@ importers: examples/framework-svelte: specifiers: - '@astrojs/svelte': ^0.4.1 - astro: ^1.0.0-rc.0 + '@astrojs/svelte': ^0.5.0 + astro: ^1.0.0-rc.1 svelte: ^3.48.0 dependencies: svelte: 3.49.0 @@ -244,8 +244,8 @@ importers: examples/framework-vue: specifiers: - '@astrojs/vue': ^0.4.1 - astro: ^1.0.0-rc.0 + '@astrojs/vue': ^0.5.0 + astro: ^1.0.0-rc.1 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -255,15 +255,15 @@ importers: examples/integrations-playground: specifiers: - '@astrojs/lit': ^0.3.1 - '@astrojs/partytown': ^0.1.8 + '@astrojs/lit': ^0.3.2 + '@astrojs/partytown': ^0.1.9 '@astrojs/react': ^0.4.2 - '@astrojs/sitemap': ^0.2.6 + '@astrojs/sitemap': ^0.3.0 '@astrojs/solid-js': 0.4.1 - '@astrojs/tailwind': ^0.2.4 + '@astrojs/tailwind': ^0.2.5 '@astrojs/turbolinks': ^0.1.4 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -292,20 +292,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^0.5.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -317,9 +317,9 @@ importers: examples/ssr: specifiers: - '@astrojs/node': ^0.1.6 - '@astrojs/svelte': ^0.4.1 - astro: ^1.0.0-rc.0 + '@astrojs/node': ^0.2.0 + '@astrojs/svelte': ^0.5.0 + astro: ^1.0.0-rc.1 concurrently: ^7.2.1 lightcookie: ^1.0.25 svelte: ^3.48.0 @@ -338,14 +338,14 @@ importers: examples/starter: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 devDependencies: astro: link:../../packages/astro examples/subpath: specifiers: '@astrojs/react': ^0.4.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 react: ^18.1.0 react-dom: ^18.1.0 sass: ^1.52.2 @@ -359,8 +359,8 @@ importers: examples/with-markdown-plugins: specifiers: - '@astrojs/markdown-remark': ^0.12.0 - astro: ^1.0.0-rc.0 + '@astrojs/markdown-remark': ^0.13.0 + astro: ^1.0.0-rc.1 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -377,17 +377,17 @@ importers: examples/with-markdown-shiki: specifiers: - '@astrojs/markdown-remark': ^0.12.0 - astro: ^1.0.0-rc.0 + '@astrojs/markdown-remark': ^0.13.0 + astro: ^1.0.0-rc.1 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro examples/with-mdx: specifiers: - '@astrojs/mdx': ^0.2.1 + '@astrojs/mdx': ^0.3.0 '@astrojs/preact': ^0.5.2 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 preact: ^10.6.5 devDependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -399,7 +399,7 @@ importers: specifiers: '@astrojs/preact': ^0.5.2 '@nanostores/preact': ^0.1.3 - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -412,8 +412,8 @@ importers: examples/with-tailwindcss: specifiers: - '@astrojs/tailwind': ^0.2.4 - astro: ^1.0.0-rc.0 + '@astrojs/tailwind': ^0.2.5 + astro: ^1.0.0-rc.1 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -428,7 +428,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.0-rc.0 + astro: ^1.0.0-rc.1 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: @@ -440,7 +440,7 @@ importers: specifiers: '@astrojs/compiler': ^0.22.0 '@astrojs/language-server': ^0.20.0 - '@astrojs/markdown-remark': ^0.12.0 + '@astrojs/markdown-remark': ^0.13.0 '@astrojs/prism': 0.6.1 '@astrojs/telemetry': ^0.4.1 '@astrojs/webapi': ^0.12.0