Releases: lit/lit
Releases · lit/lit
v0.14.0
Changed
until()can now take any number of sync or async arguments. (#555)- [Breaking]
guard()supports multiple dependencies. If the first argument toguard()is an array, the array items are checked for equality to previous values. (#666) - [Breaking] Renamed
classMap.jsandstyleMap.jsfiles 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 thecache()directive.
Fixed
v0.13.0
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)
eventContextis no longer used as thethisvalue for event listener objects (object with ahandleEventmethod), as the object itself is supposed to be thethisvalue. (#576)
v0.12.0
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
thisreference, which is set via theeventContextoption torender(). (#523) - Support for event listener options, by passing the listener itself as both the second and third arguments to add/removeEventListener().
v0.11.0
Bump version to 0.11.0 (#456)
v0.10.0
0.10.0
0.6.0
- 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.