Releases: salesforce/lwc
Releases · salesforce/lwc
v1.17.6
Bug fixes
- #2250 - synthetic-shadow: Fixes a bug with the innerText polyfill on elements that has no selectable text.
Improvements
- #2246 - template-compiler: Replace
@babel/generator
byastring
for codegen. This change results in 15% performance improvement in compiler code evaluation time and 0 to 50% performance speedup in compilation time depending on the use case. The performance gain depends on the presence and size of the HTML template in the LWC module.
v1.17.5
Bug fixes
- #2241 - synthetic-shadow: Fixes an issue where the same event listener, used on different shadow roots or host elements, would be invoked with the first shadow root as context always.
Improvements
- #2243 - style-compiler: Removes restriction on usage of CSS custom properties in stylesheets. They can now be used with the caveat that it is dependent on your browser environment supporting it.
- #2247 - synthetic-shadow: Enforces shadow dom semantics on HTMLElement.innerText by default.
Internal
v1.17.4
Bug fixes
- #2233 - template-compiler: Fixes an issue where the template compiler incorrectly binds the iterator when multiple iterators are nested in the template.
Improvements
- #2234 - template-compiler: Removes
iterator.next
restriction, which speeds up the expression parsing by removing the need to traverse the AST. - #2217 - style-compiler: allows ::slotted css selector.
Internal
v1.17.3
Bug fixes
- #2227 - synthetic-shadow: Move restrictions for
ShadowRoot.prototype.cloneNode
andShadowRoot.prototype. getElementById
from@lwc/engine-core
to@lwc/synthetic-shadow
to allow usage of those methods outside of our synthetic shadow polyfill. - #2228 - synthetic-shadow: Fix a bug where
Event.prototype.composedPath
returns an incorrect value when dealing with components using native Shadow DOM. - #2195 - synthetic-shadow: Fix a bug for
Event.prototype.composedPath
where incorrect assumptions were being made aboutText
nodes andEventTarget
.
v1.17.2
v1.17.1
Bug fixes
- #2197 - engine-core: Handle CSS custom property declared in
style
attribute in the template.
Internal
v1.17.0
Jumped from v1.11.4 to v1.17.0 due to the discovery that v1.16.4 (now deprecated) was unintentionally published in the past. Setting a later version as latest
should minimize the possibility of anyone unintentionally installing v1.16.4.
Bug fixes
- #2111 - synthetic-shadow: Add shadow semantics to the
relatedTarget
property ofFocusEvent
andMouseEvent
. This is a potential breaking change because therelatedTarget
will change from the originalrelatedTarget
to a retargeted one, as defined in the specification.
Internal
- #2202: Update dependencies.
v1.11.4
Bug fixes
- #2192 - engine-core: Move restrictions for
ShadowRoot.prototype.getSelection
andShadowRoot.prototype.elementsFromPoint
from@lwc/engine-core
to@lwc/synthetic-shadow
to allow usage of those methods outside of our synthetic shadow polyfill. Those restrictions remain in @lwc/synthetic-shadow because polyfills for those methods have not been implemented.