chore(deps): update astro monorepo (major) #1141
Open
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:
^2.1.0
->^3.0.0
^2.1.1
->^3.0.0
^2.0.0
->^3.0.0
^2.3.0
->^4.0.0
Release Notes
withastro/astro (@astrojs/preact)
v3.2.0
Compare Source
Minor Changes
#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99
Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1
for Node.js 18, older thanv20.0.3
for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
v3.1.2
Compare Source
Patch Changes
ad50784adc6f262fc563999e97df3a5dc9087c88
Thanks @rschristian! - Fixes (theoretical) edge case in Preact integration's JSX aliasesv3.1.1
Compare Source
Patch Changes
c692d0c66a5062937e47402dc700d41c2a5dfc5c
Thanks @Princesseuh! - Fixes passing children to server-rendered components causing an errorv3.1.0
Compare Source
Minor Changes
#9524
0903ef90494e9c8bd0272347a0cdd51eca7f4648
Thanks @aleksandrjet! - Allows rendering lazy components.You can now use lazy components with Suspense:
v3.0.2
Compare Source
Patch Changes
#9482
72b26daf694b213918f02d0fcbf90ab5b7ebc31f
Thanks @natemoo-re! - Improves compatability with the Qwik adapter#9479
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates READMEv3.0.1
Compare Source
Patch Changes
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CIv3.0.0
Compare Source
Major Changes
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate#7924
519a1c4e8
Thanks @matthewp! - Newinclude
andexclude
config optionsThe Preact integration now has new
include
andexclude
config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact andexclude
does the opposite.Patch Changes
1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands whenastro:unmount
is firedwithastro/astro (@astrojs/react)
v3.3.2
Compare Source
Patch Changes
fd7a9ed
Thanks @Angrigo! - Removes using deprecatedReactDOMServer.renderToStaticNodeStream
APIv3.3.1
Compare Source
Patch Changes
f6bddd3
Thanks @lamATnginx! - Fix Redoc usage in React integrationv3.3.0
Compare Source
Minor Changes
#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99
Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1
for Node.js 18, older thanv20.0.3
for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
v3.2.0
Compare Source
Minor Changes
14f1d49a10541fecc4c10def8a094322442ccf23
Thanks @fightingcat! - Expose Babel config for @astro/react.v3.1.1
Compare Source
Patch Changes
195f51f82a44df32be73865949aabee0d46ffe61
Thanks @matthewp! - Mark @material-tailwind/react as noExternalv3.1.0
Compare Source
Minor Changes
#10136
9cd84bd19b92fb43ae48809f575ee12ebd43ea8f
Thanks @matthewp! - Changes the default behavior oftransition:persist
to update the props of persisted islands upon navigation. Also adds a new view transitions optiontransition:persist-props
(default:false
) to prevent props from updating as needed.Islands which have the
transition:persist
property to keep their state when using the<ViewTransitions />
router will now have their props updated upon navigation. This is useful in cases where the component relies on page-specific props, such as the current page title, which should update upon navigation.For example, the component below is set to persist across navigation. This component receives a
products
props and might have some internal state, such as which filters are applied:Upon navigation, this component persists, but the desired
products
might change, for example if you are visiting a category of products, or you are performing a search.Previously the props would not change on navigation, and your island would have to handle updating them externally, such as with API calls.
With this change the props are now updated, while still preserving state.
You can override this new default behavior on a per-component basis using
transition:persist-props=true
to persist both props and state during navigation:v3.0.10
Compare Source
Patch Changes
20ca3154fb37049cbcd51b06d9fa2ef25ac25a36
Thanks @StandardGage! - Fixes an issue where passing void elements (img, etc..) did not work with theexperimentalReactChildren
option enabledv3.0.9
Compare Source
Patch Changes
#9482
72b26daf694b213918f02d0fcbf90ab5b7ebc31f
Thanks @natemoo-re! - Improves compatability with the Qwik adapter#9479
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates READMEv3.0.8
Compare Source
Patch Changes
#9403
7eb9fe8a7
Thanks @knpwrs! - Prevents unsupportedforwardRef
components created by Preact from being rendered by React#9452
e83b5095f
Thanks @florian-lefebvre! - Upgrades vite to latestv3.0.7
Compare Source
Patch Changes
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.v3.0.6
Compare Source
Patch Changes
af43fb517
Thanks @lilnasy! - Fixes an issue where slotting self-closing elements (img, br, hr) into react components withexperimentalReactChildren
enabled led to an error.v3.0.5
Compare Source
Patch Changes
ac5633b8f
Thanks @brandonsdebt! - Usesnode:stream
during server rendering for compatibility with Cloudflarev3.0.4
Compare Source
Patch Changes
4dee38711
Thanks @matthewp! - Fixes client hydration in islands when using experimentalReactChildrenv3.0.3
Compare Source
Patch Changes
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CIv3.0.2
Compare Source
Patch Changes
85fe213fe
Thanks @natemoo-re! - UpdateexperimentalReactChildren
behavior to support void tagsv3.0.1
Compare Source
Patch Changes
20ca3154fb37049cbcd51b06d9fa2ef25ac25a36
Thanks @StandardGage! - Fixes an issue where passing void elements (img, etc..) did not work with theexperimentalReactChildren
option enabledv3.0.0
Compare Source
Major Changes
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate#7924
519a1c4e8
Thanks @matthewp! - Support for React RefreshThe React integration now fully supports React Refresh and is backed by
@vitejs/plugin-react
.Also included in this change are new
include
andexclude
config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React andexclude
does the opposite.Patch Changes
#8228
4bd2fac8d
Thanks @bluwy! - Publish missingvnode-children.js
file#8264
1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands whenastro:unmount
is firedUpdated dependencies [
d0679a666
,2aa6d8ace
,6011d52d3
]:withastro/astro (@astrojs/sitemap)
v3.1.4
Compare Source
Patch Changes
0e22462d1534afc8f7bb6782f86db680c7a5f245
Thanks @gislerro! - Fixes an issue where the root url does not follow thetrailingSlash
config optionv3.1.3
Compare Source
Patch Changes
1ce22881c657becf0397b83ac393fb5d2399104c
Thanks @bluwy! - Improves performance when generating the sitemap datav3.1.2
Compare Source
Patch Changes
5f7e9c47e01116f6ec74b33770f480404680956a
Thanks @mingjunlu! - Fixes an issue where the base path is missing insitemap-index.xml
.v3.1.1
Compare Source
Patch Changes
#10179
6343f6a438d790fa16a0dd268f4a51def4fa0f33
Thanks @ematipico! - Revert https://github.com/withastro/astro/pull/9846The feature to customize the file name of the sitemap was reverted due to some internal issues with one of the dependencies. With an non-deterministic behaviour, the sitemap file was sometime emitted with incorrect syntax.
#9975
ec7d2ebbd96b8c2dfdadaf076bbf7953007536ed
Thanks @moose96! - Fixes URL generation for routes that rest parameters and start with/
v3.1.0
Compare Source
Minor Changes
#9846
9b78c992750cdb99c40a89a00ea2a0d1c00877d7
Thanks @ktym4a! - Adds a new configuration optionprefix
that allows you to change the defaultsitemap-*.xml
file name.By default, running
astro build
creates bothsitemap-index.xml
andsitemap-0.xml
in your output directory.To change the names of these files (e.g. to
astrosite-index.xml
andastrosite-0.xml
), set theprefix
option in yoursitemap
integration configuration:This option is useful when Google Search Console is unable to fetch your default sitemap files, but can read renamed files.
v3.0.5
Compare Source
Patch Changes
b325fada567892b63ecae87c1ff845c8514457ba
Thanks @andremralves! - Fixes generated URLs when using abase
with a SSR adapterv3.0.4
Compare Source
Patch Changes
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates READMEv3.0.3
Compare Source
Patch Changes
35cd810f0
Thanks @evadecker! - Upgrades Zod to 3.22.4v3.0.2
Compare Source
Patch Changes
10b103820
Thanks @silent1mezzo! - Display output directory in the sitemap build resultv3.0.1
Compare Source
Patch Changes
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CIv3.0.0
Compare Source
Major Changes
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidatewithastro/astro (astro)
v4.7.1
Compare Source
Patch Changes
#10911
a86dc9d
Thanks @bluwy! - Skips adding CSS dependencies of CSS Vite modules as style tags in the HTML#10900
36bb3b6
Thanks @martrapp! - Detects overlapping navigation and view transitions and automatically aborts all but the most recent one.#10933
007d17f
Thanks @Princesseuh! - Fixesapp.toggleState
not working correctly#10931
4ce5ced
Thanks @ktym4a! - FixestoggleNotification()
's parameter type for the notification level not using the proper levelsv4.7.0
Compare Source
Minor Changes
#10665
7b4f284
Thanks @Princesseuh! - Adds new utilities to ease the creation of toolbar apps includingdefineToolbarApp
to make it easier to define your toolbar app andapp
andserver
helpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.For example, instead of creating an event listener for the
app-toggled
event and manually typing the value in the callback, you can now use theonAppToggled
method. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a newserver
object is passed to theinit
function that contains easy to use methods for communicating with the server.Server helpers are also available on the server side, for use in your integrations, through the new
toolbar
object:This is a backwards compatible change and your your existing dev toolbar apps will continue to function. However, we encourage you to build your apps with the new helpers, following the updated Dev Toolbar API documentation.
#10734
6fc4c0e
Thanks @Princesseuh! - Astro will now automatically check for updates when you run the dev server. If a new version is available, a message will appear in the terminal with instructions on how to update. Updates will be checked once per 10 days, and the message will only appear if the project is multiple versions behind the latest release.This behavior can be disabled by running
astro preferences disable checkUpdates
or setting theASTRO_DISABLE_UPDATE_CHECK
environment variable tofalse
.#10762
43ead8f
Thanks @bholmesdev! - Enables type checking for JavaScript files when using thestrictest
TS config. This ensures consistency with Astro's other TS configs, and fixes type checking for integrations like Astro DB when using anastro.config.mjs
.If you are currently using the
strictest
preset and would like to still disable.js
files, setallowJS: false
in yourtsconfig.json
.Patch Changes
#10861
b673bc8
Thanks @mingjunlu! - Fixes an issue whereastro build
writes type declaration files tooutDir
when it's outside of root directory.#10684
8b59d5d
Thanks @PeterDraex! - Update sharp to 0.33 to fix issue with Alpine Linuxv4.6.4
Compare Source
Patch Changes
#10846
3294f7a
Thanks @matthewp! - Prevent getCollection breaking in vitest#10856
30cf82a
Thanks @robertvanhoesel! - Prevents inputs with a name attribute of action or method to break ViewTransitions' form submission#10833
8d5f3e8
Thanks @renovate! - Updatesesbuild
dependency to v0.20. This should not affect projects in most cases.#10801
204b782
Thanks @rishi-raj-jain! - Fixes an issue where images in MD required a relative specifier (e.g../
)Now, you can use the standard
![](relative/img.png)
syntax in MD files for images colocated in the same folder: no relative specifier required!There is no need to update your project; your existing images will still continue to work. However, you may wish to remove any relative specifiers from these MD images as they are no longer necessary:
#10841
a2df344
Thanks @martrapp! - Due to regression on mobile WebKit browsers, reverts a change made for JavaScript animations during view transitions.v4.6.3
Compare Source
Patch Changes
#10799
dc74afca9f5eebc2d61331298d6ef187d92051e0
Thanks @martrapp! - Fixes an issue with persisted non-text input fields that have the focus during view transition navigation.#10773
35e43ecdaae7adc4b9a0b974192a033568cfb3f0
Thanks @lilnasy! - Improves performance for frequent use of small components.#10763
63132771373ce1510be3e8814897accc0bf62ef8
Thanks @matthewp! - Invalidate CC cache manifest when lockfile or config changes#10811
77822a822b04b5113726f713df104e8667333c59
Thanks @AvinashReddy3108! - Update list of available integrations in theastro add
CLI help.v4.6.2
Compare Source
Patch Changes
#10732
a92e263beb6e0166f1f13c97803d1861793e2a99
Thanks @rishi-raj-jain! - Correctly setsbuild.assets
directory duringvite
config setup#10776
1607face67051b16d4648555f1001b2a9308e377
Thanks @fshafiee! - Fixes cookies type inference#10796
90669472df3a05b33f0de46fd2d039e3eba7f7dd
Thanks @bluwy! - Disables streaming when rendering site withoutput: "static"
#10782
b0589d05538fcc77dd3c38198bf93f3548362cd8
Thanks @nektro! - Handles possible null value when callingwhich-pm
during dynamic package installation#10774
308b5d8c122f44e7724bb2f3ad3aa5c43a83e584
Thanks @Princesseuh! - Fixesastro add
sometimes modifyingbaseUrl
unintentionally#10783
4dbd545304d1a8af903c8c97f237eb55c988c40b
Thanks @jurajkapsz! - Fixes Picture component specialFormatsFallback fallback check#10775
06843121450899ecf0390ca4efaff6c9a6fe0f75
Thanks @Princesseuh! - Fixes assets endpoint in serverless returning 404 in certain situations where the website might be under a protected route#10787
699f4559a279b374bddb3e5e48c72afe2709e8e7
Thanks @martrapp! - Fixes a timing issue in the view transition simulation.v4.6.1
Compare Source
Patch Changes
#10708
742866c5669a2be4f8b5a4c861cadb933c381415
Thanks @horo-fox! - Limits parallel imports withingetCollection()
to prevent EMFILE errors when accessing files#10755
c6d59b6fb7db20af957a8706c8159c50619235ef
Thanks @ematipico! - Fixes a case where the i18n fallback failed to correctly redirect to the index page with SSR enabledv4.6.0
Compare Source
Minor Changes
#10591
39988ef8e2c4c4888543c973e06d9b9939e4ac95
Thanks @mingjunlu! - Adds a new dev toolbar settings option to change the horizontal placement of the dev toolbar on your screen: bottom left, bottom center, or bottom right.#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99
Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1
for Node.js 18, older thanv20.0.3
for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
#10678
2e53b5fff6d292b7acdf8c30a6ecf5e5696846a1
Thanks @ematipico! - Adds a new experimental security option to prevent Cross-Site Request Forgery (CSRF) attacks. This feature is available only for pages rendered on demand:Enabling this setting performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each
Request
.This experimental "origin" check is executed only for pages rendered on demand, and only for the requests
POST,
PATCH,
DELETEand
PUTwith one of the following
content-type` headers: 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'.It the "origin" header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.
#10193
440681e7b74511a17b152af0fd6e0e4dc4014025
Thanks @ematipico! - Adds a new i18n routing optionmanual
to allow you to write your own i18n middleware:Adding
routing: "manual"
to your i18n config disables Astro's own i18n middleware and provides you with helper functions to write your own:redirectToDefaultLocale
,notFound
, andredirectToFallback
:Also adds a
middleware
function that manually creates Astro's i18n middleware. This allows you to extend Astro's i18n routing instead of completely replacing it. Runmiddleware
in combination with your own middleware, using thesequence
utility to determine the order:#10671
9e14a78cb05667af9821948c630786f74680090d
Thanks @fshafiee! - Adds thehttpOnly
,sameSite
, andsecure
options when deleting a cookiePatch Changes
#10747
994337c99f84304df1147a14504659439a9a7326
Thanks @lilnasy! - Fixes an issue where functions could not be used as named slots.#10750
7e825604ddf90c989537e07939a39dc249343897
Thanks @OliverSpeir! - Fixes a false positive for "Invalidtabindex
on non-interactive element" rule for roleless elements (div
andspan
).#10745
d51951ce6278d4b59deed938d65e1cb72b5102df
Thanks @lilnasy! - Fixes an issue where CLI commands could not report the reason for failure before exiting.#10661
e2cd7f4291912dadd4a654bc7917856c58a72a97
Thanks @liruifengv! - Fixed errorOverlay theme toggle bug.Updated dependencies [
ccafa8d230f65c9302421a0ce0a0adc5824bfd55
,683d51a5eecafbbfbfed3910a3f1fbf0b3531b99
]:v4.5.18
Compare Source
Patch Changes
#10728
f508c4b7d54316e737f454a3777204b23636d4a0
Thanks @ematipico! - Fixes a regression where some very specific code rendered usingexpressive-code
was not escaped properly.#10737
8a30f257b1f3618b01212a591b82ad7a63c82fbb
Thanks @lilnasy! - Fixes a regression where constructing and returning 404 responses from a middleware resulted in the dev server getting stuck in a loop.#10719
b21b3ba307235510707ee9f5bd49f71473a07004
Thanks @ematipico! - Fixes a false positive fordiv
andspan
elements when running the Dev Toolbar accessibility audits.Those are special elements that don't have an interaction assigned by default. Instead, it is assigned through the
role
attribute. This means that cases like the following are now deemed correct:v4.5.17
Compare Source
Patch Changes
#10688
799f6f3f29a3ef4f76347870a209ffa89651adfa
Thanks @bluwy! - Marks rendererjsxImportSource
andjsxTransformOptions
options as deprecated as they are no longer used since Astro 3.0#10657
93d353528fa1a85b67e3f1e9514ed2a1b42dfd94
Thanks @natemoo-re! - Improves the color contrast for notification badges on dev toolbar apps#10693
1d26e9c7f7d8f47e33bc68d3b30bbffce25c7b63
Thanks @apetta! - Adds thedisableremoteplayback
attribute to MediaHTMLAttributes interface#10695
a15975e41cb5eaf6ed8eb3ebaee676a17e433052
Thanks @bluwy! - Skips prerender chunk if building with static output#10707
5e044a5eafaa206d2ef8b62c37d1bcd37f0a4078
Thanks @horo-fox! - Logs an error when a page'sgetStaticPaths
fails#10686
fa0f593890502faf5709ab881fe0e45519d2f7af
Thanks @bluwy! - Prevents inlining scripts if used by other chunks when using theexperimental.directRenderScript
optionv4.5.16
Compare Source
Patch Changes
#10679
ca6bb1f31ef041e6ccf8ef974856fa945ff5bb31
Thanks @martrapp! - Generates missing popstate events for Firefox when navigating to hash targets on the same page.#10669
0464563e527f821e53d78028d9bbf3c4e1050f5b
Thanks @Princesseuh! - Fixes Astro waiting infinitely in CI when a required package was not installedv4.5.15
Compare Source
Patch Changes
#10666
55ddb2ba4889480f776a8d29b9dcd531b9f5ab3e
Thanks @lilnasy! - Fixes an issue where forwarded requests did not include hostname on node-based adapters. This also makes error pages more reliable.#10642
4f5dc14f315eba7ea6ec5cc8e5dacb0cb81288dd
Thanks @OliverSpeir! - Fixes typing issues when usingformat
andquality
options with remote images#10616
317d18ef8c9cf4fd13647518e3fd352774a86481
Thanks @NikolaRHristov! - This change disables thesharp
libvips
image cache as it errors when thefile is too small and operations are happening too fast (runs into a race
condition)
v4.5.14
Compare Source
Patch Changes
#10470
320c309ca9fbe51c40e6ba846d04a0cb49aced5f
Thanks @liruifengv! - improvesclient:only
error message#10496
ce985631129e49f7ea90e6ea690ef9f9cf0e6987
Thanks @florian-lefebvre! - Makes the warning less scaryConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.