anchordb-sync-server 0.2.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +34 -3
package/README.md CHANGED
@@ -69,9 +69,26 @@ strategy decide, because only the client knows which strategy the developer chos
69
69
 
70
70
  ## Status
71
71
 
72
- **0.1.0.** All three adapters share one protocol implementation and are held to the same 49-test
72
+ **1.0.0.** All three adapters share one protocol implementation and are held to the same 49-test
73
73
  conformance suite. `MongooseStore` is typechecked and written against the documented Mongoose API
74
74
  but is **not exercised against a live MongoDB** in this package's tests — set `MONGODB_URI` and run
75
75
  your own integration check before relying on it.
76
76
 
77
+ ## The AnchorDB family
78
+
79
+ Five packages. **Only `anchordb` is required** — the rest exist so that an offline-only app never
80
+ has to download Express, and an Express server never has to download React.
81
+
82
+ | Package | What it is | Runs where |
83
+ | --- | --- | --- |
84
+ | [`anchordb`](https://www.npmjs.com/package/anchordb) | The database — schema, models, queries, aggregation, optional sync | phone · browser · Node |
85
+ | [`anchordb-react`](https://www.npmjs.com/package/anchordb-react) | React and React Native hooks | the device |
86
+ | [`anchordb-angular`](https://www.npmjs.com/package/anchordb-angular) | Angular / Ionic module, DI and RxJS observables | the device |
87
+ | **`anchordb-sync-server`** *(this package)* | Server half of sync — Express, NestJS, Next.js | your backend |
88
+ | [`anchordb-relay`](https://www.npmjs.com/package/anchordb-relay) | Dev relay for the Anchor Lens inspector | your laptop |
89
+
90
+ Each one needs a different third-party framework as a peer dependency, and npm resolves those per
91
+ package rather than per import — which is why they are not one package. Full reasoning and API
92
+ reference: [github.com/knnadeera/anchordb](https://github.com/knnadeera/anchordb).
93
+
77
94
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anchordb-sync-server",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "description": "Framework-agnostic server implementation of the Anchor sync protocol, with Express, NestJS and Next.js adapters.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -76,7 +76,7 @@
76
76
  "prepublishOnly": "npm run typecheck && npm run build"
77
77
  },
78
78
  "dependencies": {
79
- "anchordb": "^0.2.0"
79
+ "anchordb": "^1.0.0"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "mongoose": ">=7",
@@ -105,5 +105,36 @@
105
105
  "bugs": {
106
106
  "url": "https://github.com/knnadeera/anchordb/issues"
107
107
  },
108
- "author": "Nisala Nadeera <knnadeera@gmail.com>"
108
+ "author": "Nisala Nadeera <knnadeera@gmail.com>",
109
+ "keywords": [
110
+ "anchordb",
111
+ "sync",
112
+ "sync-server",
113
+ "offline-first",
114
+ "local-first",
115
+ "replication",
116
+ "express",
117
+ "nestjs",
118
+ "nextjs",
119
+ "mongodb",
120
+ "mongoose",
121
+ "conflict-resolution",
122
+ "crdt"
123
+ ],
124
+ "typesVersions": {
125
+ "*": {
126
+ "express": [
127
+ "./dist/esm/adapters/express.d.ts"
128
+ ],
129
+ "nestjs": [
130
+ "./dist/esm/adapters/nestjs.d.ts"
131
+ ],
132
+ "nextjs": [
133
+ "./dist/esm/adapters/nextjs.d.ts"
134
+ ],
135
+ "mongoose": [
136
+ "./dist/esm/store/mongoose.d.ts"
137
+ ]
138
+ }
139
+ }
109
140
  }