Skip to content

Releases: salesforce/lwc

v1.17.6

29 Mar 13:34
Compare
Choose a tag to compare

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 by astring 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

18 Feb 20:18
Compare
Choose a tag to compare

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

  • #2239, #2240 - template-compiler: Performance improvements to the template-compiler.
  • #2221 - babel-plugin-component: Moves component registration transform out of post process step. This is in preparation for @babel/core dependency update.

v1.17.4

10 Feb 20:22
2a6ed84
Compare
Choose a tag to compare

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

  • #2230 - template-compiler: Removes unreachable code for inline style parsing.
  • #2232 - template-compiler: Removes unused id from internal state.
  • #2235 - template-compiler: Use single traversal for scoped id generation

v1.17.3

08 Feb 15:57
Compare
Choose a tag to compare

Bug fixes

  • #2227 - synthetic-shadow: Move restrictions for ShadowRoot.prototype.cloneNode and ShadowRoot.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 about Text nodes and EventTarget.

v1.17.2

04 Feb 15:26
f9ebe79
Compare
Choose a tag to compare

Internal

  • #2225: Add back --force-publish flag to the release script. This forces lerna to generate a new version for all the packages regardless if the package is modified or not.

v1.17.1

04 Feb 09:50
c2ff7ef
Compare
Choose a tag to compare

Bug fixes

  • #2197 - engine-core: Handle CSS custom property declared in style attribute in the template.

Internal

  • #2215: Update bug report template.
  • #2199 - template-compiler: Refactor logic to simplify attribute name handling.
  • #2219 - babel-plugin-component: Remove post-processing logic for decorator validation.
  • #2223: Remove unused lerna --force-publish option.
  • #2222: Update dependencies.

v1.17.0

04 Feb 09:50
Compare
Choose a tag to compare

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 of FocusEvent and MouseEvent. This is a potential breaking change because the relatedTarget will change from the original relatedTarget to a retargeted one, as defined in the specification.

Internal

  • #2202: Update dependencies.

v1.11.4

04 Feb 09:50
Compare
Choose a tag to compare

Bug fixes

  • #2192 - engine-core: Move restrictions for ShadowRoot.prototype.getSelection and ShadowRoot.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.

v1.11.3

20 Jan 06:56
dc68d59
Compare
Choose a tag to compare

Bug fixes

  • #2143 - synthetic-shadow: Delegate argument validation to the browser for EventTarget methods to avoid swallowing errors in the polyfill.

Improvements

  • #2160 - shared: Make @lwc/shared tree-shakeable in order to produce smaller build artifacts.

v1.11.2

20 Jan 06:38
Compare
Choose a tag to compare

Bug fixes

  • #2193 - synthetic-shadow: Validate whether the event target is an instance of Node in the composedPath() polyfill to avoid runtime exceptions due to incorrect assumptions about the event target.