@warp-drive/utilities 5.7.0-alpha.13 → 5.7.0-alpha.15

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.
@@ -1,5 +1,5 @@
1
1
  import type { Cache } from "@warp-drive/core/types/cache";
2
- import type { StableRecordIdentifier } from "@warp-drive/core/types/identifier";
2
+ import type { ResourceKey } from "@warp-drive/core/types/identifier";
3
3
  import type { Value } from "@warp-drive/core/types/json/raw";
4
4
  import type { InnerRelationshipDocument, ResourceObject } from "@warp-drive/core/types/spec/json-api-raw";
5
5
  type ChangedRelationshipData = InnerRelationshipDocument;
@@ -20,13 +20,13 @@ export type JsonApiResourcePatch = {
20
20
  *
21
21
  * @public
22
22
  * @param {Cache} cache}
23
- * @param {StableRecordIdentifier} identifier
23
+ * @param {ResourceKey} identifier
24
24
  * @return {Object} An object with a `data` property containing the serialized resource patch
25
25
  */
26
- export declare function serializeResources(cache: Cache, identifiers: StableRecordIdentifier): {
26
+ export declare function serializeResources(cache: Cache, identifiers: ResourceKey): {
27
27
  data: ResourceObject;
28
28
  };
29
- export declare function serializeResources(cache: Cache, identifiers: StableRecordIdentifier[]): {
29
+ export declare function serializeResources(cache: Cache, identifiers: ResourceKey[]): {
30
30
  data: ResourceObject[];
31
31
  };
32
32
  /**
@@ -47,10 +47,10 @@ export declare function serializeResources(cache: Cache, identifiers: StableReco
47
47
  *
48
48
  * @public
49
49
  * @param {Cache} cache}
50
- * @param {StableRecordIdentifier} identifier
50
+ * @param {ResourceKey} identifier
51
51
  * @return {Object} An object with a `data` property containing the serialized resource patch
52
52
  */
53
- export declare function serializePatch(cache: Cache, identifier: StableRecordIdentifier): {
53
+ export declare function serializePatch(cache: Cache, identifier: ResourceKey): {
54
54
  data: JsonApiResourcePatch;
55
55
  };
56
56
  export {};
package/dist/json-api.js CHANGED
@@ -538,7 +538,7 @@ function updateRecord(record, options = {}) {
538
538
  *
539
539
  * @public
540
540
  * @param {Cache} cache}
541
- * @param {StableRecordIdentifier} identifier
541
+ * @param {ResourceKey} identifier
542
542
  * @return {Object} An object with a `data` property containing the serialized resource patch
543
543
  */
544
544
  function serializeResources(cache, identifiers) {
@@ -623,7 +623,7 @@ function _serializeResource(cache, identifier) {
623
623
  *
624
624
  * @public
625
625
  * @param {Cache} cache}
626
- * @param {StableRecordIdentifier} identifier
626
+ * @param {ResourceKey} identifier
627
627
  * @return {Object} An object with a `data` property containing the serialized resource patch
628
628
  */
629
629
  function serializePatch(cache, identifier) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/utilities",
3
- "version": "5.7.0-alpha.13",
3
+ "version": "5.7.0-alpha.15",
4
4
  "description": "Utilities package for WarpDrive | Things your app might find useful",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "peerDependencies": {
39
- "@warp-drive/core": "5.7.0-alpha.13"
39
+ "@warp-drive/core": "5.7.0-alpha.15"
40
40
  },
41
41
  "dependencies": {
42
42
  "@embroider/macros": "^1.16.12"
@@ -45,8 +45,8 @@
45
45
  "@babel/core": "^7.26.10",
46
46
  "@babel/plugin-transform-typescript": "^7.27.0",
47
47
  "@babel/preset-typescript": "^7.27.0",
48
- "@warp-drive/internal-config": "5.7.0-alpha.13",
49
- "@warp-drive/core": "5.7.0-alpha.13",
48
+ "@warp-drive/internal-config": "5.7.0-alpha.15",
49
+ "@warp-drive/core": "5.7.0-alpha.15",
50
50
  "decorator-transforms": "^2.3.0",
51
51
  "expect-type": "^1.2.1",
52
52
  "typescript": "^5.8.3",