Skip to content

chore: version packages - #255

Merged
tenphi merged 1 commit into
mainfrom
changeset-release/main
Aug 5, 2026
Merged

chore: version packages#255
tenphi merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tenphi/tasty@3.0.1

Patch Changes

  • #254 5a176cc Thanks @tenphi! - Fix tastyIntegration() failing every Astro build in 3.0.0.

    The integration registered its middleware with new URL('./astro-middleware.js', import.meta.url). That URL is resolved against the emitted chunk, and the v3 build hoists tastyIntegration out of dist/ssr/astro.js into a shared chunk at the dist/ root — so it pointed at dist/astro-middleware.js, which does not exist, while the real file shipped at dist/ssr/astro-middleware.js. Astro now receives a package subpath instead, which is resolved through the exports map and cannot be invalidated by chunk layout.

    This also fixes tastyIntegration({ islands: false }) silently keeping the class-list transfer script. The flag was passed through module-level state written by the integration at config-load time and read by the middleware at request time — different module instances, and different processes entirely for built output, so the middleware always saw the true default. Each variant now bakes its own setting in.

    Adds two entry points, @tenphi/tasty/ssr/astro-middleware and @tenphi/tasty/ssr/astro-middleware-static. They exist so Astro can resolve the middleware by specifier and are not meant to be imported directly — use tastyMiddleware() for manual middleware composition.

    Anyone who worked around this with a manual src/middleware.ts can revert to tastyIntegration() once on this release, or keep the manual setup — both are supported.

@tenphi
tenphi merged commit 7ab4e7a into main Aug 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant