Skip to content

Commit 5445ac2

Browse files
committed
fix: missing dependencies and verified build
1 parent f6ed047 commit 5445ac2

File tree

3 files changed

+59
-19
lines changed

3 files changed

+59
-19
lines changed

bun.lock

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/common/package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@
5050
},
5151
"dependencies": {
5252
"@noble/ciphers": "^2.1.1",
53+
"@noble/hashes": "^2.0.1",
54+
"@scure/bip39": "^2.0.1",
55+
"disposablestack": "^1.1.7",
56+
"kysely": "^0.28.11",
57+
"msgpackr": "^1.11.8",
5358
"playwright": "^1.58.1",
59+
"random": "^5.4.1",
5460
"typescript": "^5.9.3",
55-
"webpack": "^5.104.1",
61+
"webpack": "^5.105.0",
5662
"ws": "^8.19.0"
5763
},
5864
"publishConfig": {
@@ -61,5 +67,12 @@
6167
"engines": {
6268
"node": ">=24.0.0"
6369
},
64-
"sideEffects": false
70+
"sideEffects": false,
71+
"devDependencies": {
72+
"@bokuweb/zstd-wasm": "^0.0.27",
73+
"@types/better-sqlite3": "^7.6.13",
74+
"@types/ws": "^8.18.1",
75+
"better-sqlite3": "^12.6.2",
76+
"fast-check": "^4.5.3"
77+
}
6578
}

packages/common/test/local-first/Protocol.test.ts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ test("encodeSqliteValue/decodeSqliteValue property tests", () => {
300300
// Test all SqliteValue types
301301
fc.constant(null),
302302
fc.string(), // Regular strings
303-
fc
304-
.double()
305-
.filter((n) => !Number.isNaN(n)), // Numbers (exclude NaN)
303+
fc.double().filter((n) => !Number.isNaN(n)), // Numbers (exclude NaN)
306304
fc.uint8Array(), // Binary data
307305

308306
// Special number cases
@@ -332,9 +330,7 @@ test("encodeSqliteValue/decodeSqliteValue property tests", () => {
332330
fc
333331
.stringMatching(/^[A-Za-z0-9_-]{4,}$/)
334332
.filter((s) => s.length % 4 === 0), // Valid Base64Url
335-
fc
336-
.string()
337-
.filter((s) => /[^A-Za-z0-9_-]/.test(s)), // Invalid Base64Url chars
333+
fc.string().filter((s) => /[^A-Za-z0-9_-]/.test(s)), // Invalid Base64Url chars
338334

339335
// JSON optimization cases
340336
fc
@@ -347,16 +343,14 @@ test("encodeSqliteValue/decodeSqliteValue property tests", () => {
347343
.array(fc.oneof(fc.string(), fc.integer(), fc.boolean()))
348344
.map((arr) => JSON.stringify(arr)),
349345
fc.constantFrom('{"a":1}', "[]", "null", "true", "false", '"string"'), // Simple JSON
350-
fc
351-
.string()
352-
.filter((s) => {
353-
try {
354-
JSON.parse(s);
355-
return false;
356-
} catch {
357-
return true;
358-
}
359-
}), // Non-JSON strings
346+
fc.string().filter((s) => {
347+
try {
348+
JSON.parse(s);
349+
return false;
350+
} catch {
351+
return true;
352+
}
353+
}), // Non-JSON strings
360354

361355
// Date ISO strings - both valid and invalid
362356
fc

0 commit comments

Comments
 (0)