lit

Lit is a simple library for building fast, lightweight web components.

BSD-3-CLAUSE License

Downloads
46.4M
Stars
18.6K
Committers
190

Bot releases are hidden (Show)

lit - @lit-labs/[email protected]

Published by justinfagnani about 3 years ago

Patch Changes

  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
lit - @lit-labs/[email protected]

Published by justinfagnani about 3 years ago

Patch Changes

  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
  • Included development folder in release #1912.
lit - @lit-labs/[email protected]

Published by justinfagnani about 3 years ago

Patch Changes

  • #2034 5768cc60 - Reverts the change in Lit 2 to pause ReactiveElement's update cycle while the element is disconnected. The update cycle for elements will now run while disconnected as in Lit 1, however AsyncDirectives must now check the this.isConnected flag during update to ensure that e.g. subscriptions that could lead to memory leaks are not made when AsyncDirectives update while disconnected.
  • #1881 a83f616 - Add demo for using global DOM shim instead of isolated VM contexts
lit - @lit-labs/[email protected]

Published by justinfagnani about 3 years ago

Patch Changes

  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
lit - @lit/[email protected]

Published by justinfagnani about 3 years ago

Patch Changes

  • #2002 ff0d1556 - Fixes polyfill-support styling issues: styling should be fully applied by firstUpdated/update time; late added styles are now retained (matching Lit1 behavior)
  • #2030 34280cb0 - Remove unnecessary attribute:false assignment in @state decorator
  • #2034 5768cc60 - Reverts the change in Lit 2 to pause ReactiveElement's update cycle while the element is disconnected. The update cycle for elements will now run while disconnected as in Lit 1, however AsyncDirectives must now check the this.isConnected flag during update to ensure that e.g. subscriptions that could lead to memory leaks are not made when AsyncDirectives update while disconnected.
  • #1918 72877fd - Changed the caching strategy used in CSSResults returned from the css tag to cache the stylesheet rather than individual CSSResults.
  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
  • #2041 52a47c7e - Remove some unnecessary internal type declarations.
  • #1917 550a218 - Use a brand property instead of instanceof to identify CSSResults to make the checks compatible with multiple copies of the @lit/reactive-element package.
  • #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.
  • #1943 39ad574 - Add support for private custom element constructors in @customElement().
  • #1972 a791514b - Properties that must remain unminified are now compatible with build tools other than rollup/terser.
  • #2050 8758e06 - Fix syntax highlighting in some documentation examples

  • (Since 1.0.0-rc.2) Reverted change of the css tag's return to CSSResultGroup, which was a breaking change. The css tag again returns a CSSResult object.

  • (Since 1.0.0-rc.2) Remove the CSSResultFlatArray type alias in css-tag.ts.

lit - [email protected]

Published by justinfagnani about 3 years ago

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.
lit - v1.3.0

Published by justinfagnani about 4 years ago

Changed

  • Set the "type" field in package.json to "module. (#1146)

Added

  • Added support for Trusted Types. This support uses a policy named 'lit-html' for parsing the static parts of html literals, and ensures that we pass trusted type values through to the DOM when used in bindings. (#1153)
  • Export the shadyTemplateFactory from lib/shady-render.js (#1135)
lit - v1.2.1

Published by justinfagnani over 4 years ago

Fixed

  • Add TypeScript type declarations for older versions of TypeScript. We're currently testing back to TS 3.4. We can't commit to never breaking TypeScript builds, but we'll be supporting older versions as best we can.
lit - v1.2.0

Published by justinfagnani over 4 years ago

Added

  • Added unsafeSVG directive to bind SVG source inside SVGs. (#304)
  • Added templateContent() directive for stamping out the contents of an HTML template into a text binding. (#1058)
  • Added the live() directive. (#877)

Fixed

  • Fixed a bug where classMap and styleMap directives wouldn't render mutated objects. (#972)
  • Fixed a bug where ifDefined() would set an attribute even when the value didn't change. (#890)
  • Change classMap directive to set classes correctly on SVGs (#1070).
lit - v1.1.2

Published by straversi about 5 years ago

Fixed

  • Fixed a bug where bindings in comments could be written as text in some cases. (#926)
lit - v1.1.0

Published by justinfagnani over 5 years ago

Changed

  • Many small performance enhancements.
  • Private names are now named with a __ prefix (#859).

Added

  • Setup continuous benchmarking with Tachometer (#887).

Fixed

  • Prevent empty styles from causing exceptions or breaking rendering when using shady-render (#760).
  • Primitive values in attributes are now always simply stringified, regardless of whether they are iterable. (#830)
  • Adopt and upgrade template fragments after processing for parts (#831).
  • Fixed bindings with attribute-like expressions preceeding them (#855).
  • Fixed errors with bindings in HTML comments (#882).
lit - v1.1.1

Published by justinfagnani over 5 years ago

Changed

  • render and shady-render now both accept any value that is renderable by NodePart. (#910)
lit -

Published by dfreedm over 5 years ago

lit - v0.14.0

Published by justinfagnani almost 6 years ago

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)
lit - v0.13.0

Published by kevinpschaaf almost 6 years ago

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)
lit -

Published by justinfagnani about 6 years ago

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().
lit - v0.11.0

Published by justinfagnani about 6 years ago

lit - v0.10.0

Published by justinfagnani over 6 years ago

lit - 0.6.0

Published by justinfagnani about 7 years ago

  • 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.