Minor Changes
-
1c0f886: Update lit to 3.3.3, with one copy of it for the astro side.
litmoves from^3.1.2to^3.3.3, and the portal's line is pinned to a single copy in the root
overrides(lit3.3.3 withlit-element4.2.2,lit-html3.3.3,@lit/reactive-element2.1.2).
Before this the install carried several lit lines at once - the root 3.x next to 2.8.0 copies inside
@lion/*and@rocket/*- and which one an Astro island's module graph resolved varied per page
load, while@lit-labs/ssr-client's hydration support patches exactly oneLitElement. When it had
patched a copy that the element did not extend, the island rendered a second copy of its template
beside the server-rendered shadow root instead of hydrating it: a duplicated table of contents on the
docs pages, on 3 out of 6 page loads. One copy for the portal means the support reaches its islands,
and server-rendered pages hydrate their markup the way they are meant to.The lit 2 era packages keep the line they were built against. This repo still runs on rocket next to
astro, so@lion/*(except@lion/ui) and@rocket/*are scoped in the sameoverridestolit
2.8.0 withlit-html2.8.0,lit-element3.3.3 and@lit/reactive-element1.6.3 - upgrading those
to lit 3 is a migration of its own, not a side effect of this one. The resolution was checked for the
combination that would break them: 0 of the 8 lit copies in the tree pair alit2.8.0 with a
lit-html3.x.