✨ Major Changes
-
#9138
abf601233Thanks @bluwy! - 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.footnoteBackLabelis changed from"Back to content"to"Back to reference 1". See themdast-util-to-hastcommit for more information. -
#9181
cdabf6ef0Thanks @bluwy! - Removes support for returning simple objects from endpoints (deprecated since Astro 3.0). You should return aResponseinstead.ResponseWithEncodingis 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
MiddlewareHandlerinstead ofMiddlewareResponseHandler. If you useddefineMiddleware()to type the function, no changes are needed. -
#9122
1c48ed286Thanks @bluwy! - Adds Vite 5 support. There are no breaking changes from Astro. Check the Vite migration guide for details of the breaking changes from Vite instead. -
#9196
37697a2c5Thanks @bluwy! - Removes support for Shiki custom language’spathproperty. The language JSON file should be imported and passed to the option instead.astro.config.js import customLang from './custom.tmLanguage.json'export default defineConfig({markdown: {shikiConfig: {langs: [{ path: './custom.tmLanguage.json' },customLang,],},},}) -
#9168
153a5abb9Thanks @bluwy! - Removes deprecated features from Astro 3.0- Adapters are now required to pass
supportedAstroFeaturesto specify a list of features they support. - The
build.splitandbuild.excludeMiddlewareoptions are removed. UsefunctionPerRouteandedgeMiddlewarefrom adapters instead. - The
markdown.draftsoption 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. UsegetHeadings()instead.
- Adapters are now required to pass
🍿 Minor Changes
-
#9105
6201bbe96Thanks @FredKSchott! - Update CLI logging experience -
#9161
bd0c2e9aeThanks @bluwy! - Renames theentryPointproperty of theinjectRouteintegrations API toentrypointfor consistency. A warning will be shown prompting you to update your code when using the old name.
🐞 Patch Changes
-
#9149
0fe3a7ed5Thanks @bluwy! - Removes vendored Vite’simportMeta.d.tsfile in favour of Vite 5’s newvite/types/import-meta.d.tsexport -
#9150
710be505cThanks @bluwy! - Refactors virtual modules exports. This should not break your project unless you import Astro’s internal modules, including:astro/middleware/namespaceastro/transitionsastro/transitions/routerastro/transitions/eventsastro/transitions/typesastro/prefetchastro/i18n
-
Updated dependencies [
abf601233,addb57c8e,c7953645e]:- @astrojs/markdown-remark@4.0.0-beta.0