Skip to content

Latest commit

 

History

History
251 lines (139 loc) · 15.9 KB

CHANGELOG.md

File metadata and controls

251 lines (139 loc) · 15.9 KB

Change Log

2.3.1

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

2.3.0

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

2.2.8

Patch Changes

  • #3130 1f0567f1 - Export the underlying type of the keyed directive.

  • #3132 2fe2053f - Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.

2.2.7

Patch Changes

  • #2978 634d4560 - Changed the caching behavior of the css`` template literal tag so that same-text styles do not share a CSSStyleSheet. Note that this may be a breaking change in some very unusual scenarios on Chromium and Firefox > 101 only.

2.2.6

Patch Changes

  • #2849 b12e8d93 - Expand documentation for render and TemplateResult.

2.2.5

Patch Changes

  • #2952 a78cc3b7 - Fix SSR hydration bug relating to and other void elements having attribute bindings.

2.2.4

Patch Changes

  • #2847 79d82385 - Fix typo in API docs for live() directive.

  • #2828 b3b6bc33 - Remove private Lit 2 migration helpers: INTERNAL and clearContainerForLit2MigrationOnly. This logic is no longer depended on.

2.2.3

Patch Changes

  • #2732 3e181bcb - Enforce use of file extensions in imports. Fixes an issue with older TypeScript compilers.

  • #2688 ef178ef6 - Add explicit types to the jsdoc code samples for query, queryAll, and queryAsync.

2.2.2

Patch Changes

  • #2657 a6069c40 - Remove readonly restriction from StyleInfo interface as addition, deletion, and updating of styles is valid. Expanded styleMap documentation with links to lit.dev.

  • #2642 badc532c - Add an additional security brand check to StaticValues; Similar to #2307

  • #2691 171143bd - Fixes ref bug when auto-bound class method used as a callback could incorrectly receive undefined.

  • #2661 9a3a38cd - Give a clearer error message when rendering into null/undefined

  • #2646 365cd09a - Clarify that hacking around the template strings array brand error can create security vulnerabilities.

2.2.1

Patch Changes

  • #2635 ae358703 - Make the event debug logger lazier, doing even less work (with no side effects) even in dev mode unless the page has opted in.

2.2.0

Minor Changes

  • #2401 2c9d0008 - Added a devlog events system that may be used for debugging and visualizing Lit's internals.

Patch Changes

  • Updated dependencies [2c9d0008]:
    • lit-element@3.2.0
    • lit-html@2.2.0
    • @lit/reactive-element@1.3.0

2.1.4

Patch Changes

  • #2518 bbbf21d4 - Fix breaking change in the PropertyValues type. Make PropertyValues compatible with Map<string, string> and other Map types.

  • #2526 a50d188a - Export PropertyValueMap such that JavaScript generated by Google Closure Compiler can reference this type. Do not directly import the PropertyValueMap interface.

2.1.3

Patch Changes

  • #2498 2a1dc7a1 - Replace 'rare' with 'invalid' in svg tag function JSDocs.

  • #2459 23df9d45 - Fix bindings inside of <title> elements

  • #2482 6ea3d6c4 - Update the definition of the PropertyValues type to give better types to .get(k). .get(k) is now defined to return the correct type when using PropertyValues<this> and a parameter that's a key of the element class.

  • #2464 df4e1a46 - Fix type signature in queryAssignedNodes JSDoc code example.

  • #2479 89560520 - Expand JSDocs for the svg tagged template literal (TTL). The new documentation makes it more clear that the svg tag function should only be used for SVG fragments, and not for the <svg> HTML element.

  • #2457 48d69184 - Add JSDoc to the willUpdate lifecycle callback. Expand the docs for firstUpdated, and attributeChangedCallback. Minor code sample fixes.

2.1.2

Patch Changes

  • #2399 5ac025bf - Correct typo in async-directive module comment

  • #2370 7453e365 - Replace square bracket links with the linkcode JSDoc tag. Editors will create a jump to definition hyperlink for the linkcode tag if the identifier is in scope.

  • #2410 b9a6962b - Correct the link path of CONTRIBUTING.md in README.md files

2.1.1

Patch Changes

  • #2384 39b8db85 - Fix missing decorators/query-assigned-elements.js file

2.1.0

Minor Changes

  • #2337 fcc2b3d0 - Add a keyed(key, value) directive that clears a part if the key changes.
  • #2327 49ecf623 - Add queryAssignedElements decorator for a declarative API that calls HTMLSlotElement.assignedElements() on a specified slot. selector option allows filtering returned elements with a CSS selector.

Patch Changes

2.0.2

Patch Changes

  • #2234 de17a7d4 - Fix repository.directory field in lit package.json

2.0.1

Patch Changes

2.0.0

Major Changes

  • New package serving as the main entry point for all users of Lit (including LitElement, ReactiveElement, and lit-html). See the Migration Guide for more details.

2.0.0-rc.4

Patch Changes

  • #2103 15a8356d - Updates the exports field of package.json files to replace the subpath folder mapping syntax with an explicit list of all exported files.

    The /-suffixed syntax for subpath folder mapping originally used in these files is deprecated. Rather than update to the new syntax, this change replaces these mappings with individual entries for all exported files so that (a) users must import using extensions and (b) bundlers or other tools that don't resolve subpath folder mapping exactly as Node.js does won't break these packages' expectations around how they're imported.

  • #2113 5b2f3642 - Dependency upgrades including TypeScript 4.4.2
  • #2073 0312f3e5 - (Cleanup) Removed obsolete TODOs from codebase

2.0.0-rc.3

Patch Changes

  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
  • #1959 6938995 - Changed prefix used for minifying class field names on lit libraries to stay within ASCII subset, to avoid needing to explicitly set the charset for scripts in some browsers.

Changes below were based on the Keep a Changelog format. All changes above are generated automatically by Changesets.


[2.0.0-rc.2] - 2021-05-07

Changed

  • Updated dependencies

[2.0.0-rc.1] - 2021-04-20

Changed

  • (Since 2.0.0-pre.1) Renamed hydrate and hydrate-support modules to experimental-hydrate and experimental-hydrate-support, respectively, to reflect their experimental nature. Experimental modules may undergo breaking changes within otherwise non-major releases.

[2.0.0-pre.2] - 2021-03-31

Changed

  • Updated dependencies

[2.0.0-pre.1] - 2021-02-11

Initial release