Packages

@astrojs/preact

6.1.6 · 13 Nov 2026MIT267k / weekRepositoryHomepagenpmAtom feed

Your version

2.2.0

18 May 2023Where it was published

2.2.2 is the newest release of 2.x.

In short

2 fixed

Release note

Minor Changes

  • Prevent removal of nested slots within islands

    This change introduces a new flag that renderers can add called supportsAstroStaticSlot. What this does is let Astro know that the render is sending <astro-static-slot> as placeholder values for static (non-hydrated) slots which Astro will then remove.

    This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:

    <Component>
      <div>
        <Component client:load>
          <span>Nested</span>
        </Component>
      </div>
    </Component>

Patch Changes

  • Specify "files" field to only publish necessary files

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.