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.0.1
->3.5.4
3.0.5
->3.6.3
3.0.3
->3.2.1
Release Notes
withastro/astro (@astrojs/preact)
v3.5.4
Compare Source
Patch Changes
8a46e80
Thanks @marbrex! - Resolvevite
peer dependency problem for strict package managers like Yarn in PnP mode.v3.5.3
Compare Source
Patch Changes
4a44e82
Thanks @lukasbachlechner! - Preact components no longer throw an error if a property is null.v3.5.2
Compare Source
Patch Changes
5f2536b
Thanks @ph1p! - Preact signals are now serialized correctly in arrays when they are given to components.v3.5.1
Compare Source
Patch Changes
2cdb685
Thanks @rschristian! - Swap outpreact-ssr-prepass
forrenderToStringAsync
frompreact-render-to-string
v3.5.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.4.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.3.0
Compare Source
Minor Changes
#10938
fd508a0
Thanks @florian-lefebvre! - Adds adevtools
optionYou can enable Preact devtools in development by setting
devtools: true
in yourpreact()
integration config: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 READMEwithastro/astro (@astrojs/react)
v3.6.3
Compare Source
Patch Changes
8a46e80
Thanks @marbrex! - Resolvevite
peer dependency problem for strict package managers like Yarn in PnP mode.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.withastro/astro (@astrojs/sitemap)
v3.2.1
Compare Source
Patch Changes
07754f5
Thanks @mingjunlu! - Adds missingxslURL
property toSitemapOptions
type.v3.2.0
Compare Source
Minor Changes
fbe1bc5
Thanks @sondr3! - Adds newxslURL
option to enable styling of sitemapsv3.1.6
Compare Source
Patch Changes
7d59750
Thanks @wackbyte! - Refactor to use Astro's integration logger for loggingv3.1.5
Compare Source
Patch Changes
cefeadf
Thanks @adrianlyjak! - Fixes false positives for status code routes like404
and500
when generating sitemaps.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 READMEConfiguration
📅 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 was generated by Mend Renovate. View the repository job log.