@vue/compat 3.2.42 → 3.2.44

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.
@@ -1535,6 +1535,8 @@ function popWarningContext() {
1535
1535
  stack.pop();
1536
1536
  }
1537
1537
  function warn$1(msg, ...args) {
1538
+ if (!(process.env.NODE_ENV !== 'production'))
1539
+ return;
1538
1540
  // avoid props formatting or warn handler tracking deps that might be mutated
1539
1541
  // during patch, leading to infinite recursion.
1540
1542
  pauseTracking();
@@ -2278,8 +2280,8 @@ const deprecationData = {
2278
2280
  },
2279
2281
  ["INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */]: {
2280
2282
  message: event => `"${event}" lifecycle events are no longer supported. From templates, ` +
2281
- `use the "vnode" prefix instead of "hook:". For example, @${event} ` +
2282
- `should be changed to @vnode-${event.slice(5)}. ` +
2283
+ `use the "vue:" prefix instead of "hook:". For example, @${event} ` +
2284
+ `should be changed to @vue:${event.slice(5)}. ` +
2283
2285
  `From JavaScript, use Composition API to dynamically register lifecycle ` +
2284
2286
  `hooks.`,
2285
2287
  link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
@@ -3886,10 +3888,11 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3886
3888
  callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
3887
3889
  newValue,
3888
3890
  // pass undefined as the old value when it's changed for the first time
3889
- oldValue === INITIAL_WATCHER_VALUE ||
3890
- (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3891
+ oldValue === INITIAL_WATCHER_VALUE
3891
3892
  ? undefined
3892
- : oldValue,
3893
+ : (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3894
+ ? []
3895
+ : oldValue,
3893
3896
  onCleanup
3894
3897
  ]);
3895
3898
  oldValue = newValue;
@@ -7171,7 +7174,7 @@ function createCompatVue(createApp, createSingletonApp) {
7171
7174
  return vm;
7172
7175
  }
7173
7176
  }
7174
- Vue.version = `2.6.14-compat:${"3.2.42"}`;
7177
+ Vue.version = `2.6.14-compat:${"3.2.44"}`;
7175
7178
  Vue.config = singletonApp.config;
7176
7179
  Vue.use = (p, ...options) => {
7177
7180
  if (p && isFunction(p.install)) {
@@ -11031,8 +11034,9 @@ const useSSRContext = () => {
11031
11034
  {
11032
11035
  const ctx = inject(ssrContextKey);
11033
11036
  if (!ctx) {
11034
- warn$1(`Server rendering context not provided. Make sure to only call ` +
11035
- `useSSRContext() conditionally in the server build.`);
11037
+ (process.env.NODE_ENV !== 'production') &&
11038
+ warn$1(`Server rendering context not provided. Make sure to only call ` +
11039
+ `useSSRContext() conditionally in the server build.`);
11036
11040
  }
11037
11041
  return ctx;
11038
11042
  }
@@ -11255,7 +11259,7 @@ function isMemoSame(cached, memo) {
11255
11259
  }
11256
11260
 
11257
11261
  // Core API ------------------------------------------------------------------
11258
- const version = "3.2.42";
11262
+ const version = "3.2.44";
11259
11263
  const _ssrUtils = {
11260
11264
  createComponentInstance,
11261
11265
  setupComponent,
@@ -11416,6 +11420,7 @@ function patchStyle(el, prev, next) {
11416
11420
  }
11417
11421
  }
11418
11422
  }
11423
+ const semicolonRE = /[^\\];\s*$/;
11419
11424
  const importantRE = /\s*!important$/;
11420
11425
  function setStyle(style, name, val) {
11421
11426
  if (isArray(val)) {
@@ -11424,6 +11429,11 @@ function setStyle(style, name, val) {
11424
11429
  else {
11425
11430
  if (val == null)
11426
11431
  val = '';
11432
+ if ((process.env.NODE_ENV !== 'production')) {
11433
+ if (semicolonRE.test(val)) {
11434
+ warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
11435
+ }
11436
+ }
11427
11437
  if (name.startsWith('--')) {
11428
11438
  // custom property definition
11429
11439
  style.setProperty(name, val);
@@ -2258,8 +2258,8 @@ var Vue = (function () {
2258
2258
  },
2259
2259
  ["INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */]: {
2260
2260
  message: event => `"${event}" lifecycle events are no longer supported. From templates, ` +
2261
- `use the "vnode" prefix instead of "hook:". For example, @${event} ` +
2262
- `should be changed to @vnode-${event.slice(5)}. ` +
2261
+ `use the "vue:" prefix instead of "hook:". For example, @${event} ` +
2262
+ `should be changed to @vue:${event.slice(5)}. ` +
2263
2263
  `From JavaScript, use Composition API to dynamically register lifecycle ` +
2264
2264
  `hooks.`,
2265
2265
  link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
@@ -3836,10 +3836,11 @@ var Vue = (function () {
3836
3836
  callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
3837
3837
  newValue,
3838
3838
  // pass undefined as the old value when it's changed for the first time
3839
- oldValue === INITIAL_WATCHER_VALUE ||
3840
- (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3839
+ oldValue === INITIAL_WATCHER_VALUE
3841
3840
  ? undefined
3842
- : oldValue,
3841
+ : (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3842
+ ? []
3843
+ : oldValue,
3843
3844
  onCleanup
3844
3845
  ]);
3845
3846
  oldValue = newValue;
@@ -7096,7 +7097,7 @@ var Vue = (function () {
7096
7097
  return vm;
7097
7098
  }
7098
7099
  }
7099
- Vue.version = `2.6.14-compat:${"3.2.42"}`;
7100
+ Vue.version = `2.6.14-compat:${"3.2.44"}`;
7100
7101
  Vue.config = singletonApp.config;
7101
7102
  Vue.use = (p, ...options) => {
7102
7103
  if (p && isFunction(p.install)) {
@@ -11103,7 +11104,7 @@ var Vue = (function () {
11103
11104
  }
11104
11105
 
11105
11106
  // Core API ------------------------------------------------------------------
11106
- const version = "3.2.42";
11107
+ const version = "3.2.44";
11107
11108
  /**
11108
11109
  * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
11109
11110
  * @internal
@@ -11256,6 +11257,7 @@ var Vue = (function () {
11256
11257
  }
11257
11258
  }
11258
11259
  }
11260
+ const semicolonRE = /[^\\];\s*$/;
11259
11261
  const importantRE = /\s*!important$/;
11260
11262
  function setStyle(style, name, val) {
11261
11263
  if (isArray(val)) {
@@ -11264,6 +11266,11 @@ var Vue = (function () {
11264
11266
  else {
11265
11267
  if (val == null)
11266
11268
  val = '';
11269
+ {
11270
+ if (semicolonRE.test(val)) {
11271
+ warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
11272
+ }
11273
+ }
11267
11274
  if (name.startsWith('--')) {
11268
11275
  // custom property definition
11269
11276
  style.setProperty(name, val);