@warp-drive-mirror/json-api 5.7.0-alpha.38 → 5.7.0-alpha.39
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.
|
@@ -110,9 +110,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
110
110
|
*/
|
|
111
111
|
version: "2";
|
|
112
112
|
constructor(capabilities: CacheCapabilitiesManager);
|
|
113
|
-
////////// ================ //////////
|
|
114
|
-
////////// Cache Management //////////
|
|
115
|
-
////////// ================ //////////
|
|
116
113
|
/**
|
|
117
114
|
* Cache the response to a request
|
|
118
115
|
*
|
|
@@ -230,9 +227,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
230
227
|
* @return if `calculateChanges` is true then calculated key changes should be returned
|
|
231
228
|
*/
|
|
232
229
|
upsert(identifier: ResourceKey, data: ExistingResourceObject, calculateChanges?: boolean): void | string[];
|
|
233
|
-
////////// ============= //////////
|
|
234
|
-
////////// Cache Forking //////////
|
|
235
|
-
////////// ============= //////////
|
|
236
230
|
/**
|
|
237
231
|
* Create a fork of the cache from the current state.
|
|
238
232
|
*
|
|
@@ -289,9 +283,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
289
283
|
* @private
|
|
290
284
|
*/
|
|
291
285
|
diff(): Promise<Change[]>;
|
|
292
|
-
////////// =========== //////////
|
|
293
|
-
////////// SSR Support //////////
|
|
294
|
-
////////// =========== //////////
|
|
295
286
|
/**
|
|
296
287
|
* Serialize the entire contents of the Cache into a Stream
|
|
297
288
|
* which may be fed back into a new instance of the same Cache
|
|
@@ -317,9 +308,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
317
308
|
* @private
|
|
318
309
|
*/
|
|
319
310
|
hydrate(stream: ReadableStream<unknown>): Promise<void>;
|
|
320
|
-
////////// ================== //////////
|
|
321
|
-
////////// Resource Lifecycle //////////
|
|
322
|
-
////////// ================== //////////
|
|
323
311
|
/**
|
|
324
312
|
* [LIFECYCLE] Signal to the cache that a new record has been instantiated on the client
|
|
325
313
|
*
|
|
@@ -364,9 +352,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
364
352
|
* @public
|
|
365
353
|
*/
|
|
366
354
|
unloadRecord(identifier: ResourceKey): void;
|
|
367
|
-
////////// ============= //////////
|
|
368
|
-
////////// Resource Data //////////
|
|
369
|
-
////////// ============= //////////
|
|
370
355
|
/**
|
|
371
356
|
* Retrieve the data for an attribute from the cache
|
|
372
357
|
* with local mutations applied.
|
|
@@ -477,9 +462,6 @@ export declare class JSONAPICache implements Cache {
|
|
|
477
462
|
* @return resource relationship object
|
|
478
463
|
*/
|
|
479
464
|
getRemoteRelationship(identifier: ResourceKey, field: string): ResourceRelationship | CollectionRelationship;
|
|
480
|
-
////////// ============== //////////
|
|
481
|
-
////////// Resource State //////////
|
|
482
|
-
////////// ============== //////////
|
|
483
465
|
/**
|
|
484
466
|
* Update the cache state for the given resource to be marked
|
|
485
467
|
* as locally deleted, or remove such a mark.
|
|
@@ -33,8 +33,6 @@ export declare class Reporter {
|
|
|
33
33
|
errors: ErrorReport[];
|
|
34
34
|
ast: ReturnType<typeof jsonToAst>;
|
|
35
35
|
jsonStr: string;
|
|
36
|
-
// TODO @runspired make this configurable to consuming apps before
|
|
37
|
-
// activating by default
|
|
38
36
|
strict: {
|
|
39
37
|
linkage: boolean;
|
|
40
38
|
unknownType: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive-mirror/json-api",
|
|
3
|
-
"version": "5.7.0-alpha.
|
|
3
|
+
"version": "5.7.0-alpha.39",
|
|
4
4
|
"description": "A {JSON:API} Cache Implementation for WarpDrive",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@warp-drive-mirror/core": "5.7.0-alpha.
|
|
35
|
+
"@warp-drive-mirror/core": "5.7.0-alpha.39"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@embroider/macros": "^1.18.1",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"fuse.js": "7.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "^7.28.
|
|
43
|
+
"@babel/core": "^7.28.3",
|
|
44
44
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
45
45
|
"@babel/preset-typescript": "^7.27.1",
|
|
46
46
|
"@types/json-to-ast": "^2.1.4",
|
|
47
|
-
"@warp-drive/internal-config": "5.7.0-alpha.
|
|
48
|
-
"@warp-drive-mirror/core": "5.7.0-alpha.
|
|
47
|
+
"@warp-drive/internal-config": "5.7.0-alpha.39",
|
|
48
|
+
"@warp-drive-mirror/core": "5.7.0-alpha.39",
|
|
49
49
|
"decorator-transforms": "^2.3.0",
|
|
50
|
-
"expect-type": "^1.2.
|
|
50
|
+
"expect-type": "^1.2.2",
|
|
51
51
|
"typescript": "^5.9.2",
|
|
52
|
-
"vite": "^7.1.
|
|
52
|
+
"vite": "^7.1.3"
|
|
53
53
|
},
|
|
54
54
|
"volta": {
|
|
55
55
|
"extends": "../../../../../../package.json"
|