unstale

npm / @astrojs/solid-js

@astrojs/solid-js

What changed in @astrojs/solid-js 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

81 breaking1 security9 deprecations6 new APIs and options2 behavior and defaults1 tooling6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@astrojs/solid-js 79 changes

Breaking changes 2

  • The minimum supported Node.js version is now 22.23.4, including fixes from the October 2026 Node.js security releases.

    7.1.1release notes

  • The minimum supported Node.js version is now 22.22.0.

    7.1.0release notes

Security 1

  • Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js

    7.1.2security advisory

New APIs and options 2

  • Import getContainerRenderer from this dedicated entrypoint instead of the @astrojs/solid-js package root to avoid bundling unrelated build-time exports.

    7.0.0upgrade guide

  • Import getContainerRenderer() from this new entrypoint when using the Container API; importing it from the package root still works but is deprecated and logs a warning.

    7.0.0release notes

Fixes and other changes 4

  • Unpins @astrojs/* dependencies so versions matching the ^ range can be installed.

    7.1.6release notes

  • Slot names are escaped when rendering slot wrapper elements for Solid components.

    7.1.2release notes

  • Solid ecosystem packages are bundled in non-client environments so Vite resolves the correct export condition during prerendering, fixing build crashes involving pre-compiled browser artifacts.

    7.0.2release notes

  • The Solid renderer no longer incorrectly claims Svelte 5 components compiled with the newer $$renderer prop, preventing them from being silently rendered as empty strings.

    7.0.1release notes

@astrojs/solid-js 694 changes

Breaking changes 78

  • Temporary support for Node >=20.19.1 was removed because Stackblitz now uses Node 22 by default.

    6.0.1release notes

  • Route filenames can no longer contain the percent-encoded percent sign %25, preventing encoding-based security bypasses.

    6.0.0upgrade guide

  • The signature accepting routeData and locals as separate arguments is removed. Pass them as properties of the renderOptions object instead.

    6.0.0upgrade guide

  • This App and NodeApp method is removed; create a new App instance if you need to update the manifest.

    6.0.0upgrade guide

  • The Astro object in getStaticPaths() is deprecated. Astro.site logs a warning, while accessing other unavailable properties throws a specific error; replace Astro.site with import.meta.env.SITE and remove Astro.generator.

    6.0.0upgrade guide

  • The listed internal functions, classes, and types are no longer exported from the virtual module; use getActionContext() for serializeActionResult() and deserializeActionResult().

    6.0.0upgrade guide

  • The hook is called once with all environments configured instead of separately for each build target. Remove the target parameter and use vite.environments to configure specific environments.

    6.0.0upgrade guide

  • Remove uses of params.entryPoints in this hook; the value is no longer available.

    6.0.0upgrade guide

  • The virtual module is removed. Use astro:config/server for configuration values and the astro:build:ssr integration hook for build-specific manifest data.

    6.0.0upgrade guide

  • CommonJS Astro config files with the .cjs extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts.

    6.0.0upgrade guide

  • CommonJS Astro config files with the .cts extension are no longer supported; use a supported extension such as .mjs, .js, .ts, or .mts.

    6.0.0upgrade guide

  • Astro.glob() is removed; use getCollection() for collections or import.meta.glob() for other project source files. import.meta.glob() does not return a Promise.

    6.0.0upgrade guide

  • Route pathnames may be partially decoded during normalization, so this value may differ from the pathname in Astro.request.url; route params are affected too.

    6.0.0upgrade guide

  • Remove the handleForms prop. Form submit-event handling is built in by default, and the prop provided no additional functionality.

    6.0.0upgrade guide

  • Collection entries no longer have a render() method; import render() from astro:content and call render(entry).

    6.0.0upgrade guide

  • Content loader schema types are inferred instead of generated using zod-to-ts. When providing a schema in a content loader, use TypeScript's satisfies operator.

    6.0.0upgrade guide

  • This function is removed from the astro:transitions and astro:transitions/client virtual module exports and can no longer be imported.

    6.0.0upgrade guide

  • Adapters should use createApp() in place of NodeApp to create the application instance.

    6.0.0upgrade guide

  • Adapters should provide required exports directly from their server entrypoint instead of using createExports().

    6.0.0upgrade guide

  • The default image service applies cropping by default without requiring the fit option.

    6.0.0upgrade guide

  • With transforms, Zod 4 requires default values to match the output type and short-circuits parsing when input is undefined.

    6.0.0upgrade guide

  • The default image service no longer upscales images. Adjust requested dimensions or use manual upscaling or a custom image service if upscaling is needed.

    6.0.0upgrade guide

  • emitESMImage() is removed; use emitImageMetadata() and remove the unused arguments.

    6.0.0upgrade guide

  • Custom endpoints whose URL ends in a file extension are accessible only without a trailing slash, regardless of build.trailingSlash.

    6.0.0upgrade guide

  • The entryPoints map is removed from the astro:build:ssr hook.

    6.0.0upgrade guide

  • Zod 4 uses the error option for custom error messages in place of message.

    6.0.0upgrade guide

  • Zod 4 drops support for a custom errorsMap, so projects using it to redefine or translate error messages must update their handling.

    6.0.0upgrade guide

  • This experimental flag is removed because the feature is now stable; remove it from Astro config.

    6.0.0upgrade guide

  • This experimental flag is removed because the feature is now stable; the new prerenderConflictBehavior configuration option is available.

    6.0.0upgrade guide

  • This experimental flag is removed because the feature is now stable; remove it from Astro config.

    6.0.0upgrade guide

  • The experimental flag was removed because compatible heading ID generation is now the default. Remove it from configuration.

    6.0.0upgrade guide

  • This experimental flag is removed because the feature is now stable; remove it from Astro config.

    6.0.0upgrade guide

  • The experimental flag is removed; scripts and styles are now rendered in the order defined in source code by default.

    6.0.0upgrade guide

  • When format is set, the default image service now attempts to convert SVG images to raster formats. Check image formats beforehand if SVGs should not be converted.

    6.0.0upgrade guide

  • Replace this legacy collection query method with getEntry().

    6.0.0upgrade guide

  • Replace this legacy collection query method with getEntry().

    6.0.0upgrade guide

  • Calling getImage() on the client now throws a runtime error. Call it on the server and pass the resulting src to the client.

    6.0.0upgrade guide

  • getStaticPaths() params values must now be strings or undefined. Convert numeric params to strings.

    6.0.0upgrade guide

  • The rehypeHeadingIds plugin option no longer exists. Remove it from plugin configuration.

    6.0.0upgrade guide

  • The default changes from true to false. This option can now only be used when i18n.routing.prefixDefaultLocale is true.

    6.0.0upgrade guide

  • Values are always inlined and never coerced; non-public values are no longer transformed into process.env references.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • Astro removes the legacy.collections flag and automatic legacy content collections support; all content collections must use the Content Layer API.

    6.0.0upgrade guide

  • The legacy collections flag and legacy Content Collections support are removed. All collections must use the Content Layer API.

    6.0.0upgrade guide

  • Content collections must define a loader; use Astro’s built-in glob() loader with pattern and base for file-based entries.

    6.0.0upgrade guide

  • Heading IDs now retain trailing hyphens when headings end in special characters. Update manual anchor links if needed.

    6.0.0upgrade guide

  • Astro v6 drops Node 18 and Node 20 support. Development and deployment environments must use Node 22.12.0 or higher.

    6.0.0upgrade guide

  • Use prefault for the old behavior where default values are parsed.

    6.0.0upgrade guide

  • The with option is removed, so prefetch priority can no longer be configured with it. Prefetching automatically uses link rel="prefetch" when supported, or falls back to fetch().

    6.0.0upgrade guide

  • ActionAPIContext.rewrite() is removed; custom endpoints should be used instead of rewrites.

    6.0.0upgrade guide

  • RouteData.generate() is removed because Astro now handles route generation internally.

    6.0.0upgrade guide

  • The routes array is removed from astro:build:done; use astro:routes:resolved and access distURL through the assets map.

    6.0.0upgrade guide

  • Raises the minimum Node.js version to 22.12.0.

    6.0.0release notes

  • Content loaders can no longer define schema as a function; use createSchema() to dynamically define a schema.

    6.0.0upgrade guide

  • Use this path instead of server.hot.send() to access HMR from dev toolbar and integration code.

    6.0.0upgrade guide

  • The internal session test driver is removed and can no longer be used.

    6.0.0upgrade guide

  • Use the newly exported sessionDrivers to configure session drivers with the new object shape.

    6.0.0upgrade guide

  • Astro upgrades to Shiki 4.0 for syntax highlighting; projects using Shiki-specific APIs may need migration changes.

    6.0.0upgrade guide

  • CollectionEntry ids are now slugs; replace uses of slug with id, and use filePath to access the filename previously represented by id.

    6.0.0upgrade guide

  • Move the legacy content configuration file to src/content.config.ts for the Content Layer API.

    6.0.0upgrade guide

  • Path properties such as srcDir are now URL objects rather than URL strings. Access href when the string URL representation is needed.

    6.0.0upgrade guide

  • The hrefRoot property is no longer available on the manifest.

    6.0.0upgrade guide

  • serverIslandMappings is now an async method; await its result.

    6.0.0upgrade guide

  • sessionDriver is now an async method; await its result.

    6.0.0upgrade guide

  • Adapters providing start() should move its code directly into the server entrypoint.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • This export is removed from the astro:transitions and astro:transitions/client virtual modules.

    6.0.0upgrade guide

  • Collection definitions no longer accept type: 'content' or type: 'data'; remove the field.

    6.0.0upgrade guide

  • The ViewTransitions component is removed; use ClientRouter to continue using these features.

    6.0.0upgrade guide

  • Astro v6 upgrades to Vite 7.0 as the development server and production bundler; projects using Vite-specific plugins, configuration, or APIs may need updates.

    6.0.0upgrade guide

  • Configure client asset output filenames under this path instead of vite.build.rollupOptions.output.

    6.0.0upgrade guide

  • Astro components can no longer be rendered in Vitest client environments such as jsdom or happy-dom. Run those tests in the node environment.

    6.0.0upgrade guide

  • Zod 4 moves string format APIs such as email validation to the top-level z namespace; replace z.string().email() with z.email().

    6.0.0upgrade guide

  • Astro upgrades to Zod 4, which may require changes to custom schemas, validation formats, error messages, and transformed defaults.

    6.0.0upgrade guide

Deprecations 9

  • The astro:schema module is deprecated in favor of astro/zod.

    6.0.0upgrade guide

  • The explicit adapter entrypoint behavior is deprecated. Set entrypointResolution to "auto" and remove exports and args when migrating to the new adapter API.

    6.0.0upgrade guide

  • This environment variable is deprecated in favor of build.assetsPrefix from astro:config/server.

    6.0.0upgrade guide

  • loadApp() from astro/app/node is deprecated; adapters should replace it with createApp().

    6.0.0upgrade guide

  • loadManifest() from astro/app/node is deprecated for adapters.

    6.0.0upgrade guide

  • NodeApp from astro/app/node is deprecated in favor of createApp(), createRequest(), and writeResponse().

    6.0.0upgrade guide

  • The NodeAppHeadersJson type is deprecated.

    6.0.0upgrade guide

  • The session driver string signature is deprecated in favor of the object shape provided by sessionDrivers.

    6.0.0upgrade guide

  • The z export from astro:content is deprecated; import z from astro/zod instead.

    6.0.0upgrade guide

New APIs and options 3

  • This utility is provided for adapters to create a request when replacing NodeApp.

    6.0.0upgrade guide

  • A temporary migration flag preserves some legacy v4 content collections features while projects migrate to the Content Layer API.

    6.0.0upgrade guide

  • This utility is provided for adapters to write a response when replacing NodeApp.

    6.0.0upgrade guide

Behavior and default changes 2

  • Responsive image styles are generated in a build-time virtual module and applied using a hash class and data-* attributes instead of inline style attributes.

    6.0.0upgrade guide

  • Astro now uses Vite’s Environments API to manage client, server, and prerender runtime environments, affecting integration and adapter APIs.

    6.0.0upgrade guide

Tooling 1

  • Upgrades to Vite v7.0 as the development server and production bundler.

    6.0.0release notes

Fixes and other changes 1

  • Lowers the Node version requirement to allow running on Stackblitz until it supports v22.

    6.0.0release notes

@astrojs/solid-js 53 changes

Breaking changes 1

New APIs and options 1

  • The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer().

    5.1.3release notes

Fixes and other changes 1