Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
318 commits
Select commit Hold shift + click to select a range
eb8fd18
Also optimize orderBy for singleton array (#477)
kevin-dp Sep 1, 2025
48f9d02
Fix error example which doesn't compile (#486)
coryhouse Sep 3, 2025
d469c39
Support ordering grouped results based on aggregates (#481)
kevin-dp Sep 3, 2025
074aab0
fix a bug where a pending sync transaction could be committed early (…
samwillis Sep 3, 2025
e59a355
fix stuck empty remounted live query that uses joins bug (#484)
samwillis Sep 3, 2025
8665660
ci: Version Packages (#479)
github-actions[bot] Sep 3, 2025
b869f68
fix: improve InvalidSourceError message clarity (#488)
KyleAMathews Sep 3, 2025
9759087
docs: clarify that mutationFn must await server sync before returning…
KyleAMathews Sep 3, 2025
d6f9243
Fix race condition where initial data does not trigger live query (#485)
byudaniel Sep 3, 2025
01b8cbd
ci: Version Packages (#490)
github-actions[bot] Sep 3, 2025
03c529b
Fix: Ensure query collections initialize with existing data (#495)
obeattie Sep 3, 2025
cc4c34a
Fix optimized join missing results (#501)
kevin-dp Sep 4, 2025
5db05b3
ci: Version Packages (#496)
github-actions[bot] Sep 4, 2025
15daf1a
docs: overview page - small word mistake in TrailBase collection code…
karolkos-glitch Sep 6, 2025
9ebc51e
docs: add distinct operator documentation (#472)
KyleAMathews Sep 8, 2025
0f6fb37
Hybrid index implementation (#489)
kevin-dp Sep 8, 2025
0be4e2c
Replace JSON.stringify based hashing by structural hashing (#491)
kevin-dp Sep 8, 2025
1814f8c
Deoptimize join when lazy side has a limit/offset clause (#508)
kevin-dp Sep 8, 2025
bafeaa1
fix distinct when used with joins (#510)
samwillis Sep 8, 2025
08303e6
fix count aggregate function (evaluate only not null fields) (#453)
fcannizzaro Sep 8, 2025
51954d8
fix chains joins (#511)
samwillis Sep 8, 2025
31acdf2
Refactor Ref System with Nested Optional Properties (#386)
samwillis Sep 8, 2025
e41ed7e
Refactor select improving spread (`...obj`) and enabling nested proje…
samwillis Sep 8, 2025
7d813be
ci: Version Packages (#509)
github-actions[bot] Sep 8, 2025
620ebea
export the new `isUndefined` and `isNull` query builder functions (#515)
samwillis Sep 9, 2025
fc420d3
ci: Version Packages (#516)
github-actions[bot] Sep 9, 2025
33515c6
fix: use collection key instead of source key when checking for updat…
samwillis Sep 9, 2025
c11eb51
fix: Check typeof Buffer before instanceof to avoid ReferenceError in…
vedant416 Sep 9, 2025
ec67236
ci: Version Packages (#522)
github-actions[bot] Sep 9, 2025
baaed71
fix AbortController re-initialization (electric-db-collection) (#523)
fcannizzaro Sep 10, 2025
75a0fca
ci: Version Packages (#527)
github-actions[bot] Sep 10, 2025
a9878ad
Fix structural hashing of numbers (#525)
kevin-dp Sep 11, 2025
5d148fa
Update dependencies & add Renovate (#528)
KyleAMathews Sep 11, 2025
b162556
fix stuck loading state after an electric must-refetch (#532)
samwillis Sep 11, 2025
b5d4210
ci: Version Packages (#529)
github-actions[bot] Sep 11, 2025
e90bec1
ADD RxDB Collections (#468)
pubkey Sep 11, 2025
006e9a6
Add changeset for rxdb-collection (#533)
KyleAMathews Sep 11, 2025
b8c3bb3
ci: Version Packages (#534)
github-actions[bot] Sep 11, 2025
b487430
fix types when selecting objects such as dates (#524)
samwillis Sep 11, 2025
92febbf
optimise key loading into query graph (#526)
samwillis Sep 11, 2025
d2c1423
feat: add error tracking and retry methods to query collection utils …
lucasweng Sep 11, 2025
cd38ff7
ci: Version Packages (#536)
github-actions[bot] Sep 11, 2025
0962776
chore: Update dependency vite to v6.3.6 [SECURITY] (#543)
renovate[bot] Sep 12, 2025
84f0084
feat(angular-db): add Angular injectLiveQuery helper with tests and e…
emcdaniel1624 Sep 12, 2025
84d8e93
ci: Version Packages (#546)
github-actions[bot] Sep 12, 2025
c58cec9
Fix memory leak (#550)
samwillis Sep 15, 2025
b03894d
Refactoring of the types for collection configurations (#530)
kevin-dp Sep 15, 2025
3968087
Base collection config interface (#531)
kevin-dp Sep 15, 2025
dcfda37
ci: Version Packages (#553)
github-actions[bot] Sep 15, 2025
b5c87f7
Fix transaction commit() to throw errors instead of swallowing them (…
KyleAMathews Sep 16, 2025
c557a14
Improve merge logic for applyMutations (#557)
KyleAMathews Sep 17, 2025
58534e2
ci: Version Packages (#562)
github-actions[bot] Sep 17, 2025
5f51f35
fix: use preload internally in stateWhenReady and toArrayWhenReady me…
KyleAMathews Sep 17, 2025
9d4e711
ci: Version Packages (#566)
github-actions[bot] Sep 17, 2025
cacfca2
New collection event system (#555)
samwillis Sep 18, 2025
65b078a
expand `useLiveQuery` callback to support conditional queries and add…
samwillis Sep 18, 2025
fe757c7
electric-db-collection: Pull in the latest version of Electric client…
lirbank Sep 19, 2025
6ef3e60
ci: Version Packages (#569)
github-actions[bot] Sep 19, 2025
d8d53ae
Remove peerDependencies from electric-db-collection (#573)
KyleAMathews Sep 20, 2025
e62555e
chore: Update autofix-ci/action digest to 635ffb0 (#577)
renovate[bot] Sep 22, 2025
0bc7fb1
chore: update workspace config (#579)
lachlancollins Sep 22, 2025
46aa946
chore(deps): update dependency jsdom to v27 (#580)
renovate[bot] Sep 22, 2025
72fc263
chore(deps): update all non-major dependencies (#581)
renovate[bot] Sep 22, 2025
fbed513
Update README (#561)
LadyBluenotes Sep 22, 2025
5e2932f
docs: add unofficial dexie collection (#576)
HimanshuKumarDutt094 Sep 22, 2025
2f87216
Move data loading concerns from join/order by to CollectionSubscripti…
kevin-dp Sep 23, 2025
89b1c41
Implement prefixed index to remove hashing from joins initial load (#…
samwillis Sep 23, 2025
c6dd365
docs: fix image link. (#584)
thruflo Sep 23, 2025
ac6250a
refactor the Collection class into multiple manager classes (#560)
samwillis Sep 24, 2025
de14bb0
ci: Version Packages (#583)
github-actions[bot] Sep 25, 2025
17ab5ee
docs: add navigation workflow pattern for optimistic: false mutations…
KyleAMathews Sep 25, 2025
b8594f6
docs: fix broken GitHub link and add missing frontmatter (#591)
KyleAMathews Sep 25, 2025
c21adb9
chore(deps): update dependency @types/use-sync-external-store to v1 (…
renovate[bot] Sep 25, 2025
8cd0876
feat: implement idle cleanup for collection garbage collection (#590)
KyleAMathews Sep 26, 2025
59b406e
ci: Version Packages (#594)
github-actions[bot] Sep 26, 2025
ce7e2b2
Fix joins using conditions with computed values (#595)
duailibe Sep 29, 2025
248e2c6
Don't push down where clauses that only touch the namespace of a sour…
samwillis Sep 29, 2025
51c6bc5
feat: add support for dates to max and min functions. (#428)
MAST1999 Sep 29, 2025
1b832ff
fix repeated renders when markReady called when collection already re…
samwillis Sep 29, 2025
498fccf
Update starters to TanStack Start RC (#606)
KyleAMathews Sep 29, 2025
3d5f782
chore(deps): update all non-major dependencies (#599)
renovate[bot] Sep 29, 2025
a064cb4
Automatically subscribe/unsubscribe from TanStack Query based on coll…
obeattie Sep 29, 2025
271960d
feat: Add select option to extract items while preserving metadata (#…
0xlakshan Sep 30, 2025
7bbe9bd
ci: Version Packages (#601)
github-actions[bot] Sep 30, 2025
32f2212
Remove circular imports (#605)
bradleyayers Sep 30, 2025
6a3e6f3
ci: Version Packages (#608)
github-actions[bot] Sep 30, 2025
b479f8e
chore(deps): lock file maintenance (#615)
renovate[bot] Oct 1, 2025
05776f5
Fix a bug that could result in a duplicate delete event for a row (#621)
samwillis Oct 1, 2025
c5c4fe6
docs: add tanstack-db-pglite (#620)
letstri Oct 1, 2025
9a9cb04
docs: fix pglite link in community packages (#624)
letstri Oct 1, 2025
5b58da9
remove console.log from local-only tests (#626)
samwillis Oct 2, 2025
e837256
Add mutations guide (#614)
KyleAMathews Oct 3, 2025
26ad333
add missing link to mutations doc in config (#632)
KyleAMathews Oct 3, 2025
b38bd76
fix query collection `.preload()` (#635)
samwillis Oct 3, 2025
d27d32a
asc/desc index bug (#623)
samwillis Oct 3, 2025
56b870b
Fix live query optimistic updates during long sync commits (#631)
KyleAMathews Oct 3, 2025
5f43d5f
Reverse index (#627)
kevin-dp Oct 3, 2025
748b2b2
update vite deps and node types to fix types issues (#636)
samwillis Oct 3, 2025
c4c2399
add findOne() to query builder (#440)
fcannizzaro Oct 3, 2025
f623990
fix orderBy field alias bug (#637)
samwillis Oct 3, 2025
e615268
Update mutations.md (#639)
KyleAMathews Oct 4, 2025
01ff54c
Update mutations.md (#640)
KyleAMathews Oct 4, 2025
519b65b
Update mutations.md (#642)
KyleAMathews Oct 5, 2025
c807114
ci: Version Packages (#622)
github-actions[bot] Oct 5, 2025
1d71b21
chore(deps): update all non-major dependencies (#644)
renovate[bot] Oct 6, 2025
a8624c8
electric-db-collection: support for snapshots in awaitTxid (#648)
samwillis Oct 6, 2025
7556fb6
fix race condition that resulted in live queries becoming stuck (#650)
samwillis Oct 6, 2025
916a65f
Update issue templates (#647)
KyleAMathews Oct 6, 2025
7275cbf
ci: Version Packages (#649)
github-actions[bot] Oct 6, 2025
dd6cdf7
Predicate pushdown to sync (#617)
kevin-dp Oct 7, 2025
b5d4981
docs: add debugging section for awaitTxId stalling issues (#651)
KyleAMathews Oct 7, 2025
c30a20b
add collection id to important logs (#655)
marbemac Oct 7, 2025
85feb58
ci: Version Packages (#653)
github-actions[bot] Oct 7, 2025
2621ce4
Add schema validation example to mutations guide (#656)
KyleAMathews Oct 8, 2025
3cb5180
feat: Add flexible matching strategies for electric-db-collection (#4…
KyleAMathews Oct 8, 2025
6692aad
Add acceptMutations utility for local collections in manual transacti…
KyleAMathews Oct 8, 2025
7cb54be
ci: Version Packages (#657)
github-actions[bot] Oct 8, 2025
d9ae7b7
preserve optimistic mutations during truncate operations (#659)
samwillis Oct 9, 2025
44555b7
eagerly run live queries while collections are loading (#658)
samwillis Oct 9, 2025
95516c4
ci: Version Packages (#662)
github-actions[bot] Oct 9, 2025
4a7c44a
stop pushing down where clauses that match a select projection in a s…
samwillis Oct 9, 2025
60d5dc4
chore(deps): update all non-major dependencies (#670)
renovate[bot] Oct 13, 2025
eeb05d4
refactor joins to use direct implementation or each type rather than …
samwillis Oct 13, 2025
e52be92
change to a subscription per collection alias rather than collection …
samwillis Oct 13, 2025
ee61bb6
Add a scheduler that ensures single batch of changes from live query …
samwillis Oct 13, 2025
7c8b531
ci: add PR release comments (#673)
lachlancollins Oct 14, 2025
d523759
rxdb-db-collection fixes (#667)
daveycodez Oct 14, 2025
97d9937
ci: Version Packages (#664)
github-actions[bot] Oct 14, 2025
63aa8ef
Mutable limit and offset for ordered live queries (#663)
kevin-dp Oct 15, 2025
b0687ab
Add loadSubset State Tracking and On-Demand Sync Mode (#669)
samwillis Oct 15, 2025
4cb1093
Fix changeset for PR #669 - Update to accurately describe loadSubset …
KyleAMathews Oct 15, 2025
c0f06e2
Change PR #669 changeset from minor to patch (#680)
KyleAMathews Oct 15, 2025
7044f95
ci: Version Packages (#678)
github-actions[bot] Oct 15, 2025
5566b26
Add Pre-created Collection Support to useLiveInfiniteQuery (#684)
samwillis Oct 16, 2025
3f4e154
ci: Version Packages (#686)
github-actions[bot] Oct 16, 2025
8051cbe
chore(deps): update all non-major dependencies (#693)
renovate[bot] Oct 20, 2025
67f5d54
docs: document conditional queries and isUndefined/isNull functions (…
KyleAMathews Oct 20, 2025
4436d74
chore(deps): update dependency vite [security] (#698)
renovate[bot] Oct 21, 2025
63a7958
chore(deps): update dependency vite to v6.4.1 [security] (#700)
renovate[bot] Oct 21, 2025
8b29841
feat: Add in-memory fallback for localStorage collections in SSR envi…
KyleAMathews Oct 21, 2025
a03b5a5
docs: improve incremental updates example in query-collection docs (#…
KyleAMathews Oct 21, 2025
8187c6d
Support `orderBy` and `limit` in `currentStateAsChanges` (#701)
kevin-dp Oct 22, 2025
96ad9d3
Fix bug when moving an orderBy window that has an infinite limit (#705)
kevin-dp Oct 22, 2025
36d2439
ci: Version Packages (#702)
github-actions[bot] Oct 22, 2025
af6a4e4
docs: document findOne method in live queries guide (#699)
KyleAMathews Oct 23, 2025
5950583
Manual writes should validate against the synced store, not the combi…
KyleAMathews Oct 23, 2025
16dbfe3
fix(query-db-collection): respect QueryClient defaultOptions when not…
KyleAMathews Oct 23, 2025
5ab979c
ci: Version Packages (#711)
github-actions[bot] Oct 23, 2025
3c9526c
fix: dedupe filtering for non-optimistic mutations (#715)
mpotter Oct 23, 2025
d8ef559
ci: Version Packages (#716)
github-actions[bot] Oct 23, 2025
970616b
fix(collection): fire status:change event before cleaning up event ha…
KyleAMathews Oct 24, 2025
ac42951
ci: Version Packages (#718)
github-actions[bot] Oct 24, 2025
518ecda
chore(deps): update all non-major dependencies (#724)
renovate[bot] Oct 27, 2025
c2a5c28
feat: add exact refetch targeting and improve utils.refetch() behavio…
lucasweng Oct 27, 2025
2d4d5e1
ci: Version Packages (#726)
github-actions[bot] Oct 27, 2025
6738247
Feat: Add support for custom parsers/serializers in LocalStorage coll…
sadkebab Oct 30, 2025
7b9c681
ci: Version Packages (#731)
github-actions[bot] Oct 30, 2025
7e9a1d8
Fix flaky test (#735)
KyleAMathews Oct 31, 2025
9e4cbef
Document how to destructure in Svelte (#733)
KyleAMathews Oct 31, 2025
f8a979b
Fix: Optimizer Missing Final Step - Combine Remaining WHERE Clauses (…
KyleAMathews Oct 31, 2025
979a66f
Enable auto-indexing for nested field paths (#728)
KyleAMathews Oct 31, 2025
d2b569c
Investigate Size Change action minification (#736)
KyleAMathews Oct 31, 2025
cb25623
feat: Add paced mutations with timing strategies (#704)
KyleAMathews Oct 31, 2025
48b8e8f
ci: Version Packages (#739)
github-actions[bot] Oct 31, 2025
e46b1de
Update mutation.md & JSDocs documentation for API changes (#743)
KyleAMathews Nov 3, 2025
916de39
Add PowerSync DB Collection (#747)
stevensJourney Nov 3, 2025
49bcaa5
feat(offline-transactions): implement offline-first transaction syste…
KyleAMathews Nov 3, 2025
e0c4e2d
ci: Version Packages (#751)
github-actions[bot] Nov 3, 2025
f416231
Fix bug with orderBy on duplicate values (#713)
kevin-dp Nov 4, 2025
b1b8299
fix: validate against duplicate collection aliases in subqueries (#719)
KyleAMathews Nov 4, 2025
01af56d
Migrate Collection Info to Dedicated Pages (#725)
KyleAMathews Nov 4, 2025
6917534
Add some more error types to the error handling doc (#740)
KyleAMathews Nov 4, 2025
88a38cc
ci: Version Packages (#754)
github-actions[bot] Nov 4, 2025
4309abd
Powersync docs (#756)
stevensJourney Nov 4, 2025
5aebbac
Make clear in mutation doc that using other ways of writing to backen…
KyleAMathews Nov 4, 2025
5b6437b
Add `useLiveSuspenseQuery` hook for React Suspense support (#697)
KyleAMathews Nov 4, 2025
2985ab8
ci: Version Packages (#759)
github-actions[bot] Nov 4, 2025
75470a8
Reduce localStorage io per mutation (#760)
KyleAMathews Nov 5, 2025
a34383e
update generated docs & add CI job to fail PRs that need to re-run it…
KyleAMathews Nov 5, 2025
3ee1d7e
ci: Version Packages (#764)
github-actions[bot] Nov 5, 2025
b2eb96d
Improve schema documentation (#741)
KyleAMathews Nov 5, 2025
5fe5b6a
Remove `flushSync` from svelte-db to avoid breaking async compiler mo…
KyleAMathews Nov 5, 2025
6c55e16
Fix findOne type issue with joins in useLiveQuery (#749)
KyleAMathews Nov 5, 2025
1367756
Add QueryObserver state utility methods to QueryCollectionUtils (#742)
KyleAMathews Nov 5, 2025
503f0b2
Don't make @tanstack/db a direct dependency to avoid having multiple …
KyleAMathews Nov 5, 2025
7805afb
feat: add runtime validation to prevent custom getKey with joined que…
KyleAMathews Nov 5, 2025
07a880f
ci: Version Packages (#767)
github-actions[bot] Nov 5, 2025
c5de261
Release new version of trailbase with changeset (#768)
KyleAMathews Nov 5, 2025
01093a7
feat!: Modify operators to use 3-valued logic instead of classical bo…
kevin-dp Nov 6, 2025
5078c4a
Use versions in examples for workspace packages along with pnpm overr…
KyleAMathews Nov 6, 2025
1e38feb
fix: fix doc links having incorrect file name casing (#780)
KurtGokhan Nov 7, 2025
f2d749d
Fix release (#781)
KyleAMathews Nov 7, 2025
704a81a
remove files that were accidentally committed (#782)
samwillis Nov 8, 2025
1515a23
Document dependency array usage for react hooks (#785)
KyleAMathews Nov 10, 2025
7aedf12
Hash small Uint8Arrays (≀128 bytes) by content rather than reference …
KyleAMathews Nov 10, 2025
c481cee
Fix broken TanStack documentation links (#788)
KyleAMathews Nov 11, 2025
9f73219
Add missing collection links to the sidebar (#789)
KyleAMathews Nov 11, 2025
21aad24
fix: correct collection documentation links and add to sidebar (#791)
KyleAMathews Nov 11, 2025
c4bff34
Clarify LocalOnly collections use direct local mutations (#790)
KyleAMathews Nov 11, 2025
b9fc408
Update documentation for query collection options (#797)
haznai Nov 11, 2025
28f81b5
Predicate Comparison and Merging Utilities for Predicate Push-Down (#…
samwillis Nov 5, 2025
f6ac7ea
Callback to inform about loadSubset deduplication (#694)
kevin-dp Nov 5, 2025
8f746db
Handle pushed down predicates in query collection (#681)
KyleAMathews Nov 5, 2025
7aceffa
Handle pushed down predicates in Electric collection (#618)
kevin-dp Nov 5, 2025
243a35a
Add optional compareOptions to the Collection Config which act as col…
kevin-dp Nov 6, 2025
f9d11fc
feat: add expression helpers for parsing LoadSubsetOptions in queryFn…
KyleAMathews Nov 11, 2025
528882e
E2E Test Suite for Query-Driven Sync (#773)
samwillis Nov 12, 2025
ebc5ed2
Loosen type for collections in offline transactions (#774)
KyleAMathews Nov 12, 2025
58f119a
Fix returning an array of txids from an Electric collection handler (…
KyleAMathews Nov 12, 2025
1afb027
Add timeout support to electric-db-collection (#798)
KyleAMathews Nov 12, 2025
3e3504a
ci: Version Packages (#770)
github-actions[bot] Nov 12, 2025
5fb76fe
Rewrite documentation with new tagline (#805)
KyleAMathews Nov 13, 2025
4000a44
Add link to schemas guide (#815)
KyleAMathews Nov 14, 2025
37083a6
Add frameworks section to sidebar (#818)
KyleAMathews Nov 14, 2025
c9e54a8
Fix framework docs (#822)
KyleAMathews Nov 14, 2025
304cb4d
Add claude code action (#830)
kevin-dp Nov 17, 2025
b1db2da
Fix claude action permissions (#832)
kevin-dp Nov 17, 2025
3ce0264
Remove check-docs CI & replace with a daily CI run (#806)
KyleAMathews Nov 17, 2025
0592852
Upgrade pacer package (#829)
KyleAMathews Nov 17, 2025
dbb07f7
Claude code action fix (#833)
kevin-dp Nov 17, 2025
e01812e
chore(deps): update all non-major dependencies (#783)
renovate[bot] Nov 17, 2025
47255e5
Fix: do not dedupe `loadSubset` calls in query collection (#835)
kevin-dp Nov 17, 2025
30f1154
Claude code action (final) (#834)
kevin-dp Nov 17, 2025
a3493bd
fix: use PR workflow for CI docs updates (#837)
KyleAMathews Nov 17, 2025
616d211
fix: only regenerate docs on npm publish (#838)
KyleAMathews Nov 17, 2025
ab4b623
docs: regenerate API documentation (#839)
github-actions[bot] Nov 17, 2025
a83a818
chore: add missing changesets for recent PRs (#840)
KyleAMathews Nov 17, 2025
7cd4dde
ci: Version Packages (#841)
github-actions[bot] Nov 17, 2025
a13bc50
Only run claude action when comment is created, not on edits (#846)
kevin-dp Nov 18, 2025
6ff0f45
Allow claude to read CI runs (#847)
kevin-dp Nov 18, 2025
99a3716
Fix localStorage collections for numeric IDs (#845)
KyleAMathews Nov 18, 2025
61f180f
ci: Version Packages (#848)
github-actions[bot] Nov 18, 2025
db764b7
docs: regenerate API documentation (#849)
github-actions[bot] Nov 18, 2025
846a830
Always pass where clause to loadSubset (#851)
kevin-dp Nov 19, 2025
213da96
Remove flaky e2e test (#855)
kevin-dp Nov 19, 2025
8e26dcf
Fix type issue with mutations in transaction (#854)
kevin-dp Nov 19, 2025
490dbaa
docs: edit broken link for collection interface (#825)
binishjoshi Nov 19, 2025
e95874b
Fix broken documentation link in sidebar (#856)
KyleAMathews Nov 19, 2025
a90f95e
Auto append to static queryKey when in on-demand mode for Query Colle…
KyleAMathews Nov 19, 2025
3c316bf
ci: Version Packages (#853)
github-actions[bot] Nov 19, 2025
f73a1f8
docs: regenerate API documentation (#862)
github-actions[bot] Nov 19, 2025
f66f2cf
Modify type of query function's meta property to be more precise (#857)
kevin-dp Nov 20, 2025
44b5877
Add framework overview page content (#842)
KyleAMathews Nov 20, 2025
66603d7
Update overview w/ Query-Driven Sync and other features/arguments (#812)
KyleAMathews Nov 20, 2025
ddb56a9
docs: sync generated API documentation (#874)
github-actions[bot] Nov 21, 2025
6e2cc9f
fixed(tests): Made Firestore tests pass
BrianGrug Nov 21, 2025
2555b81
fixed(ci): Linter and tsconfig for eslint
BrianGrug Nov 21, 2025
5be2897
fixed(tests): Added windows support for tests
BrianGrug Dec 2, 2025
9e7dd61
Merge branch 'main' into firebase-collection
BrianGrug Dec 2, 2025
5589131
refactor(firestore): Rename collectionName to collectionPath
BrianGrug Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "TanStack/optimistic" }
{ "repo": "TanStack/db" }
],
"commit": false,
"access": "public",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/eighty-ideas-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tanstack/query-db-collection": patch
---

Improved the type of the queryFn's ctx.meta property of the Query Collection to include the loadSubsetOptions
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: πŸ› Bug Report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

- [ ] I've validated the bug against the latest version of DB packages

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: πŸ€” Feature Requests & Questions
url: https://github.com/TanStack/db/discussions
about: Please ask and answer questions here.
- name: πŸ’¬ Community Chat
url: https://discord.gg/mQd7egN
about: A dedicated discord server hosted by TanStack
- name: πŸ¦‹ TanStack Bluesky
url: https://bsky.app/profile/tanstack.com
about: Stay up to date with new releases of our libraries
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## 🎯 Changes

<!-- What changes are made in this PR? Describe the change and its motivation. -->

## βœ… Checklist

- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/db/blob/main/CONTRIBUTING.md).
- [ ] I have tested this code locally with `pnpm test:pr`.

## πŸš€ Release Impact

- [ ] This change affects published code, and I have generated a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
- [ ] This change is docs/CI/dev-only (no release).
20 changes: 20 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"configMigration": true,
"extends": [
"config:recommended",
"group:allNonMajor",
"schedule:weekly",
":approveMajorUpdates",
":automergeMinor",
":disablePeerDependencies",
":maintainLockFilesMonthly",
":semanticCommits",
":semanticCommitTypeAll(chore)"
],
"ignorePresets": [":ignoreModulesAndTests"],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"ignoreDeps": ["@types/node", "node", "typescript"]
}
6 changes: 4 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier --ignore-unknown . --check
- name: Apply fixes
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
with:
commit-message: "ci: apply automated fixes"
27 changes: 27 additions & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && (github.event.comment.user.login == 'kevin-dp' || github.event.comment.user.login == 'KyleAMathews' || github.event.comment.user.login == 'samwillis')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && (github.event.comment.user.login == 'kevin-dp' || github.event.comment.user.login == 'KyleAMathews' || github.event.comment.user.login == 'samwillis'))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # required for Claude Code
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Responds to @claude mentions in comments
104 changes: 104 additions & 0 deletions .github/workflows/docs-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Sync Generated Docs

on:
schedule:
# Run daily at 2 AM UTC
- cron: "0 2 * * *"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
sync-docs:
name: Generate and Sync Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Tools
uses: tanstack/config/.github/setup@main

- name: Build Packages
run: pnpm run build

- name: Generate Docs
run: pnpm docs:generate

- name: Check for changes
id: check_changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "has_changes=true" >> $GITHUB_OUTPUT
echo "Changes detected in generated docs"
else
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "No changes in generated docs"
fi

- name: Configure Git
if: steps.check_changes.outputs.has_changes == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Commit and Push Changes
if: steps.check_changes.outputs.has_changes == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME="docs/auto-generate"

# Check if branch exists remotely
if git ls-remote --exit-code --heads origin $BRANCH_NAME; then
echo "Branch exists, checking out and updating"
git fetch origin $BRANCH_NAME
git checkout $BRANCH_NAME
git pull origin $BRANCH_NAME
else
echo "Creating new branch"
git checkout -b $BRANCH_NAME
fi

# Stage and commit changes
git add docs/
git commit -m "docs: regenerate API documentation

Auto-generated by daily docs sync workflow"

# Push changes
git push origin $BRANCH_NAME

- name: Create or Update PR
if: steps.check_changes.outputs.has_changes == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME="docs/auto-generate"

# Check if PR already exists
existing_pr=$(gh pr list --head $BRANCH_NAME --json number --jq '.[0].number')

if [ -n "$existing_pr" ]; then
echo "PR #$existing_pr already exists, it has been updated with the latest changes"
gh pr comment $existing_pr --body "Updated with latest generated docs from scheduled workflow run."
else
echo "Creating new PR"
gh pr create \
--title "docs: sync generated API documentation" \
--body "This PR was automatically created by the daily docs sync workflow.

The generated API documentation has been updated to reflect the latest changes in the codebase.

**Generated by**: [Docs Sync Workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

Please review and merge if the changes look correct." \
--head $BRANCH_NAME \
--base main
fi
77 changes: 77 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: E2E Tests

on:
push:
branches: [main]
pull_request:

jobs:
e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Start Docker services
run: |
cd packages/db-collection-e2e/docker
docker compose up -d
echo "Waiting for services to be healthy..."
timeout 60 bash -c 'until docker compose ps | grep -q "healthy"; do sleep 2; done'

- name: Build packages
run: |
pnpm --filter @tanstack/db-ivm build
pnpm --filter @tanstack/db build
pnpm --filter @tanstack/electric-db-collection build
pnpm --filter @tanstack/query-db-collection build

- name: Run Electric E2E tests
run: |
cd packages/electric-db-collection
pnpm test:e2e
env:
ELECTRIC_URL: http://localhost:3000
POSTGRES_HOST: localhost
POSTGRES_PORT: 54321
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: e2e_test

- name: Run Query E2E tests
run: |
cd packages/query-db-collection
pnpm test:e2e
env:
ELECTRIC_URL: http://localhost:3000

- name: Stop Docker services
if: always()
run: |
cd packages/db-collection-e2e/docker
docker compose down -v

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: packages/db-collection-e2e/junit/
retention-days: 7
Loading