browser-sqlite 1.0.0-rc.4 → 1.0.0-rc.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-sqlite",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "Browser SQLite with concurrent read / serial write isolation, backed by Web Workers and wa-sqlite",
5
5
  "author": "LAlex",
6
6
  "license": "MIT",
@@ -49,12 +49,18 @@
49
49
  "dev": "rslib build --watch",
50
50
  "format": "biome format --write",
51
51
  "prepare": "simple-git-hooks",
52
- "test": "rstest",
52
+ "test": "node scripts/bounded.mjs 900 rstest && node scripts/bounded.mjs 900 rstest --config rstest.firefox.config.ts && node scripts/bounded.mjs 600 rstest --config rstest.isolated.config.ts",
53
+ "test:isolated": "node scripts/bounded.mjs 600 rstest --config rstest.isolated.config.ts",
53
54
  "test:watch": "rstest --watch",
54
55
  "test:unit": "rstest --project unit",
55
- "test:browser": "rstest --project browser",
56
+ "test:browser": "node scripts/bounded.mjs 900 rstest --project 'chromium*' && node scripts/bounded.mjs 900 rstest --config rstest.firefox.config.ts",
57
+ "test:chromium": "node scripts/bounded.mjs 900 rstest --project 'chromium*'",
58
+ "test:firefox": "node scripts/bounded.mjs 900 rstest --config rstest.firefox.config.ts",
56
59
  "test:consumer": "node scripts/consumer-smoke.mjs",
57
- "test:conformance": "rstest --config rstest.conformance.config.ts",
60
+ "test:conformance": "node scripts/bounded.mjs 900 rstest --config rstest.conformance.config.ts && node scripts/bounded.mjs 900 rstest --config rstest.conformance.firefox.config.ts",
61
+ "test:conformance:chromium": "node scripts/bounded.mjs 900 rstest --config rstest.conformance.config.ts",
62
+ "test:conformance:firefox": "node scripts/bounded.mjs 900 rstest --config rstest.conformance.firefox.config.ts",
63
+ "test:matrix": "node scripts/test-matrix.mjs",
58
64
  "docs:vfs": "node scripts/render-vfs-matrix.ts",
59
65
  "bench:build": "pnpm build && node scripts/bench/assemble.mjs _site",
60
66
  "bench:serve": "npx --yes kill-port 8099 && pnpm bench:build && node scripts/static-server.mjs _site 8099",
@@ -72,7 +78,7 @@
72
78
  "playwright": "1.62.1",
73
79
  "simple-git-hooks": "^2.13.1",
74
80
  "typescript": "^7.0.2",
75
- "wa-sqlite": "github:rhashimoto/wa-sqlite#v1.1.2"
81
+ "wa-sqlite": "github:rhashimoto/wa-sqlite#93b9230892a4c440ddbc06936bcd8500e2d6e6cf"
76
82
  },
77
83
  "lint-staged": {
78
84
  "*.{js,ts,jsx,tsx,mjs,cjs}": [
@@ -80,14 +86,16 @@
80
86
  ]
81
87
  },
82
88
  "simple-git-hooks": {
83
- "pre-commit": "npx lint-staged && pnpm test && pnpm exec tsc --noEmit"
89
+ "pre-commit": "pnpm exec tsc --noEmit && npx lint-staged && if [ -f \"$(git rev-parse --git-path MERGE_HEAD)\" ]; then pnpm test; else pnpm test:unit; fi",
90
+ "pre-merge-commit": "pnpm exec tsc --noEmit && pnpm exec biome ci . && pnpm test",
91
+ "pre-push": "pnpm exec tsc --noEmit && pnpm exec biome ci . && pnpm docs:vfs && git diff --exit-code VFS.md && pnpm test"
84
92
  },
85
93
  "pnpm": {
86
94
  "onlyBuiltDependencies": [
87
95
  "simple-git-hooks"
88
96
  ],
89
97
  "patchedDependencies": {
90
- "wa-sqlite@1.1.1": "patches/wa-sqlite@1.1.1.patch"
98
+ "wa-sqlite@1.1.2": "patches/wa-sqlite@1.1.2.patch"
91
99
  }
92
100
  },
93
101
  "private": false,