vue 3.5.0-alpha.3 → 3.5.0-alpha.4
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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +10 -11
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +10 -11
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +10 -11
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +10 -11
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.esm-bundler.js
CHANGED
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.0-alpha.
|
|
2
|
+
* vue v3.5.0-alpha.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3457,6 +3457,7 @@ var Vue = (function (exports) {
|
|
|
3457
3457
|
},
|
|
3458
3458
|
setup() {
|
|
3459
3459
|
const instance = currentInstance;
|
|
3460
|
+
markAsyncBoundary(instance);
|
|
3460
3461
|
if (resolvedComp) {
|
|
3461
3462
|
return () => createInnerComp(resolvedComp, instance);
|
|
3462
3463
|
}
|
|
@@ -3478,8 +3479,6 @@ var Vue = (function (exports) {
|
|
|
3478
3479
|
error: err
|
|
3479
3480
|
}) : null;
|
|
3480
3481
|
});
|
|
3481
|
-
} else {
|
|
3482
|
-
markAsyncBoundary(instance);
|
|
3483
3482
|
}
|
|
3484
3483
|
const loaded = ref(false);
|
|
3485
3484
|
const error = ref();
|
|
@@ -6871,7 +6870,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
6871
6870
|
const componentUpdateFn = () => {
|
|
6872
6871
|
if (!instance.isMounted) {
|
|
6873
6872
|
let vnodeHook;
|
|
6874
|
-
const { el, props } = initialVNode;
|
|
6873
|
+
const { el, props, type } = initialVNode;
|
|
6875
6874
|
const { bm, m, parent } = instance;
|
|
6876
6875
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
|
|
6877
6876
|
toggleRecurse(instance, false);
|
|
@@ -6905,8 +6904,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
6905
6904
|
endMeasure(instance, `hydrate`);
|
|
6906
6905
|
}
|
|
6907
6906
|
};
|
|
6908
|
-
if (isAsyncWrapperVNode) {
|
|
6909
|
-
|
|
6907
|
+
if (isAsyncWrapperVNode && !type.__asyncResolved) {
|
|
6908
|
+
type.__asyncLoader().then(
|
|
6910
6909
|
// note: we are moving the render call into an async callback,
|
|
6911
6910
|
// which means it won't track dependencies - but it's ok because
|
|
6912
6911
|
// a server-rendered async wrapper is already in resolved state
|
|
@@ -7992,7 +7991,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7992
7991
|
const modifiers = getModelModifiers(props, name);
|
|
7993
7992
|
const res = customRef((track, trigger) => {
|
|
7994
7993
|
let localValue;
|
|
7995
|
-
let prevSetValue;
|
|
7994
|
+
let prevSetValue = EMPTY_OBJ;
|
|
7996
7995
|
let prevEmittedValue;
|
|
7997
7996
|
watchSyncEffect(() => {
|
|
7998
7997
|
const propValue = props[name];
|
|
@@ -8007,7 +8006,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8007
8006
|
return options.get ? options.get(localValue) : localValue;
|
|
8008
8007
|
},
|
|
8009
8008
|
set(value) {
|
|
8010
|
-
if (!hasChanged(value, localValue)) {
|
|
8009
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
8011
8010
|
return;
|
|
8012
8011
|
}
|
|
8013
8012
|
const rawProps = i.vnode.props;
|
|
@@ -8018,7 +8017,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8018
8017
|
}
|
|
8019
8018
|
const emittedValue = options.set ? options.set(value) : value;
|
|
8020
8019
|
i.emit(`update:${name}`, emittedValue);
|
|
8021
|
-
if (value
|
|
8020
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
8022
8021
|
trigger();
|
|
8023
8022
|
}
|
|
8024
8023
|
prevSetValue = value;
|
|
@@ -9625,7 +9624,7 @@ Component that was made reactive: `,
|
|
|
9625
9624
|
resetTracking();
|
|
9626
9625
|
reset();
|
|
9627
9626
|
if (isPromise(setupResult)) {
|
|
9628
|
-
markAsyncBoundary(instance);
|
|
9627
|
+
if (!isAsyncWrapper(instance)) markAsyncBoundary(instance);
|
|
9629
9628
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
9630
9629
|
if (isSSR) {
|
|
9631
9630
|
return setupResult.then((resolvedResult) => {
|
|
@@ -10104,7 +10103,7 @@ Component that was made reactive: `,
|
|
|
10104
10103
|
return true;
|
|
10105
10104
|
}
|
|
10106
10105
|
|
|
10107
|
-
const version = "3.5.0-alpha.
|
|
10106
|
+
const version = "3.5.0-alpha.4";
|
|
10108
10107
|
const warn = warn$1 ;
|
|
10109
10108
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10110
10109
|
const devtools = devtools$1 ;
|