•  
      request #34354 lit: 2.2.3 -> lit-html: 2.8.0
    Infos
    #34354
    Joris MASSON (jmasson)
    2023-09-22 10:48
    2023-09-21 14:49
    35969
    Details
    lit: 2.2.3 -> lit-html: 2.8.0

    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/

    Dependencies
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2023-09-22
    Attachments
    Empty
    References

    Follow-ups