Skip to content

Commit 4bc67da

Browse files
committed
Chore: Finalize 5.1.1 build and changelog
1 parent 43aef97 commit 4bc67da

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
## 5.1.1
3+
4+
### 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.
6+
27
## 5.1.0
38

49
### Bugs

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("before-hydration", `import '@semantic-ui/astro-lit/hydration-support.js';`);
35+
injectScript("page", `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-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)