@lwc/engine-core 2.11.6 → 2.11.7

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.
@@ -3432,15 +3432,16 @@ function mountVNodes(vnodes, parent, anchor, start = 0, end = vnodes.length) {
3432
3432
  }
3433
3433
  }
3434
3434
  function unmount(vnode, parent, doRemove = false) {
3435
- const { type, elm } = vnode;
3435
+ const { type, elm, sel } = vnode;
3436
3436
  // When unmounting a VNode subtree not all the elements have to removed from the DOM. The
3437
3437
  // subtree root, is the only element worth unmounting from the subtree.
3438
3438
  if (doRemove) {
3439
3439
  removeNode(elm, parent);
3440
3440
  }
3441
+ const removeChildren = sel === 'slot'; // slot content is removed to trigger slotchange event when removing slot
3441
3442
  switch (type) {
3442
3443
  case 2 /* Element */:
3443
- unmountVNodes(vnode.children, elm);
3444
+ unmountVNodes(vnode.children, elm, removeChildren);
3444
3445
  break;
3445
3446
  case 3 /* CustomElement */: {
3446
3447
  const { vm } = vnode;
@@ -6222,4 +6223,4 @@ exports.swapTemplate = swapTemplate;
6222
6223
  exports.track = track;
6223
6224
  exports.unwrap = unwrap;
6224
6225
  exports.wire = wire;
6225
- /* version: 2.11.6 */
6226
+ /* version: 2.11.7 */
@@ -3429,15 +3429,16 @@ function mountVNodes(vnodes, parent, anchor, start = 0, end = vnodes.length) {
3429
3429
  }
3430
3430
  }
3431
3431
  function unmount(vnode, parent, doRemove = false) {
3432
- const { type, elm } = vnode;
3432
+ const { type, elm, sel } = vnode;
3433
3433
  // When unmounting a VNode subtree not all the elements have to removed from the DOM. The
3434
3434
  // subtree root, is the only element worth unmounting from the subtree.
3435
3435
  if (doRemove) {
3436
3436
  removeNode(elm, parent);
3437
3437
  }
3438
+ const removeChildren = sel === 'slot'; // slot content is removed to trigger slotchange event when removing slot
3438
3439
  switch (type) {
3439
3440
  case 2 /* Element */:
3440
- unmountVNodes(vnode.children, elm);
3441
+ unmountVNodes(vnode.children, elm, removeChildren);
3441
3442
  break;
3442
3443
  case 3 /* CustomElement */: {
3443
3444
  const { vm } = vnode;
@@ -6146,4 +6147,4 @@ function setHooks(hooks) {
6146
6147
  }
6147
6148
 
6148
6149
  export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, getAssociatedVMIfPresent, getComponentDef, getComponentHtmlPrototype, getUpgradableConstructor, hydrateRoot, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setAddEventListener, setAssertInstanceOfHTMLElement, setAttachShadow, setCreateComment, setCreateElement, setCreateText, setDefineCustomElement, setDispatchEvent, setGetAttribute, setGetBoundingClientRect, setGetChildNodes, setGetChildren, setGetClassList, setGetCustomElement, setGetElementsByClassName, setGetElementsByTagName, setGetFirstChild, setGetFirstElementChild, setGetLastChild, setGetLastElementChild, setGetProperty, setHTMLElement, setHooks, setInsert, setInsertGlobalStylesheet, setInsertStylesheet, setIsConnected, setIsHydrating, setIsNativeShadowDefined, setIsSyntheticShadowDefined, setNextSibling, setQuerySelector, setQuerySelectorAll, setRemove, setRemoveAttribute, setRemoveEventListener, setSetAttribute, setSetCSSStyleProperty, setSetProperty, setSetText, setSsr, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
6149
- /* version: 2.11.6 */
6150
+ /* version: 2.11.7 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/engine-core",
3
- "version": "2.11.6",
3
+ "version": "2.11.7",
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.11.6",
28
- "@lwc/shared": "2.11.6"
27
+ "@lwc/features": "2.11.7",
28
+ "@lwc/shared": "2.11.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "observable-membrane": "2.0.0"