@vue/runtime-core 3.4.17 → 3.4.19

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.4.17
2
+ * @vue/runtime-core v3.4.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -188,13 +188,11 @@ const ErrorTypeStrings$1 = {
188
188
  [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
189
189
  };
190
190
  function callWithErrorHandling(fn, instance, type, args) {
191
- let res;
192
191
  try {
193
- res = args ? fn(...args) : fn();
192
+ return args ? fn(...args) : fn();
194
193
  } catch (err) {
195
194
  handleError(err, instance, type);
196
195
  }
197
- return res;
198
196
  }
199
197
  function callWithAsyncErrorHandling(fn, instance, type, args) {
200
198
  if (shared.isFunction(fn)) {
@@ -4275,7 +4273,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
4275
4273
  return res;
4276
4274
  }
4277
4275
  function validatePropName(key) {
4278
- if (key[0] !== "$") {
4276
+ if (key[0] !== "$" && !shared.isReservedProp(key)) {
4279
4277
  return true;
4280
4278
  } else {
4281
4279
  warn$1(`Invalid prop name: "${key}" is a reserved property.`);
@@ -4283,8 +4281,16 @@ function validatePropName(key) {
4283
4281
  return false;
4284
4282
  }
4285
4283
  function getType(ctor) {
4286
- const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/);
4287
- return match ? match[2] : ctor === null ? "null" : "";
4284
+ if (ctor === null) {
4285
+ return "null";
4286
+ }
4287
+ if (typeof ctor === "function") {
4288
+ return ctor.name || "";
4289
+ } else if (typeof ctor === "object") {
4290
+ const name = ctor.constructor && ctor.constructor.name;
4291
+ return name || "";
4292
+ }
4293
+ return "";
4288
4294
  }
4289
4295
  function isSameType(a, b) {
4290
4296
  return getType(a) === getType(b);
@@ -5081,9 +5087,12 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
5081
5087
  }
5082
5088
  }
5083
5089
  }
5084
- const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
5085
- for (const key2 in cssVars) {
5086
- expectedMap.set(`--${key2}`, String(cssVars[key2]));
5090
+ const root = instance == null ? void 0 : instance.subTree;
5091
+ if (vnode === root || (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
5092
+ const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
5093
+ for (const key2 in cssVars) {
5094
+ expectedMap.set(`--${key2}`, String(cssVars[key2]));
5095
+ }
5087
5096
  }
5088
5097
  if (!isMapEqual(actualMap, expectedMap)) {
5089
5098
  mismatchType = mismatchKey = "style";
@@ -8068,7 +8077,7 @@ function isMemoSame(cached, memo) {
8068
8077
  return true;
8069
8078
  }
8070
8079
 
8071
- const version = "3.4.17";
8080
+ const version = "3.4.19";
8072
8081
  const warn = warn$1 ;
8073
8082
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8074
8083
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.17
2
+ * @vue/runtime-core v3.4.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -78,13 +78,11 @@ const ErrorTypeStrings$1 = {
78
78
  [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
79
79
  };
80
80
  function callWithErrorHandling(fn, instance, type, args) {
81
- let res;
82
81
  try {
83
- res = args ? fn(...args) : fn();
82
+ return args ? fn(...args) : fn();
84
83
  } catch (err) {
85
84
  handleError(err, instance, type);
86
85
  }
87
- return res;
88
86
  }
89
87
  function callWithAsyncErrorHandling(fn, instance, type, args) {
90
88
  if (shared.isFunction(fn)) {
@@ -3331,14 +3329,22 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
3331
3329
  return res;
3332
3330
  }
3333
3331
  function validatePropName(key) {
3334
- if (key[0] !== "$") {
3332
+ if (key[0] !== "$" && !shared.isReservedProp(key)) {
3335
3333
  return true;
3336
3334
  }
3337
3335
  return false;
3338
3336
  }
3339
3337
  function getType(ctor) {
3340
- const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/);
3341
- return match ? match[2] : ctor === null ? "null" : "";
3338
+ if (ctor === null) {
3339
+ return "null";
3340
+ }
3341
+ if (typeof ctor === "function") {
3342
+ return ctor.name || "";
3343
+ } else if (typeof ctor === "object") {
3344
+ const name = ctor.constructor && ctor.constructor.name;
3345
+ return name || "";
3346
+ }
3347
+ return "";
3342
3348
  }
3343
3349
  function isSameType(a, b) {
3344
3350
  return getType(a) === getType(b);
@@ -6279,7 +6285,7 @@ function isMemoSame(cached, memo) {
6279
6285
  return true;
6280
6286
  }
6281
6287
 
6282
- const version = "3.4.17";
6288
+ const version = "3.4.19";
6283
6289
  const warn$1 = shared.NOOP;
6284
6290
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6285
6291
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.17
2
+ * @vue/runtime-core v3.4.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -188,13 +188,11 @@ const ErrorTypeStrings$1 = {
188
188
  [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
189
189
  };
190
190
  function callWithErrorHandling(fn, instance, type, args) {
191
- let res;
192
191
  try {
193
- res = args ? fn(...args) : fn();
192
+ return args ? fn(...args) : fn();
194
193
  } catch (err) {
195
194
  handleError(err, instance, type);
196
195
  }
197
- return res;
198
196
  }
199
197
  function callWithAsyncErrorHandling(fn, instance, type, args) {
200
198
  if (isFunction(fn)) {
@@ -4283,7 +4281,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
4283
4281
  return res;
4284
4282
  }
4285
4283
  function validatePropName(key) {
4286
- if (key[0] !== "$") {
4284
+ if (key[0] !== "$" && !isReservedProp(key)) {
4287
4285
  return true;
4288
4286
  } else if (!!(process.env.NODE_ENV !== "production")) {
4289
4287
  warn$1(`Invalid prop name: "${key}" is a reserved property.`);
@@ -4291,8 +4289,16 @@ function validatePropName(key) {
4291
4289
  return false;
4292
4290
  }
4293
4291
  function getType(ctor) {
4294
- const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/);
4295
- return match ? match[2] : ctor === null ? "null" : "";
4292
+ if (ctor === null) {
4293
+ return "null";
4294
+ }
4295
+ if (typeof ctor === "function") {
4296
+ return ctor.name || "";
4297
+ } else if (typeof ctor === "object") {
4298
+ const name = ctor.constructor && ctor.constructor.name;
4299
+ return name || "";
4300
+ }
4301
+ return "";
4296
4302
  }
4297
4303
  function isSameType(a, b) {
4298
4304
  return getType(a) === getType(b);
@@ -5099,9 +5105,12 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
5099
5105
  }
5100
5106
  }
5101
5107
  }
5102
- const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
5103
- for (const key2 in cssVars) {
5104
- expectedMap.set(`--${key2}`, String(cssVars[key2]));
5108
+ const root = instance == null ? void 0 : instance.subTree;
5109
+ if (vnode === root || (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
5110
+ const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
5111
+ for (const key2 in cssVars) {
5112
+ expectedMap.set(`--${key2}`, String(cssVars[key2]));
5113
+ }
5105
5114
  }
5106
5115
  if (!isMapEqual(actualMap, expectedMap)) {
5107
5116
  mismatchType = mismatchKey = "style";
@@ -8140,7 +8149,7 @@ function isMemoSame(cached, memo) {
8140
8149
  return true;
8141
8150
  }
8142
8151
 
8143
- const version = "3.4.17";
8152
+ const version = "3.4.19";
8144
8153
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8145
8154
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8146
8155
  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.4.17",
3
+ "version": "3.4.19",
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.4.17",
50
- "@vue/reactivity": "3.4.17"
49
+ "@vue/shared": "3.4.19",
50
+ "@vue/reactivity": "3.4.19"
51
51
  }
52
52
  }