@vue/runtime-core 3.5.0-beta.3 → 3.5.0-rc.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/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.0-
|
|
2
|
+
* @vue/runtime-core v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1420,7 +1420,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
1420
1420
|
// @__NO_SIDE_EFFECTS__
|
|
1421
1421
|
function defineComponent(options, extraOptions) {
|
|
1422
1422
|
return shared.isFunction(options) ? (
|
|
1423
|
-
// #
|
|
1423
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
1424
1424
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1425
1425
|
/* @__PURE__ */ (() => shared.extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
1426
1426
|
) : options;
|
|
@@ -2547,6 +2547,7 @@ const KeepAliveImpl = {
|
|
|
2547
2547
|
);
|
|
2548
2548
|
const { include, exclude, max } = props;
|
|
2549
2549
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
2550
|
+
vnode.shapeFlag &= ~256;
|
|
2550
2551
|
current = vnode;
|
|
2551
2552
|
return rawVNode;
|
|
2552
2553
|
}
|
|
@@ -8201,7 +8202,7 @@ function isMemoSame(cached, memo) {
|
|
|
8201
8202
|
return true;
|
|
8202
8203
|
}
|
|
8203
8204
|
|
|
8204
|
-
const version = "3.5.0-
|
|
8205
|
+
const version = "3.5.0-rc.1";
|
|
8205
8206
|
const warn = warn$1 ;
|
|
8206
8207
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8207
8208
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.0-
|
|
2
|
+
* @vue/runtime-core v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -988,7 +988,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
988
988
|
// @__NO_SIDE_EFFECTS__
|
|
989
989
|
function defineComponent(options, extraOptions) {
|
|
990
990
|
return shared.isFunction(options) ? (
|
|
991
|
-
// #
|
|
991
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
992
992
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
993
993
|
/* @__PURE__ */ (() => shared.extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
994
994
|
) : options;
|
|
@@ -1916,6 +1916,7 @@ const KeepAliveImpl = {
|
|
|
1916
1916
|
);
|
|
1917
1917
|
const { include, exclude, max } = props;
|
|
1918
1918
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
1919
|
+
vnode.shapeFlag &= ~256;
|
|
1919
1920
|
current = vnode;
|
|
1920
1921
|
return rawVNode;
|
|
1921
1922
|
}
|
|
@@ -6375,7 +6376,7 @@ function isMemoSame(cached, memo) {
|
|
|
6375
6376
|
return true;
|
|
6376
6377
|
}
|
|
6377
6378
|
|
|
6378
|
-
const version = "3.5.0-
|
|
6379
|
+
const version = "3.5.0-rc.1";
|
|
6379
6380
|
const warn$1 = shared.NOOP;
|
|
6380
6381
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6381
6382
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as computed$1, Ref, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions,
|
|
2
|
-
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WatchHandle, WatchStopHandle, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
1
|
+
import { computed as computed$1, Ref, OnCleanup, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, WatchCallback, ReactiveEffect, DebuggerOptions, WatchEffect, WatchHandle, WatchSource, ReactiveMarker, ShallowRef, WatchErrorCodes, reactive } from '@vue/reactivity';
|
|
2
|
+
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchEffect, WatchHandle, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
3
|
import { IfAny, Prettify, Awaited, LooseRequired, UnionToIntersection, OverloadParameters } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
@@ -1334,7 +1334,7 @@ export interface ComponentCustomProps {
|
|
|
1334
1334
|
* }
|
|
1335
1335
|
* ```
|
|
1336
1336
|
*/
|
|
1337
|
-
export interface GlobalDirectives
|
|
1337
|
+
export interface GlobalDirectives {
|
|
1338
1338
|
}
|
|
1339
1339
|
/**
|
|
1340
1340
|
* For globally defined Components
|
|
@@ -1351,7 +1351,7 @@ export interface GlobalDirectives extends Record<string, Directive> {
|
|
|
1351
1351
|
* }
|
|
1352
1352
|
* ```
|
|
1353
1353
|
*/
|
|
1354
|
-
export interface GlobalComponents
|
|
1354
|
+
export interface GlobalComponents {
|
|
1355
1355
|
Teleport: DefineComponent<TeleportProps>;
|
|
1356
1356
|
Suspense: DefineComponent<SuspenseProps>;
|
|
1357
1357
|
KeepAlive: DefineComponent<KeepAliveProps>;
|
|
@@ -1463,23 +1463,19 @@ export declare const isRuntimeOnly: () => boolean;
|
|
|
1463
1463
|
export interface ComponentCustomElementInterface {
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
|
-
export type WatchEffect = (onCleanup: OnCleanup) => void;
|
|
1467
|
-
export type WatchSource<T = any> = Ref<T, any> | ComputedRef<T> | (() => T);
|
|
1468
|
-
export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
1469
1466
|
type MaybeUndefined<T, I> = I extends true ? T | undefined : T;
|
|
1470
1467
|
type MapSources<T, Immediate> = {
|
|
1471
1468
|
[K in keyof T]: T[K] extends WatchSource<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never;
|
|
1472
1469
|
};
|
|
1473
|
-
|
|
1474
|
-
export interface WatchOptionsBase extends DebuggerOptions {
|
|
1470
|
+
export interface WatchEffectOptions extends DebuggerOptions {
|
|
1475
1471
|
flush?: 'pre' | 'post' | 'sync';
|
|
1476
1472
|
}
|
|
1477
|
-
export interface WatchOptions<Immediate = boolean> extends
|
|
1473
|
+
export interface WatchOptions<Immediate = boolean> extends WatchEffectOptions {
|
|
1478
1474
|
immediate?: Immediate;
|
|
1479
1475
|
deep?: boolean | number;
|
|
1480
1476
|
once?: boolean;
|
|
1481
1477
|
}
|
|
1482
|
-
export declare function watchEffect(effect: WatchEffect, options?:
|
|
1478
|
+
export declare function watchEffect(effect: WatchEffect, options?: WatchEffectOptions): WatchHandle;
|
|
1483
1479
|
export declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchHandle;
|
|
1484
1480
|
export declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchHandle;
|
|
1485
1481
|
export type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
@@ -1798,7 +1794,7 @@ declare module '@vue/reactivity' {
|
|
|
1798
1794
|
|
|
1799
1795
|
export declare const DeprecationTypes: typeof DeprecationTypes$1;
|
|
1800
1796
|
|
|
1801
|
-
export { createBaseVNode as createElementVNode, };
|
|
1797
|
+
export { type WatchEffectOptions as WatchOptionsBase, createBaseVNode as createElementVNode, };
|
|
1802
1798
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1803
1799
|
// build.
|
|
1804
1800
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.0-
|
|
2
|
+
* @vue/runtime-core v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1424,7 +1424,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
1424
1424
|
// @__NO_SIDE_EFFECTS__
|
|
1425
1425
|
function defineComponent(options, extraOptions) {
|
|
1426
1426
|
return isFunction(options) ? (
|
|
1427
|
-
// #
|
|
1427
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
1428
1428
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1429
1429
|
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
1430
1430
|
) : options;
|
|
@@ -2562,6 +2562,7 @@ const KeepAliveImpl = {
|
|
|
2562
2562
|
);
|
|
2563
2563
|
const { include, exclude, max } = props;
|
|
2564
2564
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
2565
|
+
vnode.shapeFlag &= ~256;
|
|
2565
2566
|
current = vnode;
|
|
2566
2567
|
return rawVNode;
|
|
2567
2568
|
}
|
|
@@ -8272,7 +8273,7 @@ function isMemoSame(cached, memo) {
|
|
|
8272
8273
|
return true;
|
|
8273
8274
|
}
|
|
8274
8275
|
|
|
8275
|
-
const version = "3.5.0-
|
|
8276
|
+
const version = "3.5.0-rc.1";
|
|
8276
8277
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8277
8278
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8278
8279
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.0-
|
|
3
|
+
"version": "3.5.0-rc.1",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/
|
|
50
|
-
"@vue/
|
|
49
|
+
"@vue/reactivity": "3.5.0-rc.1",
|
|
50
|
+
"@vue/shared": "3.5.0-rc.1"
|
|
51
51
|
}
|
|
52
52
|
}
|