diff --git a/.changeset/angry-pots-boil.md b/.changeset/angry-pots-boil.md deleted file mode 100644 index 7d367da3c1cc1..0000000000000 --- a/.changeset/angry-pots-boil.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'astro': minor -'@astrojs/mdx': minor -'@astrojs/markdown-remark': minor ---- - -Introduce a `smartypants` flag to opt-out of Astro's default SmartyPants plugin. - -```js -{ - markdown: { - smartypants: false, - } -} -``` - - #### Migration - - You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the `extendDefaultPlugins` option. This has now been split into 2 flags to disable each plugin individually: - - `markdown.gfm` to disable GitHub-Flavored Markdown - - `markdown.smartypants` to disable SmartyPants - - ```diff - // astro.config.mjs - import { defineConfig } from 'astro/config'; - - export default defineConfig({ - markdown: { - - extendDefaultPlugins: false, - + smartypants: false, - + gfm: false, - } - }); - ``` diff --git a/.changeset/angry-spoons-flow.md b/.changeset/angry-spoons-flow.md deleted file mode 100644 index e00f0cce2c322..0000000000000 --- a/.changeset/angry-spoons-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Remove legacy compiler error handling diff --git a/.changeset/beige-beds-smile.md b/.changeset/beige-beds-smile.md deleted file mode 100644 index ee0f23a7c68a0..0000000000000 --- a/.changeset/beige-beds-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix edge case with bundle generation by emitting a single chunk for pages diff --git a/.changeset/beige-pumpkins-pump.md b/.changeset/beige-pumpkins-pump.md deleted file mode 100644 index 54b33a6195c6b..0000000000000 --- a/.changeset/beige-pumpkins-pump.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -'astro': major -'@astrojs/markdown-remark': major -'@astrojs/mdx': minor ---- - -Give remark and rehype plugins access to user frontmatter via frontmatter injection. This means `data.astro.frontmatter` is now the _complete_ Markdown or MDX document's frontmatter, rather than an empty object. - -This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an `imageSrc` slug in your document frontmatter: - -```ts -export function remarkInjectSocialImagePlugin() { - return function (tree, file) { - const { frontmatter } = file.data.astro; - frontmatter.socialImageSrc = new URL( - frontmatter.imageSrc, - 'https://my-blog.com/', - ).pathname; - } -} -``` - -#### Content Collections - new `remarkPluginFrontmatter` property - -We have changed _inject_ frontmatter to _modify_ frontmatter in our docs to improve discoverability. This is based on support forum feedback, where "injection" is rarely the term used. - -To reflect this, the `injectedFrontmatter` property has been renamed to `remarkPluginFrontmatter`. This should clarify this plugin is still separate from the `data` export Content Collections expose today. - - -#### Migration instructions - -Plugin authors should now **check for user frontmatter when applying defaults.** - -For example, say a remark plugin wants to apply a default `title` if none is present. Add a conditional to check if the property is present, and update if none exists: - -```diff -export function remarkInjectTitlePlugin() { - return function (tree, file) { - const { frontmatter } = file.data.astro; -+ if (!frontmatter.title) { - frontmatter.title = 'Default title'; -+ } - } -} -``` - -This differs from previous behavior, where a Markdown file's frontmatter would _always_ override frontmatter injected via remark or reype. diff --git a/.changeset/beige-waves-wave.md b/.changeset/beige-waves-wave.md deleted file mode 100644 index 690c371607b7c..0000000000000 --- a/.changeset/beige-waves-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/partytown': patch ---- - -fix trailing slash with base path diff --git a/.changeset/calm-emus-raise.md b/.changeset/calm-emus-raise.md deleted file mode 100644 index 4e721aecff2d3..0000000000000 --- a/.changeset/calm-emus-raise.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': major -'@astrojs/mdx': minor ---- - -Remove deprecated Markdown APIs from Astro v0.X. This includes `getHeaders()`, the `.astro` property for layouts, and the `rawContent()` and `compiledContent()` error messages for MDX. diff --git a/.changeset/calm-peas-doubt.md b/.changeset/calm-peas-doubt.md deleted file mode 100644 index 68de7b3a674bb..0000000000000 --- a/.changeset/calm-peas-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Remove proload to load the Astro config. It will now use NodeJS and Vite to load the config only. diff --git a/.changeset/chatty-planes-bathe.md b/.changeset/chatty-planes-bathe.md deleted file mode 100644 index 726c6782f3b34..0000000000000 --- a/.changeset/chatty-planes-bathe.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@astrojs/svelte': major -'astro': minor ---- - -The fallback Svelte preprocessor will only be applied if a custom `preprocess` option is not passed to the `svelte()` integration option, or in the `svelte.config.js` file. - -To support IDE autocompletion, or if you're migrating from `@astrojs/svelte` v1, you can create a `svelte.config.js` file with: - -```js -import { vitePreprocess } from '@astrojs/svelte'; - -export default { - preprocess: vitePreprocess(), -}; -``` - -This file will also be generated by `astro add svelte` by default. diff --git a/.changeset/chatty-rivers-camp.md b/.changeset/chatty-rivers-camp.md deleted file mode 100644 index 99e24e82e4474..0000000000000 --- a/.changeset/chatty-rivers-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/lit': patch ---- - -Only shim fetch if not already present diff --git a/.changeset/chilled-geese-worry.md b/.changeset/chilled-geese-worry.md deleted file mode 100644 index 3b15517248cdc..0000000000000 --- a/.changeset/chilled-geese-worry.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'astro': major ---- - -The previously experimental features `--experimental-error-overlay` and `--experimental-prerender`, both added in v1.7.0, are now the default. - -You'll notice that the error overlay during `astro dev` has a refreshed visual design and provides more context for your errors. - -The `prerender` feature is now enabled by default when using `output: 'server'`. To prerender a particular page, add `export const prerender = true` to your frontmatter. - -> **Warning** -> Integration authors that previously relied on the exact structure of Astro's v1.0 build output may notice some changes to our output file structure. Please test your integrations to ensure compatability. -> Users that have configured a custom `vite.build.rollupOptions.output.chunkFileNames` should ensure that their Astro project is configured as an ESM Node project. Either include `"type": "module"` in your root `package.json` file or use the `.mjs` extension for `chunkFileNames`. diff --git a/.changeset/curvy-beds-warn.md b/.changeset/curvy-beds-warn.md deleted file mode 100644 index a09fb9a8176ca..0000000000000 --- a/.changeset/curvy-beds-warn.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'astro': major -'@astrojs/prism': major -'create-astro': major -'@astrojs/mdx': minor -'@astrojs/node': major -'@astrojs/preact': major -'@astrojs/react': major -'@astrojs/solid-js': major -'@astrojs/svelte': major -'@astrojs/vercel': major -'@astrojs/vue': major -'@astrojs/telemetry': major ---- - -Remove support for Node 14. Minimum supported Node version is now >=16.12.0 diff --git a/.changeset/curvy-foxes-reply.md b/.changeset/curvy-foxes-reply.md deleted file mode 100644 index 99eb66d6980c4..0000000000000 --- a/.changeset/curvy-foxes-reply.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': minor ---- - -Move generated content collection types to a `.astro` directory. This replaces the previously generated `src/content/types.generated.d.ts` file. - -If you're using Git for version control, we recommend ignoring this generated directory by adding `.astro` to your .gitignore. - -Astro will also generate the [TypeScript reference path](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-path-) to include `.astro` types in your project. This will update your project's `src/env.d.ts` file, or write one if none exists. diff --git a/.changeset/dull-rabbits-relax.md b/.changeset/dull-rabbits-relax.md deleted file mode 100644 index 03bf99dac03f3..0000000000000 --- a/.changeset/dull-rabbits-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Upgrade compiler and handle breaking changes diff --git a/.changeset/eleven-bulldogs-provide.md b/.changeset/eleven-bulldogs-provide.md deleted file mode 100644 index e8ae0f16cc9b6..0000000000000 --- a/.changeset/eleven-bulldogs-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Persist CLI flags when restarting the dev server diff --git a/.changeset/few-rice-report.md b/.changeset/few-rice-report.md deleted file mode 100644 index c92b909b82ffa..0000000000000 --- a/.changeset/few-rice-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add a theme toggle button to the error overlay diff --git a/.changeset/fluffy-cups-travel.md b/.changeset/fluffy-cups-travel.md deleted file mode 100644 index aa22e3d911e84..0000000000000 --- a/.changeset/fluffy-cups-travel.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -'@astrojs/rss': minor ---- - -Update RSS config for readability and consistency with Astro 2.0. - -#### Migration - `import.meta.glob()` handling - -We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality. - -If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config: - -```diff -// src/pages/rss.xml.js -import rss, { -+ pagesGlobToRssItems -} from '@astrojs/rss'; - -export function get(context) { - return rss({ -+ items: pagesGlobToRssItems( - import.meta.glob('./blog/*.{md,mdx}'), -+ ), - }); -} -``` - -#### New `rssSchema` for content collections - -`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter: - -```ts -import { defineCollection } from 'astro:content'; -import { rssSchema } from '@astrojs/rss'; - -const blog = defineCollection({ - schema: rssSchema, -}); - -export const collections = { blog }; -``` diff --git a/.changeset/fluffy-mirrors-swim.md b/.changeset/fluffy-mirrors-swim.md deleted file mode 100644 index 5f904c4e90a16..0000000000000 --- a/.changeset/fluffy-mirrors-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Simplify HMR handling diff --git a/.changeset/fluffy-onions-wink.md b/.changeset/fluffy-onions-wink.md deleted file mode 100644 index 617ebd632e16c..0000000000000 --- a/.changeset/fluffy-onions-wink.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'astro': patch ---- - -Better handle content type generation failures: -- Generate types when content directory is empty -- Log helpful error when running `astro sync` without a content directory -- Avoid swallowing `config.ts` syntax errors from Vite diff --git a/.changeset/giant-chefs-rule.md b/.changeset/giant-chefs-rule.md deleted file mode 100644 index 16d4df352a03a..0000000000000 --- a/.changeset/giant-chefs-rule.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/mdx': patch -'@astrojs/markdown-remark': patch ---- - -fix shiki css class replace logic diff --git a/.changeset/gold-baboons-tie.md b/.changeset/gold-baboons-tie.md deleted file mode 100644 index d6a0f574b7aca..0000000000000 --- a/.changeset/gold-baboons-tie.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/partytown': patch ---- - -Bumps `@builder.io/partytown` version in partytown integration to fix deprecation warning in pagespeed insights diff --git a/.changeset/grumpy-days-yell.md b/.changeset/grumpy-days-yell.md deleted file mode 100644 index 5cc00ff54b7ec..0000000000000 --- a/.changeset/grumpy-days-yell.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': major ---- - -Removes support for astroFlavoredMarkdown - -In 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the `legacy.astroFlavoredMarkdown` option completely. - -In 2.0 this feature will not be available in Astro at all. We recommend migration to MDX for those were still using this feature in 1.x. diff --git a/.changeset/kind-beers-give.md b/.changeset/kind-beers-give.md deleted file mode 100644 index 2cda00bcfd516..0000000000000 --- a/.changeset/kind-beers-give.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/lit': patch ---- - -Fix Lit slotted content diff --git a/.changeset/kind-panthers-doubt.md b/.changeset/kind-panthers-doubt.md deleted file mode 100644 index a38d6b775c9bb..0000000000000 --- a/.changeset/kind-panthers-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -Support headless runs with `-y` / `--yes` diff --git a/.changeset/kind-seahorses-reply.md b/.changeset/kind-seahorses-reply.md deleted file mode 100644 index 03ca7b07bba18..0000000000000 --- a/.changeset/kind-seahorses-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Handle custom injected entry files during build diff --git a/.changeset/large-hotels-give.md b/.changeset/large-hotels-give.md deleted file mode 100644 index 4667b73daaaef..0000000000000 --- a/.changeset/large-hotels-give.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -Improve error message for third-party template 404s diff --git a/.changeset/large-steaks-film.md b/.changeset/large-steaks-film.md deleted file mode 100644 index a919c411eb2a3..0000000000000 --- a/.changeset/large-steaks-film.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -'astro': major ---- - -Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` collection config option from Astro 1.X and the 2.0 beta. - -When present in a Markdown or MDX file, this will override the generated slug for that entry. - -```diff -# src/content/blog/post-1.md ---- -title: Post 1 -+ slug: post-1-custom-slug ---- -``` - -Astro will respect this slug in the generated `slug` type and when using the `getEntryBySlug()` utility: - -```astro ---- -import { getEntryBySlug } from 'astro:content'; - -// Retrieve `src/content/blog/post-1.md` by slug with type safety -const post = await getEntryBySlug('blog', 'post-1-custom-slug'); ---- -``` - -#### Migration - -If you relied on the `slug()` config option, you will need to move all custom slugs to `slug` frontmatter properties in each collection entry. - -Additionally, Astro no longer allows `slug` as a collection schema property. This ensures Astro can manage the `slug` property for type generation and performance. Remove this property from your schema and any relevant `slug()` configuration: - -```diff -const blog = defineCollection({ - schema: z.object({ -- slug: z.string().optional(), - }), -- slug({ defaultSlug, data }) { -- return data.slug ?? defaultSlug; -- }, -}) -``` diff --git a/.changeset/lemon-bobcats-kick.md b/.changeset/lemon-bobcats-kick.md deleted file mode 100644 index 444863635afd9..0000000000000 --- a/.changeset/lemon-bobcats-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Default preview host to `localhost` instead of `127.0.0.1`. This allows the static server and integration preview servers to serve under ipv6. diff --git a/.changeset/lemon-eagles-worry.md b/.changeset/lemon-eagles-worry.md deleted file mode 100644 index 9a5671b00d182..0000000000000 --- a/.changeset/lemon-eagles-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix `prerender` when used with `getStaticPaths` diff --git a/.changeset/lovely-terms-drive.md b/.changeset/lovely-terms-drive.md deleted file mode 100644 index 1a84e0bbdb9ee..0000000000000 --- a/.changeset/lovely-terms-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Remove MDX Fragment hack. This was used by `@astrojs/mdx` to access the `Fragment` component, but isn't require anymore since `@astrojs/mdx` v0.12.1. diff --git a/.changeset/lovely-worms-invite.md b/.changeset/lovely-worms-invite.md deleted file mode 100644 index b8f3383afb61d..0000000000000 --- a/.changeset/lovely-worms-invite.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@astrojs/deno': major -'@astrojs/netlify': major -'@astrojs/image': minor -'astro': major ---- - -**Breaking Change**: client assets are built to an `_astro` directory rather than the previous `assets` directory. This setting can now be controlled by the new `build` configuration option named `assets`. - -This should simplify configuring immutable caching with your adapter provider as all files are now in the same `_astro` directory. diff --git a/.changeset/lucky-ants-push.md b/.changeset/lucky-ants-push.md deleted file mode 100644 index 0bad84f475331..0000000000000 --- a/.changeset/lucky-ants-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/svelte": patch ---- - -Improve README diff --git a/.changeset/lucky-tigers-know.md b/.changeset/lucky-tigers-know.md deleted file mode 100644 index cf4c6ad00790a..0000000000000 --- a/.changeset/lucky-tigers-know.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/image': patch -'@astrojs/webapi': patch ---- - -Update magic-string from 0.25.9 to 0.27.0 diff --git a/.changeset/mean-suits-cover.md b/.changeset/mean-suits-cover.md deleted file mode 100644 index f19a642d466c1..0000000000000 --- a/.changeset/mean-suits-cover.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/image': patch ---- - -- Refactor types to support props auto-completion for the `Image` and `Picture` components. -- Pass previously missing `alt` prop to the `getPicture` function diff --git a/.changeset/modern-bulldogs-film.md b/.changeset/modern-bulldogs-film.md deleted file mode 100644 index 17b0b68be5fba..0000000000000 --- a/.changeset/modern-bulldogs-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/netlify': patch ---- - -Fix set-cookies not working in certain cases when using Node 18+ diff --git a/.changeset/neat-eagles-trade.md b/.changeset/neat-eagles-trade.md deleted file mode 100644 index b92353e8e4111..0000000000000 --- a/.changeset/neat-eagles-trade.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'astro': major ---- - -Move getEntry to getEntryBySlug - -This change moves `getEntry` to `getEntryBySlug` and accepts a slug rather than an id. - -In order to improve support in `[id].astro` routes, particularly in SSR where you do not know what the id of a collection is. Using `getEntryBySlug` instead allows you to map the `[id]` param in your route to the entry. You can use it like this: - -```astro ---- -import { getEntryBySlug } from 'astro:content'; - -const entry = await getEntryBySlug('docs', Astro.params.id); - -if(!entry) { - return new Response(null, { - status: 404 - }); -} ---- - -``` diff --git a/.changeset/new-lies-guess.md b/.changeset/new-lies-guess.md deleted file mode 100644 index 262503a1ede58..0000000000000 --- a/.changeset/new-lies-guess.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': major -'@astrojs/svelte': major -'@astrojs/vue': major ---- - -Upgrade to Vite 4. Please see its [migration guide](https://vitejs.dev/guide/migration.html) for more information. diff --git a/.changeset/ninety-garlics-fly.md b/.changeset/ninety-garlics-fly.md deleted file mode 100644 index 03ee22f2d367e..0000000000000 --- a/.changeset/ninety-garlics-fly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix importing client-side components with alias diff --git a/.changeset/odd-mirrors-beam.md b/.changeset/odd-mirrors-beam.md deleted file mode 100644 index 7add2f21ecfe7..0000000000000 --- a/.changeset/odd-mirrors-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -Fix the integration failing to work properly on Node 18+ diff --git a/.changeset/poor-chicken-film.md b/.changeset/poor-chicken-film.md deleted file mode 100644 index ecbc3b44caa73..0000000000000 --- a/.changeset/poor-chicken-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdown-remark': major ---- - -Drop support for legacy Astro-flavored Markdown diff --git a/.changeset/poor-ladybugs-thank.md b/.changeset/poor-ladybugs-thank.md deleted file mode 100644 index 109ce43a94294..0000000000000 --- a/.changeset/poor-ladybugs-thank.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Handle server restart from Vite plugins diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 1fd49bd5030fa..0000000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "mode": "exit", - "tag": "beta", - "initialVersions": { - "@example/basics": "0.0.1", - "@example/blog": "0.0.1", - "@example/component": "0.0.1", - "@example/deno": "0.0.1", - "@example/docs": "0.0.1", - "@example/framework-alpine": "0.0.1", - "@example/framework-lit": "0.0.1", - "@example/framework-multiple": "0.0.1", - "@example/framework-preact": "0.0.1", - "@example/framework-react": "0.0.1", - "@example/framework-solid": "0.0.1", - "@example/framework-svelte": "0.0.1", - "@example/framework-vue": "0.0.1", - "@example/hackernews": "0.0.1", - "@example/integration": "0.0.1", - "@example/minimal": "0.0.1", - "@example/non-html-pages": "0.0.1", - "@example/portfolio": "0.0.1", - "@example/ssr": "0.0.1", - "@example/with-content": "0.0.1", - "@example/with-markdown-plugins": "0.0.2", - "@example/with-markdown-shiki": "0.0.1", - "@example/with-mdx": "0.0.1", - "@example/with-nanostores": "0.0.1", - "@example/with-tailwindcss": "0.0.1", - "@example/with-vite-plugin-pwa": "0.0.1", - "@example/with-vitest": "0.0.1", - "astro": "1.9.0", - "@astrojs/prism": "1.0.2", - "@astrojs/rss": "2.0.0", - "@test/component-library-shared": "0.1.0", - "@test/custom-element-renderer": "0.1.0", - "create-astro": "1.2.4", - "@astrojs/alpinejs": "0.1.2", - "@astrojs/cloudflare": "5.0.0", - "@astrojs/deno": "3.0.0", - "@astrojs/image": "0.12.1", - "@astrojs/lit": "1.0.1", - "@astrojs/mdx": "0.14.0", - "@astrojs/netlify": "1.3.0", - "@astrojs/node": "4.0.0", - "@astrojs/partytown": "1.0.2", - "@astrojs/preact": "1.2.0", - "@astrojs/prefetch": "0.1.1", - "@astrojs/react": "1.2.2", - "@astrojs/sitemap": "1.0.0", - "@astrojs/solid-js": "1.2.3", - "@astrojs/svelte": "1.0.2", - "@astrojs/tailwind": "2.1.3", - "@astrojs/turbolinks": "0.1.4", - "@astrojs/vercel": "2.4.0", - "@astrojs/vue": "1.2.2", - "@astrojs/markdown-component": "1.0.2", - "@astrojs/markdown-remark": "1.2.0", - "@astrojs/telemetry": "1.0.1", - "@astrojs/webapi": "1.1.1", - "astro-scripts": "0.0.9" - }, - "changesets": [ - "angry-pots-boil", - "angry-spoons-flow", - "beige-beds-smile", - "beige-pumpkins-pump", - "calm-emus-raise", - "calm-peas-doubt", - "chatty-planes-bathe", - "chatty-rivers-camp", - "chilled-geese-worry", - "curvy-beds-warn", - "curvy-foxes-reply", - "dull-rabbits-relax", - "eleven-bulldogs-provide", - "few-rice-report", - "fluffy-cups-travel", - "fluffy-mirrors-swim", - "fluffy-onions-wink", - "giant-chefs-rule", - "gold-baboons-tie", - "grumpy-days-yell", - "kind-beers-give", - "lemon-bobcats-kick", - "lemon-eagles-worry", - "lovely-terms-drive", - "lovely-worms-invite", - "mean-suits-cover", - "modern-bulldogs-film", - "neat-eagles-trade", - "new-lies-guess", - "ninety-garlics-fly", - "odd-mirrors-beam", - "poor-chicken-film", - "poor-ladybugs-thank", - "pretty-planes-promise", - "quick-impalas-rush", - "quiet-actors-agree", - "real-nails-clean", - "red-snakes-fetch", - "selfish-tigers-do", - "serious-cats-jog", - "shaggy-bags-attend", - "shaggy-keys-turn", - "shaggy-melons-tap", - "six-carpets-talk", - "smart-clouds-applaud", - "smooth-guests-perform", - "spicy-parrots-beam", - "spicy-tips-dream", - "spotty-bees-switch", - "stupid-wolves-explain", - "sweet-rocks-count", - "swift-kangaroos-decide", - "thick-walls-smell", - "thin-beers-drive", - "thin-seahorses-worry", - "tricky-rabbits-count", - "twelve-cooks-tickle", - "twenty-boxes-know", - "twenty-llamas-type", - "two-geese-eat", - "two-needles-buy", - "wicked-clouds-obey", - "witty-pugs-drum" - ] -} diff --git a/.changeset/pretty-planes-promise.md b/.changeset/pretty-planes-promise.md deleted file mode 100644 index 668be49b294da..0000000000000 --- a/.changeset/pretty-planes-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix for hoisted scripts in project with spaces in the file path diff --git a/.changeset/quick-impalas-rush.md b/.changeset/quick-impalas-rush.md deleted file mode 100644 index 7b9ae2f041f47..0000000000000 --- a/.changeset/quick-impalas-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Fix broken links in README diff --git a/.changeset/quiet-actors-agree.md b/.changeset/quiet-actors-agree.md deleted file mode 100644 index 48730ebf0acc7..0000000000000 --- a/.changeset/quiet-actors-agree.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'astro': minor ---- - -Allow Zod objects, unions, discriminated unions, intersections, and transform results as content collection schemas. - -#### Migration - -Astro requires a `z.object(...)` wrapper on all content collection schemas. Update your content collections config like so: - -```diff -// src/content/config.ts -import { z, defineCollection } from 'astro:content'; - -const blog = defineCollection({ -- schema: { -+ schema: z.object({ - ... -}) -``` diff --git a/.changeset/real-nails-clean.md b/.changeset/real-nails-clean.md deleted file mode 100644 index 9748a82ad2d46..0000000000000 --- a/.changeset/real-nails-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': minor ---- - -Generate content types when running `astro check` diff --git a/.changeset/real-rules-occur.md b/.changeset/real-rules-occur.md deleted file mode 100644 index 10133a0592eb8..0000000000000 --- a/.changeset/real-rules-occur.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/netlify': patch ---- - -Support prerender in \_redirects diff --git a/.changeset/red-snakes-fetch.md b/.changeset/red-snakes-fetch.md deleted file mode 100644 index a60b006efeee2..0000000000000 --- a/.changeset/red-snakes-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/node': patch ---- - -Support custom 404 page in standalone mode diff --git a/.changeset/rotten-cups-happen.md b/.changeset/rotten-cups-happen.md deleted file mode 100644 index e484c098f7909..0000000000000 --- a/.changeset/rotten-cups-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix duplicate CSS in dev mode when `vite.css.devSourcemap` is provided diff --git a/.changeset/selfish-tigers-do.md b/.changeset/selfish-tigers-do.md deleted file mode 100644 index 4502080213daf..0000000000000 --- a/.changeset/selfish-tigers-do.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@astrojs/cloudflare': major -'@astrojs/deno': major -'@astrojs/image': minor -'@astrojs/netlify': major -'@astrojs/node': major -'@astrojs/vercel': major ---- - -Remove `astro:build:start` backwards compatibility code diff --git a/.changeset/serious-cats-jog.md b/.changeset/serious-cats-jog.md deleted file mode 100644 index 467424a1989da..0000000000000 --- a/.changeset/serious-cats-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': major ---- - -Remove outdated Vue info log. Remove `toString` support for `RenderTemplateResult`. diff --git a/.changeset/shaggy-bags-attend.md b/.changeset/shaggy-bags-attend.md deleted file mode 100644 index 4a48d24ba0865..0000000000000 --- a/.changeset/shaggy-bags-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/webapi': major ---- - -Moved target to Node 16. Removed polyfills for AbortController, AbortSignal, atob, btoa, Object.hasOwn, Promise.all, Array.at and String.replaceAll diff --git a/.changeset/shaggy-keys-turn.md b/.changeset/shaggy-keys-turn.md deleted file mode 100644 index 66471e91976fe..0000000000000 --- a/.changeset/shaggy-keys-turn.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -'astro': major -'@astrojs/markdown-remark': major -'@astrojs/mdx': minor ---- - -Refine Markdown and MDX configuration options for ease-of-use. - -#### Markdown - -- **Remove `remark-smartypants`** from Astro's default Markdown plugins. -- **Replace the `extendDefaultPlugins` option** with a simplified `gfm` boolean. This is enabled by default, and can be disabled to remove GitHub-Flavored Markdown. -- Ensure GitHub-Flavored Markdown is applied whether or not custom `remarkPlugins` or `rehypePlugins` are configured. If you want to apply custom plugins _and_ remove GFM, manually set `gfm: false` in your config. - -#### MDX - -- Support _all_ Markdown configuration options (except `drafts`) from your MDX integration config. This includes `syntaxHighlighting` and `shikiConfig` options to further customize the MDX renderer. -- Simplify `extendDefaults` to an `extendMarkdownConfig` option. MDX options will default to their equivalent in your Markdown config. By setting `extendMarkdownConfig` to false, you can "eject" to set your own syntax highlighting, plugins, and more. - -#### Migration - -To preserve your existing Markdown and MDX setup, you may need some configuration changes: - -##### Smartypants manual installation - -[Smartypants](https://github.com/silvenon/remark-smartypants) has been removed from Astro's default setup. If you rely on this plugin, [install `remark-smartypants`](https://github.com/silvenon/remark-smartypants#installing) and apply to your `astro.config.*`: - -```diff -// astro.config.mjs -import { defineConfig } from 'astro/config'; -+ import smartypants from 'remark-smartypants'; - -export default defineConfig({ - markdown: { -+ remarkPlugins: [smartypants], - } -}); -``` - -##### Migrate `extendDefaultPlugins` to `gfm` - -You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the `extendDefaultPlugins` option. Since Smartypants has been removed, this has been renamed to `gfm`. - -```diff -// astro.config.mjs -import { defineConfig } from 'astro/config'; - -export default defineConfig({ - markdown: { -- extendDefaultPlugins: false, -+ gfm: false, - } -}); -``` - - -Additionally, applying remark and rehype plugins **no longer disables** `gfm`. You will need to opt-out manually by setting `gfm` to `false`. - -##### Migrate MDX's `extendPlugins` to `extendMarkdownConfig` - -You may have used the `extendPlugins` option to manage plugin defaults in MDX. This has been replaced by 2 flags: -- `extendMarkdownConfig` (`true` by default) to toggle Markdown config inheritance. This replaces the `extendPlugins: 'markdown'` option. -- `gfm` (`true` by default) to toggle GitHub-Flavored Markdown in MDX. This replaces the `extendPlugins: 'defaults'` option. diff --git a/.changeset/shaggy-melons-tap.md b/.changeset/shaggy-melons-tap.md deleted file mode 100644 index f991e31686f43..0000000000000 --- a/.changeset/shaggy-melons-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add error location during build for user-generated errors diff --git a/.changeset/six-carpets-talk.md b/.changeset/six-carpets-talk.md deleted file mode 100644 index 8d0ab63735e5b..0000000000000 --- a/.changeset/six-carpets-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Cleanup dependencies diff --git a/.changeset/six-dingos-add.md b/.changeset/six-dingos-add.md deleted file mode 100644 index 5bd4667831c2f..0000000000000 --- a/.changeset/six-dingos-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix CLI node version check diff --git a/.changeset/smart-clouds-applaud.md b/.changeset/smart-clouds-applaud.md deleted file mode 100644 index 0fffa2103ade4..0000000000000 --- a/.changeset/smart-clouds-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add helpful error message when the MDX integration is missing. diff --git a/.changeset/smooth-guests-perform.md b/.changeset/smooth-guests-perform.md deleted file mode 100644 index 6d68f5a5ba16b..0000000000000 --- a/.changeset/smooth-guests-perform.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Update `@astrojs/compiler` to `v1.0.0` diff --git a/.changeset/spicy-parrots-beam.md b/.changeset/spicy-parrots-beam.md deleted file mode 100644 index 9cd38b278b37c..0000000000000 --- a/.changeset/spicy-parrots-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/netlify': patch ---- - -Fix issue with prerendered pages when using `edge-functions` adapter diff --git a/.changeset/spicy-tips-dream.md b/.changeset/spicy-tips-dream.md deleted file mode 100644 index 3b4714e8206aa..0000000000000 --- a/.changeset/spicy-tips-dream.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@astrojs/deno': major -'@astrojs/netlify': major -'@astrojs/image': minor -'astro': major ---- - -**Breaking Change**: client assets are built to an `_astro` directory in the build output directory. Previously these were built to various locations, including `assets/`, `chunks/` and the root of build output. - -You can control this location with the new `build` configuration option named `assets`. diff --git a/.changeset/spotty-bees-switch.md b/.changeset/spotty-bees-switch.md deleted file mode 100644 index d48f620d8d1cb..0000000000000 --- a/.changeset/spotty-bees-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/svelte': major ---- - -Simplify Svelte preprocess setup. `