@vue/runtime-core 3.5.8 → 3.5.10

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,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.8
2
+ * @vue/runtime-core v3.5.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1455,6 +1455,7 @@ function useId() {
1455
1455
  `useId() is called when there is no active component instance to be associated with.`
1456
1456
  );
1457
1457
  }
1458
+ return "";
1458
1459
  }
1459
1460
  function markAsyncBoundary(instance) {
1460
1461
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -7515,7 +7516,7 @@ function normalizeVNode(child) {
7515
7516
  // #3666, avoid reference pollution when reusing vnode
7516
7517
  child.slice()
7517
7518
  );
7518
- } else if (typeof child === "object") {
7519
+ } else if (isVNode(child)) {
7519
7520
  return cloneIfMounted(child);
7520
7521
  } else {
7521
7522
  return createVNode(Text, null, String(child));
@@ -8260,7 +8261,7 @@ function isMemoSame(cached, memo) {
8260
8261
  return true;
8261
8262
  }
8262
8263
 
8263
- const version = "3.5.8";
8264
+ const version = "3.5.10";
8264
8265
  const warn = warn$1 ;
8265
8266
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8266
8267
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.8
2
+ * @vue/runtime-core v3.5.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1025,6 +1025,7 @@ function useId() {
1025
1025
  if (i) {
1026
1026
  return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
1027
1027
  }
1028
+ return "";
1028
1029
  }
1029
1030
  function markAsyncBoundary(instance) {
1030
1031
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -6001,7 +6002,7 @@ function normalizeVNode(child) {
6001
6002
  // #3666, avoid reference pollution when reusing vnode
6002
6003
  child.slice()
6003
6004
  );
6004
- } else if (typeof child === "object") {
6005
+ } else if (isVNode(child)) {
6005
6006
  return cloneIfMounted(child);
6006
6007
  } else {
6007
6008
  return createVNode(Text, null, String(child));
@@ -6429,7 +6430,7 @@ function isMemoSame(cached, memo) {
6429
6430
  return true;
6430
6431
  }
6431
6432
 
6432
- const version = "3.5.8";
6433
+ const version = "3.5.10";
6433
6434
  const warn$1 = shared.NOOP;
6434
6435
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6435
6436
  const devtools = void 0;
@@ -371,8 +371,9 @@ type TypeEmitsToOptions<T extends ComponentTypeEmits> = {
371
371
  [K in keyof T & string]: T[K] extends [...args: infer Args] ? (...args: Args) => any : () => any;
372
372
  } & (T extends (...args: any[]) => any ? ParametersToFns<OverloadParameters<T>> : {});
373
373
  type ParametersToFns<T extends any[]> = {
374
- [K in T[0]]: K extends `${infer C}` ? (...args: T extends [C, ...infer Args] ? Args : never) => any : never;
374
+ [K in T[0]]: IsStringLiteral<K> extends true ? (...args: T extends [e: infer E, ...args: infer P] ? K extends E ? P : never : never) => any : never;
375
375
  };
376
+ type IsStringLiteral<T> = T extends string ? string extends T ? false : true : false;
376
377
  export type ShortEmitsToObject<E> = E extends Record<string, any[]> ? {
377
378
  [K in keyof E]: (...args: E[K]) => any;
378
379
  } : E;
@@ -1526,7 +1527,7 @@ export declare function useModel<M extends PropertyKey, T extends Record<string,
1526
1527
 
1527
1528
  export declare function useTemplateRef<T = unknown, Keys extends string = string>(key: Keys): Readonly<ShallowRef<T | null>>;
1528
1529
 
1529
- export declare function useId(): string | undefined;
1530
+ export declare function useId(): string;
1530
1531
 
1531
1532
  type RawProps = VNodeProps & {
1532
1533
  __v_isVNode?: never;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.8
2
+ * @vue/runtime-core v3.5.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1459,6 +1459,7 @@ function useId() {
1459
1459
  `useId() is called when there is no active component instance to be associated with.`
1460
1460
  );
1461
1461
  }
1462
+ return "";
1462
1463
  }
1463
1464
  function markAsyncBoundary(instance) {
1464
1465
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -7572,7 +7573,7 @@ function normalizeVNode(child) {
7572
7573
  // #3666, avoid reference pollution when reusing vnode
7573
7574
  child.slice()
7574
7575
  );
7575
- } else if (typeof child === "object") {
7576
+ } else if (isVNode(child)) {
7576
7577
  return cloneIfMounted(child);
7577
7578
  } else {
7578
7579
  return createVNode(Text, null, String(child));
@@ -8331,7 +8332,7 @@ function isMemoSame(cached, memo) {
8331
8332
  return true;
8332
8333
  }
8333
8334
 
8334
- const version = "3.5.8";
8335
+ const version = "3.5.10";
8335
8336
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8336
8337
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8337
8338
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.5.8",
3
+ "version": "3.5.10",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.5.8",
50
- "@vue/reactivity": "3.5.8"
49
+ "@vue/shared": "3.5.10",
50
+ "@vue/reactivity": "3.5.10"
51
51
  }
52
52
  }