fix(deps): update dependency @astrojs/solid-js to v4 #364
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.2
->^4.4.1
Release Notes
withastro/astro (@astrojs/solid-js)
v4.4.1
Compare Source
Patch Changes
7adb350
Thanks @bluwy! - Prevents throwing errors when checking if a component is a Solid component in runtimev4.4.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:
v4.3.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.v4.2.0
Compare Source
Minor Changes
#10937
7179930
Thanks @florian-lefebvre! - Adds adevtools
optionYou can enable the official Solid Devtools while working in development mode by setting
devtools: true
in yoursolid()
integration config and addingsolid-devtools
to your project dependencies:v4.1.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.
v4.0.1
Compare Source
Patch Changes
2e4d110a876efc4ddcdeda403259317d1cbb742d
Thanks @marvin-j97! - Upgradesvite-plugin-solid
to^2.8.0
v4.0.0
Compare Source
Major Changes
#6791
37021044dd4382a9b214f89b7c221bf1c93f3e7d
Thanks @patdx! - Render SolidJS components usingrenderToStringAsync
.This changes the renderer of SolidJS components from
renderToString
torenderToStringAsync
. It also injects the actual SolidJS hydration script generated bygenerateHydrationScript
, so thatSuspense
,ErrorBoundary
and similar components can be hydrated correctly.The server render phase will now wait for Suspense boundaries to resolve instead of always rendering the Suspense fallback.
If you use the APIs
createResource
orlazy
, their functionalities will now be executed on the server side, not just the client side.This increases the flexibility of the SolidJS integration. Server-side components can now safely fetch remote data, call async Astro server functions like
getImage()
or load other components dynamically. Even server-only components that do not hydrate in the browser will benefit.It is very unlikely that a server-only component would have used the Suspense feature until now, so this should not be a breaking change for server-only components.
This could be a breaking change for components that meet the following conditions:
Suspense
,lazy
orcreateResource
, andclient:load
client:idle
client:visible
client:media
These components will now first try to resolve the Suspense boundaries on the server side instead of the client side.
If you do not want Suspense boundaries to be resolved on the server (for example, if you are using createResource to do an HTTP fetch that relies on a browser-side cookie), you may consider:
client:only
to skip server side rendering completelyonMount()
to detect server mode and render a server fallback without using Suspense.v3.0.3
Compare Source
Patch Changes
#9482
72b26daf694b213918f02d0fcbf90ab5b7ebc31f
Thanks @natemoo-re! - Improves compatability with the Qwik adapter#9479
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates READMEConfiguration
📅 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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.