anchordb-react 0.2.0 → 0.2.1

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 +18 -3
package/README.md CHANGED
@@ -48,4 +48,21 @@ indicator can be rendered unconditionally instead of every screen branching on w
48
48
 
49
49
  ## Status
50
50
 
51
- **0.1.0.** React is a peer dependency (>=18). MIT.
51
+ **0.2.1.** React is a peer dependency (>=18). MIT.
52
+
53
+ ## The AnchorDB family
54
+
55
+ Five packages. **Only `anchordb` is required** — the rest exist so that an offline-only app never
56
+ has to download Express, and an Express server never has to download React.
57
+
58
+ | Package | What it is | Runs where |
59
+ | --- | --- | --- |
60
+ | [`anchordb`](https://www.npmjs.com/package/anchordb) | The database — schema, models, queries, aggregation, optional sync | phone · browser · Node |
61
+ | **`anchordb-react`** *(this package)* | React and React Native hooks | the device |
62
+ | [`anchordb-angular`](https://www.npmjs.com/package/anchordb-angular) | Angular / Ionic module, DI and RxJS observables | the device |
63
+ | [`anchordb-sync-server`](https://www.npmjs.com/package/anchordb-sync-server) | Server half of sync — Express, NestJS, Next.js | your backend |
64
+ | [`anchordb-relay`](https://www.npmjs.com/package/anchordb-relay) | Dev relay for the Anchor Lens inspector | your laptop |
65
+
66
+ Each one needs a different third-party framework as a peer dependency, and npm resolves those per
67
+ package rather than per import — which is why they are not one package. Full reasoning and API
68
+ reference: [github.com/knnadeera/anchordb](https://github.com/knnadeera/anchordb).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anchordb-react",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  "prepublishOnly": "npm run typecheck && npm run build"
33
33
  },
34
34
  "dependencies": {
35
- "anchordb": "^0.2.0"
35
+ "anchordb": "^0.2.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "rimraf": "^6.0.1"
@@ -56,5 +56,20 @@
56
56
  "engines": {
57
57
  "node": ">=20"
58
58
  },
59
- "author": "Nisala Nadeera <knnadeera@gmail.com>"
59
+ "author": "Nisala Nadeera <knnadeera@gmail.com>",
60
+ "keywords": [
61
+ "anchordb",
62
+ "react",
63
+ "react-native",
64
+ "expo",
65
+ "hooks",
66
+ "offline-first",
67
+ "local-first",
68
+ "mongodb",
69
+ "mongoose",
70
+ "database",
71
+ "live-query",
72
+ "useffect",
73
+ "nosql"
74
+ ]
60
75
  }