Update dependency astro to v4 #65
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/astro-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
3.6.4->4.0.3Release Notes
withastro/astro (astro)
v4.0.3Compare Source
Patch Changes
#9342
eb942942dThanks @Princesseuh! - Fix missingis:inlinetype for the<slot />element#9343
ab0281aeeThanks @martrapp! - Adds source file properties to HTML elements only if devToolbar is enabled#9336
c76901065Thanks @FredKSchott! - dev: fix issue where 404 and 500 responses were logged as 200#9339
0bb3d5322Thanks @morinokami! - Fixed the log message to correctly display 'enabled' and 'disabled' when toggling 'Disable notifications' in the Toolbar.v4.0.2Compare Source
Patch Changes
#9331
cfb20550dThanks @natemoo-re! - Updates an internal dependency (vitefu) to avoid a commonpeerDependencywarning#9327
3878a91beThanks @doseofted! - Fixes an edge case for<form method="dialog">when using View Transitions. Forms withmethod="dialog"no longer require an additionaldata-astro-reloadattribute.v4.0.1Compare Source
Patch Changes
631e5d01bThanks @ematipico! - Fixes an issue where logs that weren't grouped together by route when building the app.v4.0.0Compare Source
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.#9263
3cbd8ea75Thanks @bluwy! - Removes additional deprecated APIs:astro/client-imagetype. You should use theastro/clienttype instead.rsssupport ingetStaticPaths. You should use@astrojs/rssinstead.Astro.request.paramssupport. You should useAstro.paramsinstead.#9271
47604bd5bThanks @matthewp! - Renames Dev Overlay to Dev ToolbarThe previously named experimental Dev Overlay is now known as the Astro Dev Toolbar. Overlay plugins have been renamed as Toolbar Apps. All APIs have been updated to reflect this name change.
To not break existing APIs, aliases for the Toolbar-based names have been created. The previous API names will continue to function but will be deprecated in the future. All documentation has been updated to reflect Toolbar-based names.
#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.#9225
c421a3d17Thanks @natemoo-re! - Removes the opt-inhandleFormsproperty for<ViewTransitions />. Form submissions are now handled by default and this property is no longer necessary. This default behavior can be disabled by settingdata-astro-reloadon relevant<form />elements.#9196
37697a2c5Thanks @bluwy! - Removes support for Shiki custom language'spathproperty. The language JSON file should be imported and passed to the option instead.#9199
49aa215a0Thanks @lilnasy! - This change only affects maintainers of third-party adapters. In the Integration API, theapp.render()method of theAppclass has been simplified.Instead of two optional arguments, it now takes a single optional argument that is an object with two optional properties:
routeDataandlocals.The current signature is deprecated but will continue to function until next major version.
#9212
c0383ea0cThanks @alexanderniebuhr! - Removes deprecatedapp.match()option,matchNotFound#9168
153a5abb9Thanks @bluwy! - Removes deprecated features from Astro 3.0supportedAstroFeaturesto specify a list of features they support.build.splitandbuild.excludeMiddlewareoptions are removed. UsefunctionPerRouteandedgeMiddlewarefrom adapters instead.markdown.draftsoption and draft feature is removed. Use content collections instead.getHeaders()exported from markdown files is removed. UsegetHeadings()instead.Minor Changes
#9105
6201bbe96Thanks @FredKSchott! - Update CLI logging experience#9200
b4b851f5aThanks @ematipico! - Adds a new way to configure thei18n.localesarray.Developers can now assign a custom URL path prefix that can span multiple language codes:
With the above configuration, the URL prefix of the default locale will be
/english/. When computingAstro.preferredLocale, Astro will use thecodes.#9115
3b77889b4Thanks @natemoo-re! - Adds theastro preferencescommand to manage user preferences. User preferences are specific to individual Astro users, unlike theastro.config.mjsfile 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.jsonfile. Using the--globalflag, 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.Configuration
📅 Schedule: Branch creation - "before 3pm on Sunday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: package-lock.json
dc4baa3b81eb45498aacEdited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.