cairnq 0.3.0 → 0.4.0
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/store/sqlite.js +1 -1
- package/package.json +5 -5
- package/src/store/sqlite.ts +1 -1
package/dist/store/sqlite.js
CHANGED
|
@@ -14,7 +14,7 @@ const BUSY_RETRY_MAX_DELAY_MS = 50;
|
|
|
14
14
|
* Bounds how long the planner can work from a stale table shape; a minute is
|
|
15
15
|
* arbitrary but small next to the days a worker holds its connection. It does not
|
|
16
16
|
* set how often an ANALYZE actually runs — SQLite decides that itself, and only
|
|
17
|
-
*
|
|
17
|
+
* once the table has diverged from its statistics by 10x, so a shorter interval
|
|
18
18
|
* costs more no-ops (a few microseconds each) rather than more analyzing.
|
|
19
19
|
*/
|
|
20
20
|
const STATS_REFRESH_INTERVAL_MS = 60_000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cairnq",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "SQLite-first, cross-language, storage-centered durable task runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jannchie <jannchie@gmail.com>",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"files": ["dist", "src"],
|
|
34
|
-
"engines": { "node": ">=
|
|
34
|
+
"engines": { "node": ">=22" },
|
|
35
35
|
"scripts": {
|
|
36
36
|
"bench": "tsx bench/run.ts",
|
|
37
37
|
"build": "tsc -p tsconfig.json",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"better-sqlite3": "^
|
|
42
|
+
"better-sqlite3": "^13.0.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"pg": "^8.13.0"
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@types/pg": "^8.11.10",
|
|
56
56
|
"pg": "^8.13.0",
|
|
57
57
|
"tsx": "^4.19.0",
|
|
58
|
-
"typescript": "^
|
|
59
|
-
"vitest": "^
|
|
58
|
+
"typescript": "^7.0.2",
|
|
59
|
+
"vitest": "^4.1.10"
|
|
60
60
|
},
|
|
61
61
|
"pnpm": {
|
|
62
62
|
"onlyBuiltDependencies": ["better-sqlite3", "esbuild"]
|
package/src/store/sqlite.ts
CHANGED
|
@@ -28,7 +28,7 @@ const BUSY_RETRY_MAX_DELAY_MS = 50;
|
|
|
28
28
|
* Bounds how long the planner can work from a stale table shape; a minute is
|
|
29
29
|
* arbitrary but small next to the days a worker holds its connection. It does not
|
|
30
30
|
* set how often an ANALYZE actually runs — SQLite decides that itself, and only
|
|
31
|
-
*
|
|
31
|
+
* once the table has diverged from its statistics by 10x, so a shorter interval
|
|
32
32
|
* costs more no-ops (a few microseconds each) rather than more analyzing.
|
|
33
33
|
*/
|
|
34
34
|
const STATS_REFRESH_INTERVAL_MS = 60_000;
|