diff options
Diffstat (limited to '.changeset')
31 files changed, 303 insertions, 0 deletions
diff --git a/.changeset/angry-swans-fry.md b/.changeset/angry-swans-fry.md new file mode 100644 index 000000000..ce5c513d5 --- /dev/null +++ b/.changeset/angry-swans-fry.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Redesign Dev Overlay main screen to show more information, such as the coolest integrations, your current Astro version and more. diff --git a/.changeset/beige-jokes-report.md b/.changeset/beige-jokes-report.md new file mode 100644 index 000000000..ecb97328b --- /dev/null +++ b/.changeset/beige-jokes-report.md @@ -0,0 +1,9 @@ +--- +'@astrojs/mdx': major +'@astrojs/markdown-remark': major +'astro': major +--- + +Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions. + +**Potentially breaking change:** The default value of `markdown.remarkRehype.footnoteBackLabel` is changed from `"Back to content"` to `"Back to reference 1"`. See the `mdast-util-to-hast` [commit](https://github.com/syntax-tree/mdast-util-to-hast/commit/56c88e45690be138fad9f0bf367b939d09816863) for more information. diff --git a/.changeset/big-cooks-notice.md b/.changeset/big-cooks-notice.md new file mode 100644 index 000000000..9a0586c73 --- /dev/null +++ b/.changeset/big-cooks-notice.md @@ -0,0 +1,6 @@ +--- +'@astrojs/vercel': major +'@astrojs/node': major +--- + +The internals of the integration have been updated to support Astro 4.0. Make sure to upgrade your Astro version as Astro 3.0 is no longer supported. diff --git a/.changeset/brown-jars-lick.md b/.changeset/brown-jars-lick.md new file mode 100644 index 000000000..0d824e445 --- /dev/null +++ b/.changeset/brown-jars-lick.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes an issue where links with the same pathname as the current page, but different search params, were not prefetched. diff --git a/.changeset/calm-baboons-watch.md b/.changeset/calm-baboons-watch.md new file mode 100644 index 000000000..a0e8259e9 --- /dev/null +++ b/.changeset/calm-baboons-watch.md @@ -0,0 +1,5 @@ +--- +'astro': minor +--- + +Update CLI logging experience diff --git a/.changeset/clever-beds-notice.md b/.changeset/clever-beds-notice.md new file mode 100644 index 000000000..6be65bde1 --- /dev/null +++ b/.changeset/clever-beds-notice.md @@ -0,0 +1,9 @@ +--- +'astro': major +--- + +Removes support for returning simple objects from endpoints (deprecated since Astro 3.0). You should return a `Response` instead. + +`ResponseWithEncoding` is also removed. You can refactor the code to return a response with an array buffer instead, which is encoding agnostic. + +The types for middlewares have also been revised. To type a middleware function, you should now use `MiddlewareHandler` instead of `MiddlewareResponseHandler`. If you used `defineMiddleware()` to type the function, no changes are needed. diff --git a/.changeset/famous-eels-trade.md b/.changeset/famous-eels-trade.md new file mode 100644 index 000000000..2c3d24898 --- /dev/null +++ b/.changeset/famous-eels-trade.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Ensure the dev-overlay-window is anchored to the bottom diff --git a/.changeset/gentle-cobras-wash.md b/.changeset/gentle-cobras-wash.md new file mode 100644 index 000000000..1a9245524 --- /dev/null +++ b/.changeset/gentle-cobras-wash.md @@ -0,0 +1,17 @@ +--- +'astro': minor +--- + +Adds the `astro preferences` command to manage user preferences. User preferences are specific to individual Astro users, unlike the `astro.config.mjs` file which changes behavior for everyone working on a project. + +User preferences are scoped to the current project by default, stored in a local `.astro/settings.json` file. Using the `--global` flag, user preferences can also be applied to every Astro project on the current machine. Global user preferences are stored in an operating system-specific location. + +```sh +# Disable the dev overlay for the current user in the current project +npm run astro preferences disable devOverlay +# Disable the dev overlay for the current user in all Astro projects on this machine +npm run astro preferences --global disable devOverlay + +# Check if the dev overlay is enabled for the current user +npm run astro preferences list devOverlay +``` diff --git a/.changeset/giant-snails-perform.md b/.changeset/giant-snails-perform.md new file mode 100644 index 000000000..e44a0b730 --- /dev/null +++ b/.changeset/giant-snails-perform.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': major +--- + +Removes deprecated `analytics` option. Use the `webAnalytics` option instead. diff --git a/.changeset/green-impalas-fetch.md b/.changeset/green-impalas-fetch.md new file mode 100644 index 000000000..02b77375f --- /dev/null +++ b/.changeset/green-impalas-fetch.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix SVG icons not showing properly in the extended dropdown menu of the dev overlay diff --git a/.changeset/grumpy-seas-switch.md b/.changeset/grumpy-seas-switch.md new file mode 100644 index 000000000..85cf0e22f --- /dev/null +++ b/.changeset/grumpy-seas-switch.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Improve high contrast mode with the Dev Overlay diff --git a/.changeset/khaki-fans-sell.md b/.changeset/khaki-fans-sell.md new file mode 100644 index 000000000..f6d84bdae --- /dev/null +++ b/.changeset/khaki-fans-sell.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdown-remark': patch +--- + +Fixes `RemarkRehype` type's `handler` and `handlers` properties diff --git a/.changeset/light-ties-poke.md b/.changeset/light-ties-poke.md new file mode 100644 index 000000000..97eceace4 --- /dev/null +++ b/.changeset/light-ties-poke.md @@ -0,0 +1,8 @@ +--- +'@astrojs/svelte': major +'@astrojs/react': patch +'@astrojs/vue': patch +'astro': major +--- + +Adds Vite 5 support. There are no breaking changes from Astro. Check the [Vite migration guide](https://vitejs.dev/guide/migration.html) for details of the breaking changes from Vite instead. diff --git a/.changeset/mighty-rats-flow.md b/.changeset/mighty-rats-flow.md new file mode 100644 index 000000000..8fbec88ba --- /dev/null +++ b/.changeset/mighty-rats-flow.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Update the look and feel of the dev overlay diff --git a/.changeset/modern-candles-sip.md b/.changeset/modern-candles-sip.md new file mode 100644 index 000000000..31e75c412 --- /dev/null +++ b/.changeset/modern-candles-sip.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Stop clearing the console on start diff --git a/.changeset/odd-rivers-happen.md b/.changeset/odd-rivers-happen.md new file mode 100644 index 000000000..2490084bc --- /dev/null +++ b/.changeset/odd-rivers-happen.md @@ -0,0 +1,5 @@ +--- +'astro': major +--- + +Removes the opt-in `handleForms` property for `<ViewTransitions />`. Form submissions are now handled by default and can be disabled by setting `data-astro-reload` on relevant `<form />` elements. diff --git a/.changeset/plenty-candles-help.md b/.changeset/plenty-candles-help.md new file mode 100644 index 000000000..e7ddf8cb4 --- /dev/null +++ b/.changeset/plenty-candles-help.md @@ -0,0 +1,21 @@ +--- +'astro': major +--- + +Removes support for Shiki custom language's `path` property. The language JSON file should be imported and passed to the option instead. + +```diff +// astro.config.js ++ import customLang from './custom.tmLanguage.json' + +export default defineConfig({ + markdown: { + shikiConfig: { + langs: [ +- { path: './custom.tmLanguage.json' }, ++ customLang, + ], + }, + }, +}) +``` diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 000000000..da91f9c8c --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,62 @@ +{ + "mode": "pre", + "tag": "beta", + "initialVersions": { + "astro": "3.5.5", + "@astrojs/prism": "3.0.0", + "@astrojs/rss": "3.0.0", + "create-astro": "4.5.1", + "@astrojs/alpinejs": "0.3.1", + "@astrojs/cloudflare": "0.0.0", + "@astrojs/lit": "3.0.3", + "@astrojs/markdoc": "0.7.2", + "@astrojs/mdx": "1.1.5", + "@astrojs/netlify": "0.0.0", + "@astrojs/node": "6.0.4", + "@astrojs/partytown": "2.0.2", + "@astrojs/preact": "3.0.1", + "@astrojs/prefetch": "0.4.1", + "@astrojs/react": "3.0.5", + "@astrojs/sitemap": "3.0.3", + "@astrojs/solid-js": "3.0.2", + "@astrojs/svelte": "4.0.4", + "@astrojs/tailwind": "5.0.2", + "@astrojs/vercel": "5.2.0", + "@astrojs/vue": "3.0.4", + "@astrojs/internal-helpers": "0.2.1", + "@astrojs/markdown-remark": "3.5.0", + "@astrojs/telemetry": "3.0.4", + "@astrojs/underscore-redirects": "0.3.3", + "@astrojs/upgrade": "0.0.1" + }, + "changesets": [ + "angry-swans-fry", + "beige-jokes-report", + "big-cooks-notice", + "brown-jars-lick", + "calm-baboons-watch", + "clever-beds-notice", + "famous-eels-trade", + "gentle-cobras-wash", + "giant-snails-perform", + "grumpy-seas-switch", + "khaki-fans-sell", + "light-ties-poke", + "modern-candles-sip", + "odd-rivers-happen", + "plenty-candles-help", + "rude-hairs-whisper", + "sharp-starfishes-compete", + "shiny-trees-sip", + "short-deers-whisper", + "slow-hornets-try", + "sour-games-burn", + "spicy-starfishes-shake", + "tasty-dryers-bathe", + "three-chairs-sip", + "tricky-dragons-explain", + "weak-wolves-bow", + "wicked-sloths-develop", + "wild-apricots-rescue" + ] +} diff --git a/.changeset/rude-hairs-whisper.md b/.changeset/rude-hairs-whisper.md new file mode 100644 index 000000000..a9d7baa4d --- /dev/null +++ b/.changeset/rude-hairs-whisper.md @@ -0,0 +1,5 @@ +--- +'astro': minor +--- + +Renames the `entryPoint` property of the `injectRoute` integrations API to `entrypoint` for consistency. A warning will be shown prompting you to update your code when using the old name. diff --git a/.changeset/sharp-starfishes-compete.md b/.changeset/sharp-starfishes-compete.md new file mode 100644 index 000000000..0eb4f413b --- /dev/null +++ b/.changeset/sharp-starfishes-compete.md @@ -0,0 +1,20 @@ +--- +'astro': major +--- + +This change only affects maintainers of third-party adapters. In the Integration API, the `app.render()` method of the `App` class has been simplified. + +Instead of two optional arguments, it now takes a single optional argument that is an object with two optional properties: `routeData` and `locals`. +```diff + app.render(request) + +- app.render(request, routeData) ++ app.render(request, { routeData }) + +- app.render(request, routeData, locals) ++ app.render(request, { routeData, locals }) + +- app.render(request, undefined, locals) ++ app.render(request, { locals }) +``` +The current signature is deprecated but will continue to function until next major version. diff --git a/.changeset/shiny-trees-sip.md b/.changeset/shiny-trees-sip.md new file mode 100644 index 000000000..991c7aa92 --- /dev/null +++ b/.changeset/shiny-trees-sip.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdown-remark': major +--- + +Removes deprecated APIs. All Astro packages had been refactored to not use these APIs. diff --git a/.changeset/short-deers-whisper.md b/.changeset/short-deers-whisper.md new file mode 100644 index 000000000..03e0f4480 --- /dev/null +++ b/.changeset/short-deers-whisper.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Removes vendored Vite's `importMeta.d.ts` file in favour of Vite 5's new `vite/types/import-meta.d.ts` export diff --git a/.changeset/slow-hornets-try.md b/.changeset/slow-hornets-try.md new file mode 100644 index 000000000..970e7f491 --- /dev/null +++ b/.changeset/slow-hornets-try.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': major +--- + +Removes the `drafts` option as the feature is deprecated in Astro 3.0 diff --git a/.changeset/sour-games-burn.md b/.changeset/sour-games-burn.md new file mode 100644 index 000000000..f0d596603 --- /dev/null +++ b/.changeset/sour-games-burn.md @@ -0,0 +1,13 @@ +--- +"astro": patch +--- + +Refactors virtual modules exports. This should not break your project unless you import Astro's internal modules, including: + +- `astro/middleware/namespace` +- `astro/transitions` +- `astro/transitions/router` +- `astro/transitions/events` +- `astro/transitions/types` +- `astro/prefetch` +- `astro/i18n` diff --git a/.changeset/spicy-starfishes-shake.md b/.changeset/spicy-starfishes-shake.md new file mode 100644 index 000000000..a283f4d37 --- /dev/null +++ b/.changeset/spicy-starfishes-shake.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Ensure overlay x-ray z-index is higher than the island diff --git a/.changeset/tasty-dryers-bathe.md b/.changeset/tasty-dryers-bathe.md new file mode 100644 index 000000000..438597e13 --- /dev/null +++ b/.changeset/tasty-dryers-bathe.md @@ -0,0 +1,27 @@ +--- +'@astrojs/upgrade': minor +--- + +Initial release! + +`@astrojs/upgrade` is an automated command-line tool for upgrading Astro and your official Astro integrations together. + +Inside of your existing `astro` project, run the following command to install the `latest` version of your integrations. + +**With NPM:** + +```bash +npx @astrojs/upgrade +``` + +**With Yarn:** + +```bash +yarn dlx @astrojs/upgrade +``` + +**With PNPM:** + +```bash +pnpm dlx @astrojs/upgrade +``` diff --git a/.changeset/three-chairs-sip.md b/.changeset/three-chairs-sip.md new file mode 100644 index 000000000..68bdc0a61 --- /dev/null +++ b/.changeset/three-chairs-sip.md @@ -0,0 +1,5 @@ +--- +'astro': minor +--- + +Update error log formatting diff --git a/.changeset/tricky-dragons-explain.md b/.changeset/tricky-dragons-explain.md new file mode 100644 index 000000000..78ecb1e95 --- /dev/null +++ b/.changeset/tricky-dragons-explain.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes a number of small user experience bugs with the dev overlay diff --git a/.changeset/weak-wolves-bow.md b/.changeset/weak-wolves-bow.md new file mode 100644 index 000000000..484544cd1 --- /dev/null +++ b/.changeset/weak-wolves-bow.md @@ -0,0 +1,5 @@ +--- +'astro': major +--- + +Removes deprecated `app.match()` option, `matchNotFound` diff --git a/.changeset/wicked-sloths-develop.md b/.changeset/wicked-sloths-develop.md new file mode 100644 index 000000000..806e02707 --- /dev/null +++ b/.changeset/wicked-sloths-develop.md @@ -0,0 +1,11 @@ +--- +'astro': major +--- + +Removes deprecated features from Astro 3.0 + +- Adapters are now required to pass `supportedAstroFeatures` to specify a list of features they support. +- The `build.split` and `build.excludeMiddleware` options are removed. Use `functionPerRoute` and `edgeMiddleware` from adapters instead. +- The `markdown.drafts` option and draft feature is removed. Use content collections instead. +- Lowercase endpoint names are no longer supported. Use uppercase endpoint names instead. +- `getHeaders()` exported from markdown files is removed. Use `getHeadings()` instead. diff --git a/.changeset/wild-apricots-rescue.md b/.changeset/wild-apricots-rescue.md new file mode 100644 index 000000000..c4a7deea3 --- /dev/null +++ b/.changeset/wild-apricots-rescue.md @@ -0,0 +1,5 @@ +--- +'@astrojs/svelte': major +--- + +Drops support for Svelte 3 as `@sveltejs/vite-plugin-svelte` is updated to `3.0.0` which does not support Svelte 3 |
