The web framework for content-driven websites. ⭐️ Star to support our work!
OTHER License
Published by astrobot-houston 11 months ago
#9138 abf601233
Thanks @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.footnoteBackLabel
is changed from "Back to content"
to "Back to reference 1"
. See the mdast-util-to-hast
commit for more information.
#9181 cdabf6ef0
Thanks @bluwy! - 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.
#9122 1c48ed286
Thanks @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 37697a2c5
Thanks @bluwy! - Removes support for Shiki custom language's path
property. 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 153a5abb9
Thanks @bluwy! - Removes deprecated features from Astro 3.0
supportedAstroFeatures
to specify a list of features they support.build.split
and build.excludeMiddleware
options are removed. Use functionPerRoute
and edgeMiddleware
from adapters instead.markdown.drafts
option and draft feature is removed. Use content collections instead.getHeaders()
exported from markdown files is removed. Use getHeadings()
instead.#9105 6201bbe96
Thanks @FredKSchott! - Update CLI logging experience
#9161 bd0c2e9ae
Thanks @bluwy! - 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.
#9149 0fe3a7ed5
Thanks @bluwy! - Removes vendored Vite's importMeta.d.ts
file in favour of Vite 5's new vite/types/import-meta.d.ts
export
#9150 710be505c
Thanks @bluwy! - 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
Updated dependencies [abf601233
, addb57c8e
, c7953645e
]:
Published by astrobot-houston 11 months ago
#9122 1c48ed286
Thanks @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.
#9122 1c48ed286
Thanks @bluwy! - Drops support for Svelte 3 as @sveltejs/vite-plugin-svelte
is updated to 3.0.0
which does not support Svelte 3
Published by astrobot-houston 11 months ago
#9138 abf601233
Thanks @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.footnoteBackLabel
is changed from "Back to content"
to "Back to reference 1"
. See the mdast-util-to-hast
commit for more information.
Published by astrobot-houston 11 months ago
1c48ed286
Thanks @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.Published by astrobot-houston 11 months ago
6201bbe96
Thanks @FredKSchott! - Stop clearing the console on startPublished by astrobot-houston 11 months ago
Published by astrobot-houston 11 months ago
Published by astrobot-houston 11 months ago
#9090 c87223c21
Thanks @martrapp! - Take full control over the behavior of view transitions!
Three new events now complement the existing astro:after-swap
and astro:page-load
events:
astro: before - preparation; // Control how the DOM and other resources of the target page are loaded
astro: after - preparation; // Last changes before taking off? Remove that loading indicator? Here you go!
astro: before - swap; // Control how the DOM is updated to match the new page
The astro:before-*
events allow you to change properties and strategies of the view transition implementation.
The astro:after-*
events are notifications that a phase is complete.
Head over to docs to see the full view transitions lifecycle including these new events!
#9092 0ea4bd47e
Thanks @smitbarmase! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, the tap
strategy will be used.
#9166 cba6cf32d
Thanks @matthewp! - The Picture component is no longer experimental
The <Picture />
component, part of astro:assets
, has exited experimental status and is now recommended for use. There are no code changes to the component, and no upgrade to your project is necessary.
This is only a change in documentation/recommendation. If you were waiting to use the <Picture />
component until it had exited the experimental stage, wait no more!
#9092 0ea4bd47e
Thanks @smitbarmase! - Adds a ignoreSlowConnection
option to the prefetch()
API to prefetch even on data saver mode or slow connection.
Published by astrobot-houston 11 months ago
7ff8d62bf
Thanks @ematipico! - Revert fix around fallback system, which broken injected stylesPublished by astrobot-houston 11 months ago
Published by astrobot-houston 11 months ago
#9121 f4efd1c80
Thanks @peng! - Adds a warning if astro add
fetches a package but returns a non-404 status
#9142 7d55cf68d
Thanks @ematipico! - Consistely emit fallback routes in the correct folders.
#9119 306781795
Thanks @ematipico! - Fix a flaw in the i18n fallback logic, where the routes didn't preserve their metadata, such as hoisted scripts
#9140 7742fd7dc
Thanks @martrapp! - View Transitions: handle clicks on SVGAElements and image maps"
#9101 e3dce215a
Thanks @ematipico! - Add a new property Astro.currentLocale
, available when i18n
is enabled.
Published by astrobot-houston 11 months ago
#9091 536c6c9fd
Thanks @ematipico! - The routingStrategy
prefix-always
should not force its logic to endpoints. This fixes some regression with astro:assets
and @astrojs/rss
.
#9102 60e8210b0
Thanks @Princesseuh! - In the dev overlay, when there's too many plugins enabled at once, some of the plugins will now be hidden in a separate sub menu to avoid the bar becoming too long
Published by astrobot-houston 11 months ago
Published by astrobot-houston 11 months ago
c9487138d
Thanks @pilcrowOnPaper! - Fixes a bug where the response stream would not cancel when the connection closedPublished by astrobot-houston 11 months ago
ac5633b8f
Thanks @brandonsdebt! - Uses node:stream
during server rendering for compatibility with CloudflarePublished by astrobot-houston 11 months ago
Published by astrobot-houston 11 months ago
4537ecf0d
]:
Published by astrobot-houston 11 months ago