Lit is a simple library for building fast, lightweight web components.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by aomarks almost 3 years ago
#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.
Published by aomarks almost 3 years ago
#2336 48394303
- Tasks with no arguments now run by default. When a task runs can be customized by passing a canRun
function.
#2336 48394303
- Tasks now run whenever their arguments change. Disable this by setting autoRun
to false
, either on the task config or on the task itself. Tasks can be explicitly run by calling run
and optionally passing custom args.
08e7fc56
, eb5c5d2b
, 49ecf623
, 26e3fb7b
]:
Published by aomarks almost 3 years ago
b42f6f0f
- Refactor the import-module into a class-based ModuleLoader API. Adds a module cache that tracks dependencies between modules.dcab56b0
- Add customElementRendered callback to RenderInfo so that callers can know what elements were rendered.#2346 53e64286
- Remove dependency on escape-html (which is not an ES module)
#2344 bc46ddd6
- Fix bug where static attributes did not render for unknown elements
#2345 4edf4f3b
- Remove unnecessary dependencies: koa
, koa-node-resolve
, koa-static
,
@webcomponents/template-shadowroot
Updated dependencies [08e7fc56
, fcc2b3d0
, eb5c5d2b
, 49ecf623
, 26e3fb7b
, d319cf5f
, 1d563e83
, 221cb0a9
]:
Published by aomarks almost 3 years ago
e1c88265
- A set of reactive controllers that facilitate using the platform observer objects, including MutationObserver, ResizeObserver, IntersectionObserver, and PerformanceObserver.08e7fc56
, eb5c5d2b
, 49ecf623
, 26e3fb7b
]:
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
9fc5a039
- Added output.outputDir setting for transform mode. Required if tsConfig is not specified.9fc5a039
- Add inputFiles
field, and make tsConfig
field optional when inputFiles
is specified. If both are set, inputFiles
takes precedence over the input files from tsConfig
. When tsConfig
is not specified, a default config is used that will include .js
files.9fc5a039
- Fixed the $schema
property that is automatically added to @lit/localize-tools9fc5a039
, 9fc5a039
]:
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by aomarks about 3 years ago
Published by kevinpschaaf about 3 years ago
LitElement
, ReactiveElement
, and lit-html
). See the Migration Guide for more details.Published by kevinpschaaf about 3 years ago
Published by kevinpschaaf about 3 years ago
@lit/reactive-element
is a new package that factors out the base class that provides the reactive update lifecycle based on property/attribute changes to LitElement
(what was previously called UpdatingElement
) into a separate package. LitElement
now extends ReactiveElement
to add lit-html
rendering via the render()
callback. See ReactiveElement API for more details.UpdatingElement
has been renamed to ReactiveElement
.updating-element
package has been renamed to @lit/reactive-element
.@internalProperty
decorator has been renamed to @state
._getUpdateComplete
to getUpdateComplete
.reflect: true
and its toAttribute
function returns undefined
the attribute is now removed where previously it was left unchanged (#872).unhandledrejection
event handler on window.renderRoot
is now created when the element's connectedCallback
is initially run.requestUpdateInternal
. The requestUpdate
method is now identical to this method and should be used instead.initialize
method has been removed. This work is now done in the element constructor.static addInitializer
for adding a function which is called with the element instance when is created. This can be used, for example, to create decorators which hook into element lifecycle by creating a reactive controller (#1663).hostConnected
, hostDisconnected
, hostUpdate
, and hostUpdated
. To ensure it has access to the element lifecycle, a controller should be added in the element's constructor. To add a controller to the element, call addController(controller)
.removeController(controller)
which can be used to remove a controller from a ReactiveElement
.willUpdate(changedProperties)
lifecycle method to UpdatingElement. This is called before the update
method and can be used to compute derived state needed for updating. This method is intended to be called during server side rendering and should not manipulate element DOM.Published by kevinpschaaf about 3 years ago
Published by kevinpschaaf about 3 years ago
Published by kevinpschaaf about 3 years ago
c8fe1d4
- For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.Updated dependencies [ff0d1556
, 15a8356d
, 2b8dd1c7
, 34280cb0
, 5768cc60
, 018f6520
, 5fabe2b5
, 0470d86a
, 5fabe2b5
, 52a47c7e
, 5b2f3642
, 5fabe2b5
, 08f60328
, 7adfbb0c
, 5fabe2b5
, 24feb430
, 61fc9452
, 5fabe2b5
, 13d137e9
, 5fabe2b5
, 5fabe2b5
, 724a9aab
, 0312f3e5
, 8b6e2415
, 761375ac
, a791514b
, 5fabe2b5
]:
Published by kevinpschaaf about 3 years ago
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.#2120 2043eb0f
- Don't assign DOM shim window.global (and hence globalThis.global) to window
This means that globalThis.global will retain its Node built-ins, whereas
before it would lose anything we didn't explicitly set on window.
#1972 a791514b
- Properties that must remain unminified are now compatible with build tools other than rollup/terser.
Updated dependencies [ff0d1556
, b3121ab7
, 15a8356d
, d6b385e3
, 5768cc60
, 8189f094
, b4bd9f7c
, 69389958
, 5fabe2b5
, 52a47c7e
, 5b2f3642
, 08f60328
, 7adfbb0c
, d8ff5901
, 5fabe2b5
, 24feb430
, 5fabe2b5
, 5fabe2b5
, 0b4d6eda
, 13d137e9
, f05be301
, 01353317
, a48f39c8
, 5fabe2b5
, 724a9aab
, 0d703bfb
, 56e8efd3
, 0312f3e5
, e5667d66
, cc5c3a09
, 662209c3
, 043a16fb
, 761375ac
, a791514b
, 5fabe2b5
]: