vue 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.esm-browser.js +18 -16
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.global.js +12 -10
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +18 -16
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.global.js +12 -10
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +6 -6
package/dist/vue.esm-browser.js
CHANGED
|
@@ -3293,6 +3293,19 @@ function isVNodeSuspensible(vnode) {
|
|
|
3293
3293
|
return ((_a = vnode.props) == null ? void 0 : _a.suspensible) != null && vnode.props.suspensible !== false;
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
3297
|
+
const useSSRContext = () => {
|
|
3298
|
+
{
|
|
3299
|
+
const ctx = inject(ssrContextKey);
|
|
3300
|
+
if (!ctx) {
|
|
3301
|
+
warn$1(
|
|
3302
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3303
|
+
);
|
|
3304
|
+
}
|
|
3305
|
+
return ctx;
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
|
|
3296
3309
|
function watchEffect(effect, options) {
|
|
3297
3310
|
return doWatch(effect, null, options);
|
|
3298
3311
|
}
|
|
@@ -4792,6 +4805,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
4792
4805
|
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
4793
4806
|
return ref();
|
|
4794
4807
|
}
|
|
4808
|
+
const camelizedName = camelize(name);
|
|
4795
4809
|
const res = customRef((track, trigger) => {
|
|
4796
4810
|
let localValue;
|
|
4797
4811
|
watchSyncEffect(() => {
|
|
@@ -4808,7 +4822,8 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
4808
4822
|
},
|
|
4809
4823
|
set(value) {
|
|
4810
4824
|
const rawProps = i.vnode.props;
|
|
4811
|
-
if (!(rawProps &&
|
|
4825
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
4826
|
+
(name in rawProps || camelizedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
4812
4827
|
localValue = value;
|
|
4813
4828
|
trigger();
|
|
4814
4829
|
}
|
|
@@ -4822,7 +4837,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
4822
4837
|
return {
|
|
4823
4838
|
next() {
|
|
4824
4839
|
if (i2 < 2) {
|
|
4825
|
-
return { value: i2++ ? props[modifierKey] : res, done: false };
|
|
4840
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
4826
4841
|
} else {
|
|
4827
4842
|
return { done: true };
|
|
4828
4843
|
}
|
|
@@ -9261,19 +9276,6 @@ function h(type, propsOrChildren, children) {
|
|
|
9261
9276
|
}
|
|
9262
9277
|
}
|
|
9263
9278
|
|
|
9264
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
9265
|
-
const useSSRContext = () => {
|
|
9266
|
-
{
|
|
9267
|
-
const ctx = inject(ssrContextKey);
|
|
9268
|
-
if (!ctx) {
|
|
9269
|
-
warn$1(
|
|
9270
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
9271
|
-
);
|
|
9272
|
-
}
|
|
9273
|
-
return ctx;
|
|
9274
|
-
}
|
|
9275
|
-
};
|
|
9276
|
-
|
|
9277
9279
|
function initCustomFormatter() {
|
|
9278
9280
|
if (typeof window === "undefined") {
|
|
9279
9281
|
return;
|
|
@@ -9475,7 +9477,7 @@ function isMemoSame(cached, memo) {
|
|
|
9475
9477
|
return true;
|
|
9476
9478
|
}
|
|
9477
9479
|
|
|
9478
|
-
const version = "3.4.
|
|
9480
|
+
const version = "3.4.1";
|
|
9479
9481
|
const warn = warn$1 ;
|
|
9480
9482
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9481
9483
|
const devtools = devtools$1 ;
|