Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

fix(deps): update dependency lit to v3 #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lit (source) 2.2.8 -> 3.2.0 age adoption passing confidence

Release Notes

lit/lit (lit)

v3.2.0

Compare Source

Minor Changes
Patch Changes

v3.1.4

Compare Source

Patch Changes
  • #​4646 abf30b3e - The value provided by the ref() directive will always be undefined when the element is disconnected.

v3.1.3

Compare Source

Patch Changes
  • #​4570 bd881370 - Fix the lit-html marker length to be consistently 9 characters.

v3.1.2

Compare Source

Patch Changes

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​4309 949a5467 - Adds two new types: UncompiledTemplateResult and MaybeCompiledTemplateResult. Currently UncompiledTemplateResult is the same as TemplateResult, and MaybeCompiledTemplateResult is the union of the compiled and uncompiled types.
Patch Changes
  • #​4387 bf551b5b - Ensure renderRoot exists before first update (#​4268)

  • #​4282 c7922a0c Thanks @​MaxArt2501! - Fix a bug where accessing a @query decorated field with the cache flag set before the first update would result in null being cached permanently. null will no longer be cached before the first update and in DEV_MODE now raises a warning.

  • #​4388 839ca0f8 - Fixes bug where adding or removing controllers during a reactive controller lifecycle would affect the execution of other controllers (#​4266). Controllers can now be added/removed during lifecycle without affecting others.

  • Updated dependencies [949a5467]:

v3.0.2

Compare Source

Patch Changes
  • #​4345 02b8d620 - Add a dev mode warning if a static value such as literal or unsafeStatic is detected within the non-static html tag function. These should only be used with the static html tag function imported from lit-html/static.js or lit/static-html.js.

v3.0.1

Compare Source

Patch Changes
  • #​4240 edf998c9 Thanks @​remziatay! - Improved the type inferece of the choose() directive to properly restrict the case type inferred from provided value. Note: If this change creates a type error in your code, there must have been an unreachable case that can be removed, or the type of your value might be missing a valid case in the union.

  • #​4310 8f674ab3 Thanks @​megheaiulian! - The when() directive now calls the case functions with the provided condition value as an argument. This allows the narrowing of types for the condition value based on its truthiness when used as a parameter for the case function.

  • #​4284 89a5b088 - Allow null to be in the type of @query() decorated fields

v3.0.0

Compare Source

Major Changes
  • #​3756 f06f7972 - Drop IE11 support

  • #​4146 0f6878dc - Generated accessor for reactive properties now wrap user accessors and automatically call this.requestUpdate() in the setter. As in previous versions, users can still specify noAccessor: true, in which case they should call this.requestUpdate() themselves in the setter if they want to trigger a reactive update.

  • #​3765 92cedaa2 - Remove experimental hydrate modules. These are available from @lit-labs/ssr-client.

  • #​3850 7e8491d4 - Delete deprecated queryAssignedNodes behavior and arguments.

    Migrate deprecated usage with a selector argument to use
    @queryAssignedElements. E.g.: @queryAssignedNodes('list', true, '.item') to
    @queryAssignedElements({slot: '', flatten: false, selector: '.item'}).

  • #​4254 1040f758 - Change the type of ReactiveElement.renderRoot and return type of ReactiveElement.createRenderRoot() to be HTMLElement | DocumentFragment to match each other and lit-html's render() method.

  • #​3759 1db01376 - Use replaceWith() for SVG templates

  • #​3751 dfd747cf - Simplify lit-html attribute handling for standards-compliant browsers that iterate attributes in source order

  • #​3750 c3e473b4 - Use toggleAttribute() to simplify boolean attribute parts

  • #​3896 2eba6997 - Warn on async overrides of performUpdate()

Patch Changes

v2.8.0

Compare Source

Minor Changes
  • #​3993 e2c50569 - Fix return type of isTemplateResult helper to include the CompiledTemplateResult and fix the cache directive to work correctly with CompiledTemplateResults. Also add an explicit isCompiledTemplateResult helper.
Patch Changes
  • #​4031 8057c78d - Rename ReactiveElement._initialize to __initialize, make it private, and remove the @​internal annotation. This will help prevent collisions with subclasses that implement their own _initialize method, while using development builds.

  • Updated dependencies [e2c50569]:

v2.7.6

Compare Source

