Skip to content
Source
Sign inSign up
TanStack/db

refactor the Collection class into multiple manager classes #560

Mergedsamwillismerged 16 commits intomain fromrefs/pull/560/headmerged by samwillis

Showing 82 changed files with 178 additions and 7 deletions (loading 78).

x
0 of 82 viewed, 82 left
8 additions and 0 deletions.changeset/little-hats-build.mdAdded
View file
@@ -0,0 +1,8 @@
+---
+"@tanstack/electric-db-collection": patch
+"@tanstack/query-db-collection": patch
+"@tanstack/rxdb-db-collection": patch
+"@tanstack/db": patch
+---
+​
+Refactor the main Collection class into smaller classes to make it easier to maintain.
7 additions and 7 deletionspackages/db/src/change-events.tsrenamed topackages/db/src/collection/change-events.tsRenamed
View file
@@ -1,17 +1,17 @@
import {
createSingleRowRefProxy,
toExpression,
-} from "./query/builder/ref-proxy"
-import { compileSingleRowExpression } from "./query/compiler/evaluators.js"
-import { optimizeExpressionWithIndexes } from "./utils/index-optimization.js"
+} from "../query/builder/ref-proxy"
+import { compileSingleRowExpression } from "../query/compiler/evaluators.js"
+import { optimizeExpressionWithIndexes } from "../utils/index-optimization.js"
import type {
ChangeMessage,
CurrentStateAsChangesOptions,
SubscribeChangesOptions,
-} from "./types"
-import type { Collection } from "./collection"
-import type { SingleRowRefProxy } from "./query/builder/ref-proxy"
-import type { BasicExpression } from "./query/ir.js"
+} from "../types"
+import type { Collection } from "./index.js"