vue 3.5.5 → 3.5.6
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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +37 -35
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +32 -31
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +37 -35
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +32 -31
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.
|
|
2
|
+
* vue v3.5.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -532,7 +532,7 @@ class ReactiveEffect {
|
|
|
532
532
|
/**
|
|
533
533
|
* @internal
|
|
534
534
|
*/
|
|
535
|
-
this.
|
|
535
|
+
this.next = void 0;
|
|
536
536
|
/**
|
|
537
537
|
* @internal
|
|
538
538
|
*/
|
|
@@ -562,9 +562,7 @@ class ReactiveEffect {
|
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
564
|
if (!(this.flags & 8)) {
|
|
565
|
-
this
|
|
566
|
-
this.nextEffect = batchedEffect;
|
|
567
|
-
batchedEffect = this;
|
|
565
|
+
batch(this);
|
|
568
566
|
}
|
|
569
567
|
}
|
|
570
568
|
run() {
|
|
@@ -625,7 +623,12 @@ class ReactiveEffect {
|
|
|
625
623
|
}
|
|
626
624
|
}
|
|
627
625
|
let batchDepth = 0;
|
|
628
|
-
let
|
|
626
|
+
let batchedSub;
|
|
627
|
+
function batch(sub) {
|
|
628
|
+
sub.flags |= 8;
|
|
629
|
+
sub.next = batchedSub;
|
|
630
|
+
batchedSub = sub;
|
|
631
|
+
}
|
|
629
632
|
function startBatch() {
|
|
630
633
|
batchDepth++;
|
|
631
634
|
}
|
|
@@ -634,15 +637,16 @@ function endBatch() {
|
|
|
634
637
|
return;
|
|
635
638
|
}
|
|
636
639
|
let error;
|
|
637
|
-
while (
|
|
638
|
-
let e =
|
|
639
|
-
|
|
640
|
+
while (batchedSub) {
|
|
641
|
+
let e = batchedSub;
|
|
642
|
+
batchedSub = void 0;
|
|
640
643
|
while (e) {
|
|
641
|
-
const next = e.
|
|
642
|
-
e.
|
|
644
|
+
const next = e.next;
|
|
645
|
+
e.next = void 0;
|
|
643
646
|
e.flags &= ~8;
|
|
644
647
|
if (e.flags & 1) {
|
|
645
648
|
try {
|
|
649
|
+
;
|
|
646
650
|
e.trigger();
|
|
647
651
|
} catch (err) {
|
|
648
652
|
if (!error) error = err;
|
|
@@ -682,7 +686,7 @@ function cleanupDeps(sub) {
|
|
|
682
686
|
}
|
|
683
687
|
function isDirty(sub) {
|
|
684
688
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
685
|
-
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
|
|
689
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
686
690
|
return true;
|
|
687
691
|
}
|
|
688
692
|
}
|
|
@@ -702,7 +706,7 @@ function refreshComputed(computed) {
|
|
|
702
706
|
computed.globalVersion = globalVersion;
|
|
703
707
|
const dep = computed.dep;
|
|
704
708
|
computed.flags |= 2;
|
|
705
|
-
if (dep.version > 0 && !computed.isSSR && !isDirty(computed)) {
|
|
709
|
+
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
|
706
710
|
computed.flags &= ~2;
|
|
707
711
|
return;
|
|
708
712
|
}
|
|
@@ -897,7 +901,10 @@ class Dep {
|
|
|
897
901
|
}
|
|
898
902
|
}
|
|
899
903
|
for (let link = this.subs; link; link = link.prevSub) {
|
|
900
|
-
link.sub.notify()
|
|
904
|
+
if (link.sub.notify()) {
|
|
905
|
+
;
|
|
906
|
+
link.sub.dep.notify();
|
|
907
|
+
}
|
|
901
908
|
}
|
|
902
909
|
} finally {
|
|
903
910
|
endBatch();
|
|
@@ -1966,8 +1973,10 @@ class ComputedRefImpl {
|
|
|
1966
1973
|
*/
|
|
1967
1974
|
notify() {
|
|
1968
1975
|
this.flags |= 16;
|
|
1969
|
-
if (
|
|
1970
|
-
|
|
1976
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1977
|
+
activeSub !== this) {
|
|
1978
|
+
batch(this);
|
|
1979
|
+
return true;
|
|
1971
1980
|
}
|
|
1972
1981
|
}
|
|
1973
1982
|
get value() {
|
|
@@ -2115,20 +2124,12 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2115
2124
|
remove(scope.effects, effect);
|
|
2116
2125
|
}
|
|
2117
2126
|
};
|
|
2118
|
-
if (once) {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
};
|
|
2125
|
-
} else {
|
|
2126
|
-
const _getter = getter;
|
|
2127
|
-
getter = () => {
|
|
2128
|
-
_getter();
|
|
2129
|
-
watchHandle();
|
|
2130
|
-
};
|
|
2131
|
-
}
|
|
2127
|
+
if (once && cb) {
|
|
2128
|
+
const _cb = cb;
|
|
2129
|
+
cb = (...args) => {
|
|
2130
|
+
_cb(...args);
|
|
2131
|
+
watchHandle();
|
|
2132
|
+
};
|
|
2132
2133
|
}
|
|
2133
2134
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
2134
2135
|
const job = (immediateFirstRun) => {
|
|
@@ -8273,11 +8274,12 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
|
8273
8274
|
} else if (!cb || immediate) {
|
|
8274
8275
|
baseWatchOptions.once = true;
|
|
8275
8276
|
} else {
|
|
8276
|
-
|
|
8277
|
-
stop: NOOP,
|
|
8278
|
-
resume: NOOP,
|
|
8279
|
-
pause: NOOP
|
|
8277
|
+
const watchStopHandle = () => {
|
|
8280
8278
|
};
|
|
8279
|
+
watchStopHandle.stop = NOOP;
|
|
8280
|
+
watchStopHandle.resume = NOOP;
|
|
8281
|
+
watchStopHandle.pause = NOOP;
|
|
8282
|
+
return watchStopHandle;
|
|
8281
8283
|
}
|
|
8282
8284
|
}
|
|
8283
8285
|
const instance = currentInstance;
|
|
@@ -10462,7 +10464,7 @@ function isMemoSame(cached, memo) {
|
|
|
10462
10464
|
return true;
|
|
10463
10465
|
}
|
|
10464
10466
|
|
|
10465
|
-
const version = "3.5.
|
|
10467
|
+
const version = "3.5.6";
|
|
10466
10468
|
const warn = warn$1 ;
|
|
10467
10469
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10468
10470
|
const devtools = devtools$1 ;
|