Skip to content
Source
Sign inSign up
TanStack/db

fix(db): preserve correlated include route identity #1761

MergedKyleAMathews(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/1761/headmerged by KyleAMathews(GitHub profile, opens in a new tab)

Showing 20 changed files with 6 additions and 1 deletion (loading 18).

x
0 of 20 viewed, 20 left
5 additions and 0 deletions.changeset/fix-correlated-include-routes.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/db': patch
+---
+​
+Preserve parent-specific include results through nested includes, subqueries, unions, joins, ordering, projections, aggregates, and having clauses.
1 addition and 1 deletionpackages/db/package.jsonModified
View file
@@ -21,7 +21,7 @@
"dev": "vite build --watch",
"lint": "eslint . --fix",
"test": "vitest --run",
- "test:oracles": "vitest --run tests/query/includes-oracle.property.test.ts tests/query/includes-collection-oracle.property.test.ts tests/query/includes-cross-formulation-oracle.property.test.ts tests/query/includes-temporal-oracle.test.ts tests/query/includes-optimistic-oracle.property.test.ts tests/query/includes-publication-oracle.test.ts tests/query/includes-query-shape-oracle.test.ts tests/query/includes-work-counter-oracle.test.ts"
+ "test:oracles": "vitest --run tests/query/includes-oracle.property.test.ts tests/query/includes-collection-oracle.property.test.ts tests/query/includes-cross-formulation-oracle.property.test.ts tests/query/includes-temporal-oracle.test.ts tests/query/includes-optimistic-oracle.property.test.ts tests/query/includes-publication-oracle.test.ts tests/query/includes-query-shape-oracle.test.ts tests/query/includes-work-counter-oracle.test.ts tests/query/includes-context-transport-oracle.test.ts"
},
"type": "module",
"main": "dist/cjs/index.cjs",
packages/db/src/query/builder/index.tsModified
View file
Loading the diff