0
Fork 0
mirror of https://github.com/TanStack/db.git synced 2026-11-16 06:56:43 +00:00
The reactive client store for your API. https://tanstack.com/db
  • TypeScript 97.7%
  • JavaScript 2%
  • TLA 0.2%
Find a file
Kyle Mathews 21c52a07e6
test(db-sqlite-persistence-core): disable the module cache for mutant runs (#2427)
The mutant harness applies a mutant while Vitest transforms persisted.ts.
Vitest 5 keeps transformed modules in node_modules/.vitest-cache, keyed by
file and config, not by the TANSTACK_DB_MUTANT environment variable. After
one run, a later run reused the cached transform, the mutant plugin never
ran, and the harness reported "not applied" for a mutant that was not tested.

Set test.fsModuleCache to false in vitest.mutants.config.ts. The option is
documented in Vitest 5 as "Cache transformed modules on the file system and
reuse them between reruns" (default true). Unmutated runs keep their cache.

Evidence:
- RED: after the first run, each later run reported "not applied" (P05,
  P06, P08, P09, P10, P18, P21, P26, P27, P28, P29, P34). The mutant
  plugin never wrote its mark.
- GREEN: scripts/demand-coverage-mutants.mjs --only=P05 run twice in a
  row, with no cache cleared by hand, applied and survived both times.
- The script already fails a mutant that is not applied, so a repeat of
  this failure is reported as BAD rather than as a survivor.

Co-authored-by: Test <test@test.com>
Co-authored-by: Isaac <no-reply@databricks.com>
History 2026-11-12 18:04:20 -07:00
.agents/skills test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
.changeset chore: read CODEOWNERS from .github so GitHub enforces it (#2424) 2026-11-12 16:16:50 -07:00
.claude feat(oracles): lint oracle files and return reports to coding agents (#2236) 2026-10-23 14:18:05 -06:00
.codex feat(oracles): lint oracle files and return reports to coding agents (#2236) 2026-10-23 14:18:05 -06:00
.gemini feat(oracles): lint oracle files and return reports to coding agents (#2236) 2026-10-23 14:18:05 -06:00
.github chore: read CODEOWNERS from .github so GitHub enforces it (#2424) 2026-11-12 16:16:50 -07:00
.husky Revert husky removal (#981) 2025-12-06 09:23:31 -07:00
_artifacts feat: add @tanstack/preact-db and share adapter identity and window binding (#2235) 2026-10-26 08:54:30 -06:00
docs test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
examples ci: Version Packages (rc) (#2380) 2026-11-11 00:39:41 -07:00
media docs: use the dynamic README header endpoint (#1710) 2026-08-11 18:20:53 -06:00
notes fix(trailbase): isolate stream lifetimes and add lifecycle oracle (#1805) 2026-09-11 08:41:19 -06:00
packages test(db-sqlite-persistence-core): disable the module cache for mutant runs (#2427) 2026-11-12 18:04:20 -07:00
review-evidence fix(persistence): rotate invalid on-demand caches and reload subsets (#2069) 2026-10-11 09:08:33 -06:00
scripts test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
.gitignore test(oracles): move TanStack DB onto @tanstack/oracles, declare ownership and routes in every oracle (#2378) 2026-11-09 10:57:47 -07:00
.npmrc chore: update workspace config (#579) 2025-09-22 21:02:31 +09:00
.nvmrc chore: update workspace config (#579) 2025-09-22 21:02:31 +09:00
.prettierignore Shared eager live-source conformance oracle for sync adapters, and the fixes it found (#2336) 2026-11-02 19:47:54 -07:00
.tool-versions chore(deps): upgrade dependencies and preserve runtime compatibility (#2374) 2026-11-09 09:14:30 -07:00
AGENTS.md test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
CONTRIBUTING.md fix(ci): restore prerelease comments with a local script (#2362) 2026-11-06 13:07:46 -07:00
domain_map.yaml feat: add @tanstack/preact-db and share adapter identity and window binding (#2235) 2026-10-26 08:54:30 -06:00
eslint.config.js test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
LICENSE Initial commit 2025-02-20 09:12:08 -08:00
lint-staged.config.js feat(oracles): require every oracle test to reach a declared part (#2278) 2026-10-28 08:42:38 -06:00
package.json test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
pnpm-lock.yaml test: register every oracle test through oracleProperty and remove declareOracle (#2421) 2026-11-12 15:55:58 -07:00
pnpm-workspace.yaml test(oracles): move TanStack DB onto @tanstack/oracles, declare ownership and routes in every oracle (#2378) 2026-11-09 10:57:47 -07:00
prettier.config.js ci: run prettier autofix action (#972) 2025-12-05 20:49:52 +11:00
README.md chore(deps): update dependency vite to v7.3.5 [security] (#2022) 2026-10-05 08:38:26 -06:00
skill-tree-generator-feedback.md feat: add Intent agent skills for TanStack DB (#1330) 2026-03-06 14:27:31 -07:00
skill_spec.md feat: add @tanstack/preact-db and share adapter identity and window binding (#2235) 2026-10-26 08:54:30 -06:00
todo-1785-reconciliation.md fix: harden collection lifecycle and resume invariants (#1785) 2026-09-11 13:09:32 -06:00
tsconfig.json ci: run prettier autofix action (#972) 2025-12-05 20:49:52 +11:00
typedoc.json docs: remove duplicate page headings (#1799) 2026-09-11 09:15:58 -06:00

TanStack DB

TanStack DB

Tanstack DB is currently in BETA. See the release post for more details.

The reactive client store for your API.

TanStack DB solves the problems of building fast, modern apps, helping you:

  • Avoid endpoint sprawl and network waterfalls by loading data into normalized collections
  • Optimise client performance with sub-millisecond live queries and real-time reactivity
  • Take the network off the interaction path with instant optimistic writes

Data loading is optimized. Interactions feel instantaneous. Your backend stays simple and your app stays blazing fast. No matter how much data you load.

Read the docs →

Get Involved

Partners

CodeRabbit Cloudflare
ElectricSQL logo Prisma
DB & you?

We're looking for TanStack DB Partners to join our mission! Partner with us to push the boundaries of TanStack DB and build amazing things together.

LET'S CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com » v>