@vue/compat 3.2.12 → 3.2.13
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 +69 -114
- package/dist/vue.cjs.prod.js +66 -112
- package/dist/vue.esm-browser.js +41 -32
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +41 -32
- package/dist/vue.global.js +41 -32
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +10 -9
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +10 -9
- package/dist/vue.runtime.global.js +10 -9
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -1410,7 +1410,8 @@ class ComputedRefImpl {
|
|
|
1410
1410
|
function computed(getterOrOptions, debugOptions) {
|
|
1411
1411
|
let getter;
|
|
1412
1412
|
let setter;
|
|
1413
|
-
|
|
1413
|
+
const onlyGetter = isFunction(getterOrOptions);
|
|
1414
|
+
if (onlyGetter) {
|
|
1414
1415
|
getter = getterOrOptions;
|
|
1415
1416
|
setter = () => {
|
|
1416
1417
|
console.warn('Write operation failed: computed value is readonly');
|
|
@@ -1421,7 +1422,7 @@ function computed(getterOrOptions, debugOptions) {
|
|
|
1421
1422
|
getter = getterOrOptions.get;
|
|
1422
1423
|
setter = getterOrOptions.set;
|
|
1423
1424
|
}
|
|
1424
|
-
const cRef = new ComputedRefImpl(getter, setter,
|
|
1425
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter);
|
|
1425
1426
|
if (debugOptions) {
|
|
1426
1427
|
cRef.effect.onTrack = debugOptions.onTrack;
|
|
1427
1428
|
cRef.effect.onTrigger = debugOptions.onTrigger;
|
|
@@ -1876,7 +1877,7 @@ const deprecationData = {
|
|
|
1876
1877
|
["PRIVATE_APIS" /* PRIVATE_APIS */]: {
|
|
1877
1878
|
message: name => `"${name}" is a Vue 2 private API that no longer exists in Vue 3. ` +
|
|
1878
1879
|
`If you are seeing this warning only due to a dependency, you can ` +
|
|
1879
|
-
`suppress this warning via { PRIVATE_APIS: '
|
|
1880
|
+
`suppress this warning via { PRIVATE_APIS: 'suppress-warning' }.`
|
|
1880
1881
|
}
|
|
1881
1882
|
};
|
|
1882
1883
|
const instanceWarned = Object.create(null);
|
|
@@ -5197,7 +5198,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
5197
5198
|
return vm;
|
|
5198
5199
|
}
|
|
5199
5200
|
}
|
|
5200
|
-
Vue.version = "3.2.
|
|
5201
|
+
Vue.version = "3.2.13";
|
|
5201
5202
|
Vue.config = singletonApp.config;
|
|
5202
5203
|
Vue.use = (p, ...options) => {
|
|
5203
5204
|
if (p && isFunction(p.install)) {
|
|
@@ -5728,7 +5729,7 @@ function createAppAPI(render, hydrate) {
|
|
|
5728
5729
|
app._instance = vnode.component;
|
|
5729
5730
|
devtoolsInitApp(app, version);
|
|
5730
5731
|
}
|
|
5731
|
-
return vnode.component.proxy;
|
|
5732
|
+
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
5732
5733
|
}
|
|
5733
5734
|
else {
|
|
5734
5735
|
warn$1(`App has already been mounted.\n` +
|
|
@@ -5937,14 +5938,14 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5937
5938
|
for (const key in props) {
|
|
5938
5939
|
if ((forcePatchValue && key.endsWith('value')) ||
|
|
5939
5940
|
(isOn(key) && !isReservedProp(key))) {
|
|
5940
|
-
patchProp(el, key, null, props[key]);
|
|
5941
|
+
patchProp(el, key, null, props[key], false, undefined, parentComponent);
|
|
5941
5942
|
}
|
|
5942
5943
|
}
|
|
5943
5944
|
}
|
|
5944
5945
|
else if (props.onClick) {
|
|
5945
5946
|
// Fast path for click listeners (which is most often) to avoid
|
|
5946
5947
|
// iterating through props.
|
|
5947
|
-
patchProp(el, 'onClick', null, props.onClick);
|
|
5948
|
+
patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);
|
|
5948
5949
|
}
|
|
5949
5950
|
}
|
|
5950
5951
|
// vnode / directive hooks
|
|
@@ -10350,7 +10351,7 @@ function createPathGetter(ctx, path) {
|
|
|
10350
10351
|
return cur;
|
|
10351
10352
|
};
|
|
10352
10353
|
}
|
|
10353
|
-
function traverse(value, seen
|
|
10354
|
+
function traverse(value, seen) {
|
|
10354
10355
|
if (!isObject(value) || value["__v_skip" /* SKIP */]) {
|
|
10355
10356
|
return value;
|
|
10356
10357
|
}
|
|
@@ -10766,7 +10767,7 @@ function isMemoSame(cached, memo) {
|
|
|
10766
10767
|
}
|
|
10767
10768
|
|
|
10768
10769
|
// Core API ------------------------------------------------------------------
|
|
10769
|
-
const version = "3.2.
|
|
10770
|
+
const version = "3.2.13";
|
|
10770
10771
|
/**
|
|
10771
10772
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
10772
10773
|
* @internal
|