@rebasepro/server-mongo 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  * This is the main entry point for Rebase to interact with MongoDB.
6
6
  */
7
7
  import { Db } from "mongodb";
8
- import { DataDriver, DeleteProps, CollectionConfig, FetchCollectionProps, FetchOneProps, ListenCollectionProps, ListenOneProps, SaveProps, CollectionRegistryInterface, User, RebaseClient, RebaseSdkData } from "@rebasepro/types";
8
+ import { DataDriver, DeleteProps, CollectionConfig, FetchCollectionProps, FetchOneProps, ListenCollectionProps, ListenOneProps, SaveProps, CollectionRegistryInterface, User, RebaseServerClient, RebaseSdkData } from "@rebasepro/types";
9
9
  import { MongoDataService } from "../db/MongoDataService.js";
10
10
  import { MongoRealtimeService } from "./MongoRealtimeService.js";
11
11
  import { MongoHistoryService } from "./MongoHistoryService.js";
@@ -25,7 +25,8 @@ export declare class MongoDriver implements DataDriver {
25
25
  historyService: MongoHistoryService;
26
26
  user?: User;
27
27
  data: RebaseSdkData;
28
- client?: RebaseClient;
28
+ /** The server singleton, attached by `initializeRebaseBackend` after boot. */
29
+ client?: RebaseServerClient;
29
30
  constructor(db: Db, realtimeService?: MongoRealtimeService, historyService?: MongoHistoryService, registry?: CollectionRegistryInterface | undefined, user?: User);
30
31
  /**
31
32
  * Get the current timestamp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/server-mongo",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "MongoDB backend for Rebase",
5
5
  "keywords": [
6
6
  "rebase",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "mongodb": "^7.5.0",
46
46
  "ws": "^8.21.1",
47
- "@rebasepro/types": "0.20.0",
48
- "@rebasepro/utils": "0.20.0",
49
- "@rebasepro/common": "0.20.0"
47
+ "@rebasepro/types": "0.21.0",
48
+ "@rebasepro/utils": "0.21.0",
49
+ "@rebasepro/common": "0.21.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/jest": "^30.0.0",
@@ -59,7 +59,7 @@
59
59
  "vite": "^8.1.5"
60
60
  },
61
61
  "peerDependencies": {
62
- "@rebasepro/server": "0.20.0"
62
+ "@rebasepro/server": "0.21.0"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@rebasepro/server": {