@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.
- package/dist/vue.cjs.js +15 -8
- package/dist/vue.cjs.prod.js +7 -140
- package/dist/vue.esm-browser.js +15 -8
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +19 -9
- package/dist/vue.global.js +14 -7
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +15 -8
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +19 -9
- package/dist/vue.runtime.global.js +14 -7
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -2255,8 +2255,8 @@ const deprecationData = {
|
|
|
2255
2255
|
},
|
|
2256
2256
|
["INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */]: {
|
|
2257
2257
|
message: event => `"${event}" lifecycle events are no longer supported. From templates, ` +
|
|
2258
|
-
`use the "
|
|
2259
|
-
`should be changed to @
|
|
2258
|
+
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
|
|
2259
|
+
`should be changed to @vue:${event.slice(5)}. ` +
|
|
2260
2260
|
`From JavaScript, use Composition API to dynamically register lifecycle ` +
|
|
2261
2261
|
`hooks.`,
|
|
2262
2262
|
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
|
|
@@ -3833,10 +3833,11 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3833
3833
|
callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
|
|
3834
3834
|
newValue,
|
|
3835
3835
|
// pass undefined as the old value when it's changed for the first time
|
|
3836
|
-
oldValue === INITIAL_WATCHER_VALUE
|
|
3837
|
-
(isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3836
|
+
oldValue === INITIAL_WATCHER_VALUE
|
|
3838
3837
|
? undefined
|
|
3839
|
-
: oldValue
|
|
3838
|
+
: (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3839
|
+
? []
|
|
3840
|
+
: oldValue,
|
|
3840
3841
|
onCleanup
|
|
3841
3842
|
]);
|
|
3842
3843
|
oldValue = newValue;
|
|
@@ -7093,7 +7094,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
7093
7094
|
return vm;
|
|
7094
7095
|
}
|
|
7095
7096
|
}
|
|
7096
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7097
|
+
Vue.version = `2.6.14-compat:${"3.2.44"}`;
|
|
7097
7098
|
Vue.config = singletonApp.config;
|
|
7098
7099
|
Vue.use = (p, ...options) => {
|
|
7099
7100
|
if (p && isFunction(p.install)) {
|
|
@@ -10882,7 +10883,7 @@ const useSSRContext = () => {
|
|
|
10882
10883
|
const ctx = inject(ssrContextKey);
|
|
10883
10884
|
if (!ctx) {
|
|
10884
10885
|
warn$1(`Server rendering context not provided. Make sure to only call ` +
|
|
10885
|
-
|
|
10886
|
+
`useSSRContext() conditionally in the server build.`);
|
|
10886
10887
|
}
|
|
10887
10888
|
return ctx;
|
|
10888
10889
|
}
|
|
@@ -11105,7 +11106,7 @@ function isMemoSame(cached, memo) {
|
|
|
11105
11106
|
}
|
|
11106
11107
|
|
|
11107
11108
|
// Core API ------------------------------------------------------------------
|
|
11108
|
-
const version = "3.2.
|
|
11109
|
+
const version = "3.2.44";
|
|
11109
11110
|
/**
|
|
11110
11111
|
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11111
11112
|
* @internal
|
|
@@ -11258,6 +11259,7 @@ function patchStyle(el, prev, next) {
|
|
|
11258
11259
|
}
|
|
11259
11260
|
}
|
|
11260
11261
|
}
|
|
11262
|
+
const semicolonRE = /[^\\];\s*$/;
|
|
11261
11263
|
const importantRE = /\s*!important$/;
|
|
11262
11264
|
function setStyle(style, name, val) {
|
|
11263
11265
|
if (isArray(val)) {
|
|
@@ -11266,6 +11268,11 @@ function setStyle(style, name, val) {
|
|
|
11266
11268
|
else {
|
|
11267
11269
|
if (val == null)
|
|
11268
11270
|
val = '';
|
|
11271
|
+
{
|
|
11272
|
+
if (semicolonRE.test(val)) {
|
|
11273
|
+
warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
|
|
11274
|
+
}
|
|
11275
|
+
}
|
|
11269
11276
|
if (name.startsWith('--')) {
|
|
11270
11277
|
// custom property definition
|
|
11271
11278
|
style.setProperty(name, val);
|