@lwc/engine-core 7.1.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -7280,9 +7280,11 @@ function textNodeContentsAreEqual(node, vnode, renderer) {
7280
7280
  // LWC runtime will assume that VDOM attrs and DOM attrs are in sync.
7281
7281
  function getValidationPredicate(elm, renderer, optOutStaticProp) {
7282
7282
  // `data-lwc-host-mutated` is a special attribute added by the SSR engine itself,
7283
- // which does the same thing as an explicit `static validationOptOut = true`.
7284
- if (renderer.getAttribute(elm, 'data-lwc-host-mutated') === '') {
7285
- return (_attrName) => false;
7283
+ // which does the same thing as an explicit `static validationOptOut = ['attr1', 'attr2']`.
7284
+ const hostMutatedValue = renderer.getAttribute(elm, 'data-lwc-host-mutated');
7285
+ if (shared.isString(hostMutatedValue)) {
7286
+ const mutatedAttrValues = new Set(shared.StringSplit.call(hostMutatedValue, / /));
7287
+ return (attrName) => !mutatedAttrValues.has(attrName);
7286
7288
  }
7287
7289
  if (shared.isUndefined(optOutStaticProp)) {
7288
7290
  return (_attrName) => true;
@@ -8089,5 +8091,5 @@ exports.swapTemplate = swapTemplate;
8089
8091
  exports.track = track;
8090
8092
  exports.unwrap = unwrap;
8091
8093
  exports.wire = wire;
8092
- /** version: 7.1.1 */
8094
+ /** version: 7.2.0 */
8093
8095
  //# sourceMappingURL=index.cjs.js.map