Skip to content

Commit

Permalink
Merge branch 'update-lit-ssr' of github.com:e111077/astro into update…
Browse files Browse the repository at this point in the history
…-lit-ssr
  • Loading branch information
e111077 committed Mar 29, 2023
2 parents afd72ff + 7d518b3 commit a533b98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .changeset/gold-windows-fly.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
'@astrojs/lit': patch
---

Bump deps to lit-ssr 3.0 and polyfill supoprt for template[shadowrootmode] support. Also fix breakage caused by [email protected] hydration behavior requiring lit-ssr 3.0
Update to use `@lit-labs/ssr@^3`
**[BREAKING]** DOM shim required for Lit SSR has been greatly reduced. `window`, `document`, and other objects are no longer available in global. Most SSR-ready component code should not be affected but, if so, they can be fixed with optional chaining or by using the `isServer` environment checker from the `lit` package. See [lit.dev docs on authoring components for SSR].(https://lit.dev/docs/ssr/authoring/#browser-only-code)
**[BREAKING]** Adds compatibility with `[email protected]` hydration behavior. Do not update if you're using `[email protected]` or lower.
Includes support for template[shadowrootmode] support.

0 comments on commit a533b98

Please sign in to comment.