@statezero/core 0.1.64 → 0.1.66
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.
- package/dist/syncEngine/registries/modelStoreRegistry.d.ts +2 -3
- package/dist/syncEngine/registries/modelStoreRegistry.js +1 -1
- package/dist/syncEngine/registries/querysetStoreRegistry.d.ts +2 -3
- package/dist/syncEngine/registries/querysetStoreRegistry.js +1 -1
- package/package.json +1 -1
- package/readme.md +4 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
declare class ModelStoreRegistry {
|
|
1
|
+
export class ModelStoreRegistry {
|
|
3
2
|
_stores: Map<any, any>;
|
|
4
3
|
syncManager: () => void;
|
|
5
4
|
clear(): void;
|
|
@@ -8,4 +7,4 @@ declare class ModelStoreRegistry {
|
|
|
8
7
|
getEntity(modelClass: any, pk: any): any;
|
|
9
8
|
setEntity(modelClass: any, pk: any, data: any): any;
|
|
10
9
|
}
|
|
11
|
-
export
|
|
10
|
+
export const modelStoreRegistry: ModelStoreRegistry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelStore } from '../stores/modelStore.js';
|
|
2
2
|
import { isNil } from 'lodash-es';
|
|
3
|
-
class ModelStoreRegistry {
|
|
3
|
+
export class ModelStoreRegistry {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._stores = new Map();
|
|
6
6
|
this.syncManager = () => { console.warn("SyncManager not set for ModelStoreRegistry"); };
|
|
@@ -22,8 +22,7 @@ export class LiveQueryset {
|
|
|
22
22
|
private getCurrentItems;
|
|
23
23
|
#private;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
declare class QuerysetStoreRegistry {
|
|
25
|
+
export class QuerysetStoreRegistry {
|
|
27
26
|
_stores: Map<any, any>;
|
|
28
27
|
_tempStores: WeakMap<object, any>;
|
|
29
28
|
followingQuerysets: Map<any, any>;
|
|
@@ -65,5 +64,5 @@ declare class QuerysetStoreRegistry {
|
|
|
65
64
|
*/
|
|
66
65
|
getAllStoresForModel(ModelClass: any): any[];
|
|
67
66
|
}
|
|
67
|
+
export const querysetStoreRegistry: QuerysetStoreRegistry;
|
|
68
68
|
import { QuerysetStoreGraph } from './querysetStoreGraph.js';
|
|
69
|
-
export {};
|
|
@@ -117,7 +117,7 @@ export class LiveQueryset {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
_LiveQueryset_queryset = new WeakMap(), _LiveQueryset_ModelClass = new WeakMap(), _LiveQueryset_proxy = new WeakMap(), _LiveQueryset_array = new WeakMap();
|
|
120
|
-
class QuerysetStoreRegistry {
|
|
120
|
+
export class QuerysetStoreRegistry {
|
|
121
121
|
constructor() {
|
|
122
122
|
this._stores = new Map(); // Map<semanticKey, Store>
|
|
123
123
|
this._tempStores = new WeakMap(); // WeakMap<Queryset, Store>
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -179,20 +179,20 @@ const workTodos = Todo.objects.filter({
|
|
|
179
179
|
### Backend
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
-
pip install
|
|
182
|
+
pip install statezero
|
|
183
183
|
pip install django-cors-headers pusher
|
|
184
184
|
```
|
|
185
185
|
|
|
186
186
|
### Frontend
|
|
187
187
|
|
|
188
188
|
```bash
|
|
189
|
-
npm
|
|
189
|
+
npm i @statezero/core
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
### Generate TypeScript Models
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
|
-
npx statezero sync
|
|
195
|
+
npx @statezero/core sync
|
|
196
196
|
```
|
|
197
197
|
|
|
198
198
|
## Why Choose StateZero Over...
|
|
@@ -219,4 +219,4 @@ Lock in your rate forever by signing up early. We can't change your fee or cance
|
|
|
219
219
|
|
|
220
220
|
## Get Started
|
|
221
221
|
|
|
222
|
-
Run `pip install
|
|
222
|
+
Run `pip install statezero` and `npm install @statezero/core` to begin.
|