Releases: salesforce/lwc
Releases · salesforce/lwc
v1.8.0
Improvements
- #2007, #2019 - engine: Add support for native custom elements reference in the template. With this change, an element tag registered with the custom elements registry using
customElements.define()
(https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) can be referenced in a LWC component's template. Such an element will be upgraded using the registered custom element constructor.
Internal
- #2020 - template-compiler: Exposes missing compiler types
v1.7.14
Improvements
- #2000 - template-compiler: Optimizes the parse phase of the template compiler by using Acorn to parse expressions in a component template. Important: with this change, the following become invalid:
- Expressions in a template that end with
;
. For example:<template><button title={foo;}>click me</button></template>
. - Expressions in a template that are wrapped in extra curly brackets. For example:
<template><button title={{foo}}>click me</button></template>
.
- Expressions in a template that end with
v1.7.13
Improvements
- #1952 - template-compiler: Changes how boolean attributes and attributes used as boolean on standard HTML elements are rendered.
- All the attributes declared in the template on standard HTML elements are now set via attributes.
- Known boolean attributes (for example,
hidden
andrequired
, but with the exception ofchecked
) are set if their value is truthy. Otherwise, the attribute is omitted. For the rest of the attributes (for example,class
,data-*
, andfoo-bar
), the values are set if they are not nullish.
Internal
v1.7.12
v1.7.11
v1.7.10
v1.7.9
Bug Fixes
- #1972 - engine-server: Escape HTML entities from dynamic text and dynamic attributes to prevent potential XSS.
- #1977 - engine-server: The
isConnected
property was refactored to accurately reflect the connectedness of the component. - #1986 - template-compiler: Tag names are now considered to determine whether or not an attribute is boolean. This fixes the incorrect assumption that all boolean attributes are HTML global attributes. Removes
capture
from the list of boolean attributes to align with the spec.
Internal
- #1980: Specify
node
as the default type at the root level to prevent unwanted ambient types from being loaded.
v1.7.8
Bug Fixes
- #1976 - wire-service: A recent exposure of hooks for use by external systems caused an unexpected change in the identity of method arguments for wire adaptors, breaking some wire adaptor implementations. This change removes the invocation of those hooks.
Improvements
- #1968 - engine-server: Update the declarative shadow output to match the latest spec.
Internal