lit-html
changelog: https://github.com/lit/lit/blob/lit-html%402.8.0/packages/lit-html/CHANGELOG.md#280
lit vs lit-html
In request #23401, we switched from importing lit-html
to lit
as was advised by the upgrade guide for v2.0 [0]. It was announced that the standalone lit-html
package was going to be deprecated.
At the time of writing, it has been two years, and the package does not look deprecated at all. lit
has a v3.0 pre-release, and their documentation [1] still features a dedicated section for people wanting to use lit-html
standalone. The pre-release announcement [2] still features lit-html
and announces neither its deprecation nor its removal. It seems safe to say that lit-html
is not going to disappear soon.
Since we do not plan on using lit
for custom elements (currently preferring hybrids
), we should stop downloading and installing packages that we don't use. We should switch back to importing lit-html
, which is what we really need and use.
[0] https://lit.dev/docs/v2/releases/upgrade/#update-packages-and-import-paths
[1] https://lit.dev/docs/v3/libraries/standalone-templates/
[2] https://lit.dev/blog/2023-05-15-lit-3.0-prerelease/