@aigne/sqlite 0.4.1 → 0.4.2-beta

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.2-beta](https://github.com/AIGNE-io/aigne-framework/compare/sqlite-v0.4.1...sqlite-v0.4.2-beta) (2025-09-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * improve SQLite busy error handling and observability logging ([#545](https://github.com/AIGNE-io/aigne-framework/issues/545)) ([6dc8e06](https://github.com/AIGNE-io/aigne-framework/commit/6dc8e064231f3d6342036626591e89bff1ae5c08))
9
+
3
10
  ## [0.4.1](https://github.com/AIGNE-io/aigne-framework/compare/sqlite-v0.4.0...sqlite-v0.4.1) (2025-08-26)
4
11
 
5
12
 
package/lib/cjs/retry.js CHANGED
@@ -15,7 +15,7 @@ function isDBLockedError(error) {
15
15
  }
16
16
  return false;
17
17
  }
18
- function withRetry(db, methods, { max = 20, backoffBase = 300, backoffExponent = 1.2, backoffJitter = 100, shouldRetry = isDBLockedError, } = {}) {
18
+ function withRetry(db, methods, { max = 30, backoffBase = 300, backoffExponent = 1.2, backoffJitter = 300, shouldRetry = isDBLockedError, } = {}) {
19
19
  return new Proxy(db, {
20
20
  get(target, prop) {
21
21
  const val = target?.[prop];
package/lib/esm/retry.js CHANGED
@@ -12,7 +12,7 @@ function isDBLockedError(error) {
12
12
  }
13
13
  return false;
14
14
  }
15
- export function withRetry(db, methods, { max = 20, backoffBase = 300, backoffExponent = 1.2, backoffJitter = 100, shouldRetry = isDBLockedError, } = {}) {
15
+ export function withRetry(db, methods, { max = 30, backoffBase = 300, backoffExponent = 1.2, backoffJitter = 300, shouldRetry = isDBLockedError, } = {}) {
16
16
  return new Proxy(db, {
17
17
  get(target, prop) {
18
18
  const val = target?.[prop];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/sqlite",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-beta",
4
4
  "description": "AIGNE SQLite database library for building AI-powered applications",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -48,16 +48,16 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@libsql/client": "^0.15.9",
52
- "drizzle-orm": "^0.44.2",
53
- "sqlocal": "^0.14.1"
51
+ "@libsql/client": "^0.15.15",
52
+ "drizzle-orm": "^0.44.5",
53
+ "sqlocal": "^0.14.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/bun": "^1.2.18",
57
- "@types/node": "^24.0.12",
56
+ "@types/bun": "^1.2.22",
57
+ "@types/node": "^24.5.1",
58
58
  "npm-run-all": "^4.1.5",
59
59
  "rimraf": "^6.0.1",
60
- "typescript": "^5.8.3"
60
+ "typescript": "^5.9.2"
61
61
  },
62
62
  "scripts": {
63
63
  "lint": "tsc --noEmit",