fix(deps): update astro monorepo (major) #2963
Open
+433
−691
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 contains the following updates:
3.6.3
->4.1.0
5.7.3
->7.0.1
4.5.3
->5.0.2
4.16.17
->5.0.5
Release Notes
withastro/astro (@astrojs/react)
v4.1.0
Compare Source
Minor Changes
97c9265
Thanks @bskimball! - Add React 19 stable to peer dependenciesv4.0.0
Compare Source
Major Changes
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
#12539
827093e
Thanks @bluwy! - Drops node 21 support#12510
14feaf3
Thanks @bholmesdev! - Changes the generated URL query param from_astroAction
to_action
when submitting a form using Actions. This avoids leaking the framework name into the URL bar, which may be considered a security issue.withastro/astro (@astrojs/svelte)
v7.0.1
Compare Source
Patch Changes
4f2fd0a
Thanks @Princesseuh! - Fixes compatibility with Astro 5v7.0.0
Compare Source
Major Changes
#12060
cb5d3ae
Thanks @Princesseuh! - Updates peer dependency range to support Astro 5#12524
9f44019
Thanks @bluwy! - Updates@sveltejs/vite-plugin-svelte
to v5 to handle Vite 6#12524
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
827093e
Thanks @bluwy! - Drops node 21 supportPatch Changes
#12102
dcc1e89
Thanks @hermit99! - Fixes an Reference Error that occurred during client transitions#12551
b21a075
Thanks @ematipico! - New release to include changes from 5.7.3v6.0.2
Compare Source
Patch Changes
8a46e80
Thanks @marbrex! - Resolvevite
peer dependency problem for strict package managers like Yarn in PnP mode.v6.0.1
Compare Source
Patch Changes
bde49f1
Thanks @bluwy! - Publishes missing filev6.0.0
Compare Source
Major Changes
#12364
9fc2ab8
Thanks @jdtjenkins! - Adds support for Svelte 5. Svelte 3 and 4 are no longer supported.The integration will now also no longer add
vitePreprocess()
by default if a preprocessor is not set up insvelte.config.js
. It is recommended to set up the Svelte config manually so that features like IDE completion and syntax highlighting work properly.If you're using SCSS, Stylus, etc in your Svelte component style tags, make sure that the preprocessor is also set up in
svelte.config.js
. For example:Refer to the Svelte 5 migration guide and
@sveltejs/vite-plugin-svelte
changelog for details of their respective breaking changes.withastro/astro (@astrojs/vue)
v5.0.2
Compare Source
Patch Changes
7dc2fca
Thanks @yoyo837! - fix vite peer dependency issue for vue integrationv5.0.1
Compare Source
Patch Changes
4f2fd0a
Thanks @Princesseuh! - Fixes compatibility with Astro 5v5.0.0
Compare Source
Major Changes
#12060
cb5d3ae
Thanks @Princesseuh! - Updates peer dependency range to support Astro 5#12524
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
827093e
Thanks @bluwy! - Drops node 21 supportPatch Changes
81b0bf5
Thanks @ematipico! - New release to include changes from 4.5.2withastro/astro (astro)
v5.0.5
Compare Source
Patch Changes
#12705
0d1eab5
Thanks @ascorbic! - Fixes a bug where MDX files with certain characters in the name would cause builds to fail#12707
2aaed2d
Thanks @ematipico! - Fixes a bug where the middleware was incorrectly imported during the build#12697
1c4a032
Thanks @ascorbic! - Fix a bug that caused builds to fail if an image had a quote mark in its name#12694
495f46b
Thanks @ematipico! - Fixes a bug where the experimental featureexperimental.svg
was incorrectly used when generating ESM images#12658
3169593
Thanks @jurajkapsz! - Fixes astro info copy to clipboard process not returning to prompt in certain cases.#12712
b01c74a
Thanks @ascorbic! - Fixes a bug which misidentified pages as markdown if a query string ended in a markdown extensionv5.0.4
Compare Source
Patch Changes
#12653
e21c7e6
Thanks @sarah11918! - Updates a reference in an error message#12585
a9373c0
Thanks @florian-lefebvre! - Fixes a case whereprocess.env
would be frozen despite changes made to environment variables in development#12695
a203d5d
Thanks @ascorbic! - Throws a more helpful error when images are missingUpdated dependencies [
f13417b
,87231b1
,a71e9b9
]:v5.0.3
Compare Source
Patch Changes
#12645
8704c54
Thanks @sarah11918! - Updates some reference links in error messages for new v5 docs.#12641
48ca399
Thanks @ascorbic! - Fixes a bug whereastro info --copy
wasn't working correctly onmacOS
systems.#12461
62939ad
Thanks @kyr0! - Removes the misleading log message telling that a custom renderer is not recognized while it clearly is and works.#12642
ff18b9c
Thanks @ematipico! - Provides more information when logging a warning for accessingAstro.request.headers
in prerendered pages#12634
03958d9
Thanks @delucis! - Improves error message formatting for user config and content collection frontmatter#12547
6b6e18d
Thanks @mtwilliams-code! - Fixes a bug where URL search parameters weren't passed when using the i18nfallback
feature.#12449
e6b8017
Thanks @apatel369! - Fixes an issue where the customassetFileNames
configuration caused assets to be incorrectly moved to the server directory instead of the client directory, resulting in 404 errors when accessed from the client side.#12518
e216250
Thanks @ematipico! - Fixes an issue where SSR error pages would return duplicated custom headers.#12625
74bfad0
Thanks @ematipico! - Fixes an issue where theexperimental.svg
had incorrect type, resulting in some errors in the editors.#12631
dec0305
Thanks @ascorbic! - Fixes a bug where the class attribute was rendered twice on the image component#12623
0e4fecb
Thanks @ascorbic! - Correctly handles images in content collections with uppercase file extensions#12633
8a551c1
Thanks @bluwy! - Cleans up content layer sync during builds and programmaticsync()
calls#12640
22e405a
Thanks @ascorbic! - Fixes a bug that caused content collections to be returned empty when run in a test environment#12613
306c9f9
Thanks @matthewp! - Fix use of cloned requests in middleware with clientAddressWhen using
context.clientAddress
orAstro.clientAddress
Astro looks up the address in a hidden property. Cloning a request can cause this hidden property to be lost.The fix is to pass the address as an internal property instead, decoupling it from the request.
v5.0.2
Compare Source
Patch Changes
0724929
Thanks @ascorbic! - Includes "undefined" in types for getEntryv5.0.1
Compare Source
Patch Changes
92c269b
Thanks @kidonng! - fix: devtools warnings about dev toolbar form fieldsv5.0.0
Compare Source
Major Changes
#11798
e9e2139
Thanks @matthewp! - Unflag globalRoutePriorityThe previously experimental feature
globalRoutePriority
is now the default in Astro 5.This was a refactoring of route prioritization in Astro, making it so that injected routes, file-based routes, and redirects are all prioritized using the same logic. This feature has been enabled for all Starlight projects since it was added and should not affect most users.
#11864
ee38b3a
Thanks @ematipico! - ### [changed]:entryPoint
type inside the hookastro:build:ssr
In Astro v4.x, the
entryPoint
type wasRouteData
.Astro v5.0 the
entryPoint
type isIntegrationRouteData
, which contains a subset of theRouteData
type. The fieldsisIndex
andfallbackRoutes
were removed.What should I do?
Update your adapter to change the type of
entryPoint
fromRouteData
toIntegrationRouteData
.#12524
9f44019
Thanks @bluwy! - Bumps Vite to ^6.0.1 and handles its breaking changes#10742
b6fbdaa
Thanks @ematipico! - The lowest version of Node supported by Astro is now Node v18.17.1 and higher.#11916
46ea29f
Thanks @bluwy! - Updates how thebuild.client
andbuild.server
option values get resolved to match existing documentation. With this fix, the option values will now correctly resolve relative to theoutDir
option. So ifoutDir
is set to./dist/nested/
, then by default:build.client
will resolve to<root>/dist/nested/client/
build.server
will resolve to<root>/dist/nested/server/
Previously the values were incorrectly resolved:
build.client
was resolved to<root>/dist/nested/dist/client/
build.server
was resolved to<root>/dist/nested/dist/server/
If you were relying on the previous build paths, make sure that your project code is updated to the new build paths.
#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.#11861
3ab3b4e
Thanks @bluwy! - Cleans up Astro-specfic metadata attached tovfile.data
in Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:vfile.data.__astroHeadings
->vfile.data.astro.headings
vfile.data.imagePaths
->vfile.data.astro.imagePaths
The types of
imagePaths
has also been updated fromSet<string>
tostring[]
. Thevfile.data.astro.frontmatter
metadata is left unchanged.While we don't consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro's metadata. If you are using these APIs, make sure to access them in the new locations.
#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:
#11908
518433e
Thanks @Princesseuh! - Theimage.endpoint
config now allow customizing the route of the image endpoint in addition to the entrypoint. This can be useful in niche situations where the default route/_image
conflicts with an existing route or your local server setup.#12008
5608338
Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
#11679
ea71b90
Thanks @florian-lefebvre! - Theastro:env
feature introduced behind a flag in v4.10.0 is no longer experimental and is available for general use. If you have been waiting for stabilization before usingastro:env
, you can now do so.This feature lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client.
To configure a schema, add the
env
option to your Astro config and define your client and server variables. If you were previously using this feature, please remove the experimental flag from your Astro config and move your entireenv
configuration unchanged to a top-level option.You can import and use your defined variables from the appropriate
/client
or/server
module:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.