@vue/runtime-core 3.5.9 → 3.5.11
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.
|
|
2
|
+
* @vue/runtime-core v3.5.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -273,10 +273,8 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
let isFlushing = false;
|
|
277
|
-
let isFlushPending = false;
|
|
278
276
|
const queue = [];
|
|
279
|
-
let flushIndex =
|
|
277
|
+
let flushIndex = -1;
|
|
280
278
|
const pendingPostFlushCbs = [];
|
|
281
279
|
let activePostFlushCbs = null;
|
|
282
280
|
let postFlushIndex = 0;
|
|
@@ -288,7 +286,7 @@ function nextTick(fn) {
|
|
|
288
286
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
289
287
|
}
|
|
290
288
|
function findInsertionIndex(id) {
|
|
291
|
-
let start =
|
|
289
|
+
let start = flushIndex + 1;
|
|
292
290
|
let end = queue.length;
|
|
293
291
|
while (start < end) {
|
|
294
292
|
const middle = start + end >>> 1;
|
|
@@ -317,8 +315,7 @@ function queueJob(job) {
|
|
|
317
315
|
}
|
|
318
316
|
}
|
|
319
317
|
function queueFlush() {
|
|
320
|
-
if (!
|
|
321
|
-
isFlushPending = true;
|
|
318
|
+
if (!currentFlushPromise) {
|
|
322
319
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
323
320
|
}
|
|
324
321
|
}
|
|
@@ -335,7 +332,7 @@ function queuePostFlushCb(cb) {
|
|
|
335
332
|
}
|
|
336
333
|
queueFlush();
|
|
337
334
|
}
|
|
338
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
335
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
339
336
|
{
|
|
340
337
|
seen = seen || /* @__PURE__ */ new Map();
|
|
341
338
|
}
|
|
@@ -391,8 +388,6 @@ function flushPostFlushCbs(seen) {
|
|
|
391
388
|
}
|
|
392
389
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
393
390
|
function flushJobs(seen) {
|
|
394
|
-
isFlushPending = false;
|
|
395
|
-
isFlushing = true;
|
|
396
391
|
{
|
|
397
392
|
seen = seen || /* @__PURE__ */ new Map();
|
|
398
393
|
}
|
|
@@ -424,10 +419,9 @@ function flushJobs(seen) {
|
|
|
424
419
|
job.flags &= ~1;
|
|
425
420
|
}
|
|
426
421
|
}
|
|
427
|
-
flushIndex =
|
|
422
|
+
flushIndex = -1;
|
|
428
423
|
queue.length = 0;
|
|
429
424
|
flushPostFlushCbs(seen);
|
|
430
|
-
isFlushing = false;
|
|
431
425
|
currentFlushPromise = null;
|
|
432
426
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
433
427
|
flushJobs(seen);
|
|
@@ -8261,7 +8255,7 @@ function isMemoSame(cached, memo) {
|
|
|
8261
8255
|
return true;
|
|
8262
8256
|
}
|
|
8263
8257
|
|
|
8264
|
-
const version = "3.5.
|
|
8258
|
+
const version = "3.5.11";
|
|
8265
8259
|
const warn = warn$1 ;
|
|
8266
8260
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8267
8261
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -145,10 +145,8 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
let isFlushing = false;
|
|
149
|
-
let isFlushPending = false;
|
|
150
148
|
const queue = [];
|
|
151
|
-
let flushIndex =
|
|
149
|
+
let flushIndex = -1;
|
|
152
150
|
const pendingPostFlushCbs = [];
|
|
153
151
|
let activePostFlushCbs = null;
|
|
154
152
|
let postFlushIndex = 0;
|
|
@@ -159,7 +157,7 @@ function nextTick(fn) {
|
|
|
159
157
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
160
158
|
}
|
|
161
159
|
function findInsertionIndex(id) {
|
|
162
|
-
let start =
|
|
160
|
+
let start = flushIndex + 1;
|
|
163
161
|
let end = queue.length;
|
|
164
162
|
while (start < end) {
|
|
165
163
|
const middle = start + end >>> 1;
|
|
@@ -188,8 +186,7 @@ function queueJob(job) {
|
|
|
188
186
|
}
|
|
189
187
|
}
|
|
190
188
|
function queueFlush() {
|
|
191
|
-
if (!
|
|
192
|
-
isFlushPending = true;
|
|
189
|
+
if (!currentFlushPromise) {
|
|
193
190
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
194
191
|
}
|
|
195
192
|
}
|
|
@@ -206,7 +203,7 @@ function queuePostFlushCb(cb) {
|
|
|
206
203
|
}
|
|
207
204
|
queueFlush();
|
|
208
205
|
}
|
|
209
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
206
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
210
207
|
for (; i < queue.length; i++) {
|
|
211
208
|
const cb = queue[i];
|
|
212
209
|
if (cb && cb.flags & 2) {
|
|
@@ -250,8 +247,6 @@ function flushPostFlushCbs(seen) {
|
|
|
250
247
|
}
|
|
251
248
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
252
249
|
function flushJobs(seen) {
|
|
253
|
-
isFlushPending = false;
|
|
254
|
-
isFlushing = true;
|
|
255
250
|
try {
|
|
256
251
|
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
257
252
|
const job = queue[flushIndex];
|
|
@@ -277,10 +272,9 @@ function flushJobs(seen) {
|
|
|
277
272
|
job.flags &= ~1;
|
|
278
273
|
}
|
|
279
274
|
}
|
|
280
|
-
flushIndex =
|
|
275
|
+
flushIndex = -1;
|
|
281
276
|
queue.length = 0;
|
|
282
277
|
flushPostFlushCbs();
|
|
283
|
-
isFlushing = false;
|
|
284
278
|
currentFlushPromise = null;
|
|
285
279
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
286
280
|
flushJobs();
|
|
@@ -6430,7 +6424,7 @@ function isMemoSame(cached, memo) {
|
|
|
6430
6424
|
return true;
|
|
6431
6425
|
}
|
|
6432
6426
|
|
|
6433
|
-
const version = "3.5.
|
|
6427
|
+
const version = "3.5.11";
|
|
6434
6428
|
const warn$1 = shared.NOOP;
|
|
6435
6429
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6436
6430
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
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
|
-
import { IfAny, Prettify, LooseRequired, UnionToIntersection, OverloadParameters } from '@vue/shared';
|
|
3
|
+
import { IfAny, Prettify, LooseRequired, UnionToIntersection, OverloadParameters, IsKeyValues } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
export declare const computed: typeof computed$1;
|
|
@@ -978,7 +978,7 @@ export declare function hasInjectionContext(): boolean;
|
|
|
978
978
|
|
|
979
979
|
export type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
980
980
|
type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
|
|
981
|
-
export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP
|
|
981
|
+
export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
|
|
982
982
|
export type DefineSetupFnComponent<P extends Record<string, any>, E extends EmitsOptions = {}, S extends SlotsType = SlotsType, Props = P & EmitsToProps<E>, PP = PublicProps> = new (props: Props & PP) => CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, E, PP, {}, false, {}, S>;
|
|
983
983
|
type ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> & Readonly<EmitsToProps<Emits>>;
|
|
984
984
|
export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
|
|
@@ -991,9 +991,9 @@ export declare function defineComponent<Props extends Record<string, any>, E ext
|
|
|
991
991
|
emits?: E | EE[];
|
|
992
992
|
slots?: S;
|
|
993
993
|
}): DefineSetupFnComponent<Props, E, S>;
|
|
994
|
-
export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = {} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions, InferredProps =
|
|
994
|
+
export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = {} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions, InferredProps = IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
|
|
995
995
|
[key in RuntimePropsKeys]?: any;
|
|
996
|
-
}
|
|
996
|
+
}, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any>(options: {
|
|
997
997
|
props?: (RuntimePropsOptions & ThisType<void>) | RuntimePropsKeys[];
|
|
998
998
|
/**
|
|
999
999
|
* @private for language-tools use only
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -276,10 +276,8 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
let isFlushing = false;
|
|
280
|
-
let isFlushPending = false;
|
|
281
279
|
const queue = [];
|
|
282
|
-
let flushIndex =
|
|
280
|
+
let flushIndex = -1;
|
|
283
281
|
const pendingPostFlushCbs = [];
|
|
284
282
|
let activePostFlushCbs = null;
|
|
285
283
|
let postFlushIndex = 0;
|
|
@@ -291,7 +289,7 @@ function nextTick(fn) {
|
|
|
291
289
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
292
290
|
}
|
|
293
291
|
function findInsertionIndex(id) {
|
|
294
|
-
let start =
|
|
292
|
+
let start = flushIndex + 1;
|
|
295
293
|
let end = queue.length;
|
|
296
294
|
while (start < end) {
|
|
297
295
|
const middle = start + end >>> 1;
|
|
@@ -320,8 +318,7 @@ function queueJob(job) {
|
|
|
320
318
|
}
|
|
321
319
|
}
|
|
322
320
|
function queueFlush() {
|
|
323
|
-
if (!
|
|
324
|
-
isFlushPending = true;
|
|
321
|
+
if (!currentFlushPromise) {
|
|
325
322
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
326
323
|
}
|
|
327
324
|
}
|
|
@@ -338,7 +335,7 @@ function queuePostFlushCb(cb) {
|
|
|
338
335
|
}
|
|
339
336
|
queueFlush();
|
|
340
337
|
}
|
|
341
|
-
function flushPreFlushCbs(instance, seen, i =
|
|
338
|
+
function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
|
|
342
339
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
343
340
|
seen = seen || /* @__PURE__ */ new Map();
|
|
344
341
|
}
|
|
@@ -394,8 +391,6 @@ function flushPostFlushCbs(seen) {
|
|
|
394
391
|
}
|
|
395
392
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
396
393
|
function flushJobs(seen) {
|
|
397
|
-
isFlushPending = false;
|
|
398
|
-
isFlushing = true;
|
|
399
394
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
400
395
|
seen = seen || /* @__PURE__ */ new Map();
|
|
401
396
|
}
|
|
@@ -427,10 +422,9 @@ function flushJobs(seen) {
|
|
|
427
422
|
job.flags &= ~1;
|
|
428
423
|
}
|
|
429
424
|
}
|
|
430
|
-
flushIndex =
|
|
425
|
+
flushIndex = -1;
|
|
431
426
|
queue.length = 0;
|
|
432
427
|
flushPostFlushCbs(seen);
|
|
433
|
-
isFlushing = false;
|
|
434
428
|
currentFlushPromise = null;
|
|
435
429
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
436
430
|
flushJobs(seen);
|
|
@@ -8332,7 +8326,7 @@ function isMemoSame(cached, memo) {
|
|
|
8332
8326
|
return true;
|
|
8333
8327
|
}
|
|
8334
8328
|
|
|
8335
|
-
const version = "3.5.
|
|
8329
|
+
const version = "3.5.11";
|
|
8336
8330
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8337
8331
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8338
8332
|
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.
|
|
3
|
+
"version": "3.5.11",
|
|
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/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.11",
|
|
50
|
+
"@vue/reactivity": "3.5.11"
|
|
51
51
|
}
|
|
52
52
|
}
|