Skip to content

Commit d8d5932

Browse files
committed
Chore: 5.1.3 - Changelog
1 parent b5b3255 commit d8d5932

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11

2+
## 5.1.3
3+
4+
### Bugs
5+
- Reverts 5.1.2 workaround back to `before-hydration` injection. The underlying issue is an [Astro 6 bug](https://github.com/withastro/astro/pull/15904) where the before-hydration chunk is not emitted for the client build. Use 5.1.0 if you are on Astro 5. If you are on Astro 6, this version requires the Astro fix from the linked PR — until that merges, pin to 5.1.2.
6+
27
## 5.1.2
38

49
### Bugs
5-
- Fix hydration support not loading in Astro 6 static builds. Astro 6 does not emit `before-hydration` chunks for the client build environment, causing a 404 and breaking Lit component hydration. Switches to `page` script injection as a workaround.
10+
- Workaround for hydration support not loading in Astro 6 static builds due to a [missing chunk in Astro's client build](https://github.com/withastro/astro/pull/15904). Switches to `page` script injection which fixes the 404 but does not guarantee execution order relative to island hydration, so components may occasionally re-render on first load. Use 5.1.3 once the Astro fix lands.
611

712
## 5.1.0-1
813

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function index_default() {
3232
"head-inline",
3333
readFileSync(new URL("../client-shim.min.js", import.meta.url), { encoding: "utf-8" })
3434
);
35-
injectScript("page", `import '@semantic-ui/astro-lit/hydration-support.js';`);
35+
injectScript("before-hydration", `import '@semantic-ui/astro-lit/hydration-support.js';`);
3636
addRenderer({
3737
name: "@semantic-ui/astro-lit",
3838
serverEntrypoint: "@semantic-ui/astro-lit/server.js",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@semantic-ui/astro-lit",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"description": "Use Lit components with Astro",
55
"type": "module",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)