@vue/runtime-core 3.3.11 → 3.3.12

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.
@@ -1405,7 +1405,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1405
1405
  timeout: typeof timeout === "number" ? timeout : -1,
1406
1406
  activeBranch: null,
1407
1407
  pendingBranch: null,
1408
- isInFallback: true,
1408
+ isInFallback: !isHydrating,
1409
1409
  isHydrating,
1410
1410
  isUnmounted: false,
1411
1411
  effects: [],
@@ -4742,6 +4742,16 @@ function createHydrationFunctions(rendererInternals) {
4742
4742
  if (dirs) {
4743
4743
  invokeDirectiveHook(vnode, null, parentComponent, "created");
4744
4744
  }
4745
+ let needCallTransitionHooks = false;
4746
+ if (isTemplateNode(el)) {
4747
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4748
+ const content = el.content.firstChild;
4749
+ if (needCallTransitionHooks) {
4750
+ transition.beforeEnter(content);
4751
+ }
4752
+ replaceNode(content, el, parentComponent);
4753
+ vnode.el = el = content;
4754
+ }
4745
4755
  if (props) {
4746
4756
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
4747
4757
  for (const key in props) {
@@ -4774,16 +4784,6 @@ function createHydrationFunctions(rendererInternals) {
4774
4784
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
4775
4785
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
4776
4786
  }
4777
- let needCallTransitionHooks = false;
4778
- if (isTemplateNode(el)) {
4779
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4780
- const content = el.content.firstChild;
4781
- if (needCallTransitionHooks) {
4782
- transition.beforeEnter(content);
4783
- }
4784
- replaceNode(content, el, parentComponent);
4785
- vnode.el = el = content;
4786
- }
4787
4787
  if (dirs) {
4788
4788
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
4789
4789
  }
@@ -7762,7 +7762,7 @@ function isMemoSame(cached, memo) {
7762
7762
  return true;
7763
7763
  }
7764
7764
 
7765
- const version = "3.3.11";
7765
+ const version = "3.3.12";
7766
7766
  const _ssrUtils = {
7767
7767
  createComponentInstance,
7768
7768
  setupComponent,
@@ -904,7 +904,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
904
904
  timeout: typeof timeout === "number" ? timeout : -1,
905
905
  activeBranch: null,
906
906
  pendingBranch: null,
907
- isInFallback: true,
907
+ isInFallback: !isHydrating,
908
908
  isHydrating,
909
909
  isUnmounted: false,
910
910
  effects: [],
@@ -3655,6 +3655,16 @@ function createHydrationFunctions(rendererInternals) {
3655
3655
  if (dirs) {
3656
3656
  invokeDirectiveHook(vnode, null, parentComponent, "created");
3657
3657
  }
3658
+ let needCallTransitionHooks = false;
3659
+ if (isTemplateNode(el)) {
3660
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
3661
+ const content = el.content.firstChild;
3662
+ if (needCallTransitionHooks) {
3663
+ transition.beforeEnter(content);
3664
+ }
3665
+ replaceNode(content, el, parentComponent);
3666
+ vnode.el = el = content;
3667
+ }
3658
3668
  if (props) {
3659
3669
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
3660
3670
  for (const key in props) {
@@ -3687,16 +3697,6 @@ function createHydrationFunctions(rendererInternals) {
3687
3697
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
3688
3698
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
3689
3699
  }
3690
- let needCallTransitionHooks = false;
3691
- if (isTemplateNode(el)) {
3692
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
3693
- const content = el.content.firstChild;
3694
- if (needCallTransitionHooks) {
3695
- transition.beforeEnter(content);
3696
- }
3697
- replaceNode(content, el, parentComponent);
3698
- vnode.el = el = content;
3699
- }
3700
3700
  if (dirs) {
3701
3701
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
3702
3702
  }
@@ -6094,7 +6094,7 @@ function isMemoSame(cached, memo) {
6094
6094
  return true;
6095
6095
  }
6096
6096
 
6097
- const version = "3.3.11";
6097
+ const version = "3.3.12";
6098
6098
  const _ssrUtils = {
6099
6099
  createComponentInstance,
6100
6100
  setupComponent,
@@ -14,7 +14,7 @@ declare const SlotSymbol: unique symbol;
14
14
  export type SlotsType<T extends Record<string, any> = Record<string, any>> = {
15
15
  [SlotSymbol]?: T;
16
16
  };
17
- type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T>;
17
+ type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
18
18
  type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{
19
19
  [K in keyof T]: NonNullable<T[K]> extends (...args: any[]) => any ? T[K] : Slot<T[K]>;
20
20
  }>>;
@@ -58,9 +58,9 @@ export declare function queuePostFlushCb(cb: SchedulerJobs): void;
58
58
  export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
59
59
  export type EmitsOptions = ObjectEmitsOptions | string[];
60
60
  type EmitsToProps<T extends EmitsOptions> = T extends string[] ? {
61
- [K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
61
+ [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
62
62
  } : T extends ObjectEmitsOptions ? {
63
- [K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never;
63
+ [K in `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : T[Uncapitalize<C>] extends null ? any[] : never) => any : never;
64
64
  } : {};
65
65
  type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
66
66
  [key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
@@ -1409,7 +1409,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1409
1409
  timeout: typeof timeout === "number" ? timeout : -1,
1410
1410
  activeBranch: null,
1411
1411
  pendingBranch: null,
1412
- isInFallback: true,
1412
+ isInFallback: !isHydrating,
1413
1413
  isHydrating,
1414
1414
  isUnmounted: false,
1415
1415
  effects: [],
@@ -4752,6 +4752,16 @@ function createHydrationFunctions(rendererInternals) {
4752
4752
  if (dirs) {
4753
4753
  invokeDirectiveHook(vnode, null, parentComponent, "created");
4754
4754
  }
4755
+ let needCallTransitionHooks = false;
4756
+ if (isTemplateNode(el)) {
4757
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4758
+ const content = el.content.firstChild;
4759
+ if (needCallTransitionHooks) {
4760
+ transition.beforeEnter(content);
4761
+ }
4762
+ replaceNode(content, el, parentComponent);
4763
+ vnode.el = el = content;
4764
+ }
4755
4765
  if (props) {
4756
4766
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
4757
4767
  for (const key in props) {
@@ -4784,16 +4794,6 @@ function createHydrationFunctions(rendererInternals) {
4784
4794
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
4785
4795
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
4786
4796
  }
4787
- let needCallTransitionHooks = false;
4788
- if (isTemplateNode(el)) {
4789
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4790
- const content = el.content.firstChild;
4791
- if (needCallTransitionHooks) {
4792
- transition.beforeEnter(content);
4793
- }
4794
- replaceNode(content, el, parentComponent);
4795
- vnode.el = el = content;
4796
- }
4797
4797
  if (dirs) {
4798
4798
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
4799
4799
  }
@@ -7822,7 +7822,7 @@ function isMemoSame(cached, memo) {
7822
7822
  return true;
7823
7823
  }
7824
7824
 
7825
- const version = "3.3.11";
7825
+ const version = "3.3.12";
7826
7826
  const _ssrUtils = {
7827
7827
  createComponentInstance,
7828
7828
  setupComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.3.11",
3
+ "version": "3.3.12",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
34
34
  "dependencies": {
35
- "@vue/reactivity": "3.3.11",
36
- "@vue/shared": "3.3.11"
35
+ "@vue/reactivity": "3.3.12",
36
+ "@vue/shared": "3.3.12"
37
37
  }
38
38
  }