Skip to content

Releases: lit/lit

@lit/react@1.0.5

25 Apr 19:51
56cb2ca
Compare
Choose a tag to compare

Patch Changes

  • #4575 aa4fc3ef - Use a global flag to detect whether @lit-labs/ssr-react/enable-lit-ssr.js was used for coordinating props when server rendering components made with @lit/react.

@lit-labs/ssr-react@0.3.0

25 Apr 19:51
56cb2ca
Compare
Choose a tag to compare

Minor Changes

  • #4575 aa4fc3ef - The Node build of @lit-labs/ssr-react/enable-lit-ssr.js now also monkey-patches react/jsx-runtime to include logic for deeply server-rendering Lit components without modifying jsxImportSource in tsconfig.

    The monkey-patching logic also adds a workaround for inconsistent es module interop behavior in tools like webpack which could lead to errors like TypeError: Cannot set property createElement of [object Module] which has only a getter.

Patch Changes

  • #4575 aa4fc3ef - Use a global flag to detect whether @lit-labs/ssr-react/enable-lit-ssr.js was used for coordinating props when server rendering components made with @lit/react.

@lit-labs/nextjs@0.2.0

25 Apr 19:51
56cb2ca
Compare
Choose a tag to compare

Minor Changes

  • #4575 aa4fc3ef - Add support for Next.js 14 and App Router. No longer support Next.js 12.

    Note: By default, components in the App Router are React Server Components (RSCs). Deep SSR of Lit components does not work within server components as they result in React hydration mismatch due to the presence of the <template> element in the RSC payload containing the serialized server component tree, and the custom element definitions will not be included with the client bundle either when imported in server component files.

    Make sure any Lit components you wish to use are beyond the 'use client'; boundary. These will still be server rendered for the initial page load just like they did for the Pages Router.

Patch Changes

lit@3.1.3

15 Apr 23:16
700799b
Compare
Choose a tag to compare

Patch Changes

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

lit-html@3.1.3

15 Apr 23:16
700799b
Compare
Choose a tag to compare

Patch Changes

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

lit-element@4.0.5

15 Apr 23:16
700799b
Compare
Choose a tag to compare

Patch Changes

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

@lit/context@1.1.1

15 Apr 23:16
700799b
Compare
Choose a tag to compare

Patch Changes

  • #4614 ab77cc9c - Fix context types to be compatible with WCCG context protocol types.

@lit-labs/cli@0.6.4

15 Apr 23:16
700799b
Compare
Choose a tag to compare

Patch Changes

  • #4616 e90dd627 - Use a shell when spawning a child process to install packages. This fixes an error that would happen when command is run in Windows with the latest Node.js security fix in v21.7.3.

@lit/react@1.0.4

14 Mar 21:02
dd74c60
Compare
Choose a tag to compare

Patch Changes

  • #4572 5ed30d47 - Fix issue where event handler prop was incorrectly being set on the underlying custom element instance and potentially overriding an existing method/property.

  • #4534 d68f5c70 - Wrapped components will now keep track of JSX props from previous render that were set as a property on the element, but are now missing, and set the property to undefined. Note, wrapped components still do not have "default props" and missing props will be treated the same as explicitly passing in undefined.

    This fixes the previously unexpected behavior where the following JSX when first rendered with a truthy condition

    return condition ? <WrappedInput disabled /> : <WrappedInput />;

    would leave the disabled property and reflected attribute to be true even when the condition turns falsey.

@lit-labs/testing@0.2.4

14 Mar 21:02
dd74c60
Compare
Choose a tag to compare

Patch Changes

  • #4541 d128391b - Fix declarative shadowroot detection and parsing to use the correct spec behavior.

  • #4516 c51bc182 - Update @web/test-runner-commands dependency