@lwc/engine-core 2.5.9 → 2.6.2

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.
@@ -1428,6 +1428,7 @@ const {
1428
1428
  isArray
1429
1429
  } = Array;
1430
1430
  const {
1431
+ prototype: ObjectDotPrototype,
1431
1432
  getPrototypeOf,
1432
1433
  create: ObjectCreate,
1433
1434
  defineProperty: ObjectDefineProperty,
@@ -2077,8 +2078,6 @@ if (process.env.NODE_ENV !== 'production') {
2077
2078
  init();
2078
2079
  }
2079
2080
 
2080
- const ObjectDotPrototype = Object.prototype;
2081
-
2082
2081
  function defaultValueIsObservable(value) {
2083
2082
  // intentionally checking for null
2084
2083
  if (value === null) {
@@ -2106,99 +2105,85 @@ const defaultValueMutated = (obj, key) => {
2106
2105
  /* do nothing */
2107
2106
  };
2108
2107
 
2109
- const defaultValueDistortion = value => value;
2110
-
2111
2108
  function createShadowTarget(value) {
2112
2109
  return isArray(value) ? [] : {};
2113
2110
  }
2114
2111
 
2115
- class ReactiveMembrane {
2116
- constructor(options) {
2117
- this.valueDistortion = defaultValueDistortion;
2118
- this.valueMutated = defaultValueMutated;
2119
- this.valueObserved = defaultValueObserved;
2120
- this.valueIsObservable = defaultValueIsObservable;
2112
+ class ObservableMembrane {
2113
+ constructor(options = {}) {
2121
2114
  this.readOnlyObjectGraph = new WeakMap();
2122
2115
  this.reactiveObjectGraph = new WeakMap();
2123
-
2124
- if (!isUndefined(options)) {
2125
- const {
2126
- valueDistortion,
2127
- valueMutated,
2128
- valueObserved,
2129
- valueIsObservable,
2130
- tagPropertyKey
2131
- } = options;
2132
- this.valueDistortion = isFunction(valueDistortion) ? valueDistortion : defaultValueDistortion;
2133
- this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2134
- this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2135
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2136
- this.tagPropertyKey = tagPropertyKey;
2137
- }
2116
+ const {
2117
+ valueMutated,
2118
+ valueObserved,
2119
+ valueIsObservable,
2120
+ tagPropertyKey
2121
+ } = options;
2122
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2123
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2124
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2125
+ this.tagPropertyKey = tagPropertyKey;
2138
2126
  }
2139
2127
 
2140
2128
  getProxy(value) {
2141
2129
  const unwrappedValue = unwrap$1(value);
2142
- const distorted = this.valueDistortion(unwrappedValue);
2143
2130
 
2144
- if (this.valueIsObservable(distorted)) {
2145
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2146
- // when trying to extract the writable version of a readonly
2147
- // we return the readonly.
2131
+ if (this.valueIsObservable(unwrappedValue)) {
2132
+ // When trying to extract the writable version of a readonly we return the readonly.
2133
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2148
2134
  return value;
2149
2135
  }
2150
2136
 
2151
- return this.getReactiveHandler(unwrappedValue, distorted);
2137
+ return this.getReactiveHandler(unwrappedValue);
2152
2138
  }
2153
2139
 
2154
- return distorted;
2140
+ return unwrappedValue;
2155
2141
  }
2156
2142
 
2157
2143
  getReadOnlyProxy(value) {
2158
2144
  value = unwrap$1(value);
2159
- const distorted = this.valueDistortion(value);
2160
2145
 
2161
- if (this.valueIsObservable(distorted)) {
2162
- return this.getReadOnlyHandler(value, distorted);
2146
+ if (this.valueIsObservable(value)) {
2147
+ return this.getReadOnlyHandler(value);
2163
2148
  }
2164
2149
 
2165
- return distorted;
2150
+ return value;
2166
2151
  }
2167
2152
 
2168
2153
  unwrapProxy(p) {
2169
2154
  return unwrap$1(p);
2170
2155
  }
2171
2156
 
2172
- getReactiveHandler(value, distortedValue) {
2173
- let proxy = this.reactiveObjectGraph.get(distortedValue);
2157
+ getReactiveHandler(value) {
2158
+ let proxy = this.reactiveObjectGraph.get(value);
2174
2159
 
2175
2160
  if (isUndefined(proxy)) {
2176
2161
  // caching the proxy after the first time it is accessed
2177
- const handler = new ReactiveProxyHandler(this, distortedValue);
2178
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2162
+ const handler = new ReactiveProxyHandler(this, value);
2163
+ proxy = new Proxy(createShadowTarget(value), handler);
2179
2164
  registerProxy(proxy, value);
2180
- this.reactiveObjectGraph.set(distortedValue, proxy);
2165
+ this.reactiveObjectGraph.set(value, proxy);
2181
2166
  }
2182
2167
 
2183
2168
  return proxy;
2184
2169
  }
2185
2170
 
2186
- getReadOnlyHandler(value, distortedValue) {
2187
- let proxy = this.readOnlyObjectGraph.get(distortedValue);
2171
+ getReadOnlyHandler(value) {
2172
+ let proxy = this.readOnlyObjectGraph.get(value);
2188
2173
 
2189
2174
  if (isUndefined(proxy)) {
2190
2175
  // caching the proxy after the first time it is accessed
2191
- const handler = new ReadOnlyHandler(this, distortedValue);
2192
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2176
+ const handler = new ReadOnlyHandler(this, value);
2177
+ proxy = new Proxy(createShadowTarget(value), handler);
2193
2178
  registerProxy(proxy, value);
2194
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2179
+ this.readOnlyObjectGraph.set(value, proxy);
2195
2180
  }
2196
2181
 
2197
2182
  return proxy;
2198
2183
  }
2199
2184
 
2200
2185
  }
2201
- /** version: 1.1.5 */
2186
+ /** version: 2.0.0 */
2202
2187
 
2203
2188
  /*
2204
2189
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2207,15 +2192,9 @@ class ReactiveMembrane {
2207
2192
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2208
2193
  */
2209
2194
  const lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2210
-
2211
- function valueDistortion(value) {
2212
- return value;
2213
- }
2214
-
2215
- const reactiveMembrane = new ReactiveMembrane({
2195
+ const reactiveMembrane = new ObservableMembrane({
2216
2196
  valueObserved,
2217
2197
  valueMutated,
2218
- valueDistortion,
2219
2198
  tagPropertyKey: lockerLivePropertyKey
2220
2199
  });
2221
2200
  /**
@@ -2224,16 +2203,9 @@ const reactiveMembrane = new ReactiveMembrane({
2224
2203
  * change or being removed.
2225
2204
  */
2226
2205
 
2227
- const unwrap = function (value) {
2228
- const unwrapped = reactiveMembrane.unwrapProxy(value);
2229
-
2230
- if (unwrapped !== value) {
2231
- // if value is a proxy, unwrap to access original value and apply distortion
2232
- return valueDistortion(unwrapped);
2233
- }
2234
-
2235
- return value;
2236
- };
2206
+ function unwrap(value) {
2207
+ return reactiveMembrane.unwrapProxy(value);
2208
+ }
2237
2209
 
2238
2210
  /*
2239
2211
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4182,13 +4154,15 @@ function updateElmHook(oldVnode, vnode) {
4182
4154
  }
4183
4155
  function updateChildrenHook(oldVnode, vnode) {
4184
4156
  const {
4185
- children,
4186
- owner
4157
+ elm,
4158
+ children
4187
4159
  } = vnode;
4188
- const fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4189
- runWithBoundaryProtection(owner, owner.owner, shared.noop, () => {
4190
- fn(vnode.elm, oldVnode.children, children);
4191
- }, shared.noop);
4160
+
4161
+ if (hasDynamicChildren(children)) {
4162
+ updateDynamicChildren(elm, oldVnode.children, children);
4163
+ } else {
4164
+ updateStaticChildren(elm, oldVnode.children, children);
4165
+ }
4192
4166
  }
4193
4167
  function allocateChildrenHook(vnode, vm) {
4194
4168
  // A component with slots will re-render because:
@@ -5636,7 +5610,7 @@ function logOperationStart(opId, vm) {
5636
5610
  if (isProfilerEnabled) {
5637
5611
  currentDispatcher(opId, 0
5638
5612
  /* Start */
5639
- , vm.tagName, vm.idx);
5613
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
5640
5614
  }
5641
5615
  }
5642
5616
  function logOperationEnd(opId, vm) {
@@ -5649,7 +5623,7 @@ function logOperationEnd(opId, vm) {
5649
5623
  if (isProfilerEnabled) {
5650
5624
  currentDispatcher(opId, 1
5651
5625
  /* Stop */
5652
- , vm.tagName, vm.idx);
5626
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
5653
5627
  }
5654
5628
  }
5655
5629
  function logGlobalOperationStart(opId, vm) {
@@ -5662,7 +5636,7 @@ function logGlobalOperationStart(opId, vm) {
5662
5636
  if (isProfilerEnabled) {
5663
5637
  currentDispatcher(opId, 0
5664
5638
  /* Start */
5665
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
5639
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
5666
5640
  }
5667
5641
  }
5668
5642
  function logGlobalOperationEnd(opId, vm) {
@@ -5675,7 +5649,7 @@ function logGlobalOperationEnd(opId, vm) {
5675
5649
  if (isProfilerEnabled) {
5676
5650
  currentDispatcher(opId, 1
5677
5651
  /* Stop */
5678
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
5652
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
5679
5653
  }
5680
5654
  }
5681
5655
 
@@ -5828,6 +5802,7 @@ function evaluateTemplate(vm, html) {
5828
5802
 
5829
5803
  return vnodes;
5830
5804
  }
5805
+
5831
5806
  function computeHasScopedStyles(template) {
5832
5807
  const {
5833
5808
  stylesheets
@@ -7246,4 +7221,4 @@ exports.swapTemplate = swapTemplate;
7246
7221
  exports.track = track;
7247
7222
  exports.unwrap = unwrap;
7248
7223
  exports.wire = wire;
7249
- /* version: 2.5.9 */
7224
+ /* version: 2.6.2 */
@@ -1,5 +1,5 @@
1
1
  /* proxy-compat-disable */
2
- import { seal, create, isFunction as isFunction$1, ArrayPush as ArrayPush$1, isUndefined as isUndefined$1, ArrayIndexOf, ArraySplice, StringToLowerCase, ArrayJoin, isNull, assign, assert, keys, StringCharCodeAt, isString, StringSlice, freeze, defineProperties, forEach, getOwnPropertyNames as getOwnPropertyNames$1, getPrototypeOf as getPrototypeOf$1, setPrototypeOf, getPropertyDescriptor, isObject, AriaPropNameToAttrNameMap, defineProperty, KEY__SYNTHETIC_MODE, toString as toString$1, isFalse, isTrue, getOwnPropertyDescriptor as getOwnPropertyDescriptor$1, htmlPropertyToAttribute, ArraySlice, hasOwnProperty as hasOwnProperty$1, ArrayFilter, noop, isArray as isArray$1, isNumber, StringReplace, KEY__SHADOW_RESOLVER, KEY__SCOPED_CSS, ArrayUnshift, isFrozen } from '@lwc/shared';
2
+ import { seal, create, isFunction as isFunction$1, ArrayPush as ArrayPush$1, isUndefined as isUndefined$1, ArrayIndexOf, ArraySplice, StringToLowerCase, ArrayJoin, isNull, assign, assert, keys, StringCharCodeAt, isString, StringSlice, freeze, defineProperties, forEach, getOwnPropertyNames as getOwnPropertyNames$1, getPrototypeOf as getPrototypeOf$1, setPrototypeOf, getPropertyDescriptor, isObject, AriaPropNameToAttrNameMap, defineProperty, KEY__SYNTHETIC_MODE, toString as toString$1, isFalse, isTrue, getOwnPropertyDescriptor as getOwnPropertyDescriptor$1, htmlPropertyToAttribute, ArraySlice, hasOwnProperty as hasOwnProperty$1, ArrayFilter, isArray as isArray$1, isNumber, StringReplace, KEY__SHADOW_RESOLVER, KEY__SCOPED_CSS, noop, ArrayUnshift, isFrozen } from '@lwc/shared';
3
3
  import { runtimeFlags } from '@lwc/features';
4
4
  export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
5
5
 
@@ -1425,6 +1425,7 @@ const {
1425
1425
  isArray
1426
1426
  } = Array;
1427
1427
  const {
1428
+ prototype: ObjectDotPrototype,
1428
1429
  getPrototypeOf,
1429
1430
  create: ObjectCreate,
1430
1431
  defineProperty: ObjectDefineProperty,
@@ -2074,8 +2075,6 @@ if (process.env.NODE_ENV !== 'production') {
2074
2075
  init();
2075
2076
  }
2076
2077
 
2077
- const ObjectDotPrototype = Object.prototype;
2078
-
2079
2078
  function defaultValueIsObservable(value) {
2080
2079
  // intentionally checking for null
2081
2080
  if (value === null) {
@@ -2103,99 +2102,85 @@ const defaultValueMutated = (obj, key) => {
2103
2102
  /* do nothing */
2104
2103
  };
2105
2104
 
2106
- const defaultValueDistortion = value => value;
2107
-
2108
2105
  function createShadowTarget(value) {
2109
2106
  return isArray(value) ? [] : {};
2110
2107
  }
2111
2108
 
2112
- class ReactiveMembrane {
2113
- constructor(options) {
2114
- this.valueDistortion = defaultValueDistortion;
2115
- this.valueMutated = defaultValueMutated;
2116
- this.valueObserved = defaultValueObserved;
2117
- this.valueIsObservable = defaultValueIsObservable;
2109
+ class ObservableMembrane {
2110
+ constructor(options = {}) {
2118
2111
  this.readOnlyObjectGraph = new WeakMap();
2119
2112
  this.reactiveObjectGraph = new WeakMap();
2120
-
2121
- if (!isUndefined(options)) {
2122
- const {
2123
- valueDistortion,
2124
- valueMutated,
2125
- valueObserved,
2126
- valueIsObservable,
2127
- tagPropertyKey
2128
- } = options;
2129
- this.valueDistortion = isFunction(valueDistortion) ? valueDistortion : defaultValueDistortion;
2130
- this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2131
- this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2132
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2133
- this.tagPropertyKey = tagPropertyKey;
2134
- }
2113
+ const {
2114
+ valueMutated,
2115
+ valueObserved,
2116
+ valueIsObservable,
2117
+ tagPropertyKey
2118
+ } = options;
2119
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2120
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2121
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2122
+ this.tagPropertyKey = tagPropertyKey;
2135
2123
  }
2136
2124
 
2137
2125
  getProxy(value) {
2138
2126
  const unwrappedValue = unwrap$1(value);
2139
- const distorted = this.valueDistortion(unwrappedValue);
2140
2127
 
2141
- if (this.valueIsObservable(distorted)) {
2142
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2143
- // when trying to extract the writable version of a readonly
2144
- // we return the readonly.
2128
+ if (this.valueIsObservable(unwrappedValue)) {
2129
+ // When trying to extract the writable version of a readonly we return the readonly.
2130
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2145
2131
  return value;
2146
2132
  }
2147
2133
 
2148
- return this.getReactiveHandler(unwrappedValue, distorted);
2134
+ return this.getReactiveHandler(unwrappedValue);
2149
2135
  }
2150
2136
 
2151
- return distorted;
2137
+ return unwrappedValue;
2152
2138
  }
2153
2139
 
2154
2140
  getReadOnlyProxy(value) {
2155
2141
  value = unwrap$1(value);
2156
- const distorted = this.valueDistortion(value);
2157
2142
 
2158
- if (this.valueIsObservable(distorted)) {
2159
- return this.getReadOnlyHandler(value, distorted);
2143
+ if (this.valueIsObservable(value)) {
2144
+ return this.getReadOnlyHandler(value);
2160
2145
  }
2161
2146
 
2162
- return distorted;
2147
+ return value;
2163
2148
  }
2164
2149
 
2165
2150
  unwrapProxy(p) {
2166
2151
  return unwrap$1(p);
2167
2152
  }
2168
2153
 
2169
- getReactiveHandler(value, distortedValue) {
2170
- let proxy = this.reactiveObjectGraph.get(distortedValue);
2154
+ getReactiveHandler(value) {
2155
+ let proxy = this.reactiveObjectGraph.get(value);
2171
2156
 
2172
2157
  if (isUndefined(proxy)) {
2173
2158
  // caching the proxy after the first time it is accessed
2174
- const handler = new ReactiveProxyHandler(this, distortedValue);
2175
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2159
+ const handler = new ReactiveProxyHandler(this, value);
2160
+ proxy = new Proxy(createShadowTarget(value), handler);
2176
2161
  registerProxy(proxy, value);
2177
- this.reactiveObjectGraph.set(distortedValue, proxy);
2162
+ this.reactiveObjectGraph.set(value, proxy);
2178
2163
  }
2179
2164
 
2180
2165
  return proxy;
2181
2166
  }
2182
2167
 
2183
- getReadOnlyHandler(value, distortedValue) {
2184
- let proxy = this.readOnlyObjectGraph.get(distortedValue);
2168
+ getReadOnlyHandler(value) {
2169
+ let proxy = this.readOnlyObjectGraph.get(value);
2185
2170
 
2186
2171
  if (isUndefined(proxy)) {
2187
2172
  // caching the proxy after the first time it is accessed
2188
- const handler = new ReadOnlyHandler(this, distortedValue);
2189
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2173
+ const handler = new ReadOnlyHandler(this, value);
2174
+ proxy = new Proxy(createShadowTarget(value), handler);
2190
2175
  registerProxy(proxy, value);
2191
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2176
+ this.readOnlyObjectGraph.set(value, proxy);
2192
2177
  }
2193
2178
 
2194
2179
  return proxy;
2195
2180
  }
2196
2181
 
2197
2182
  }
2198
- /** version: 1.1.5 */
2183
+ /** version: 2.0.0 */
2199
2184
 
2200
2185
  /*
2201
2186
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2204,15 +2189,9 @@ class ReactiveMembrane {
2204
2189
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2205
2190
  */
2206
2191
  const lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2207
-
2208
- function valueDistortion(value) {
2209
- return value;
2210
- }
2211
-
2212
- const reactiveMembrane = new ReactiveMembrane({
2192
+ const reactiveMembrane = new ObservableMembrane({
2213
2193
  valueObserved,
2214
2194
  valueMutated,
2215
- valueDistortion,
2216
2195
  tagPropertyKey: lockerLivePropertyKey
2217
2196
  });
2218
2197
  /**
@@ -2221,16 +2200,9 @@ const reactiveMembrane = new ReactiveMembrane({
2221
2200
  * change or being removed.
2222
2201
  */
2223
2202
 
2224
- const unwrap = function (value) {
2225
- const unwrapped = reactiveMembrane.unwrapProxy(value);
2226
-
2227
- if (unwrapped !== value) {
2228
- // if value is a proxy, unwrap to access original value and apply distortion
2229
- return valueDistortion(unwrapped);
2230
- }
2231
-
2232
- return value;
2233
- };
2203
+ function unwrap(value) {
2204
+ return reactiveMembrane.unwrapProxy(value);
2205
+ }
2234
2206
 
2235
2207
  /*
2236
2208
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4179,13 +4151,15 @@ function updateElmHook(oldVnode, vnode) {
4179
4151
  }
4180
4152
  function updateChildrenHook(oldVnode, vnode) {
4181
4153
  const {
4182
- children,
4183
- owner
4154
+ elm,
4155
+ children
4184
4156
  } = vnode;
4185
- const fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4186
- runWithBoundaryProtection(owner, owner.owner, noop, () => {
4187
- fn(vnode.elm, oldVnode.children, children);
4188
- }, noop);
4157
+
4158
+ if (hasDynamicChildren(children)) {
4159
+ updateDynamicChildren(elm, oldVnode.children, children);
4160
+ } else {
4161
+ updateStaticChildren(elm, oldVnode.children, children);
4162
+ }
4189
4163
  }
4190
4164
  function allocateChildrenHook(vnode, vm) {
4191
4165
  // A component with slots will re-render because:
@@ -5633,7 +5607,7 @@ function logOperationStart(opId, vm) {
5633
5607
  if (isProfilerEnabled) {
5634
5608
  currentDispatcher(opId, 0
5635
5609
  /* Start */
5636
- , vm.tagName, vm.idx);
5610
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
5637
5611
  }
5638
5612
  }
5639
5613
  function logOperationEnd(opId, vm) {
@@ -5646,7 +5620,7 @@ function logOperationEnd(opId, vm) {
5646
5620
  if (isProfilerEnabled) {
5647
5621
  currentDispatcher(opId, 1
5648
5622
  /* Stop */
5649
- , vm.tagName, vm.idx);
5623
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
5650
5624
  }
5651
5625
  }
5652
5626
  function logGlobalOperationStart(opId, vm) {
@@ -5659,7 +5633,7 @@ function logGlobalOperationStart(opId, vm) {
5659
5633
  if (isProfilerEnabled) {
5660
5634
  currentDispatcher(opId, 0
5661
5635
  /* Start */
5662
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
5636
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
5663
5637
  }
5664
5638
  }
5665
5639
  function logGlobalOperationEnd(opId, vm) {
@@ -5672,7 +5646,7 @@ function logGlobalOperationEnd(opId, vm) {
5672
5646
  if (isProfilerEnabled) {
5673
5647
  currentDispatcher(opId, 1
5674
5648
  /* Stop */
5675
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
5649
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
5676
5650
  }
5677
5651
  }
5678
5652
 
@@ -5825,6 +5799,7 @@ function evaluateTemplate(vm, html) {
5825
5799
 
5826
5800
  return vnodes;
5827
5801
  }
5802
+
5828
5803
  function computeHasScopedStyles(template) {
5829
5804
  const {
5830
5805
  stylesheets
@@ -7210,4 +7185,4 @@ function setHooks(hooks) {
7210
7185
  }
7211
7186
 
7212
7187
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, getAssociatedVMIfPresent, getComponentDef, getComponentInternalDef, getUpgradableConstructor, hydrateRootElement, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
7213
- /* version: 2.5.9 */
7188
+ /* version: 2.6.2 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.5.9",
3
+ "version": "2.6.2",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -24,14 +24,14 @@
24
24
  "types/"
25
25
  ],
26
26
  "dependencies": {
27
- "@lwc/features": "2.5.9",
28
- "@lwc/shared": "2.5.9"
27
+ "@lwc/features": "2.6.2",
28
+ "@lwc/shared": "2.6.2"
29
29
  },
30
30
  "devDependencies": {
31
- "observable-membrane": "1.1.5"
31
+ "observable-membrane": "2.0.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "3e50c5c599f5eb7af78bcfd6f634df10e8117145"
36
+ "gitHead": "a49666f207d17e164aa914cf00b8f9d5a656228d"
37
37
  }
@@ -7,13 +7,6 @@
7
7
  https://github.com/snabbdom/snabbdom/
8
8
  */
9
9
  import { VM } from '../../framework/vm';
10
- export declare type VNodeStyleDecls = Array<[string, string, boolean]>;
11
- export interface On {
12
- [event: string]: EventListener;
13
- }
14
- export declare type Attrs = Record<string, string | number | boolean>;
15
- export declare type Classes = Record<string, boolean>;
16
- export declare type Props = Record<string, any>;
17
10
  export declare type Key = string | number;
18
11
  export declare type VNodes = Array<VNode | null>;
19
12
  export interface VNode {
@@ -53,16 +46,15 @@ export interface VComment extends VNode {
53
46
  text: string;
54
47
  key: undefined;
55
48
  }
56
- export declare type CustomElementContext = Record<string, Record<string, any>>;
57
49
  export interface VNodeData {
58
- props?: Props;
59
- attrs?: Attrs;
60
- className?: any;
61
- style?: any;
62
- classMap?: Classes;
63
- styleDecls?: VNodeStyleDecls;
64
- context?: CustomElementContext;
65
- on?: On;
50
+ props?: Record<string, any>;
51
+ attrs?: Record<string, string | number | boolean>;
52
+ className?: string;
53
+ style?: string;
54
+ classMap?: Record<string, boolean>;
55
+ styleDecls?: Array<[string, string, boolean]>;
56
+ context?: Record<string, Record<string, any>>;
57
+ on?: Record<string, Function>;
66
58
  svg?: boolean;
67
59
  }
68
60
  export interface VElementData extends VNodeData {
@@ -76,7 +68,3 @@ export interface Hooks<N extends VNode> {
76
68
  remove: (vNode: N, parentNode: Node) => void;
77
69
  hydrate: (vNode: N, node: Node) => void;
78
70
  }
79
- export interface Module<N extends VNode> {
80
- create?: (vNode: N) => void;
81
- update?: (oldVNode: N, vNode: N) => void;
82
- }
@@ -1,4 +1,4 @@
1
- import ObservableMembrane from 'observable-membrane';
1
+ import { ObservableMembrane } from 'observable-membrane';
2
2
  export declare const lockerLivePropertyKey: unique symbol;
3
3
  export declare const reactiveMembrane: ObservableMembrane;
4
4
  /**
@@ -6,4 +6,4 @@ export declare const reactiveMembrane: ObservableMembrane;
6
6
  * works for observable membrane objects. This API is subject to
7
7
  * change or being removed.
8
8
  */
9
- export declare const unwrap: (value: any) => any;
9
+ export declare function unwrap(value: any): any;
@@ -1,4 +1,4 @@
1
- import { VM } from './vm';
1
+ import { RenderMode, ShadowMode, VM } from './vm';
2
2
  export declare const enum OperationId {
3
3
  Constructor = 0,
4
4
  Render = 1,
@@ -15,7 +15,7 @@ declare const enum Phase {
15
15
  Start = 0,
16
16
  Stop = 1
17
17
  }
18
- declare type LogDispatcher = (opId: OperationId, phase: Phase, cmpName?: string, vmIndex?: number) => void;
18
+ declare type LogDispatcher = (opId: OperationId, phase: Phase, cmpName?: string, vmIndex?: number, renderMode?: RenderMode, shadowMode?: ShadowMode) => void;
19
19
  export declare const profilerControl: {
20
20
  enableProfiler(): void;
21
21
  disableProfiler(): void;
@@ -17,4 +17,3 @@ export declare let isUpdatingTemplate: boolean;
17
17
  export declare function getVMBeingRendered(): VM | null;
18
18
  export declare function setVMBeingRendered(vm: VM | null): void;
19
19
  export declare function evaluateTemplate(vm: VM, html: Template): Array<VNode | null>;
20
- export declare function computeHasScopedStyles(template: Template): boolean;