Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
astro@5.0.0-alpha.8
Major Changes
#11982
d84e444
Thanks @Princesseuh! - Adds a default exclude and include value to the tsconfig presets.{projectDir}/dist
is now excluded by default, and{projectDir}/.astro/types.d.ts
and{projectDir}/**/*
are included by default.Both of these options can be overridden by setting your own values to the corresponding settings in your
tsconfig.json
file.#11987
bf90a53
Thanks @florian-lefebvre! - Thelocals
object can no longer be overriddenMiddleware, API endpoints, and pages can no longer override the
locals
object in its entirety. You can still append values onto the object, but you can not replace the entire object and delete its existing values.If you were previously overwriting like so:
This can be changed to an assignment on the existing object instead:
Minor Changes
#11980
a604a0c
Thanks @matthewp! - ViewTransitions component renamed to ClientRouterThe
<ViewTransitions />
component has been renamed to<ClientRouter />
. There are no other changes than the name. The old name will continue to work in Astro 5.x, but will be removed in 6.0.This change was done to clarify the role of the component within Astro's View Transitions support. Astro supports View Transitions APIs in a few different ways, and renaming the component makes it more clear that the features you get from the ClientRouter component are slightly different from what you get using the native CSS-based MPA router.
We still intend to maintain the ClientRouter as before, and it's still important for use-cases that the native support doesn't cover, such as persisting state between pages.
Patch Changes
#11987
bf90a53
Thanks @florian-lefebvre! -render()
signature now takesrenderOptions
as 2nd argumentThe signature for
app.render()
has changed, and the second argument is now an options object calledrenderOptions
with more options for customizing rendering.The
renderOptions
are:addCookieHeader
: Determines whether Astro will set theSet-Cookie
header, otherwise the adapter is expected to do so itself.clientAddress
: The client IP address used to setAstro.clientAddress
.locals
: An object of locals that's set toAstro.locals
.routeData
: An object specifying the route to use.#11991
d7a396c
Thanks @matthewp! - Update error link to on-demand rendering guide@astrojs/underscore-redirects@0.4.0-alpha.0
Minor Changes
3e70853
Thanks @florian-lefebvre! - Updates the type fromRouteData
toIntegrationRouteData