@lwc/engine-core 2.23.0 → 2.23.1

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.
@@ -18,7 +18,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
18
18
  window.addEventListener('test-dummy-flag', () => {
19
19
  let hasFlag = false;
20
20
 
21
- if (features.runtimeFlags.DUMMY_TEST_FLAG) {
21
+ if (features.lwcRuntimeFlags.DUMMY_TEST_FLAG) {
22
22
  hasFlag = true;
23
23
  }
24
24
 
@@ -1875,7 +1875,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
1875
1875
  }
1876
1876
 
1877
1877
  if (set) {
1878
- if (features.runtimeFlags.ENABLE_REACTIVE_SETTER) {
1878
+ if (features.lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
1879
1879
  let ro = vm.oar[key];
1880
1880
 
1881
1881
  if (shared.isUndefined(ro)) {
@@ -2527,7 +2527,7 @@ function getTemplateOrSwappedTemplate(tpl) {
2527
2527
  throw new ReferenceError();
2528
2528
  }
2529
2529
 
2530
- if (features.runtimeFlags.ENABLE_HMR) {
2530
+ if (features.lwcRuntimeFlags.ENABLE_HMR) {
2531
2531
  const visited = new Set();
2532
2532
 
2533
2533
  while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
@@ -2544,7 +2544,7 @@ function getComponentOrSwappedComponent(Ctor) {
2544
2544
  throw new ReferenceError();
2545
2545
  }
2546
2546
 
2547
- if (features.runtimeFlags.ENABLE_HMR) {
2547
+ if (features.lwcRuntimeFlags.ENABLE_HMR) {
2548
2548
  const visited = new Set();
2549
2549
 
2550
2550
  while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
@@ -2561,7 +2561,7 @@ function getStyleOrSwappedStyle(style) {
2561
2561
  throw new ReferenceError();
2562
2562
  }
2563
2563
 
2564
- if (features.runtimeFlags.ENABLE_HMR) {
2564
+ if (features.lwcRuntimeFlags.ENABLE_HMR) {
2565
2565
  const visited = new Set();
2566
2566
 
2567
2567
  while (swappedStyleMap.has(style) && !visited.has(style)) {
@@ -2578,7 +2578,7 @@ function setActiveVM(vm) {
2578
2578
  throw new ReferenceError();
2579
2579
  }
2580
2580
 
2581
- if (features.runtimeFlags.ENABLE_HMR) {
2581
+ if (features.lwcRuntimeFlags.ENABLE_HMR) {
2582
2582
  // tracking active component
2583
2583
  const Ctor = vm.def.ctor;
2584
2584
  let componentVMs = activeComponents.get(Ctor);
@@ -2635,7 +2635,7 @@ function removeActiveVM(vm) {
2635
2635
  throw new ReferenceError();
2636
2636
  }
2637
2637
 
2638
- if (features.runtimeFlags.ENABLE_HMR) {
2638
+ if (features.lwcRuntimeFlags.ENABLE_HMR) {
2639
2639
  // tracking inactive component
2640
2640
  const Ctor = vm.def.ctor;
2641
2641
  let list = activeComponents.get(Ctor);
@@ -2682,7 +2682,7 @@ function swapTemplate(oldTpl, newTpl) {
2682
2682
  }
2683
2683
  }
2684
2684
 
2685
- if (!features.runtimeFlags.ENABLE_HMR) {
2685
+ if (!features.lwcRuntimeFlags.ENABLE_HMR) {
2686
2686
  throw new Error('HMR is not enabled');
2687
2687
  }
2688
2688
 
@@ -2698,7 +2698,7 @@ function swapComponent(oldComponent, newComponent) {
2698
2698
  }
2699
2699
  }
2700
2700
 
2701
- if (!features.runtimeFlags.ENABLE_HMR) {
2701
+ if (!features.lwcRuntimeFlags.ENABLE_HMR) {
2702
2702
  throw new Error('HMR is not enabled');
2703
2703
  }
2704
2704
 
@@ -2712,7 +2712,7 @@ function swapStyle(oldStyle, newStyle) {
2712
2712
  return rehydrateHotStyle(oldStyle);
2713
2713
  }
2714
2714
 
2715
- if (!features.runtimeFlags.ENABLE_HMR) {
2715
+ if (!features.lwcRuntimeFlags.ENABLE_HMR) {
2716
2716
  throw new Error('HMR is not enabled');
2717
2717
  }
2718
2718
 
@@ -4996,7 +4996,7 @@ function createVM(elm, ctor, renderer, options) {
4996
4996
  return `[object:vm ${def.name} (${vm.idx})]`;
4997
4997
  };
4998
4998
 
4999
- if (features.runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
4999
+ if (features.lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
5000
5000
  vm.shadowMode = 0
5001
5001
  /* ShadowMode.Native */
5002
5002
  ;
@@ -5035,7 +5035,7 @@ function computeShadowMode(vm, renderer) {
5035
5035
  } else if (isNativeShadowDefined) {
5036
5036
  // Not combined with above condition because @lwc/features only supports identifiers in
5037
5037
  // the if-condition.
5038
- if (features.runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
5038
+ if (features.lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
5039
5039
  if (def.shadowSupportMode === "any"
5040
5040
  /* ShadowSupportMode.Any */
5041
5041
  ) {
@@ -5746,7 +5746,7 @@ function installWireAdapters(vm) {
5746
5746
  shared.ArrayPush.call(wiredConnecting, () => {
5747
5747
  connector.connect();
5748
5748
 
5749
- if (!features.runtimeFlags.ENABLE_WIRE_SYNC_EMIT) {
5749
+ if (!features.lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
5750
5750
  if (hasDynamicParams) {
5751
5751
  Promise.resolve().then(computeConfigAndUpdate);
5752
5752
  return;
@@ -6391,4 +6391,4 @@ exports.swapTemplate = swapTemplate;
6391
6391
  exports.track = track;
6392
6392
  exports.unwrap = unwrap;
6393
6393
  exports.wire = wire;
6394
- /* version: 2.23.0 */
6394
+ /* version: 2.23.1 */
@@ -1,5 +1,5 @@
1
1
  /* proxy-compat-disable */
2
- import { runtimeFlags } from '@lwc/features';
2
+ import { lwcRuntimeFlags } from '@lwc/features';
3
3
  export { setFeatureFlag, setFeatureFlagForTest } from '@lwc/features';
4
4
  import { seal, create, isFunction as isFunction$1, ArrayPush as ArrayPush$1, isUndefined as isUndefined$1, ArrayIndexOf, ArraySplice, StringToLowerCase, isNull, ArrayJoin, isFrozen, defineProperty, hasOwnProperty as hasOwnProperty$1, assign, forEach, keys, AriaPropNameToAttrNameMap, getPropertyDescriptor, defineProperties, getOwnPropertyNames as getOwnPropertyNames$1, getPrototypeOf as getPrototypeOf$1, setPrototypeOf, isObject, assert, KEY__SYNTHETIC_MODE, isFalse, isTrue, toString as toString$1, getOwnPropertyDescriptor as getOwnPropertyDescriptor$1, LWC_VERSION_COMMENT_REGEX, LWC_VERSION, freeze, htmlPropertyToAttribute, ArraySlice, ArrayMap, isArray as isArray$1, KEY__SCOPED_CSS, StringCharCodeAt, XML_NAMESPACE, XLINK_NAMESPACE, isString, StringSlice, SVG_NAMESPACE, KEY__SHADOW_STATIC, KEY__SHADOW_RESOLVER, isNumber, StringReplace, noop, ArrayUnshift, ArrayCopyWithin, ArrayFill, ArraySort, ArrayReverse, ArrayShift, ArrayPop } from '@lwc/shared';
5
5
 
@@ -15,7 +15,7 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
15
15
  window.addEventListener('test-dummy-flag', () => {
16
16
  let hasFlag = false;
17
17
 
18
- if (runtimeFlags.DUMMY_TEST_FLAG) {
18
+ if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
19
19
  hasFlag = true;
20
20
  }
21
21
 
@@ -1872,7 +1872,7 @@ function createPublicAccessorDescriptor(key, descriptor) {
1872
1872
  }
1873
1873
 
1874
1874
  if (set) {
1875
- if (runtimeFlags.ENABLE_REACTIVE_SETTER) {
1875
+ if (lwcRuntimeFlags.ENABLE_REACTIVE_SETTER) {
1876
1876
  let ro = vm.oar[key];
1877
1877
 
1878
1878
  if (isUndefined$1(ro)) {
@@ -2524,7 +2524,7 @@ function getTemplateOrSwappedTemplate(tpl) {
2524
2524
  throw new ReferenceError();
2525
2525
  }
2526
2526
 
2527
- if (runtimeFlags.ENABLE_HMR) {
2527
+ if (lwcRuntimeFlags.ENABLE_HMR) {
2528
2528
  const visited = new Set();
2529
2529
 
2530
2530
  while (swappedTemplateMap.has(tpl) && !visited.has(tpl)) {
@@ -2541,7 +2541,7 @@ function getComponentOrSwappedComponent(Ctor) {
2541
2541
  throw new ReferenceError();
2542
2542
  }
2543
2543
 
2544
- if (runtimeFlags.ENABLE_HMR) {
2544
+ if (lwcRuntimeFlags.ENABLE_HMR) {
2545
2545
  const visited = new Set();
2546
2546
 
2547
2547
  while (swappedComponentMap.has(Ctor) && !visited.has(Ctor)) {
@@ -2558,7 +2558,7 @@ function getStyleOrSwappedStyle(style) {
2558
2558
  throw new ReferenceError();
2559
2559
  }
2560
2560
 
2561
- if (runtimeFlags.ENABLE_HMR) {
2561
+ if (lwcRuntimeFlags.ENABLE_HMR) {
2562
2562
  const visited = new Set();
2563
2563
 
2564
2564
  while (swappedStyleMap.has(style) && !visited.has(style)) {
@@ -2575,7 +2575,7 @@ function setActiveVM(vm) {
2575
2575
  throw new ReferenceError();
2576
2576
  }
2577
2577
 
2578
- if (runtimeFlags.ENABLE_HMR) {
2578
+ if (lwcRuntimeFlags.ENABLE_HMR) {
2579
2579
  // tracking active component
2580
2580
  const Ctor = vm.def.ctor;
2581
2581
  let componentVMs = activeComponents.get(Ctor);
@@ -2632,7 +2632,7 @@ function removeActiveVM(vm) {
2632
2632
  throw new ReferenceError();
2633
2633
  }
2634
2634
 
2635
- if (runtimeFlags.ENABLE_HMR) {
2635
+ if (lwcRuntimeFlags.ENABLE_HMR) {
2636
2636
  // tracking inactive component
2637
2637
  const Ctor = vm.def.ctor;
2638
2638
  let list = activeComponents.get(Ctor);
@@ -2679,7 +2679,7 @@ function swapTemplate(oldTpl, newTpl) {
2679
2679
  }
2680
2680
  }
2681
2681
 
2682
- if (!runtimeFlags.ENABLE_HMR) {
2682
+ if (!lwcRuntimeFlags.ENABLE_HMR) {
2683
2683
  throw new Error('HMR is not enabled');
2684
2684
  }
2685
2685
 
@@ -2695,7 +2695,7 @@ function swapComponent(oldComponent, newComponent) {
2695
2695
  }
2696
2696
  }
2697
2697
 
2698
- if (!runtimeFlags.ENABLE_HMR) {
2698
+ if (!lwcRuntimeFlags.ENABLE_HMR) {
2699
2699
  throw new Error('HMR is not enabled');
2700
2700
  }
2701
2701
 
@@ -2709,7 +2709,7 @@ function swapStyle(oldStyle, newStyle) {
2709
2709
  return rehydrateHotStyle(oldStyle);
2710
2710
  }
2711
2711
 
2712
- if (!runtimeFlags.ENABLE_HMR) {
2712
+ if (!lwcRuntimeFlags.ENABLE_HMR) {
2713
2713
  throw new Error('HMR is not enabled');
2714
2714
  }
2715
2715
 
@@ -4993,7 +4993,7 @@ function createVM(elm, ctor, renderer, options) {
4993
4993
  return `[object:vm ${def.name} (${vm.idx})]`;
4994
4994
  };
4995
4995
 
4996
- if (runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
4996
+ if (lwcRuntimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
4997
4997
  vm.shadowMode = 0
4998
4998
  /* ShadowMode.Native */
4999
4999
  ;
@@ -5032,7 +5032,7 @@ function computeShadowMode(vm, renderer) {
5032
5032
  } else if (isNativeShadowDefined) {
5033
5033
  // Not combined with above condition because @lwc/features only supports identifiers in
5034
5034
  // the if-condition.
5035
- if (runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
5035
+ if (lwcRuntimeFlags.ENABLE_MIXED_SHADOW_MODE) {
5036
5036
  if (def.shadowSupportMode === "any"
5037
5037
  /* ShadowSupportMode.Any */
5038
5038
  ) {
@@ -5743,7 +5743,7 @@ function installWireAdapters(vm) {
5743
5743
  ArrayPush$1.call(wiredConnecting, () => {
5744
5744
  connector.connect();
5745
5745
 
5746
- if (!runtimeFlags.ENABLE_WIRE_SYNC_EMIT) {
5746
+ if (!lwcRuntimeFlags.ENABLE_WIRE_SYNC_EMIT) {
5747
5747
  if (hasDynamicParams) {
5748
5748
  Promise.resolve().then(computeConfigAndUpdate);
5749
5749
  return;
@@ -6351,4 +6351,4 @@ function getComponentConstructor(elm) {
6351
6351
  }
6352
6352
 
6353
6353
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, getUpgradableConstructor, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
6354
- /* version: 2.23.0 */
6354
+ /* version: 2.23.1 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.23.0",
3
+ "version": "2.23.1",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "types/"
26
26
  ],
27
27
  "dependencies": {
28
- "@lwc/features": "2.23.0",
29
- "@lwc/shared": "2.23.0"
28
+ "@lwc/features": "2.23.1",
29
+ "@lwc/shared": "2.23.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "observable-membrane": "2.0.0"