@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.js CHANGED
@@ -7276,9 +7276,11 @@ function textNodeContentsAreEqual(node, vnode, renderer) {
7276
7276
  // LWC runtime will assume that VDOM attrs and DOM attrs are in sync.
7277
7277
  function getValidationPredicate(elm, renderer, optOutStaticProp) {
7278
7278
  // `data-lwc-host-mutated` is a special attribute added by the SSR engine itself,
7279
- // which does the same thing as an explicit `static validationOptOut = true`.
7280
- if (renderer.getAttribute(elm, 'data-lwc-host-mutated') === '') {
7281
- return (_attrName) => false;
7279
+ // which does the same thing as an explicit `static validationOptOut = ['attr1', 'attr2']`.
7280
+ const hostMutatedValue = renderer.getAttribute(elm, 'data-lwc-host-mutated');
7281
+ if (isString(hostMutatedValue)) {
7282
+ const mutatedAttrValues = new Set(StringSplit.call(hostMutatedValue, / /));
7283
+ return (attrName) => !mutatedAttrValues.has(attrName);
7282
7284
  }
7283
7285
  if (isUndefined$1(optOutStaticProp)) {
7284
7286
  return (_attrName) => true;
@@ -8042,5 +8044,5 @@ function readonly(obj) {
8042
8044
  }
8043
8045
 
8044
8046
  export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, setHooks, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
8045
- /** version: 7.1.1 */
8047
+ /** version: 7.2.0 */
8046
8048
  //# sourceMappingURL=index.js.map