@vue/compat 3.4.0 → 3.4.1
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 +22 -20
- package/dist/vue.cjs.prod.js +15 -13
- package/dist/vue.esm-browser.js +22 -20
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +22 -20
- package/dist/vue.global.js +16 -14
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +19 -17
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +19 -17
- package/dist/vue.runtime.global.js +13 -11
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -3859,6 +3859,19 @@ function mapCompatDirectiveHook(name, dir, instance) {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
|
|
3862
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
3863
|
+
const useSSRContext = () => {
|
|
3864
|
+
{
|
|
3865
|
+
const ctx = inject(ssrContextKey);
|
|
3866
|
+
if (!ctx) {
|
|
3867
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
3868
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3869
|
+
);
|
|
3870
|
+
}
|
|
3871
|
+
return ctx;
|
|
3872
|
+
}
|
|
3873
|
+
};
|
|
3874
|
+
|
|
3862
3875
|
function watchEffect(effect, options) {
|
|
3863
3876
|
return doWatch(effect, null, options);
|
|
3864
3877
|
}
|
|
@@ -5922,6 +5935,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5922
5935
|
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5923
5936
|
return ref();
|
|
5924
5937
|
}
|
|
5938
|
+
const camelizedName = camelize(name);
|
|
5925
5939
|
const res = customRef((track, trigger) => {
|
|
5926
5940
|
let localValue;
|
|
5927
5941
|
watchSyncEffect(() => {
|
|
@@ -5938,7 +5952,8 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5938
5952
|
},
|
|
5939
5953
|
set(value) {
|
|
5940
5954
|
const rawProps = i.vnode.props;
|
|
5941
|
-
if (!(rawProps &&
|
|
5955
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
5956
|
+
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5942
5957
|
localValue = value;
|
|
5943
5958
|
trigger();
|
|
5944
5959
|
}
|
|
@@ -5952,7 +5967,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5952
5967
|
return {
|
|
5953
5968
|
next() {
|
|
5954
5969
|
if (i2 < 2) {
|
|
5955
|
-
return { value: i2++ ? props[modifierKey] : res, done: false };
|
|
5970
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5956
5971
|
} else {
|
|
5957
5972
|
return { done: true };
|
|
5958
5973
|
}
|
|
@@ -6534,7 +6549,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6534
6549
|
return vm;
|
|
6535
6550
|
}
|
|
6536
6551
|
}
|
|
6537
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6552
|
+
Vue.version = `2.6.14-compat:${"3.4.1"}`;
|
|
6538
6553
|
Vue.config = singletonApp.config;
|
|
6539
6554
|
Vue.use = (p, ...options) => {
|
|
6540
6555
|
if (p && isFunction(p.install)) {
|
|
@@ -11120,19 +11135,6 @@ function h(type, propsOrChildren, children) {
|
|
|
11120
11135
|
}
|
|
11121
11136
|
}
|
|
11122
11137
|
|
|
11123
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
11124
|
-
const useSSRContext = () => {
|
|
11125
|
-
{
|
|
11126
|
-
const ctx = inject(ssrContextKey);
|
|
11127
|
-
if (!ctx) {
|
|
11128
|
-
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
11129
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
11130
|
-
);
|
|
11131
|
-
}
|
|
11132
|
-
return ctx;
|
|
11133
|
-
}
|
|
11134
|
-
};
|
|
11135
|
-
|
|
11136
11138
|
function initCustomFormatter() {
|
|
11137
11139
|
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
11138
11140
|
return;
|
|
@@ -11334,7 +11336,7 @@ function isMemoSame(cached, memo) {
|
|
|
11334
11336
|
return true;
|
|
11335
11337
|
}
|
|
11336
11338
|
|
|
11337
|
-
const version = "3.4.
|
|
11339
|
+
const version = "3.4.1";
|
|
11338
11340
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11339
11341
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11340
11342
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
|
@@ -14308,7 +14310,7 @@ const deprecationData = {
|
|
|
14308
14310
|
message: `"inline-template" has been removed in Vue 3.`,
|
|
14309
14311
|
link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
|
|
14310
14312
|
},
|
|
14311
|
-
["
|
|
14313
|
+
["COMPILER_FILTERS"]: {
|
|
14312
14314
|
message: `filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,
|
|
14313
14315
|
link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
|
|
14314
14316
|
}
|
|
@@ -18176,7 +18178,7 @@ function createTransformProps(props = []) {
|
|
|
18176
18178
|
|
|
18177
18179
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
18178
18180
|
const transformFilter = (node, context) => {
|
|
18179
|
-
if (!isCompatEnabled("
|
|
18181
|
+
if (!isCompatEnabled("COMPILER_FILTERS", context)) {
|
|
18180
18182
|
return;
|
|
18181
18183
|
}
|
|
18182
18184
|
if (node.type === 5) {
|
|
@@ -18297,7 +18299,7 @@ function parseFilter(node, context) {
|
|
|
18297
18299
|
}
|
|
18298
18300
|
if (filters.length) {
|
|
18299
18301
|
!!(process.env.NODE_ENV !== "production") && warnDeprecation(
|
|
18300
|
-
"
|
|
18302
|
+
"COMPILER_FILTERS",
|
|
18301
18303
|
context,
|
|
18302
18304
|
node.loc
|
|
18303
18305
|
);
|
package/dist/vue.global.js
CHANGED
|
@@ -3855,6 +3855,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
3857
|
|
|
3858
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
3859
|
+
const useSSRContext = () => {
|
|
3860
|
+
{
|
|
3861
|
+
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
3862
|
+
}
|
|
3863
|
+
};
|
|
3864
|
+
|
|
3858
3865
|
function watchEffect(effect, options) {
|
|
3859
3866
|
return doWatch(effect, null, options);
|
|
3860
3867
|
}
|
|
@@ -5889,6 +5896,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5889
5896
|
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5890
5897
|
return ref();
|
|
5891
5898
|
}
|
|
5899
|
+
const camelizedName = camelize(name);
|
|
5892
5900
|
const res = customRef((track, trigger) => {
|
|
5893
5901
|
let localValue;
|
|
5894
5902
|
watchSyncEffect(() => {
|
|
@@ -5905,7 +5913,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5905
5913
|
},
|
|
5906
5914
|
set(value) {
|
|
5907
5915
|
const rawProps = i.vnode.props;
|
|
5908
|
-
if (!(rawProps &&
|
|
5916
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
5917
|
+
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5909
5918
|
localValue = value;
|
|
5910
5919
|
trigger();
|
|
5911
5920
|
}
|
|
@@ -5919,7 +5928,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5919
5928
|
return {
|
|
5920
5929
|
next() {
|
|
5921
5930
|
if (i2 < 2) {
|
|
5922
|
-
return { value: i2++ ? props[modifierKey] : res, done: false };
|
|
5931
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5923
5932
|
} else {
|
|
5924
5933
|
return { done: true };
|
|
5925
5934
|
}
|
|
@@ -6499,7 +6508,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6499
6508
|
return vm;
|
|
6500
6509
|
}
|
|
6501
6510
|
}
|
|
6502
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6511
|
+
Vue.version = `2.6.14-compat:${"3.4.1"}`;
|
|
6503
6512
|
Vue.config = singletonApp.config;
|
|
6504
6513
|
Vue.use = (p, ...options) => {
|
|
6505
6514
|
if (p && isFunction(p.install)) {
|
|
@@ -11001,13 +11010,6 @@ Component that was made reactive: `,
|
|
|
11001
11010
|
}
|
|
11002
11011
|
}
|
|
11003
11012
|
|
|
11004
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
11005
|
-
const useSSRContext = () => {
|
|
11006
|
-
{
|
|
11007
|
-
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
11008
|
-
}
|
|
11009
|
-
};
|
|
11010
|
-
|
|
11011
11013
|
function initCustomFormatter() {
|
|
11012
11014
|
if (typeof window === "undefined") {
|
|
11013
11015
|
return;
|
|
@@ -11209,7 +11211,7 @@ Component that was made reactive: `,
|
|
|
11209
11211
|
return true;
|
|
11210
11212
|
}
|
|
11211
11213
|
|
|
11212
|
-
const version = "3.4.
|
|
11214
|
+
const version = "3.4.1";
|
|
11213
11215
|
const warn = warn$1 ;
|
|
11214
11216
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11215
11217
|
const devtools = devtools$1 ;
|
|
@@ -14121,7 +14123,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
14121
14123
|
message: `"inline-template" has been removed in Vue 3.`,
|
|
14122
14124
|
link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
|
|
14123
14125
|
},
|
|
14124
|
-
["
|
|
14126
|
+
["COMPILER_FILTERS"]: {
|
|
14125
14127
|
message: `filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,
|
|
14126
14128
|
link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
|
|
14127
14129
|
}
|
|
@@ -17986,7 +17988,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17986
17988
|
|
|
17987
17989
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
17988
17990
|
const transformFilter = (node, context) => {
|
|
17989
|
-
if (!isCompatEnabled("
|
|
17991
|
+
if (!isCompatEnabled("COMPILER_FILTERS", context)) {
|
|
17990
17992
|
return;
|
|
17991
17993
|
}
|
|
17992
17994
|
if (node.type === 5) {
|
|
@@ -18107,7 +18109,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18107
18109
|
}
|
|
18108
18110
|
if (filters.length) {
|
|
18109
18111
|
warnDeprecation(
|
|
18110
|
-
"
|
|
18112
|
+
"COMPILER_FILTERS",
|
|
18111
18113
|
context,
|
|
18112
18114
|
node.loc
|
|
18113
18115
|
);
|