-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update astro monorepo to v3 (major) #7
base: main
Are you sure you want to change the base?
Conversation
|
814c596
to
b4dca11
Compare
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
This PR contains the following updates:
2.2.1
->3.6.2
2.8.0
->3.6.5
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
withastro/astro (@astrojs/react)
v3.6.2
Compare Source
Patch Changes
7adb350
Thanks @bluwy! - Prevents throwing errors when checking if a component is a React component in runtimev3.6.1
Compare Source
Patch Changes
#11571
1c3265a
Thanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest@astrojs/react
integration as well if you're using React 19 features.Make
.safe()
the default return value for actions. This means{ data, error }
will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the.orThrow()
modifier.v3.6.0
Compare Source
Minor Changes
#11234
4385bf7
Thanks @ematipico! - Adds a new function calledaddServerRenderer
to the Container API. Use this function to manually store renderers inside the instance of your container.This new function should be preferred when using the Container API in environments like on-demand pages:
v3.5.0
Compare Source
Minor Changes
#11144
803dd80
Thanks @ematipico! - The integration now exposes a function calledgetContainerRenderer
, that can be used inside the Container APIs to load the relative renderer.v3.4.0
Compare Source
Minor Changes
#11071
8ca7c73
Thanks @bholmesdev! - Adds two new functionsexperimental_getActionState()
andexperimental_withState()
to support the React 19useActionState()
hook when using Astro Actions. This introduces progressive enhancement when calling an Action with thewithState()
utility.This example calls a
like
action that accepts apostId
and returns the number of likes. Pass this action to theexperimental_withState()
function to apply progressive enhancement info, and apply touseActionState()
to track the result:You can also access the state stored by
useActionState()
from your actionhandler
. Callexperimental_getActionState()
with the API context, and optionally apply a type to the result:v3.3.4
Compare Source
Patch Changes
4d16381
Thanks @emish89! - Fixes incorrectpeerDependencies
for@types/react
and@types/react-dom
v3.3.3
Compare Source
Patch Changes
d47baa4
Thanks @matthewp! - Updates package to support React 19 betav3.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
]:v2.3.2
Compare Source
Patch Changes
531cc3e49
Thanks @matthewp! - Fix missing package file regressionv2.3.1
Compare Source
Patch Changes
8c0a4ed10
Thanks @natemoo-re! - Fix missing export for newexperimentalReactChildren
optionv2.3.0
Compare Source
Minor Changes
#8082
16a3fdf93
Thanks @matthewp! - Optionally parse React slots as React children.This adds a new configuration option for the React integration
experimentalReactChildren
:With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
This enables better compatibility with certain React components which manipulate their children.
v2.2.2
Compare Source
Patch Changes
da517d405
Thanks @SudoCat! - fix a bug where react identifierPrefix was set to null for client:only components causing React.useId to generate ids prefixed with nullwithastro/astro (astro)
v3.6.5
Compare Source
Patch Changes
#10287
a90d685d7
Thanks @ematipico! - Fixes an issue where in Node SSR, the image endpoint could be used maliciously to reveal unintended information about the underlying system.Thanks to Google Security Team for reporting this issue.
v3.6.4
Compare Source
Patch Changes
#9226
8f8a40e93
Thanks @outofambit! - Fix i18n fallback routing with routing strategy of always-prefix#9179
3f28336d9
Thanks @lilnasy! - Fixes an issue where the presence of a slot in a page led to an error.#9219
067a65f5b
Thanks @natemoo-re! - Fix edge case where<style>
updates inside of.astro
files would ocassionally fail to update without reloading the page.#9236
27d3e86e4
Thanks @ematipico! - The configurationi18n.routingStrategy
has been replaced with an object calledrouting
.v3.6.3
Compare Source
Patch Changes
0dc99c9a2
Thanks @florian-lefebvre! - Prevents the Code component from crashing if the lang isn't supported by falling back toplaintext
.v3.6.2
Compare Source
Patch Changes
d90714fc3
Thanks @SpencerWhitehead7! - Fixes an issue where links with the same pathname as the current page, but different search params, were not prefetched.v3.6.1
Compare Source
Patch Changes
#9173
04fdc1c61
Thanks @lilnasy! - Fixes an issue where having a middleware prevented the SSR app from being deployed on Netlify.#9186
607542c7c
Thanks @martrapp! - Fixes a view transition issue on webKit browsers that prevented scrolling to #fragmentsv3.6.0
Compare Source
Minor Changes
#9090
c87223c21
Thanks @martrapp! - Take full control over the behavior of view transitions!Three new events now complement the existing
astro:after-swap
andastro:page-load
events: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, thetap
strategy will be used.#9166
cba6cf32d
Thanks @matthewp! - The Picture component is no longer experimentalThe
<Picture />
component, part ofastro: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 aignoreSlowConnection
option to theprefetch()
API to prefetch even on data saver mode or slow connection.v3.5.7
Compare Source
Patch Changes
7ff8d62bf
Thanks @ematipico! - Revert fix around fallback system, which broken injected stylesv3.5.6
Compare Source
Patch Changes
#9121
f4efd1c80
Thanks @peng! - Adds a warning ifastro 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 propertyAstro.currentLocale
, available wheni18n
is enabled.v3.5.5
Compare Source
Patch Changes
#9091
536c6c9fd
Thanks @ematipico! - TheroutingStrategy
prefix-always
should not force its logic to endpoints. This fixes some regression withastro: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 longv3.5.4
Compare Source
Patch Changes
#9085
fc66ecff1
Thanks @ematipico! - When redirecting to the default root locale, Astro middleare should take into consideration the value oftrailingSlash
#9067
c6e449c5b
Thanks @danielhajduk! - Fixes display of debug messages when using the--verbose
flag#9075
c5dc8f2ec
Thanks @Princesseuh! - Fix Passthrough image service generating multiple images with the same content in certain cases#9083
4537ecf0d
Thanks @bluwy! - Uses newcreateShikiHighlighter
API from@astrojs/markdown-remark
to avoid code duplication#9084
045e5ec97
Thanks @matthewp! - Supportsformmethod
andformaction
for form overrides#9087
b895113a0
Thanks @alexanderniebuhr! - Fixes the regression which broke bundling of image service for pre-rendered pages, which was introduced by #8854#9058
5ef89ef33
Thanks @Princesseuh! - Add a new settings panel to the dev overlay#9045
84312f24f
Thanks @rishi-raj-jain! - Fixes preview servertrailingSlash
handling for request URLs with query stringsUpdated dependencies [
4537ecf0d
]:v3.5.3
Compare Source
Patch Changes
50164f5e3
Thanks @natemoo-re! - Fix a regression introduced in 3.5.0 related to content collection stylesv3.5.2
Compare Source
Patch Changes
1bc331968
Thanks @ematipico! - Correctly infer the presence of an user middlewarev3.5.1
Compare Source
Patch Changes
#9037
ea71975ec
Thanks @sarah11918! - Updates i18n configuration reference#9051
15b84ccb9
Thanks @ematipico! - Fix a regression where endpoints were incorrectly processed during SSG build whentrailingSlash: "always"
#9042
7dedd17fc
Thanks @rishi-raj-jain! - Safely bail when thexclip
command does not exist on Linux when trying to copy to clipboard withastro info
#9050
bf0286e50
Thanks @Princesseuh! - Fix --verbose flag not working#9049
49b82edb2
Thanks @Princesseuh! - Fix image errors when images were used on the clientv3.5.0
Compare Source
Minor Changes
#8869
f5bdfa272
Thanks @matthewp! - ## Integration Hooks to add MiddlewareIt's now possible in Astro for an integration to add middleware on behalf of the user. Previously when a third party wanted to provide middleware, the user would need to create a
src/middleware.ts
file themselves. Now, adding third-party middleware is as easy as adding a new integration.For integration authors, there is a new
addMiddleware
function in theastro:config:setup
hook. This function allows you to specify a middleware module and the order in which it should be applied:You can now add your integration's middleware and specify that it runs either before or after the application's own defined middleware (defined in
src/middleware.{js,ts}
)#8854
3e1239e42
Thanks @natemoo-re! - Provides a new, experimental build cache for Content Collections as part of the Incremental Build RFC. This includes multiple refactors to Astro's build process to optimize how Content Collections are handled, which should provide significant performance improvements for users with many collections.Users building a
static
site can opt-in to preview the new build cache by adding the following flag to your Astro config:When this experimental feature is enabled, the files generated from your content collections will be stored in the
cacheDir
(by default,node_modules/.astro
) and reused between builds. Most CI environments automatically restore files innode_modules/
by default.In our internal testing on the real world Astro Docs project, this feature reduces the bundling step of
astro build
from 133.20s to 10.46s, about 92% faster. The end-to-endastro build
process used to take 4min 58s and now takes just over1min
for a total reduction of 80%.If you run into any issues with this experimental feature, please let us know!
You can always bypass the cache for a single build by passing the
--force
flag toastro build
.#8963
fda3a0213
Thanks @matthewp! - Form support in View Transitions routerThe
<ViewTransitions />
router can now handle form submissions, allowing the same animated transitions and stateful UI retention on form posts that are already available on<a>
links. With this addition, your Astro project can have animations in all of these scenarios:navigate()
API.This feature is opt-in for semver reasons and can be enabled by adding the
handleForms
prop to the ` component:v3.4.4
Compare Source
Patch Changes
#9000
35739d01e
Thanks @martrapp! - Fixes an error in dev mode on Safari where view transitions prevented navigating to pages withclient:only
components#9014
d979b8f0a
Thanks @Princesseuh! - Add animations, shadows and general styling tweaks to the Dev Overlay to better match the intended design.#8996
3988bbcc9
Thanks @bluwy! - Adds compatibility for shiki languages with thepath
property#8986
910eb00fe
Thanks @Princesseuh! - Fixsizes
attribute not being present onsource
elements when using it on the Picture componentv3.4.3
Compare Source
Patch Changes
#8981
ab7e745cc
Thanks @matthewp! - Increase the scroll restoration throttle time#8940
937522fb7
Thanks @MarvinXu! - Omit nullish and falsy (non-zero) values when stringifying object-formstyle
attributes in Astro filesv3.4.2
Compare Source
Patch Changes
#8977
40a061679
Thanks @matthewp! - Prevent route announcer from being visible#8929
2da33b7a1
Thanks @lilnasy! - Fixes an issue where rendering the same slot multiple times invoked it only once.#8978
cc3278bb6
Thanks @Princesseuh! - In the dev overlay, add a tooltip showing the currently hovered / focused plugin's namev3.4.1
Compare Source
Patch Changes
#8966
262cef248
Thanks @Princesseuh! - Fix Dev Overlay not working properly when view transitions are enabled#8932
5fed432b0
Thanks @Princesseuh! - Fixed window component appearing over the dev overlay on small windows. Added a maximum length to sections of the tooltip component#8965
430c470ac
Thanks @matthewp! - Move VT route announcer styles to a classDoing so allows stricter CSP policies.
#8762
35cd810f0
Thanks @evadecker! - Upgrades Zod to 3.22.4#8928
ca90b47cf
Thanks @HiDeoo! - Renames dev overlay UI Toolkit component names for consistency.v3.4.0
Compare Source
Minor Changes
#8755
fe4079f05
Thanks @matthewp! - Page PartialsA page component can now be identified as a partial page, which will render its HTML content without including a
<! DOCTYPE html>
declaration nor any<head>
content.A rendering library, like htmx or Stimulus or even just jQuery can access partial content on the client to dynamically update only parts of a page.
Pages marked as partials do not have a
doctype
or any head content included in the rendered result. You can mark any page as a partial by setting this option:v3.3.4
Compare Source
Patch Changes
#8877
26b77b8fe
Thanks @bluwy! - Fixes CSS modules ordering by rendering styles before linksUpdated dependencies [
341ef6578
]:v3.3.3
Compare Source
Patch Changes
#8870
5ea6ee0ed
Thanks @xstevenyung! - prevent production install on astro add cmd#8840
5c888c10b
Thanks @martrapp! - Fixes styles ofclient:only
components not persisting during view transitions in dev mode#8814
ad2bb9155
Thanks @lilnasy! - Fix an issue where500.astro
did not render when the middleware threw an error.#8863
326e17893
Thanks @florian-lefebvre! - Fixes an issue where the dev server logged the full file path on updates.v3.3.2
Compare Source
Patch Changes
2c18e2d12
](https://redirect.github.com/withastro/astro/commit/2c18e2Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.