@lwc/engine-core 2.30.0 → 2.30.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.
@@ -1,8 +1,6 @@
1
1
  /* proxy-compat-disable */
2
2
  'use strict';
3
3
 
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
4
  var features = require('@lwc/features');
7
5
  var shared = require('@lwc/shared');
8
6
 
@@ -3605,16 +3603,16 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
3605
3603
  // the custom element from the registry is expecting an upgrade callback
3606
3604
  vm = createViewModelHook(elm, vnode, renderer);
3607
3605
  };
3608
- const connectedCallback = elm => {
3609
- if (features.lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3606
+ let connectedCallback;
3607
+ let disconnectedCallback;
3608
+ if (features.lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3609
+ connectedCallback = elm => {
3610
3610
  connectRootElement(elm);
3611
- }
3612
- };
3613
- const disconnectedCallback = elm => {
3614
- if (features.lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3611
+ };
3612
+ disconnectedCallback = elm => {
3615
3613
  disconnectRootElement(elm);
3616
- }
3617
- };
3614
+ };
3615
+ }
3618
3616
  // Should never get a tag with upper case letter at this point; the compiler
3619
3617
  // should produce only tags with lowercase letters. However, the Java
3620
3618
  // compiler may generate tagnames with uppercase letters so - for backwards
@@ -5837,7 +5835,9 @@ function installWireAdapters(vm) {
5837
5835
  wire
5838
5836
  }
5839
5837
  } = vm;
5840
- vm.debugInfo[WIRE_DEBUG_ENTRY] = shared.create(null);
5838
+ if (process.env.NODE_ENV !== 'production') {
5839
+ vm.debugInfo[WIRE_DEBUG_ENTRY] = shared.create(null);
5840
+ }
5841
5841
  const wiredConnecting = context.wiredConnecting = [];
5842
5842
  const wiredDisconnecting = context.wiredDisconnecting = [];
5843
5843
  for (const fieldNameOrMethod in wire) {
@@ -6525,4 +6525,4 @@ exports.swapTemplate = swapTemplate;
6525
6525
  exports.track = track;
6526
6526
  exports.unwrap = unwrap;
6527
6527
  exports.wire = wire;
6528
- /* version: 2.30.0 */
6528
+ /* version: 2.30.2 */
@@ -3602,16 +3602,16 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
3602
3602
  // the custom element from the registry is expecting an upgrade callback
3603
3603
  vm = createViewModelHook(elm, vnode, renderer);
3604
3604
  };
3605
- const connectedCallback = elm => {
3606
- if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3605
+ let connectedCallback;
3606
+ let disconnectedCallback;
3607
+ if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3608
+ connectedCallback = elm => {
3607
3609
  connectRootElement(elm);
3608
- }
3609
- };
3610
- const disconnectedCallback = elm => {
3611
- if (lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3610
+ };
3611
+ disconnectedCallback = elm => {
3612
3612
  disconnectRootElement(elm);
3613
- }
3614
- };
3613
+ };
3614
+ }
3615
3615
  // Should never get a tag with upper case letter at this point; the compiler
3616
3616
  // should produce only tags with lowercase letters. However, the Java
3617
3617
  // compiler may generate tagnames with uppercase letters so - for backwards
@@ -5834,7 +5834,9 @@ function installWireAdapters(vm) {
5834
5834
  wire
5835
5835
  }
5836
5836
  } = vm;
5837
- vm.debugInfo[WIRE_DEBUG_ENTRY] = create(null);
5837
+ if (process.env.NODE_ENV !== 'production') {
5838
+ vm.debugInfo[WIRE_DEBUG_ENTRY] = create(null);
5839
+ }
5838
5840
  const wiredConnecting = context.wiredConnecting = [];
5839
5841
  const wiredDisconnecting = context.wiredDisconnecting = [];
5840
5842
  for (const fieldNameOrMethod in wire) {
@@ -6486,4 +6488,4 @@ function getComponentConstructor(elm) {
6486
6488
  }
6487
6489
 
6488
6490
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
6489
- /* version: 2.30.0 */
6491
+ /* version: 2.30.2 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.30.0",
3
+ "version": "2.30.2",
4
4
  "description": "Core LWC engine APIs.",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -24,8 +24,8 @@
24
24
  "types/"
25
25
  ],
26
26
  "dependencies": {
27
- "@lwc/features": "2.30.0",
28
- "@lwc/shared": "2.30.0"
27
+ "@lwc/features": "2.30.2",
28
+ "@lwc/shared": "2.30.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "observable-membrane": "2.0.0"
@@ -40,6 +40,6 @@ export interface RendererAPI {
40
40
  isConnected: (node: N) => boolean;
41
41
  insertStylesheet: (content: string, target?: ShadowRoot) => void;
42
42
  assertInstanceOfHTMLElement: (elm: any, msg: string) => void;
43
- createCustomElement: (tagName: string, upgradeCallback: LifecycleCallback, connectedCallback: LifecycleCallback, disconnectedCallback: LifecycleCallback) => E;
43
+ createCustomElement: (tagName: string, upgradeCallback: LifecycleCallback, connectedCallback?: LifecycleCallback, disconnectedCallback?: LifecycleCallback) => E;
44
44
  }
45
45
  export {};