Skip to content

Latest commit

 

History

History
63 lines (34 loc) · 3.56 KB

CHANGELOG.md

File metadata and controls

63 lines (34 loc) · 3.56 KB

Change Log

1.0.5

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.

1.0.4

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.

1.0.3

Patch Changes

  • #4485 57b00630 - Add "browser" export condition entrypoints to any package.json files with "node" export conditions. This fixes Node test runners emulating browser environments that were incorrectly loading the "node" entrypoints instead of the browser code.

1.0.2

Patch Changes

  • #4381 001a1b78 - Prefer type of property from an element over built-in React HTMLAttribute types. This also fixes type errors that would arise when they collide and can't be intersected.

1.0.1

Patch Changes

  • #4335 7fc72f7b Thanks @stefanpearson! - When passing a ref callback to the Component, createComponent was previously intercepting it and wrapping it in an unbound function. This change memoizes the consumer ref with useCallback, to keep the reference stable and ensure it isn't invoked repeatedly on subsequent renders.

1.0.0

Major Changes

  • #4224 71526898 - Graduate @lit-labs/react to @lit/react, its permanent location. @lit-labs/react is now just a proxy for @lit/react, so code need not be duplicated in projects that depend on both.

1.0.0-pre.0

Major Changes

  • #4224 71526898 - Graduate @lit-labs/react to @lit/react, its permanent location. @lit-labs/react is now just a proxy for @lit/react, so code need not be duplicated in projects that depend on both.

1.0.0

Initial release!

@lit/react graduated from its previous location at @lit-labs/react.

For details on its changelog before graduating, see https://github.com/lit/lit/blob/main/packages/labs/react/CHANGELOG.md