@lwc/engine-core 2.30.1 → 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.
@@ -3603,16 +3603,16 @@ function mountCustomElement(vnode, parent, anchor, renderer) {
3603
3603
  // the custom element from the registry is expecting an upgrade callback
3604
3604
  vm = createViewModelHook(elm, vnode, renderer);
3605
3605
  };
3606
- const connectedCallback = elm => {
3607
- 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 => {
3608
3610
  connectRootElement(elm);
3609
- }
3610
- };
3611
- const disconnectedCallback = elm => {
3612
- if (features.lwcRuntimeFlags.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE) {
3611
+ };
3612
+ disconnectedCallback = elm => {
3613
3613
  disconnectRootElement(elm);
3614
- }
3615
- };
3614
+ };
3615
+ }
3616
3616
  // Should never get a tag with upper case letter at this point; the compiler
3617
3617
  // should produce only tags with lowercase letters. However, the Java
3618
3618
  // compiler may generate tagnames with uppercase letters so - for backwards
@@ -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.1 */
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
@@ -6488,4 +6488,4 @@ function getComponentConstructor(elm) {
6488
6488
  }
6489
6489
 
6490
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 };
6491
- /* version: 2.30.1 */
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.1",
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.1",
28
- "@lwc/shared": "2.30.1"
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 {};