@data-client/core 0.14.6 → 0.14.10
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-client/core",
|
|
3
|
-
"version": "0.14.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.14.10",
|
|
4
|
+
"description": "Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"react-native": "legacy/index.js",
|
|
@@ -121,11 +121,11 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@babel/runtime": "^7.17.0",
|
|
124
|
-
"@data-client/normalizr": "^0.14.
|
|
124
|
+
"@data-client/normalizr": "^0.14.10",
|
|
125
125
|
"flux-standard-action": "^2.1.1"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@anansi/browserslist-config": "^1.4.2",
|
|
129
|
-
"@types/node": "^
|
|
129
|
+
"@types/node": "^22.0.0"
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -7,9 +7,6 @@ describe('Controller.get()', () => {
|
|
|
7
7
|
class Tacos extends Entity {
|
|
8
8
|
type = '';
|
|
9
9
|
id = '';
|
|
10
|
-
pk() {
|
|
11
|
-
return this.id;
|
|
12
|
-
}
|
|
13
10
|
}
|
|
14
11
|
const TacoList = new schema.Collection([Tacos]);
|
|
15
12
|
const entities = {
|
|
@@ -54,10 +51,6 @@ describe('Controller.get()', () => {
|
|
|
54
51
|
id = '';
|
|
55
52
|
username = '';
|
|
56
53
|
|
|
57
|
-
pk() {
|
|
58
|
-
return this.id;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
54
|
static indexes = ['username'] as const;
|
|
62
55
|
}
|
|
63
56
|
|
|
@@ -223,9 +216,6 @@ describe('Controller.get()', () => {
|
|
|
223
216
|
it('Union based on args', () => {
|
|
224
217
|
class IDEntity extends Entity {
|
|
225
218
|
id: string = '';
|
|
226
|
-
pk() {
|
|
227
|
-
return this.id;
|
|
228
|
-
}
|
|
229
219
|
}
|
|
230
220
|
class User extends IDEntity {
|
|
231
221
|
type = 'user';
|
|
@@ -10,9 +10,6 @@ describe('Controller.getResponse()', () => {
|
|
|
10
10
|
class Tacos extends Entity {
|
|
11
11
|
type = '';
|
|
12
12
|
id = '';
|
|
13
|
-
pk() {
|
|
14
|
-
return this.id;
|
|
15
|
-
}
|
|
16
13
|
}
|
|
17
14
|
const ep = new Endpoint(() => Promise.resolve(), {
|
|
18
15
|
key() {
|
|
@@ -129,9 +126,6 @@ describe('Controller.getResponse()', () => {
|
|
|
129
126
|
class Tacos extends Entity {
|
|
130
127
|
type = '';
|
|
131
128
|
id = '';
|
|
132
|
-
pk() {
|
|
133
|
-
return this.id;
|
|
134
|
-
}
|
|
135
129
|
}
|
|
136
130
|
const ep = new Endpoint(({ id }: { id: string }) => Promise.resolve(), {
|
|
137
131
|
key({ id }) {
|
|
@@ -211,9 +211,6 @@ describe('reducer', () => {
|
|
|
211
211
|
class Counter extends Entity {
|
|
212
212
|
id = 0;
|
|
213
213
|
counter = 0;
|
|
214
|
-
pk() {
|
|
215
|
-
return this.id;
|
|
216
|
-
}
|
|
217
214
|
|
|
218
215
|
static key = 'Counter';
|
|
219
216
|
}
|
|
@@ -241,9 +238,6 @@ describe('reducer', () => {
|
|
|
241
238
|
class Counter extends Entity {
|
|
242
239
|
id = 0;
|
|
243
240
|
counter = 0;
|
|
244
|
-
pk() {
|
|
245
|
-
return this.id;
|
|
246
|
-
}
|
|
247
241
|
|
|
248
242
|
static key = 'Counter';
|
|
249
243
|
}
|