v6.4.0
Observable changes
HTML elements with class
and style
attributes may render with additional whitespace. This is due to an optimization to improve the render time of Lightning Web Components.
This change is exactly the same as what we've reported in previous releases, and can be fixed by avoiding anti-patterns for styling components. E.g.:
/* Don’t do this */
document.querySelector('[class="highlight yellow"]');
/* Do this instead */
document.querySelector(".highlight.yellow");
The difference now is that this change may be seen in more components than before.
What's Changed
- perf: apply static parts optimization to dynamic attributes by @jmsjtu in #4055
- fix: fix iframe onload with static content optimization by @nolanlawson in #4082
- fix: remove unnecessary nullish coalescing by @nolanlawson in #4086
- chore: update non-breaking dependencies by @jye-sf in #4085
- perf: Apply static parts optimization to dynamic style by @jmsjtu in #4084
- perf(synthetic-shadow): optimize recursivelySetShadowResolver by @nolanlawson in #4088
- perf(template-compiler): support
key
in static content by @nolanlawson in #4091 - perf: optimize
createUpgradableConstructor
by @nolanlawson in #4092 - perf: apply static parts optimization to dynamic class attributes by @jmsjtu in #4071
- chore: update jest snapshot by @nolanlawson in #4095
- fix: support arguments for FACE callbacks by @nolanlawson in #4094
- fix(engine-core): fix warnings for invalid keys by @nolanlawson in #4097
- perf(engine-core): optimize
patchClassAttribute
by @nolanlawson in #4102 - fix: error accessing tagName on fragment by @jmsjtu in #4103
- perf: apply static parts optimization to dynamic text by @jmsjtu in #4099
- fix: children and childNodes not returning top-level slotted children by @abdulsattar in #4098
- fix: add signals as dependency by @jmsjtu in #4106
Full Changelog: v6.3.4...v6.4.0