Commit aaf746e
authored
#4111 made a declared `{ driver: 'memory' }` datasource ephemeral and scoped an
explicitly-requested destination per datasource. It left the documentation
describing the old world, in the one place a reader looks first:
- `drivers.mdx` claimed "Data is lost when the process exits" directly above a
`new InMemoryDriver()` snippet — still false for that path, which keeps the
`'auto'` default and writes `.objectstack/data/memory-driver.json` relative to
the working directory. The section now contrasts the two build paths, notes
that two directly-constructed `'auto'` drivers still share that one path, and
shows `persistence: false` in the test-usage tip — the exact pitfall that let
this repo's own ADR-0062 acceptance test pass on a virgin checkout and fail on
every later local run.
- `MemoryConfigSchema.persistence` documented `'auto'` as *the* default, with no
hint that the datasource factory now overrides it. Its TSDoc and `.describe()`
state the split, so the contract says what the runtime does rather than
leaving two de-facto answers.
Documentation only. This branch's earlier code changes for #4083 were dropped in
favour of #4111, which landed the same fix plus per-pool store scoping.
1 parent 4be9d99 commit aaf746e
2 files changed
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
362 | 374 | | |
363 | 375 | | |
364 | 376 | | |
365 | | - | |
| 377 | + | |
| 378 | + | |
366 | 379 | | |
367 | 380 | | |
368 | 381 | | |
369 | | - | |
| 382 | + | |
| 383 | + | |
370 | 384 | | |
371 | 385 | | |
372 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
219 | 230 | | |
220 | | - | |
| 231 | + | |
221 | 232 | | |
222 | 233 | | |
223 | 234 | | |
| |||
0 commit comments