vue 3.3.0-beta.3 → 3.3.0-beta.5
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 +25 -16
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +25 -16
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +25 -16
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +25 -16
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +7 -7
package/dist/vue.esm-browser.js
CHANGED
|
@@ -2607,7 +2607,7 @@ function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense
|
|
|
2607
2607
|
);
|
|
2608
2608
|
setActiveBranch(suspense, vnode.ssFallback);
|
|
2609
2609
|
} else {
|
|
2610
|
-
suspense.resolve();
|
|
2610
|
+
suspense.resolve(false, true);
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
2613
|
function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {
|
|
@@ -2766,7 +2766,6 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotSc
|
|
|
2766
2766
|
}
|
|
2767
2767
|
let hasWarned = false;
|
|
2768
2768
|
function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
|
|
2769
|
-
var _a;
|
|
2770
2769
|
if (!hasWarned) {
|
|
2771
2770
|
hasWarned = true;
|
|
2772
2771
|
console[console.info ? "info" : "log"](
|
|
@@ -2781,10 +2780,10 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2781
2780
|
o: { parentNode, remove }
|
|
2782
2781
|
} = rendererInternals;
|
|
2783
2782
|
let parentSuspenseId;
|
|
2784
|
-
const isSuspensible = (
|
|
2783
|
+
const isSuspensible = isVNodeSuspensible(vnode);
|
|
2785
2784
|
if (isSuspensible) {
|
|
2786
2785
|
if (parentSuspense == null ? void 0 : parentSuspense.pendingBranch) {
|
|
2787
|
-
parentSuspenseId = parentSuspense
|
|
2786
|
+
parentSuspenseId = parentSuspense.pendingId;
|
|
2788
2787
|
parentSuspense.deps++;
|
|
2789
2788
|
}
|
|
2790
2789
|
}
|
|
@@ -2809,7 +2808,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2809
2808
|
isHydrating,
|
|
2810
2809
|
isUnmounted: false,
|
|
2811
2810
|
effects: [],
|
|
2812
|
-
resolve(resume = false) {
|
|
2811
|
+
resolve(resume = false, sync = false) {
|
|
2813
2812
|
{
|
|
2814
2813
|
if (!resume && !suspense.pendingBranch) {
|
|
2815
2814
|
throw new Error(
|
|
@@ -2871,7 +2870,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
2871
2870
|
if (isSuspensible) {
|
|
2872
2871
|
if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) {
|
|
2873
2872
|
parentSuspense.deps--;
|
|
2874
|
-
if (parentSuspense.deps === 0) {
|
|
2873
|
+
if (parentSuspense.deps === 0 && !sync) {
|
|
2875
2874
|
parentSuspense.resolve();
|
|
2876
2875
|
}
|
|
2877
2876
|
}
|
|
@@ -3081,6 +3080,10 @@ function setActiveBranch(suspense, branch) {
|
|
|
3081
3080
|
updateHOCHostEl(parentComponent, el);
|
|
3082
3081
|
}
|
|
3083
3082
|
}
|
|
3083
|
+
function isVNodeSuspensible(vnode) {
|
|
3084
|
+
var _a;
|
|
3085
|
+
return ((_a = vnode.props) == null ? void 0 : _a.suspensible) != null && vnode.props.suspensible !== false;
|
|
3086
|
+
}
|
|
3084
3087
|
|
|
3085
3088
|
function watchEffect(effect, options) {
|
|
3086
3089
|
return doWatch(effect, null, options);
|
|
@@ -3691,7 +3694,11 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3691
3694
|
}
|
|
3692
3695
|
|
|
3693
3696
|
function defineComponent(options, extraOptions) {
|
|
3694
|
-
return isFunction(options) ?
|
|
3697
|
+
return isFunction(options) ? (
|
|
3698
|
+
// #8326: extend call and options.name access are considered side-effects
|
|
3699
|
+
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
3700
|
+
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
3701
|
+
) : options;
|
|
3695
3702
|
}
|
|
3696
3703
|
|
|
3697
3704
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -8162,6 +8169,9 @@ const normalizeRef = ({
|
|
|
8162
8169
|
ref_key,
|
|
8163
8170
|
ref_for
|
|
8164
8171
|
}) => {
|
|
8172
|
+
if (typeof ref === "number") {
|
|
8173
|
+
ref = "" + ref;
|
|
8174
|
+
}
|
|
8165
8175
|
return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for } : ref : null;
|
|
8166
8176
|
};
|
|
8167
8177
|
function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
|
|
@@ -9083,7 +9093,7 @@ function isMemoSame(cached, memo) {
|
|
|
9083
9093
|
return true;
|
|
9084
9094
|
}
|
|
9085
9095
|
|
|
9086
|
-
const version = "3.3.0-beta.
|
|
9096
|
+
const version = "3.3.0-beta.5";
|
|
9087
9097
|
const ssrUtils = null;
|
|
9088
9098
|
const resolveFilter = null;
|
|
9089
9099
|
const compatUtils = null;
|
|
@@ -9275,14 +9285,13 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
9275
9285
|
el[key] = value == null ? "" : value;
|
|
9276
9286
|
return;
|
|
9277
9287
|
}
|
|
9278
|
-
|
|
9279
|
-
|
|
9288
|
+
const tag = el.tagName;
|
|
9289
|
+
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
9290
|
+
!tag.includes("-")) {
|
|
9280
9291
|
el._value = value;
|
|
9292
|
+
const oldValue = tag === "OPTION" ? el.getAttribute("value") : el.value;
|
|
9281
9293
|
const newValue = value == null ? "" : value;
|
|
9282
|
-
if (
|
|
9283
|
-
// textContent if no value attribute is present. And setting .value for
|
|
9284
|
-
// OPTION has no side effect
|
|
9285
|
-
el.tagName === "OPTION") {
|
|
9294
|
+
if (oldValue !== newValue) {
|
|
9286
9295
|
el.value = newValue;
|
|
9287
9296
|
}
|
|
9288
9297
|
if (value == null) {
|
|
@@ -9308,7 +9317,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
9308
9317
|
} catch (e) {
|
|
9309
9318
|
if (!needRemove) {
|
|
9310
9319
|
warn(
|
|
9311
|
-
`Failed setting prop "${key}" on <${
|
|
9320
|
+
`Failed setting prop "${key}" on <${tag.toLowerCase()}>: value ${value} is invalid.`,
|
|
9312
9321
|
e
|
|
9313
9322
|
);
|
|
9314
9323
|
}
|
|
@@ -10521,7 +10530,7 @@ function injectCompilerOptionsCheck(app) {
|
|
|
10521
10530
|
const msg = `The \`compilerOptions\` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, \`compilerOptions\` must be passed to \`@vue/compiler-dom\` in the build setup instead.
|
|
10522
10531
|
- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.
|
|
10523
10532
|
- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader
|
|
10524
|
-
- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-
|
|
10533
|
+
- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc`;
|
|
10525
10534
|
Object.defineProperty(app.config, "compilerOptions", {
|
|
10526
10535
|
get() {
|
|
10527
10536
|
warn(msg);
|