vue 3.2.43 → 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.
@@ -3351,10 +3351,11 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
3351
3351
  callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
3352
3352
  newValue,
3353
3353
  // pass undefined as the old value when it's changed for the first time
3354
- oldValue === INITIAL_WATCHER_VALUE ||
3355
- (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3356
- ? []
3357
- : oldValue,
3354
+ oldValue === INITIAL_WATCHER_VALUE
3355
+ ? undefined
3356
+ : (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
3357
+ ? []
3358
+ : oldValue,
3358
3359
  onCleanup
3359
3360
  ]);
3360
3361
  oldValue = newValue;
@@ -9349,7 +9350,7 @@ function isMemoSame(cached, memo) {
9349
9350
  }
9350
9351
 
9351
9352
  // Core API ------------------------------------------------------------------
9352
- const version = "3.2.43";
9353
+ const version = "3.2.44";
9353
9354
  /**
9354
9355
  * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
9355
9356
  * @internal
@@ -9495,6 +9496,7 @@ function patchStyle(el, prev, next) {
9495
9496
  }
9496
9497
  }
9497
9498
  }
9499
+ const semicolonRE = /[^\\];\s*$/;
9498
9500
  const importantRE = /\s*!important$/;
9499
9501
  function setStyle(style, name, val) {
9500
9502
  if (isArray(val)) {
@@ -9503,6 +9505,11 @@ function setStyle(style, name, val) {
9503
9505
  else {
9504
9506
  if (val == null)
9505
9507
  val = '';
9508
+ {
9509
+ if (semicolonRE.test(val)) {
9510
+ warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
9511
+ }
9512
+ }
9506
9513
  if (name.startsWith('--')) {
9507
9514
  // custom property definition
9508
9515
  style.setProperty(name, val);