Patch Changes
  • #​3968 5bb40831 - Allow undefined to be passed to the ref() directive

  • #​3969 7d8d4a15 - Make RefOrCallback generic like Ref

  • #​3987 bb2560f1 - Change the h field of CompiledTemplates to a TemplateStringsArray preventing the spoofing of CompiledTemplates by JSON injection attacks. This should not be a breaking change for most users unless you're using CompiledTemplates. This is a necessary security fix, similar to #​2307.

v2.7.5

Compare Source

Patch Changes
  • #​3917 f6387e35 - Allow decorators to accept ReactiveElement class from a different source.

v2.7.4

Compare Source

Patch Changes

v2.7.3

Compare Source

Patch Changes
  • #​3825 343187b1 - static-html no longer adds an item to TemplateResult's value array for the last consumed static value. This fixes an error with server-side rendering of static html.

  • #​3766 4431cbb8 - Fix styleMap initial render of mixed-case custom props

v2.7.2

Compare Source

Patch Changes

v2.7.1

Compare Source

Patch Changes
  • #​3768 7c1191da - Fix styleMap's handling of important flags

  • #​3720 575fb578 - lit-html/experimental-hydrate.js and lit-element/experimental-hydrate-support.js have been moved to @lit-labs/ssr-client.

    The modules in the original location have been marked deprecated and will be removed in a future version.

v2.7.0

Compare Source

Minor Changes
  • #​3677 b95c86e5 - [SSR only] Reflect ARIA attributes onto server rendered Lit elements with attached internals during SSR and remove them upon hydration.

  • #​3667 e00f6f52 - [SSR only] Improved how nodes with attribute/property/event/element bindings are rendered in SSR, to avoid adding comments inside of "raw text elements" like <textarea>. Fixes #​3663.

    Note: @lit-labs/ssr and lit-html must be updated together.

Patch Changes

v2.6.1

Compare Source

Patch Changes
  • #​3526 65e56655 - Disable ShadyDOM noPatch in Node dev build. This fixes the issue of throwing due to undefined window.

  • #​3561 e5c254e9 - Fix built-in shimming of HTMLElement for Node build of reactive-element to respect existing HTMLElement in global

v2.6.0

Compare Source

Minor Changes
  • #​3522 72fcf0d7 - When running in Node, Lit now automatically includes minimal DOM shims which are
    sufficient for most SSR (Server Side Rendering) use-cases, removing the need to
    import the global DOM shim from @lit-labs/ssr.

    The new @lit-labs/ssr-dom-shim package has been introduced, which exports an HTMLElement, CustomElementRegistry, and default customElements singleton.

    The existing @lit-labs/ssr global DOM shim can still be used, and is compatible with the new package, because @lit-labs/ssr imports from @lit-labs/ssr-dom-shim. Importing the global DOM shim adds more APIs to the global object, such as a global HTMLElement, TreeWalker, fetch, and other APIs. It is recommended that users try to remove usage of the @lit-labs/ssr DOM shim, and instead rely on the more minimal, automatic shimming that @lit/reactive-element now provides automatically.

Patch Changes

v2.5.0

Compare Source

Minor Changes
  • #​3507 b152db29 - lit-html and reactive-element now include development Node builds with unminified code and dev warnings.
Patch Changes

v2.4.1

Compare Source

Patch Changes
  • #​3374 bb098950 - Initializers added to subclasses are no longer improperly added to superclass.

v2.4.0

Compare Source

Minor Changes
  • #​3318 21313077 - Adds an isServer variable export to lit and lit-html/is-server.js which will be true in Node and false in the browser. This can be used when authoring components to change behavior based on whether or not the component is executing in an SSR context.
Patch Changes

v2.3.1

Compare Source

Patch Changes
  • #​3222 486739ec - Fix CSSStyleSheet is not defined error that would occur when importing a Lit component in Node when both static styles and the @property decorator were used.

  • #​3223 5a65ca97 - Use existing document in Node build

v2.3.0

Compare Source

Minor Changes
  • #​3156 ae6f6808 - Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the @​lit-labs/ssr dom-shim library. Note that actually rendering from a Node context still requires the @​lit-labs/ssr dom-shim, and the appropriate integration between @​lit-labs/ssr and your framework/tool.
Patch Changes

Configuration

📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Dependency Upgrades from Renovate Bot label Oct 10, 2023
@renovate renovate bot enabled auto-merge (squash) October 10, 2023 21:53
@renovate renovate bot force-pushed the renovate/lit-3.x branch 2 times, most recently from 3ffdbfe to 68ebecd Compare November 3, 2023 01:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Dependency Upgrades from Renovate Bot
Development

Successfully merging this pull request may close these issues.

0 participants