@crvouga/postgres-mem 1.1.2 → 1.1.4

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.
Files changed (3) hide show
  1. package/AGENTS.md +11 -0
  2. package/README.md +9 -0
  3. package/package.json +5 -3
package/AGENTS.md CHANGED
@@ -120,6 +120,17 @@ POSTGRES_MEM_FUZZ_SEED=12345 bun test tests/fuzz
120
120
  POSTGRES_MEM_FUZZ_SEED=12345 POSTGRES_MEM_FUZZ_PATH='0:1' bun test tests/fuzz
121
121
  ```
122
122
 
123
+ ### Random walk (state-dependent DST)
124
+
125
+ `tests/fuzz/random-walk.test.ts` walks the SQL state space one enabled action at
126
+ a time and asserts result + logical-state parity after every step.
127
+
128
+ ```bash
129
+ bun run test:walk
130
+ POSTGRES_MEM_WALK_STEPS=60 bun run test:walk
131
+ bun run test:walk:soak -- --depth 200 --runs 20
132
+ ```
133
+
123
134
  ## Compat system
124
135
 
125
136
  | Command | Role |
package/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # postgres-mem
2
2
 
3
+ > [!WARNING]
4
+ > **Archived.** `@crvouga/postgres-mem` is no longer maintained here. Development continues in the Mockingbird monorepo as [`@crvouga/mockingbird-service-postgres`](https://www.npmjs.com/package/@crvouga/mockingbird-service-postgres) ([source](https://github.com/crvouga/mockingbird/tree/main/packages/service/postgres)).
5
+ >
6
+ > ```bash
7
+ > npm uninstall @crvouga/postgres-mem && npm install @crvouga/mockingbird-service-postgres
8
+ > ```
9
+ >
10
+ > Then replace `@crvouga/postgres-mem` with `@crvouga/mockingbird-service-postgres` in your imports; the API is the same.
11
+
3
12
  [npm](https://www.npmjs.com/package/@crvouga/postgres-mem) · [GitHub](https://github.com/crvouga/postgres-mem)
4
13
 
5
14
  Pure TypeScript, completely in-memory PostgreSQL implementation aiming for **PostgreSQL 18 SQL dialect parity** (same statements → same results).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/postgres-mem",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Pure TypeScript in-memory PostgreSQL implementation with zero WASM/native dependencies",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,9 +53,11 @@
53
53
  "test:fuzz": "bun test tests/fuzz",
54
54
  "test:pbt": "bun test tests/fuzz",
55
55
  "test:pbt:random": "bun run scripts/pbt-random.ts",
56
- "test:fuzz:soak": "POSTGRES_MEM_STATEFUL_STEPS=${POSTGRES_MEM_STATEFUL_STEPS:-48} POSTGRES_MEM_FUZZ_RUNS=${POSTGRES_MEM_FUZZ_RUNS:-40} bun test tests/fuzz/stateful.test.ts tests/fuzz/metamorphic tests/fuzz/robustness.test.ts tests/fuzz/corpus.test.ts",
56
+ "test:fuzz:soak": "POSTGRES_MEM_STATEFUL_STEPS=${POSTGRES_MEM_STATEFUL_STEPS:-48} POSTGRES_MEM_WALK_STEPS=${POSTGRES_MEM_WALK_STEPS:-48} POSTGRES_MEM_FUZZ_RUNS=${POSTGRES_MEM_FUZZ_RUNS:-40} bun test tests/fuzz/stateful.test.ts tests/fuzz/random-walk.test.ts tests/fuzz/metamorphic tests/fuzz/robustness.test.ts tests/fuzz/corpus.test.ts",
57
57
  "test:metamorphic": "bun test tests/fuzz/metamorphic",
58
- "test:dst": "bun test tests/fuzz/stateful.test.ts tests/fuzz/corpus.test.ts",
58
+ "test:dst": "bun test tests/fuzz/stateful.test.ts tests/fuzz/random-walk.test.ts tests/fuzz/corpus.test.ts",
59
+ "test:walk": "bun test tests/fuzz/random-walk.test.ts",
60
+ "test:walk:soak": "bun run scripts/random-walk.ts",
59
61
  "example": "bun run --cwd examples/react-vite dev",
60
62
  "benchmark": "bun run benchmarks/run.ts --tier default --engine mem",
61
63
  "benchmark:compare": "bun run benchmarks/run.ts --tier default --engine both",