@fedify/sqlite 2.5.0-dev.2562 → 2.5.0-dev.2597

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "2.5.0-dev.2562+d712c1d0",
3
+ "version": "2.5.0-dev.2597+7bed9e2b",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "2.5.0-dev.2562+d712c1d0",
3
+ "version": "2.5.0-dev.2597+7bed9e2b",
4
4
  "description": "SQLite drivers for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -69,14 +69,14 @@
69
69
  "temporal-polyfill": "^1.0.1"
70
70
  },
71
71
  "peerDependencies": {
72
- "@fedify/fedify": "^2.5.0-dev.2562+d712c1d0"
72
+ "@fedify/fedify": "^2.5.0-dev.2597+7bed9e2b"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@js-temporal/polyfill": "^0.5.1",
76
76
  "tsdown": "^0.22.0",
77
- "typescript": "^6.0.0",
77
+ "typescript": "^6.0.3",
78
78
  "@fedify/fixture": "^2.0.0",
79
- "@fedify/testing": "^2.5.0-dev.2562+d712c1d0"
79
+ "@fedify/testing": "^2.5.0-dev.2597+7bed9e2b"
80
80
  },
81
81
  "scripts": {
82
82
  "build:self": "tsdown",
package/src/sqlite.bun.ts CHANGED
@@ -27,7 +27,13 @@ export class SqliteStatement implements SqliteStatementAdapter {
27
27
  constructor(private readonly stmt: Statement) {}
28
28
 
29
29
  run(...params: unknown[]): { changes: number; lastInsertRowid: number } {
30
- return this.stmt.run(...params);
30
+ // Bun types lastInsertRowid as number | bigint; it is a bigint only when
31
+ // the given Database enables safeIntegers. The adapter interface keeps
32
+ // the number type that node:sqlite returns by default:
33
+ return this.stmt.run(...params) as {
34
+ changes: number;
35
+ lastInsertRowid: number;
36
+ };
31
37
  }
32
38
 
33
39
  get(...params: unknown[]): unknown | undefined {
@@ -0,0 +1,5 @@
1
+ // The Bun-specific SQLite driver, checked with Bun's types only.
2
+ {
3
+ "extends": "../../tsconfig.bun.json",
4
+ "include": ["src/sqlite.bun.ts"]
5
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.node.json",
3
+ "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
4
+ "exclude": [
5
+ "dist",
6
+ "dist-tests",
7
+ "node_modules",
8
+ // Bun-only; checked by tsconfig.check.bun.json.
9
+ "src/sqlite.bun.ts"
10
+ ]
11
+ }