@reactive-vscode/reactivity 0.2.13 → 0.2.16
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/index.cjs +4 -10
- package/dist/index.js +4 -10
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1975,10 +1975,8 @@ var SchedulerJobFlags = /* @__PURE__ */ ((SchedulerJobFlags2) => {
|
|
|
1975
1975
|
SchedulerJobFlags2[SchedulerJobFlags2["DISPOSED"] = 8] = "DISPOSED";
|
|
1976
1976
|
return SchedulerJobFlags2;
|
|
1977
1977
|
})(SchedulerJobFlags || {});
|
|
1978
|
-
let isFlushing = false;
|
|
1979
|
-
let isFlushPending = false;
|
|
1980
1978
|
const queue = [];
|
|
1981
|
-
let flushIndex =
|
|
1979
|
+
let flushIndex = -1;
|
|
1982
1980
|
const pendingPostFlushCbs = [];
|
|
1983
1981
|
let activePostFlushCbs = null;
|
|
1984
1982
|
let postFlushIndex = 0;
|
|
@@ -1990,7 +1988,7 @@ function nextTick(fn) {
|
|
|
1990
1988
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
1991
1989
|
}
|
|
1992
1990
|
function findInsertionIndex(id) {
|
|
1993
|
-
let start =
|
|
1991
|
+
let start = flushIndex + 1;
|
|
1994
1992
|
let end = queue.length;
|
|
1995
1993
|
while (start < end) {
|
|
1996
1994
|
const middle = start + end >>> 1;
|
|
@@ -2019,8 +2017,7 @@ function queueJob(job) {
|
|
|
2019
2017
|
}
|
|
2020
2018
|
}
|
|
2021
2019
|
function queueFlush() {
|
|
2022
|
-
if (!
|
|
2023
|
-
isFlushPending = true;
|
|
2020
|
+
if (!currentFlushPromise) {
|
|
2024
2021
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
2025
2022
|
}
|
|
2026
2023
|
}
|
|
@@ -2055,8 +2052,6 @@ function flushPostFlushCbs(seen) {
|
|
|
2055
2052
|
}
|
|
2056
2053
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
2057
2054
|
function flushJobs(seen) {
|
|
2058
|
-
isFlushPending = false;
|
|
2059
|
-
isFlushing = true;
|
|
2060
2055
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2061
2056
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2062
2057
|
}
|
|
@@ -2088,10 +2083,9 @@ function flushJobs(seen) {
|
|
|
2088
2083
|
job.flags &= ~1;
|
|
2089
2084
|
}
|
|
2090
2085
|
}
|
|
2091
|
-
flushIndex =
|
|
2086
|
+
flushIndex = -1;
|
|
2092
2087
|
queue.length = 0;
|
|
2093
2088
|
flushPostFlushCbs(seen);
|
|
2094
|
-
isFlushing = false;
|
|
2095
2089
|
currentFlushPromise = null;
|
|
2096
2090
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
2097
2091
|
flushJobs(seen);
|
package/dist/index.js
CHANGED
|
@@ -1973,10 +1973,8 @@ var SchedulerJobFlags = /* @__PURE__ */ ((SchedulerJobFlags2) => {
|
|
|
1973
1973
|
SchedulerJobFlags2[SchedulerJobFlags2["DISPOSED"] = 8] = "DISPOSED";
|
|
1974
1974
|
return SchedulerJobFlags2;
|
|
1975
1975
|
})(SchedulerJobFlags || {});
|
|
1976
|
-
let isFlushing = false;
|
|
1977
|
-
let isFlushPending = false;
|
|
1978
1976
|
const queue = [];
|
|
1979
|
-
let flushIndex =
|
|
1977
|
+
let flushIndex = -1;
|
|
1980
1978
|
const pendingPostFlushCbs = [];
|
|
1981
1979
|
let activePostFlushCbs = null;
|
|
1982
1980
|
let postFlushIndex = 0;
|
|
@@ -1988,7 +1986,7 @@ function nextTick(fn) {
|
|
|
1988
1986
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
1989
1987
|
}
|
|
1990
1988
|
function findInsertionIndex(id) {
|
|
1991
|
-
let start =
|
|
1989
|
+
let start = flushIndex + 1;
|
|
1992
1990
|
let end = queue.length;
|
|
1993
1991
|
while (start < end) {
|
|
1994
1992
|
const middle = start + end >>> 1;
|
|
@@ -2017,8 +2015,7 @@ function queueJob(job) {
|
|
|
2017
2015
|
}
|
|
2018
2016
|
}
|
|
2019
2017
|
function queueFlush() {
|
|
2020
|
-
if (!
|
|
2021
|
-
isFlushPending = true;
|
|
2018
|
+
if (!currentFlushPromise) {
|
|
2022
2019
|
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
2023
2020
|
}
|
|
2024
2021
|
}
|
|
@@ -2053,8 +2050,6 @@ function flushPostFlushCbs(seen) {
|
|
|
2053
2050
|
}
|
|
2054
2051
|
const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
|
|
2055
2052
|
function flushJobs(seen) {
|
|
2056
|
-
isFlushPending = false;
|
|
2057
|
-
isFlushing = true;
|
|
2058
2053
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2059
2054
|
seen = seen || /* @__PURE__ */ new Map();
|
|
2060
2055
|
}
|
|
@@ -2086,10 +2081,9 @@ function flushJobs(seen) {
|
|
|
2086
2081
|
job.flags &= ~1;
|
|
2087
2082
|
}
|
|
2088
2083
|
}
|
|
2089
|
-
flushIndex =
|
|
2084
|
+
flushIndex = -1;
|
|
2090
2085
|
queue.length = 0;
|
|
2091
2086
|
flushPostFlushCbs(seen);
|
|
2092
|
-
isFlushing = false;
|
|
2093
2087
|
currentFlushPromise = null;
|
|
2094
2088
|
if (queue.length || pendingPostFlushCbs.length) {
|
|
2095
2089
|
flushJobs(seen);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactive-vscode/reactivity",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.16",
|
|
5
5
|
"description": "Full Vue Reactivity API without DOM",
|
|
6
6
|
"author": "_Kerman <kermanx@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@vue/reactivity": "^3.5.13",
|
|
34
34
|
"@vue/shared": "^3.5.13",
|
|
35
|
-
"typescript": "^5.
|
|
36
|
-
"vite": "^5.4.
|
|
37
|
-
"vite-plugin-dts": "^4.5.
|
|
35
|
+
"typescript": "^5.8.3",
|
|
36
|
+
"vite": "^5.4.19",
|
|
37
|
+
"vite-plugin-dts": "^4.5.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"typecheck": "tsc --noEmit",
|