astro/.changeset/gold-windows-fly.md
Elliott Marquez 4b077318fb
Update lit-ssr dependency (#6681)
* update lit-ssr dependency

* delete unnecessary lit shim checks

* delete another unused lit shim feature

* fix sass build

* bump lit and polyfill versions to match ssr req

* shim HTMLElement in test

* remove lit global shim workarounds

* re-shim Astro's ce.define

* remove fix window test and shim HTML Element

* Update .changeset/gold-windows-fly.md

Co-authored-by: Augustine Kim <ajk830@gmail.com>

* fix window check test

* implement suggestoins

---------

Co-authored-by: Augustine Kim <ajk830@gmail.com>
2023-03-29 12:43:40 -04:00

672 B

@astrojs/lit
major

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 lit@2.7.0 hydration behavior. Do not update if you're using lit@2.6.1 or lower. Includes support for template[shadowrootmode] support.