You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LWC 0.23.2 Release Notes - Revert Forward and Fixes
We are being much more pragmatic about our alignment with shadow dom (which is still the eventual goal). In the 0.23.2 release, we're stepping back to our membrane (proxy) to stabilize and fix recent regressions. In the current release, it helped outline everything we need to do to prepare for shadow dom such as web driver mitigations and utils to help developers shift to shadow dom mindset (right way to get to the element they want).
ETA
EOD. This release has fixes for regressions and broken functionality so we need to get this out asap. Our goal for release communication is a week in advance. However, it's been hard for us to track fixes in advanced. Thanks for understanding.
CHANGES
Use util in jest tests to get correct querySelector
Reasoning for change: encapsulate to reduce manual updates in the future
Example of current way
Might break CSS selectors, and querySelector calls. It can also affect composition like <ul><slot>...<li>, and for that reason, those elements should not be used in composition, only use them if you fully control them in your own template
FIXES
childNodes property is now reporting the right value on elements from the template
assignedSlot property for any element now works as expected
It points to the <slot> element that is slotting the element or null. Keep in mind that for shadows in closed mode, this property will always be null. As the moment, the mode defaults to open.
<my-paragraph>
<span slot="my-text">Let's have some different text!</span>
</my-paragraph>
LWC 0.23.2 Release Notes - Revert Forward and Fixes
We are being much more pragmatic about our alignment with shadow dom (which is still the eventual goal). In the 0.23.2 release, we're stepping back to our membrane (proxy) to stabilize and fix recent regressions. In the current release, it helped outline everything we need to do to prepare for shadow dom such as web driver mitigations and utils to help developers shift to shadow dom mindset (right way to get to the element they want).
ETA
EOD. This release has fixes for regressions and broken functionality so we need to get this out asap. Our goal for release communication is a week in advance. However, it's been hard for us to track fixes in advanced. Thanks for understanding.
CHANGES
Use util in jest tests to get correct querySelector
Reasoning for change: encapsulate to reduce manual updates in the future
Example of current way
Example of correct way
We are moving back to wrapping DOM nodes in proxies
unwrap
when necessaryevent.target on async events will now resolve to the highest level element in the LWC component tree.
<slot>
elements are now appearing in the DOM<ul><slot>...<li>
, and for that reason, those elements should not be used in composition, only use them if you fully control them in your own templateFIXES
childNodes property is now reporting the right value on elements from the template
eventTarget pointing to slotted elements is now correct
display CSS rule are now handled properly
No more warnings about using a field called state without the
@track
decorator@track
intentionally when needed, no more magic about state field.Manual mutations of properties in custom elements are now allowed
NEW
assignedSlot property for any element now works as expected
<slot>
element that is slotting the element or null. Keep in mind that for shadows in closed mode, this property will always be null. As the moment, the mode defaults to open.The text was updated successfully, but these errors were encountered: