Skip to content

Releases: lit/lit

v0.14.0

30 Nov 20:26
3eaa2a7

Choose a tag to compare

Changed

  • until() can now take any number of sync or async arguments. (#555)
  • [Breaking] guard() supports multiple dependencies. If the first argument to guard() is an array, the array items are checked for equality to previous values. (#666)
  • [Breaking] Renamed classMap.js and styleMap.js files to kebab-case. (#644)

Added

  • Added cache() directive. (#646)
  • Removed Promise as a supposed node-position value type. (#555)
  • Added a minimal <template> polyfill.

Removed

  • [Breaking] Removed the when() directive. Users may achieve similar behavior by wrapping a ternary with the cache() directive.

Fixed

  • Bound attribute names are rewritten to avoid IE/Edge removing SVG and style attributes. (#640)
  • Ensure shady-render prepares styling for a scope before attaching child elements. (#664)
  • Handle CSS Custom Variables in the styleMap directive. #642)

v0.13.0

09 Nov 01:14
487277a

Choose a tag to compare

Changed

  • [Breaking] Directives are now defined by passing the entire directive factory function to directive(). (#562)

Fixed

  • Fix issue on obscure browsers that do not accept event listener objects by using callback as event part listener (#581)
  • Fix KeyFn and ItemTemplate types (#570)
  • Don't use export * to workaround rollup bug (#556)
  • eventContext is no longer used as the this value for event listener objects (object with a handleEvent method), as the object itself is supposed to be the this value. (#576)

v0.12.0

05 Oct 18:58

Choose a tag to compare

Changed

  • Re-implemented repeat directive for better performance (#501)
  • Updated TypeScript dependency to 3.1
  • [Breaking] render() now takes an options object as the third argument. (#523)

Added

  • Event listeners are called with a configurable this reference, which is set via the eventContext option to render(). (#523)
  • Support for event listener options, by passing the listener itself as both the second and third arguments to add/removeEventListener().

v0.11.0

28 Aug 21:53

Choose a tag to compare

Bump version to 0.11.0 (#456)

v0.10.0

04 May 22:59

Choose a tag to compare

0.10.0

0.6.0

01 Sep 18:18

Choose a tag to compare

  • Fixed removing event handlers when setting them to undefined.
  • Allow the text "{{}}" to appear in templates.
  • Optimized clearing of Parts.
  • Added unsafeHTML() directive to bind values as HTML source.
  • Optimizations, simplification and bug fixes of Array handling code.
  • Update to extension API: added partCallback parameter to render().
  • Added the directive() decorator function to create directives. Functions values are no longer treated as directive by default, simplifying declarative event handlers.