@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
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1614,6 +1614,8 @@ function popWarningContext() {
|
|
|
1614
1614
|
stack.pop();
|
|
1615
1615
|
}
|
|
1616
1616
|
function warn$1(msg, ...args) {
|
|
1617
|
+
if (!(process.env.NODE_ENV !== 'production'))
|
|
1618
|
+
return;
|
|
1617
1619
|
// avoid props formatting or warn handler tracking deps that might be mutated
|
|
1618
1620
|
// during patch, leading to infinite recursion.
|
|
1619
1621
|
pauseTracking();
|
|
@@ -2357,8 +2359,8 @@ const deprecationData = {
|
|
|
2357
2359
|
},
|
|
2358
2360
|
["INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */]: {
|
|
2359
2361
|
message: event => `"${event}" lifecycle events are no longer supported. From templates, ` +
|
|
2360
|
-
`use the "
|
|
2361
|
-
`should be changed to @
|
|
2362
|
+
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
|
|
2363
|
+
`should be changed to @vue:${event.slice(5)}. ` +
|
|
2362
2364
|
`From JavaScript, use Composition API to dynamically register lifecycle ` +
|
|
2363
2365
|
`hooks.`,
|
|
2364
2366
|
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
|
|
@@ -3965,10 +3967,11 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3965
3967
|
callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
|
|
3966
3968
|
newValue,
|
|
3967
3969
|
// pass undefined as the old value when it's changed for the first time
|
|
3968
|
-
oldValue === INITIAL_WATCHER_VALUE
|
|
3969
|
-
(isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3970
|
+
oldValue === INITIAL_WATCHER_VALUE
|
|
3970
3971
|
? undefined
|
|
3971
|
-
: oldValue
|
|
3972
|
+
: (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3973
|
+
? []
|
|
3974
|
+
: oldValue,
|
|
3972
3975
|
onCleanup
|
|
3973
3976
|
]);
|
|
3974
3977
|
oldValue = newValue;
|
|
@@ -7250,7 +7253,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
7250
7253
|
return vm;
|
|
7251
7254
|
}
|
|
7252
7255
|
}
|
|
7253
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7256
|
+
Vue.version = `2.6.14-compat:${"3.2.44"}`;
|
|
7254
7257
|
Vue.config = singletonApp.config;
|
|
7255
7258
|
Vue.use = (p, ...options) => {
|
|
7256
7259
|
if (p && isFunction(p.install)) {
|
|
@@ -11110,8 +11113,9 @@ const useSSRContext = () => {
|
|
|
11110
11113
|
{
|
|
11111
11114
|
const ctx = inject(ssrContextKey);
|
|
11112
11115
|
if (!ctx) {
|
|
11113
|
-
|
|
11114
|
-
`
|
|
11116
|
+
(process.env.NODE_ENV !== 'production') &&
|
|
11117
|
+
warn$1(`Server rendering context not provided. Make sure to only call ` +
|
|
11118
|
+
`useSSRContext() conditionally in the server build.`);
|
|
11115
11119
|
}
|
|
11116
11120
|
return ctx;
|
|
11117
11121
|
}
|
|
@@ -11334,7 +11338,7 @@ function isMemoSame(cached, memo) {
|
|
|
11334
11338
|
}
|
|
11335
11339
|
|
|
11336
11340
|
// Core API ------------------------------------------------------------------
|
|
11337
|
-
const version = "3.2.
|
|
11341
|
+
const version = "3.2.44";
|
|
11338
11342
|
const _ssrUtils = {
|
|
11339
11343
|
createComponentInstance,
|
|
11340
11344
|
setupComponent,
|
|
@@ -11495,6 +11499,7 @@ function patchStyle(el, prev, next) {
|
|
|
11495
11499
|
}
|
|
11496
11500
|
}
|
|
11497
11501
|
}
|
|
11502
|
+
const semicolonRE = /[^\\];\s*$/;
|
|
11498
11503
|
const importantRE = /\s*!important$/;
|
|
11499
11504
|
function setStyle(style, name, val) {
|
|
11500
11505
|
if (isArray(val)) {
|
|
@@ -11503,6 +11508,11 @@ function setStyle(style, name, val) {
|
|
|
11503
11508
|
else {
|
|
11504
11509
|
if (val == null)
|
|
11505
11510
|
val = '';
|
|
11511
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
11512
|
+
if (semicolonRE.test(val)) {
|
|
11513
|
+
warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
|
|
11514
|
+
}
|
|
11515
|
+
}
|
|
11506
11516
|
if (name.startsWith('--')) {
|
|
11507
11517
|
// custom property definition
|
|
11508
11518
|
style.setProperty(name, val);
|
package/dist/vue.global.js
CHANGED
|
@@ -2337,8 +2337,8 @@ var Vue = (function () {
|
|
|
2337
2337
|
},
|
|
2338
2338
|
["INSTANCE_EVENT_HOOKS" /* DeprecationTypes.INSTANCE_EVENT_HOOKS */]: {
|
|
2339
2339
|
message: event => `"${event}" lifecycle events are no longer supported. From templates, ` +
|
|
2340
|
-
`use the "
|
|
2341
|
-
`should be changed to @
|
|
2340
|
+
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
|
|
2341
|
+
`should be changed to @vue:${event.slice(5)}. ` +
|
|
2342
2342
|
`From JavaScript, use Composition API to dynamically register lifecycle ` +
|
|
2343
2343
|
`hooks.`,
|
|
2344
2344
|
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
|
|
@@ -3915,10 +3915,11 @@ var Vue = (function () {
|
|
|
3915
3915
|
callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [
|
|
3916
3916
|
newValue,
|
|
3917
3917
|
// pass undefined as the old value when it's changed for the first time
|
|
3918
|
-
oldValue === INITIAL_WATCHER_VALUE
|
|
3919
|
-
(isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3918
|
+
oldValue === INITIAL_WATCHER_VALUE
|
|
3920
3919
|
? undefined
|
|
3921
|
-
: oldValue
|
|
3920
|
+
: (isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE)
|
|
3921
|
+
? []
|
|
3922
|
+
: oldValue,
|
|
3922
3923
|
onCleanup
|
|
3923
3924
|
]);
|
|
3924
3925
|
oldValue = newValue;
|
|
@@ -7175,7 +7176,7 @@ var Vue = (function () {
|
|
|
7175
7176
|
return vm;
|
|
7176
7177
|
}
|
|
7177
7178
|
}
|
|
7178
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7179
|
+
Vue.version = `2.6.14-compat:${"3.2.44"}`;
|
|
7179
7180
|
Vue.config = singletonApp.config;
|
|
7180
7181
|
Vue.use = (p, ...options) => {
|
|
7181
7182
|
if (p && isFunction(p.install)) {
|
|
@@ -11182,7 +11183,7 @@ var Vue = (function () {
|
|
|
11182
11183
|
}
|
|
11183
11184
|
|
|
11184
11185
|
// Core API ------------------------------------------------------------------
|
|
11185
|
-
const version = "3.2.
|
|
11186
|
+
const version = "3.2.44";
|
|
11186
11187
|
/**
|
|
11187
11188
|
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11188
11189
|
* @internal
|
|
@@ -11335,6 +11336,7 @@ var Vue = (function () {
|
|
|
11335
11336
|
}
|
|
11336
11337
|
}
|
|
11337
11338
|
}
|
|
11339
|
+
const semicolonRE = /[^\\];\s*$/;
|
|
11338
11340
|
const importantRE = /\s*!important$/;
|
|
11339
11341
|
function setStyle(style, name, val) {
|
|
11340
11342
|
if (isArray(val)) {
|
|
@@ -11343,6 +11345,11 @@ var Vue = (function () {
|
|
|
11343
11345
|
else {
|
|
11344
11346
|
if (val == null)
|
|
11345
11347
|
val = '';
|
|
11348
|
+
{
|
|
11349
|
+
if (semicolonRE.test(val)) {
|
|
11350
|
+
warn$1(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
|
|
11351
|
+
}
|
|
11352
|
+
}
|
|
11346
11353
|
if (name.startsWith('--')) {
|
|
11347
11354
|
// custom property definition
|
|
11348
11355
|
style.setProperty(name, val);
|