lwc 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.
Files changed (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +52 -79
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +52 -79
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +52 -79
  5. package/dist/engine-dom/iife/es5/engine-dom.js +64 -91
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +64 -91
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +52 -79
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +52 -79
  11. package/dist/engine-dom/umd/es5/engine-dom.js +64 -91
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +64 -91
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +63 -87
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +63 -87
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +23 -130
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +23 -130
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +23 -130
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +30 -127
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +30 -127
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +23 -130
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +23 -130
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +30 -127
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +30 -127
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +11 -11
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +11 -11
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +11 -11
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +11 -11
  41. package/package.json +8 -8
@@ -299,7 +299,7 @@ function htmlPropertyToAttribute(propName) {
299
299
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
300
300
  return attributeName;
301
301
  }
302
- /** version: 2.5.9 */
302
+ /** version: 2.6.2 */
303
303
 
304
304
  /*
305
305
  * Copyright (c) 2018, salesforce.com, inc.
@@ -413,7 +413,6 @@ const features = {
413
413
  ENABLE_NODE_LIST_PATCH: null,
414
414
  ENABLE_HTML_COLLECTIONS_PATCH: null,
415
415
  ENABLE_NODE_PATCH: null,
416
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
417
416
  ENABLE_MIXED_SHADOW_MODE: null,
418
417
  ENABLE_WIRE_SYNC_EMIT: null
419
418
  };
@@ -479,7 +478,7 @@ function setFeatureFlagForTest(name, value) {
479
478
  setFeatureFlag(name, value);
480
479
  }
481
480
  }
482
- /** version: 2.5.9 */
481
+ /** version: 2.6.2 */
483
482
 
484
483
  /* proxy-compat-disable */
485
484
 
@@ -1926,6 +1925,7 @@ const {
1926
1925
  isArray
1927
1926
  } = Array;
1928
1927
  const {
1928
+ prototype: ObjectDotPrototype,
1929
1929
  getPrototypeOf,
1930
1930
  create: ObjectCreate,
1931
1931
  defineProperty: ObjectDefineProperty,
@@ -2575,8 +2575,6 @@ if (process.env.NODE_ENV !== 'production') {
2575
2575
  init();
2576
2576
  }
2577
2577
 
2578
- const ObjectDotPrototype = Object.prototype;
2579
-
2580
2578
  function defaultValueIsObservable(value) {
2581
2579
  // intentionally checking for null
2582
2580
  if (value === null) {
@@ -2604,99 +2602,85 @@ const defaultValueMutated = (obj, key) => {
2604
2602
  /* do nothing */
2605
2603
  };
2606
2604
 
2607
- const defaultValueDistortion = value => value;
2608
-
2609
2605
  function createShadowTarget(value) {
2610
2606
  return isArray(value) ? [] : {};
2611
2607
  }
2612
2608
 
2613
- class ReactiveMembrane {
2614
- constructor(options) {
2615
- this.valueDistortion = defaultValueDistortion;
2616
- this.valueMutated = defaultValueMutated;
2617
- this.valueObserved = defaultValueObserved;
2618
- this.valueIsObservable = defaultValueIsObservable;
2609
+ class ObservableMembrane {
2610
+ constructor(options = {}) {
2619
2611
  this.readOnlyObjectGraph = new WeakMap();
2620
2612
  this.reactiveObjectGraph = new WeakMap();
2621
-
2622
- if (!isUndefined(options)) {
2623
- const {
2624
- valueDistortion,
2625
- valueMutated,
2626
- valueObserved,
2627
- valueIsObservable,
2628
- tagPropertyKey
2629
- } = options;
2630
- this.valueDistortion = isFunction(valueDistortion) ? valueDistortion : defaultValueDistortion;
2631
- this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2632
- this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2633
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2634
- this.tagPropertyKey = tagPropertyKey;
2635
- }
2613
+ const {
2614
+ valueMutated,
2615
+ valueObserved,
2616
+ valueIsObservable,
2617
+ tagPropertyKey
2618
+ } = options;
2619
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2620
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2621
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2622
+ this.tagPropertyKey = tagPropertyKey;
2636
2623
  }
2637
2624
 
2638
2625
  getProxy(value) {
2639
2626
  const unwrappedValue = unwrap$1(value);
2640
- const distorted = this.valueDistortion(unwrappedValue);
2641
2627
 
2642
- if (this.valueIsObservable(distorted)) {
2643
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2644
- // when trying to extract the writable version of a readonly
2645
- // we return the readonly.
2628
+ if (this.valueIsObservable(unwrappedValue)) {
2629
+ // When trying to extract the writable version of a readonly we return the readonly.
2630
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2646
2631
  return value;
2647
2632
  }
2648
2633
 
2649
- return this.getReactiveHandler(unwrappedValue, distorted);
2634
+ return this.getReactiveHandler(unwrappedValue);
2650
2635
  }
2651
2636
 
2652
- return distorted;
2637
+ return unwrappedValue;
2653
2638
  }
2654
2639
 
2655
2640
  getReadOnlyProxy(value) {
2656
2641
  value = unwrap$1(value);
2657
- const distorted = this.valueDistortion(value);
2658
2642
 
2659
- if (this.valueIsObservable(distorted)) {
2660
- return this.getReadOnlyHandler(value, distorted);
2643
+ if (this.valueIsObservable(value)) {
2644
+ return this.getReadOnlyHandler(value);
2661
2645
  }
2662
2646
 
2663
- return distorted;
2647
+ return value;
2664
2648
  }
2665
2649
 
2666
2650
  unwrapProxy(p) {
2667
2651
  return unwrap$1(p);
2668
2652
  }
2669
2653
 
2670
- getReactiveHandler(value, distortedValue) {
2671
- let proxy = this.reactiveObjectGraph.get(distortedValue);
2654
+ getReactiveHandler(value) {
2655
+ let proxy = this.reactiveObjectGraph.get(value);
2672
2656
 
2673
2657
  if (isUndefined(proxy)) {
2674
2658
  // caching the proxy after the first time it is accessed
2675
- const handler = new ReactiveProxyHandler(this, distortedValue);
2676
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2659
+ const handler = new ReactiveProxyHandler(this, value);
2660
+ proxy = new Proxy(createShadowTarget(value), handler);
2677
2661
  registerProxy(proxy, value);
2678
- this.reactiveObjectGraph.set(distortedValue, proxy);
2662
+ this.reactiveObjectGraph.set(value, proxy);
2679
2663
  }
2680
2664
 
2681
2665
  return proxy;
2682
2666
  }
2683
2667
 
2684
- getReadOnlyHandler(value, distortedValue) {
2685
- let proxy = this.readOnlyObjectGraph.get(distortedValue);
2668
+ getReadOnlyHandler(value) {
2669
+ let proxy = this.readOnlyObjectGraph.get(value);
2686
2670
 
2687
2671
  if (isUndefined(proxy)) {
2688
2672
  // caching the proxy after the first time it is accessed
2689
- const handler = new ReadOnlyHandler(this, distortedValue);
2690
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2673
+ const handler = new ReadOnlyHandler(this, value);
2674
+ proxy = new Proxy(createShadowTarget(value), handler);
2691
2675
  registerProxy(proxy, value);
2692
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2676
+ this.readOnlyObjectGraph.set(value, proxy);
2693
2677
  }
2694
2678
 
2695
2679
  return proxy;
2696
2680
  }
2697
2681
 
2698
2682
  }
2699
- /** version: 1.1.5 */
2683
+ /** version: 2.0.0 */
2700
2684
 
2701
2685
  /*
2702
2686
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2707,15 +2691,9 @@ class ReactiveMembrane {
2707
2691
 
2708
2692
 
2709
2693
  const lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2710
-
2711
- function valueDistortion(value) {
2712
- return value;
2713
- }
2714
-
2715
- const reactiveMembrane = new ReactiveMembrane({
2694
+ const reactiveMembrane = new ObservableMembrane({
2716
2695
  valueObserved,
2717
2696
  valueMutated,
2718
- valueDistortion,
2719
2697
  tagPropertyKey: lockerLivePropertyKey
2720
2698
  });
2721
2699
  /**
@@ -2724,16 +2702,9 @@ const reactiveMembrane = new ReactiveMembrane({
2724
2702
  * change or being removed.
2725
2703
  */
2726
2704
 
2727
- const unwrap = function (value) {
2728
- const unwrapped = reactiveMembrane.unwrapProxy(value);
2729
-
2730
- if (unwrapped !== value) {
2731
- // if value is a proxy, unwrap to access original value and apply distortion
2732
- return valueDistortion(unwrapped);
2733
- }
2734
-
2735
- return value;
2736
- };
2705
+ function unwrap(value) {
2706
+ return reactiveMembrane.unwrapProxy(value);
2707
+ }
2737
2708
  /*
2738
2709
  * Copyright (c) 2018, salesforce.com, inc.
2739
2710
  * All rights reserved.
@@ -4718,13 +4689,15 @@ function updateElmHook(oldVnode, vnode) {
4718
4689
 
4719
4690
  function updateChildrenHook(oldVnode, vnode) {
4720
4691
  const {
4721
- children,
4722
- owner
4692
+ elm,
4693
+ children
4723
4694
  } = vnode;
4724
- const fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4725
- runWithBoundaryProtection(owner, owner.owner, noop, () => {
4726
- fn(vnode.elm, oldVnode.children, children);
4727
- }, noop);
4695
+
4696
+ if (hasDynamicChildren(children)) {
4697
+ updateDynamicChildren(elm, oldVnode.children, children);
4698
+ } else {
4699
+ updateStaticChildren(elm, oldVnode.children, children);
4700
+ }
4728
4701
  }
4729
4702
 
4730
4703
  function allocateChildrenHook(vnode, vm) {
@@ -6185,7 +6158,7 @@ function logOperationStart(opId, vm) {
6185
6158
  if (isProfilerEnabled) {
6186
6159
  currentDispatcher(opId, 0
6187
6160
  /* Start */
6188
- , vm.tagName, vm.idx);
6161
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6189
6162
  }
6190
6163
  }
6191
6164
 
@@ -6199,7 +6172,7 @@ function logOperationEnd(opId, vm) {
6199
6172
  if (isProfilerEnabled) {
6200
6173
  currentDispatcher(opId, 1
6201
6174
  /* Stop */
6202
- , vm.tagName, vm.idx);
6175
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6203
6176
  }
6204
6177
  }
6205
6178
 
@@ -6213,7 +6186,7 @@ function logGlobalOperationStart(opId, vm) {
6213
6186
  if (isProfilerEnabled) {
6214
6187
  currentDispatcher(opId, 0
6215
6188
  /* Start */
6216
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6189
+ , 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);
6217
6190
  }
6218
6191
  }
6219
6192
 
@@ -6227,7 +6200,7 @@ function logGlobalOperationEnd(opId, vm) {
6227
6200
  if (isProfilerEnabled) {
6228
6201
  currentDispatcher(opId, 1
6229
6202
  /* Stop */
6230
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6203
+ , 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);
6231
6204
  }
6232
6205
  }
6233
6206
  /*
@@ -7808,7 +7781,7 @@ function setHooks(hooks) {
7808
7781
  hooksAreSet = true;
7809
7782
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7810
7783
  }
7811
- /* version: 2.5.9 */
7784
+ /* version: 2.6.2 */
7812
7785
 
7813
7786
  /*
7814
7787
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8464,6 +8437,6 @@ defineProperty(LightningElement, 'CustomElementConstructor', {
8464
8437
  });
8465
8438
  freeze(LightningElement);
8466
8439
  seal(LightningElement.prototype);
8467
- /* version: 2.5.9 */
8440
+ /* version: 2.6.2 */
8468
8441
 
8469
8442
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, deprecatedBuildCustomElementConstructor as buildCustomElementConstructor, createContextProvider, createElement, getComponentConstructor, getComponentDef, hydrateComponent, isComponentConstructor, isNodeFromTemplate, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
@@ -302,7 +302,7 @@ var LWC = (function (exports) {
302
302
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
303
303
  return attributeName;
304
304
  }
305
- /** version: 2.5.9 */
305
+ /** version: 2.6.2 */
306
306
 
307
307
  /*
308
308
  * Copyright (c) 2018, salesforce.com, inc.
@@ -416,7 +416,6 @@ var LWC = (function (exports) {
416
416
  ENABLE_NODE_LIST_PATCH: null,
417
417
  ENABLE_HTML_COLLECTIONS_PATCH: null,
418
418
  ENABLE_NODE_PATCH: null,
419
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
420
419
  ENABLE_MIXED_SHADOW_MODE: null,
421
420
  ENABLE_WIRE_SYNC_EMIT: null
422
421
  };
@@ -482,7 +481,7 @@ var LWC = (function (exports) {
482
481
  setFeatureFlag(name, value);
483
482
  }
484
483
  }
485
- /** version: 2.5.9 */
484
+ /** version: 2.6.2 */
486
485
 
487
486
  /* proxy-compat-disable */
488
487
 
@@ -1929,6 +1928,7 @@ var LWC = (function (exports) {
1929
1928
  isArray
1930
1929
  } = Array;
1931
1930
  const {
1931
+ prototype: ObjectDotPrototype,
1932
1932
  getPrototypeOf,
1933
1933
  create: ObjectCreate,
1934
1934
  defineProperty: ObjectDefineProperty,
@@ -2578,8 +2578,6 @@ var LWC = (function (exports) {
2578
2578
  init();
2579
2579
  }
2580
2580
 
2581
- const ObjectDotPrototype = Object.prototype;
2582
-
2583
2581
  function defaultValueIsObservable(value) {
2584
2582
  // intentionally checking for null
2585
2583
  if (value === null) {
@@ -2607,99 +2605,85 @@ var LWC = (function (exports) {
2607
2605
  /* do nothing */
2608
2606
  };
2609
2607
 
2610
- const defaultValueDistortion = value => value;
2611
-
2612
2608
  function createShadowTarget(value) {
2613
2609
  return isArray(value) ? [] : {};
2614
2610
  }
2615
2611
 
2616
- class ReactiveMembrane {
2617
- constructor(options) {
2618
- this.valueDistortion = defaultValueDistortion;
2619
- this.valueMutated = defaultValueMutated;
2620
- this.valueObserved = defaultValueObserved;
2621
- this.valueIsObservable = defaultValueIsObservable;
2612
+ class ObservableMembrane {
2613
+ constructor(options = {}) {
2622
2614
  this.readOnlyObjectGraph = new WeakMap();
2623
2615
  this.reactiveObjectGraph = new WeakMap();
2624
-
2625
- if (!isUndefined(options)) {
2626
- const {
2627
- valueDistortion,
2628
- valueMutated,
2629
- valueObserved,
2630
- valueIsObservable,
2631
- tagPropertyKey
2632
- } = options;
2633
- this.valueDistortion = isFunction(valueDistortion) ? valueDistortion : defaultValueDistortion;
2634
- this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2635
- this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2636
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2637
- this.tagPropertyKey = tagPropertyKey;
2638
- }
2616
+ const {
2617
+ valueMutated,
2618
+ valueObserved,
2619
+ valueIsObservable,
2620
+ tagPropertyKey
2621
+ } = options;
2622
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2623
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2624
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2625
+ this.tagPropertyKey = tagPropertyKey;
2639
2626
  }
2640
2627
 
2641
2628
  getProxy(value) {
2642
2629
  const unwrappedValue = unwrap$1(value);
2643
- const distorted = this.valueDistortion(unwrappedValue);
2644
2630
 
2645
- if (this.valueIsObservable(distorted)) {
2646
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2647
- // when trying to extract the writable version of a readonly
2648
- // we return the readonly.
2631
+ if (this.valueIsObservable(unwrappedValue)) {
2632
+ // When trying to extract the writable version of a readonly we return the readonly.
2633
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2649
2634
  return value;
2650
2635
  }
2651
2636
 
2652
- return this.getReactiveHandler(unwrappedValue, distorted);
2637
+ return this.getReactiveHandler(unwrappedValue);
2653
2638
  }
2654
2639
 
2655
- return distorted;
2640
+ return unwrappedValue;
2656
2641
  }
2657
2642
 
2658
2643
  getReadOnlyProxy(value) {
2659
2644
  value = unwrap$1(value);
2660
- const distorted = this.valueDistortion(value);
2661
2645
 
2662
- if (this.valueIsObservable(distorted)) {
2663
- return this.getReadOnlyHandler(value, distorted);
2646
+ if (this.valueIsObservable(value)) {
2647
+ return this.getReadOnlyHandler(value);
2664
2648
  }
2665
2649
 
2666
- return distorted;
2650
+ return value;
2667
2651
  }
2668
2652
 
2669
2653
  unwrapProxy(p) {
2670
2654
  return unwrap$1(p);
2671
2655
  }
2672
2656
 
2673
- getReactiveHandler(value, distortedValue) {
2674
- let proxy = this.reactiveObjectGraph.get(distortedValue);
2657
+ getReactiveHandler(value) {
2658
+ let proxy = this.reactiveObjectGraph.get(value);
2675
2659
 
2676
2660
  if (isUndefined(proxy)) {
2677
2661
  // caching the proxy after the first time it is accessed
2678
- const handler = new ReactiveProxyHandler(this, distortedValue);
2679
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2662
+ const handler = new ReactiveProxyHandler(this, value);
2663
+ proxy = new Proxy(createShadowTarget(value), handler);
2680
2664
  registerProxy(proxy, value);
2681
- this.reactiveObjectGraph.set(distortedValue, proxy);
2665
+ this.reactiveObjectGraph.set(value, proxy);
2682
2666
  }
2683
2667
 
2684
2668
  return proxy;
2685
2669
  }
2686
2670
 
2687
- getReadOnlyHandler(value, distortedValue) {
2688
- let proxy = this.readOnlyObjectGraph.get(distortedValue);
2671
+ getReadOnlyHandler(value) {
2672
+ let proxy = this.readOnlyObjectGraph.get(value);
2689
2673
 
2690
2674
  if (isUndefined(proxy)) {
2691
2675
  // caching the proxy after the first time it is accessed
2692
- const handler = new ReadOnlyHandler(this, distortedValue);
2693
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2676
+ const handler = new ReadOnlyHandler(this, value);
2677
+ proxy = new Proxy(createShadowTarget(value), handler);
2694
2678
  registerProxy(proxy, value);
2695
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2679
+ this.readOnlyObjectGraph.set(value, proxy);
2696
2680
  }
2697
2681
 
2698
2682
  return proxy;
2699
2683
  }
2700
2684
 
2701
2685
  }
2702
- /** version: 1.1.5 */
2686
+ /** version: 2.0.0 */
2703
2687
 
2704
2688
  /*
2705
2689
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2710,15 +2694,9 @@ var LWC = (function (exports) {
2710
2694
 
2711
2695
 
2712
2696
  const lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2713
-
2714
- function valueDistortion(value) {
2715
- return value;
2716
- }
2717
-
2718
- const reactiveMembrane = new ReactiveMembrane({
2697
+ const reactiveMembrane = new ObservableMembrane({
2719
2698
  valueObserved,
2720
2699
  valueMutated,
2721
- valueDistortion,
2722
2700
  tagPropertyKey: lockerLivePropertyKey
2723
2701
  });
2724
2702
  /**
@@ -2727,16 +2705,9 @@ var LWC = (function (exports) {
2727
2705
  * change or being removed.
2728
2706
  */
2729
2707
 
2730
- const unwrap = function (value) {
2731
- const unwrapped = reactiveMembrane.unwrapProxy(value);
2732
-
2733
- if (unwrapped !== value) {
2734
- // if value is a proxy, unwrap to access original value and apply distortion
2735
- return valueDistortion(unwrapped);
2736
- }
2737
-
2738
- return value;
2739
- };
2708
+ function unwrap(value) {
2709
+ return reactiveMembrane.unwrapProxy(value);
2710
+ }
2740
2711
  /*
2741
2712
  * Copyright (c) 2018, salesforce.com, inc.
2742
2713
  * All rights reserved.
@@ -4721,13 +4692,15 @@ var LWC = (function (exports) {
4721
4692
 
4722
4693
  function updateChildrenHook(oldVnode, vnode) {
4723
4694
  const {
4724
- children,
4725
- owner
4695
+ elm,
4696
+ children
4726
4697
  } = vnode;
4727
- const fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4728
- runWithBoundaryProtection(owner, owner.owner, noop, () => {
4729
- fn(vnode.elm, oldVnode.children, children);
4730
- }, noop);
4698
+
4699
+ if (hasDynamicChildren(children)) {
4700
+ updateDynamicChildren(elm, oldVnode.children, children);
4701
+ } else {
4702
+ updateStaticChildren(elm, oldVnode.children, children);
4703
+ }
4731
4704
  }
4732
4705
 
4733
4706
  function allocateChildrenHook(vnode, vm) {
@@ -6188,7 +6161,7 @@ var LWC = (function (exports) {
6188
6161
  if (isProfilerEnabled) {
6189
6162
  currentDispatcher(opId, 0
6190
6163
  /* Start */
6191
- , vm.tagName, vm.idx);
6164
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6192
6165
  }
6193
6166
  }
6194
6167
 
@@ -6202,7 +6175,7 @@ var LWC = (function (exports) {
6202
6175
  if (isProfilerEnabled) {
6203
6176
  currentDispatcher(opId, 1
6204
6177
  /* Stop */
6205
- , vm.tagName, vm.idx);
6178
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6206
6179
  }
6207
6180
  }
6208
6181
 
@@ -6216,7 +6189,7 @@ var LWC = (function (exports) {
6216
6189
  if (isProfilerEnabled) {
6217
6190
  currentDispatcher(opId, 0
6218
6191
  /* Start */
6219
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6192
+ , 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);
6220
6193
  }
6221
6194
  }
6222
6195
 
@@ -6230,7 +6203,7 @@ var LWC = (function (exports) {
6230
6203
  if (isProfilerEnabled) {
6231
6204
  currentDispatcher(opId, 1
6232
6205
  /* Stop */
6233
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6206
+ , 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);
6234
6207
  }
6235
6208
  }
6236
6209
  /*
@@ -7811,7 +7784,7 @@ var LWC = (function (exports) {
7811
7784
  hooksAreSet = true;
7812
7785
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7813
7786
  }
7814
- /* version: 2.5.9 */
7787
+ /* version: 2.6.2 */
7815
7788
 
7816
7789
  /*
7817
7790
  * Copyright (c) 2018, salesforce.com, inc.
@@ -8467,7 +8440,7 @@ var LWC = (function (exports) {
8467
8440
  });
8468
8441
  freeze(LightningElement);
8469
8442
  seal(LightningElement.prototype);
8470
- /* version: 2.5.9 */
8443
+ /* version: 2.6.2 */
8471
8444
 
8472
8445
  exports.LightningElement = LightningElement;
8473
8446
  exports.__unstable__ProfilerControl = profilerControl;