@vue/runtime-core 3.3.9 → 3.3.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
|
@@ -290,13 +290,16 @@ function queuePostFlushCb(cb) {
|
|
|
290
290
|
}
|
|
291
291
|
queueFlush();
|
|
292
292
|
}
|
|
293
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
293
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
294
294
|
{
|
|
295
295
|
seen = seen || /* @__PURE__ */ new Map();
|
|
296
296
|
}
|
|
297
297
|
for (; i < queue.length; i++) {
|
|
298
298
|
const cb = queue[i];
|
|
299
299
|
if (cb && cb.pre) {
|
|
300
|
+
if (instance && cb.id !== instance.uid) {
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
300
303
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
301
304
|
continue;
|
|
302
305
|
}
|
|
@@ -1436,7 +1439,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1436
1439
|
if (delayEnter) {
|
|
1437
1440
|
activeBranch.transition.afterLeave = () => {
|
|
1438
1441
|
if (pendingId === suspense.pendingId) {
|
|
1439
|
-
move(
|
|
1442
|
+
move(
|
|
1443
|
+
pendingBranch,
|
|
1444
|
+
container2,
|
|
1445
|
+
next(activeBranch),
|
|
1446
|
+
0
|
|
1447
|
+
);
|
|
1440
1448
|
queuePostFlushCb(effects);
|
|
1441
1449
|
}
|
|
1442
1450
|
};
|
|
@@ -5865,7 +5873,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5865
5873
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
5866
5874
|
updateSlots(instance, nextVNode.children, optimized);
|
|
5867
5875
|
reactivity.pauseTracking();
|
|
5868
|
-
flushPreFlushCbs();
|
|
5876
|
+
flushPreFlushCbs(instance);
|
|
5869
5877
|
reactivity.resetTracking();
|
|
5870
5878
|
};
|
|
5871
5879
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -7558,9 +7566,9 @@ function initCustomFormatter() {
|
|
|
7558
7566
|
return;
|
|
7559
7567
|
}
|
|
7560
7568
|
const vueStyle = { style: "color:#3ba776" };
|
|
7561
|
-
const numberStyle = { style: "color:#
|
|
7562
|
-
const stringStyle = { style: "color:#
|
|
7563
|
-
const keywordStyle = { style: "color:#
|
|
7569
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
7570
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
7571
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
7564
7572
|
const formatter = {
|
|
7565
7573
|
header(obj) {
|
|
7566
7574
|
if (!shared.isObject(obj)) {
|
|
@@ -7754,7 +7762,7 @@ function isMemoSame(cached, memo) {
|
|
|
7754
7762
|
return true;
|
|
7755
7763
|
}
|
|
7756
7764
|
|
|
7757
|
-
const version = "3.3.
|
|
7765
|
+
const version = "3.3.11";
|
|
7758
7766
|
const _ssrUtils = {
|
|
7759
7767
|
createComponentInstance,
|
|
7760
7768
|
setupComponent,
|
|
@@ -139,10 +139,13 @@ function queuePostFlushCb(cb) {
|
|
|
139
139
|
}
|
|
140
140
|
queueFlush();
|
|
141
141
|
}
|
|
142
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
142
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
143
143
|
for (; i < queue.length; i++) {
|
|
144
144
|
const cb = queue[i];
|
|
145
145
|
if (cb && cb.pre) {
|
|
146
|
+
if (instance && cb.id !== instance.uid) {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
146
149
|
queue.splice(i, 1);
|
|
147
150
|
i--;
|
|
148
151
|
cb();
|
|
@@ -923,7 +926,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
923
926
|
if (delayEnter) {
|
|
924
927
|
activeBranch.transition.afterLeave = () => {
|
|
925
928
|
if (pendingId === suspense.pendingId) {
|
|
926
|
-
move(
|
|
929
|
+
move(
|
|
930
|
+
pendingBranch,
|
|
931
|
+
container2,
|
|
932
|
+
next(activeBranch),
|
|
933
|
+
0
|
|
934
|
+
);
|
|
927
935
|
queuePostFlushCb(effects);
|
|
928
936
|
}
|
|
929
937
|
};
|
|
@@ -4594,7 +4602,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4594
4602
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
4595
4603
|
updateSlots(instance, nextVNode.children, optimized);
|
|
4596
4604
|
reactivity.pauseTracking();
|
|
4597
|
-
flushPreFlushCbs();
|
|
4605
|
+
flushPreFlushCbs(instance);
|
|
4598
4606
|
reactivity.resetTracking();
|
|
4599
4607
|
};
|
|
4600
4608
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -6086,7 +6094,7 @@ function isMemoSame(cached, memo) {
|
|
|
6086
6094
|
return true;
|
|
6087
6095
|
}
|
|
6088
6096
|
|
|
6089
|
-
const version = "3.3.
|
|
6097
|
+
const version = "3.3.11";
|
|
6090
6098
|
const _ssrUtils = {
|
|
6091
6099
|
createComponentInstance,
|
|
6092
6100
|
setupComponent,
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1039,7 +1039,7 @@ interface ComponentInternalOptions {
|
|
|
1039
1039
|
__name?: string;
|
|
1040
1040
|
}
|
|
1041
1041
|
export interface FunctionalComponent<P = {}, E extends EmitsOptions = {}, S extends Record<string, any> = any> extends ComponentInternalOptions {
|
|
1042
|
-
(props: P
|
|
1042
|
+
(props: P & EmitsToProps<E>, ctx: Omit<SetupContext<E, IfAny<S, {}, SlotsType<S>>>, 'expose'>): any;
|
|
1043
1043
|
props?: ComponentPropsOptions<P>;
|
|
1044
1044
|
emits?: E | (keyof E)[];
|
|
1045
1045
|
slots?: IfAny<S, Slots, SlotsType<S>>;
|
|
@@ -1186,9 +1186,9 @@ export declare function defineAsyncComponent<T extends Component = {
|
|
|
1186
1186
|
* foo?: string
|
|
1187
1187
|
* bar: number
|
|
1188
1188
|
* }>()
|
|
1189
|
+
* ```
|
|
1189
1190
|
*
|
|
1190
1191
|
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
|
|
1191
|
-
* ```
|
|
1192
1192
|
*
|
|
1193
1193
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
1194
1194
|
* output and should **not** be actually called at runtime.
|
|
@@ -1214,8 +1214,9 @@ type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends
|
|
|
1214
1214
|
* Example type-based declaration:
|
|
1215
1215
|
* ```ts
|
|
1216
1216
|
* const emit = defineEmits<{
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1217
|
+
* // <eventName>: <expected arguments>
|
|
1218
|
+
* change: []
|
|
1219
|
+
* update: [value: string] // named tuple syntax
|
|
1219
1220
|
* }>()
|
|
1220
1221
|
*
|
|
1221
1222
|
* emit('change')
|
|
@@ -294,13 +294,16 @@ function queuePostFlushCb(cb) {
|
|
|
294
294
|
}
|
|
295
295
|
queueFlush();
|
|
296
296
|
}
|
|
297
|
-
function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
297
|
+
function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
298
298
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
299
299
|
seen = seen || /* @__PURE__ */ new Map();
|
|
300
300
|
}
|
|
301
301
|
for (; i < queue.length; i++) {
|
|
302
302
|
const cb = queue[i];
|
|
303
303
|
if (cb && cb.pre) {
|
|
304
|
+
if (instance && cb.id !== instance.uid) {
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
304
307
|
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
305
308
|
continue;
|
|
306
309
|
}
|
|
@@ -1440,7 +1443,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1440
1443
|
if (delayEnter) {
|
|
1441
1444
|
activeBranch.transition.afterLeave = () => {
|
|
1442
1445
|
if (pendingId === suspense.pendingId) {
|
|
1443
|
-
move(
|
|
1446
|
+
move(
|
|
1447
|
+
pendingBranch,
|
|
1448
|
+
container2,
|
|
1449
|
+
next(activeBranch),
|
|
1450
|
+
0
|
|
1451
|
+
);
|
|
1444
1452
|
queuePostFlushCb(effects);
|
|
1445
1453
|
}
|
|
1446
1454
|
};
|
|
@@ -5909,7 +5917,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5909
5917
|
updateProps(instance, nextVNode.props, prevProps, optimized);
|
|
5910
5918
|
updateSlots(instance, nextVNode.children, optimized);
|
|
5911
5919
|
pauseTracking();
|
|
5912
|
-
flushPreFlushCbs();
|
|
5920
|
+
flushPreFlushCbs(instance);
|
|
5913
5921
|
resetTracking();
|
|
5914
5922
|
};
|
|
5915
5923
|
const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
|
|
@@ -7618,9 +7626,9 @@ function initCustomFormatter() {
|
|
|
7618
7626
|
return;
|
|
7619
7627
|
}
|
|
7620
7628
|
const vueStyle = { style: "color:#3ba776" };
|
|
7621
|
-
const numberStyle = { style: "color:#
|
|
7622
|
-
const stringStyle = { style: "color:#
|
|
7623
|
-
const keywordStyle = { style: "color:#
|
|
7629
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
7630
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
7631
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
7624
7632
|
const formatter = {
|
|
7625
7633
|
header(obj) {
|
|
7626
7634
|
if (!isObject(obj)) {
|
|
@@ -7814,7 +7822,7 @@ function isMemoSame(cached, memo) {
|
|
|
7814
7822
|
return true;
|
|
7815
7823
|
}
|
|
7816
7824
|
|
|
7817
|
-
const version = "3.3.
|
|
7825
|
+
const version = "3.3.11";
|
|
7818
7826
|
const _ssrUtils = {
|
|
7819
7827
|
createComponentInstance,
|
|
7820
7828
|
setupComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/
|
|
36
|
-
"@vue/
|
|
35
|
+
"@vue/reactivity": "3.3.11",
|
|
36
|
+
"@vue/shared": "3.3.11"
|
|
37
37
|
}
|
|
38
38
|
}
|