Releases: salesforce/lwc
Releases · salesforce/lwc
v1.9.2
v1.9.1
v1.9.0
Improvements
- #2067 - lwc: Add
querySelector
andquerySelectorAll
to the LWC type interface forShadowRoot
. - #2071 - engine-core: Add hot module reloading (HMR) functionality. Note that this feature was subsequently put behind a feature flag in v1.9.3.
Internal
- #2058: Use CircleCI tag filtering to publish packages to npm.
v1.8.7
Improvements
- #2064 - template-compiler: Export the types
IRAttributeType
,TemplateExpression
, andTemplateIdentifier
.
Bug fixes
- #2068 - synthetic-shadow: Remove the iteration protocol from
StaticHTMLCollection
.StaticHTMLCollection
is an interface used by LWC to represent theHTMLCollection
interface, which doesn't support iterations. - #2065 - engine: Fix a bug in the diffing algorithm where dynamically-generated children of conditionally-rendered elements are not properly removed.
v1.8.6
Bug fixes
- #2055: Explicit import of JavaScript transform plugins. The way LWC uses Babel causes it to load different transform versions depending on the
node_modules
structure of downstream projects. Explicitly importing these transforms sidesteps that issue, ensuring that we get the expected version during compilation.
v1.8.5
v1.8.4
v1.8.3
Improvements
- #1617 - engine: Improve the diffing algorithm for slotted content. This change skips re-rendering unaffected slotted components which brings a significant performance boost in certain cases.
⚠️ Note⚠️ : As a side effect, components relying onrenderedCallback
to detect when slotted component changes might break. The right approach to detect slotted component changes is to use theslotchange
event.
Bug fixes
- #2036 - synthetic-shadow: Allow event listeners added prior to the evaluation of the
@lwc/synthetic-shadow
polyfill to be removed.
Internal
- #2037 - engine: Refactor usage of
setElementProto
.