@crvouga/sqlite-mem 1.9.0 → 1.10.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/AGENTS.md CHANGED
@@ -154,4 +154,4 @@ bun run build
154
154
 
155
155
  ## PR and commits
156
156
 
157
- Use [Conventional Commits](https://www.conventionalcommits.org/) for commits and PR titles (enforced in CI). Prefer squash merges with a conventional title. Releasing is automated via semantic-release see [README.md](README.md#releasing).
157
+ Use [Conventional Commits](https://www.conventionalcommits.org/) for commits and PR titles (enforced on PRs). Prefer squash merges with a conventional title so the npm bump is `feat` minor / `fix` → patch. Direct pushes to `main` with any other subject still publish a patch. See [README.md](README.md#releasing).
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # sqlite-mem
2
2
 
3
+ [npm](https://www.npmjs.com/package/@crvouga/sqlite-mem) · [GitHub](https://github.com/crvouga/sqlite-mem)
4
+
3
5
  Pure TypeScript, completely in-memory SQLite implementation aiming for **full SQLite3 SQL dialect parity** (same statements → same results).
4
6
 
5
7
  - Runs in modern browsers and Node.js / Bun
@@ -287,16 +289,16 @@ Publishing is fully automated. You never bump `version` or run `npm publish` by
287
289
 
288
290
  ### How a release happens
289
291
 
290
- 1. Push or merge to `main` with [Conventional Commits](https://www.conventionalcommits.org/).
292
+ 1. Push or merge to `main`. Prefer [Conventional Commits](https://www.conventionalcommits.org/) so the bump is `feat` → minor / `fix` → patch / `BREAKING` → major; any other subject still publishes a patch.
291
293
  2. CI runs commitlint, format/lint/typecheck, build, package verification, tests, browser smoke, and benchmarks.
292
294
  3. If every gate is green, [semantic-release](https://semantic-release.gitbook.io/) analyzes commits since the last git tag, bumps semver, publishes to npm, and creates a GitHub Release.
293
295
 
294
296
  | Commit | Version bump |
295
297
  | --- | --- |
296
- | `fix: …` | patch (`0.1.0` → `0.1.1`) |
297
- | `feat: …` | minor (`0.1.0` → `0.2.0`) |
298
- | `feat!: …` or `BREAKING CHANGE:` footer | major (`0.2.0` → `1.0.0`) |
299
- | `docs:`, `chore:`, `refactor:`, `test:`, | no release |
298
+ | `fix: …` / `perf: …` | patch (`1.9.0` → `1.9.1`) |
299
+ | `feat: …` | minor (`1.9.0` → `1.10.0`) |
300
+ | `feat!: …` or `BREAKING CHANGE:` footer | major (`1.10.0` → `2.0.0`) |
301
+ | any other message on `main` (including Cursor-style subjects) | patch |
300
302
 
301
303
  Examples:
302
304
 
@@ -305,8 +307,7 @@ feat: add window function support
305
307
  fix: handle NULL in UNIQUE constraints
306
308
  feat!: rename snapshot() return type
307
309
 
308
- chore: tweak CI timeouts
309
- docs: clarify determinism table
310
+ Refactor AdoptedDatabase interface # still publishes a patch
310
311
  ```
311
312
 
312
313
  PR titles must also follow Conventional Commits (enforced in CI). Prefer squash merges with a conventional title.
@@ -340,7 +341,7 @@ Do this once so CI can publish. Full checklist: **[docs/SECRETS.md](./docs/SECRE
340
341
 
341
342
  Validate the checklist anytime with `bun run secrets:doctor`.
342
343
 
343
- After that, every green push to `main` with releasable commits updates npm automatically.
344
+ After that, every green push to `main` updates npm automatically (`feat`/`fix`/`BREAKING` pick the bump; anything else is a patch).
344
345
 
345
346
  ## License
346
347
 
@@ -766,6 +766,11 @@ const TAIL: CatalogSection[] = [
766
766
  ["omit-04", "user_version not encoded", D],
767
767
  ["open-01", "Snapshot.open CoW fork"],
768
768
  ["open-02", "encode does not mutate; decode reuses buffer"],
769
+ ["prop-01", "snapshot restore idempotence", F, undefined, ["tests/fuzz/snapshot.test.ts"]],
770
+ ["prop-02", "insert-then-delete probe preservation", F, undefined, ["tests/fuzz/snapshot.test.ts"]],
771
+ ["prop-03", "index probe equivalence after restore", F, undefined, ["tests/fuzz/snapshot.test.ts"]],
772
+ ["obj-01", "object round-trip corpus", F, undefined, ["tests/contract/snapshots/objects.test.ts"]],
773
+ ["obj-02", "view and index probes after restore", F, undefined, ["tests/contract/snapshots/views-indexes.test.ts"]],
769
774
  ]),
770
775
  section("DET", "Determinism invariants", true, [
771
776
  ["seed-01", "same seed identical random streams", D],
@@ -829,9 +834,10 @@ const TAIL: CatalogSection[] = [
829
834
  ["robust-01", "SqliteError-only / timeout / SQLM bit-flip", F],
830
835
  ["slt-01", "sqllogictest vendor corpus differential", F],
831
836
  ["dst-01", "mixed dump-after-each DST engine", F],
832
- ["prop-01", "snapshot restore idempotence", P],
833
- ["prop-02", "insert then delete snapshot bytes", P],
834
- ["prop-03", "index-added vs index-free equivalence", P],
837
+ ["snap-01", "snapshot restore probe fuzz", F, undefined, ["tests/fuzz/snapshot.test.ts"]],
838
+ ["prop-01", "classifyDiff equal outcome", P, undefined, ["tests/contract/catalog/fzz.test.ts"]],
839
+ ["prop-02", "classifyDiff failure outcome", P, undefined, ["tests/contract/catalog/fzz.test.ts"]],
840
+ ["prop-03", "classifyDiff known-divergence outcome", P, undefined, ["tests/contract/catalog/fzz.test.ts"]],
835
841
  ["prop-04", "transaction throw never ran", P],
836
842
  ["prop-05", "exec a;b equivalent split exec", P],
837
843
  ["seed-01", "default seed 0x5a17e0e1", F],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/sqlite-mem",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Pure TypeScript in-memory SQLite implementation with zero WASM/native dependencies",
5
5
  "type": "module",
6
6
  "license": "MIT",