vue 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.
- package/dist/vue.esm-browser.js +12 -5
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +11 -4
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +12 -5
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +11 -4
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +6 -6
package/dist/vue.esm-browser.js
CHANGED
|
@@ -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)
|
|
3354
|
+
oldValue === INITIAL_WATCHER_VALUE
|
|
3356
3355
|
? undefined
|
|
3357
|
-
: oldValue
|
|
3356
|
+
: (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3357
|
+
? []
|
|
3358
|
+
: oldValue,
|
|
3358
3359
|
onCleanup
|
|
3359
3360
|
]);
|
|
3360
3361
|
oldValue = newValue;
|
|
@@ -9126,7 +9127,7 @@ const useSSRContext = () => {
|
|
|
9126
9127
|
const ctx = inject(ssrContextKey);
|
|
9127
9128
|
if (!ctx) {
|
|
9128
9129
|
warn$1(`Server rendering context not provided. Make sure to only call ` +
|
|
9129
|
-
|
|
9130
|
+
`useSSRContext() conditionally in the server build.`);
|
|
9130
9131
|
}
|
|
9131
9132
|
return ctx;
|
|
9132
9133
|
}
|
|
@@ -9349,7 +9350,7 @@ function isMemoSame(cached, memo) {
|
|
|
9349
9350
|
}
|
|
9350
9351
|
|
|
9351
9352
|
// Core API ------------------------------------------------------------------
|
|
9352
|
-
const version = "3.2.
|
|
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);
|