@warp-drive/legacy 5.8.0-alpha.40 → 5.8.0-alpha.42

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 (116) hide show
  1. package/declarations/adapter/error.d.ts +2 -2
  2. package/declarations/adapter/rest.d.ts +21 -104
  3. package/declarations/adapter.d.ts +2 -2
  4. package/declarations/index.d.ts +32 -0
  5. package/declarations/model/-private/model.d.ts +10 -51
  6. package/declarations/model/-private/promise-many-array.d.ts +0 -18
  7. package/declarations/model/-private/references/belongs-to.d.ts +14 -24
  8. package/declarations/model/-private/references/has-many.d.ts +11 -13
  9. package/declarations/serializer/json-api.d.ts +4 -3
  10. package/declarations/serializer/json.d.ts +2 -2
  11. package/dist/{-private-B1pSSN52.js → -private-BG3bMiKp.js} +2 -1
  12. package/dist/adapter/-private.js +1 -1
  13. package/dist/adapter/error.js +2 -2
  14. package/dist/adapter/json-api.js +1 -1
  15. package/dist/adapter/rest.js +33 -117
  16. package/dist/adapter.js +2 -2
  17. package/dist/compat/-private.js +1 -1
  18. package/dist/compat.js +4 -3
  19. package/dist/{errors-CIGPcDvd.js → errors-Cz5KrzBk.js} +29 -58
  20. package/dist/{hooks-QqRnX108.js → hooks-D6diaM34.js} +1 -1
  21. package/dist/index.js +3 -3
  22. package/dist/{json-BNrV8EYG.js → json-ChdEfB0X.js} +6 -19
  23. package/dist/model/-private.js +1 -1
  24. package/dist/model/migration-support.js +7 -5
  25. package/dist/model.js +3 -3
  26. package/dist/{schema-provider-g5MfTj8n.js → schema-provider-DJCV_6AF.js} +34 -77
  27. package/dist/{serialize-into-hash-BnYvPex3.js → serialize-into-hash-DPZYoF-i.js} +1 -1
  28. package/dist/serializer/json-api.js +2 -2
  29. package/dist/serializer/json.js +1 -1
  30. package/dist/serializer/rest.js +1 -1
  31. package/dist/store.js +2 -1
  32. package/dist/unpkg/{dev-deprecated/-private-DbaSCSym.js → dev/-private-DtjBbEgy.js} +2 -1
  33. package/dist/unpkg/dev/adapter/-private.js +1 -1
  34. package/dist/unpkg/dev/adapter/error.js +2 -2
  35. package/dist/unpkg/dev/adapter/json-api.js +1 -1
  36. package/dist/unpkg/dev/adapter/rest.js +33 -117
  37. package/dist/unpkg/dev/adapter.js +2 -2
  38. package/dist/unpkg/dev/compat/-private.js +1 -1
  39. package/dist/unpkg/dev/compat.js +4 -3
  40. package/dist/unpkg/dev/{errors-DD96TBEs.js → errors-DmGGJr3T.js} +29 -58
  41. package/dist/unpkg/dev/{hooks-CqWjNWeL.js → hooks-CkYiE6Ud.js} +1 -1
  42. package/dist/unpkg/dev/index.js +3 -3
  43. package/dist/unpkg/{dev-deprecated/json-CCU-ZQ4b.js → dev/json-Cu1LNgmQ.js} +6 -19
  44. package/dist/unpkg/dev/model/-private.js +1 -1
  45. package/dist/unpkg/dev/model/migration-support.js +7 -5
  46. package/dist/unpkg/dev/model.js +3 -3
  47. package/dist/unpkg/dev/{schema-provider-B8jiJOYC.js → schema-provider-DDVYxmUV.js} +34 -77
  48. package/dist/unpkg/dev/{serialize-into-hash-CPAZXrQU.js → serialize-into-hash-B2xDbuo5.js} +1 -1
  49. package/dist/unpkg/dev/serializer/json-api.js +6 -5
  50. package/dist/unpkg/dev/serializer/json.js +1 -1
  51. package/dist/unpkg/dev/serializer/rest.js +1 -1
  52. package/dist/unpkg/dev/store.js +2 -1
  53. package/dist/unpkg/{dev/-private-DbaSCSym.js → dev-deprecated/-private-DtjBbEgy.js} +2 -1
  54. package/dist/unpkg/dev-deprecated/adapter/-private.js +1 -1
  55. package/dist/unpkg/dev-deprecated/adapter/error.js +2 -2
  56. package/dist/unpkg/dev-deprecated/adapter/json-api.js +1 -1
  57. package/dist/unpkg/dev-deprecated/adapter/rest.js +33 -117
  58. package/dist/unpkg/dev-deprecated/adapter.js +2 -2
  59. package/dist/unpkg/dev-deprecated/compat/-private.js +1 -1
  60. package/dist/unpkg/dev-deprecated/compat.js +4 -3
  61. package/dist/unpkg/dev-deprecated/{errors-DEnabIZj.js → errors-Spt6ubMd.js} +29 -58
  62. package/dist/unpkg/dev-deprecated/{hooks-CAll-Ets.js → hooks-DOXegvhL.js} +1 -1
  63. package/dist/unpkg/dev-deprecated/index.js +3 -3
  64. package/dist/unpkg/{dev/json-CCU-ZQ4b.js → dev-deprecated/json-Cu1LNgmQ.js} +6 -19
  65. package/dist/unpkg/dev-deprecated/model/-private.js +1 -1
  66. package/dist/unpkg/dev-deprecated/model/migration-support.js +7 -5
  67. package/dist/unpkg/dev-deprecated/model.js +3 -3
  68. package/dist/unpkg/dev-deprecated/{schema-provider-k2qXQTBg.js → schema-provider-BP6_8N-V.js} +34 -77
  69. package/dist/unpkg/dev-deprecated/{serialize-into-hash-CPAZXrQU.js → serialize-into-hash-B2xDbuo5.js} +1 -1
  70. package/dist/unpkg/dev-deprecated/serializer/json-api.js +6 -5
  71. package/dist/unpkg/dev-deprecated/serializer/json.js +1 -1
  72. package/dist/unpkg/dev-deprecated/serializer/rest.js +1 -1
  73. package/dist/unpkg/dev-deprecated/store.js +2 -1
  74. package/dist/unpkg/{prod-deprecated/-private-Cvf_97EG.js → prod/-private-BdyZaGEh.js} +1 -0
  75. package/dist/unpkg/prod/adapter/-private.js +1 -1
  76. package/dist/unpkg/prod/adapter/error.js +2 -2
  77. package/dist/unpkg/prod/adapter/json-api.js +1 -1
  78. package/dist/unpkg/prod/adapter/rest.js +33 -117
  79. package/dist/unpkg/prod/adapter.js +2 -2
  80. package/dist/unpkg/prod/compat/-private.js +1 -1
  81. package/dist/unpkg/prod/compat.js +2 -1
  82. package/dist/unpkg/prod/{errors-CXnfnBfQ.js → errors-BGVFCBmi.js} +29 -58
  83. package/dist/unpkg/prod/{hooks-DvyWhLNg.js → hooks-BztVA_x0.js} +1 -1
  84. package/dist/unpkg/prod/index.js +3 -3
  85. package/dist/unpkg/prod/{json-BYrUP8ao.js → json-BWrZ5546.js} +6 -19
  86. package/dist/unpkg/prod/model/-private.js +1 -1
  87. package/dist/unpkg/prod/model/migration-support.js +7 -5
  88. package/dist/unpkg/prod/model.js +3 -3
  89. package/dist/unpkg/prod/{schema-provider-CHujJvA9.js → schema-provider-DJtD_8jZ.js} +34 -77
  90. package/dist/unpkg/{prod-deprecated/serialize-into-hash-DYU2egXl.js → prod/serialize-into-hash-DGlzQteF.js} +1 -1
  91. package/dist/unpkg/prod/serializer/json-api.js +6 -5
  92. package/dist/unpkg/prod/serializer/json.js +1 -1
  93. package/dist/unpkg/prod/serializer/rest.js +1 -1
  94. package/dist/unpkg/prod/store.js +2 -1
  95. package/dist/unpkg/{prod/-private-Cvf_97EG.js → prod-deprecated/-private-BdyZaGEh.js} +1 -0
  96. package/dist/unpkg/prod-deprecated/adapter/-private.js +1 -1
  97. package/dist/unpkg/prod-deprecated/adapter/error.js +2 -2
  98. package/dist/unpkg/prod-deprecated/adapter/json-api.js +1 -1
  99. package/dist/unpkg/prod-deprecated/adapter/rest.js +33 -117
  100. package/dist/unpkg/prod-deprecated/adapter.js +2 -2
  101. package/dist/unpkg/prod-deprecated/compat/-private.js +1 -1
  102. package/dist/unpkg/prod-deprecated/compat.js +2 -1
  103. package/dist/unpkg/prod-deprecated/{errors-CG1SPYVg.js → errors-CdDaK81x.js} +29 -58
  104. package/dist/unpkg/prod-deprecated/{hooks-BIUBiNGR.js → hooks-yId87yyG.js} +1 -1
  105. package/dist/unpkg/prod-deprecated/index.js +3 -3
  106. package/dist/unpkg/prod-deprecated/{json-BYrUP8ao.js → json-BWrZ5546.js} +6 -19
  107. package/dist/unpkg/prod-deprecated/model/-private.js +1 -1
  108. package/dist/unpkg/prod-deprecated/model/migration-support.js +7 -5
  109. package/dist/unpkg/prod-deprecated/model.js +3 -3
  110. package/dist/unpkg/prod-deprecated/{schema-provider-BJ4TWnZf.js → schema-provider-CjX55uSY.js} +34 -77
  111. package/dist/unpkg/{prod/serialize-into-hash-DYU2egXl.js → prod-deprecated/serialize-into-hash-DGlzQteF.js} +1 -1
  112. package/dist/unpkg/prod-deprecated/serializer/json-api.js +6 -5
  113. package/dist/unpkg/prod-deprecated/serializer/json.js +1 -1
  114. package/dist/unpkg/prod-deprecated/serializer/rest.js +1 -1
  115. package/dist/unpkg/prod-deprecated/store.js +2 -1
  116. package/package.json +6 -6
@@ -1,10 +1,11 @@
1
1
  import { getOwner } from '@ember/application';
2
2
  import EmberObject from '@ember/object';
3
3
  import { recordIdentifierFor, storeFor } from '@warp-drive/core';
4
- import { assertPrivateStore, notifyInternalSignal, peekInternalSignal, withSignalStore, recordIdentifierFor as recordIdentifierFor$1, gate, memoized, defineSignal, coerceId, entangleSignal, defineGate } from '@warp-drive/core/store/-private';
4
+ import { notifyInternalSignal, peekInternalSignal, withSignalStore, gate, memoized, defineSignal, entangleSignal, defineGate } from '@warp-drive/core/signals/-leaked';
5
+ import { assertPrivateStore, recordIdentifierFor as recordIdentifierFor$1, coerceId } from '@warp-drive/core/store/-private';
5
6
  import { RecordStore } from '@warp-drive/core/types/symbols';
6
- import { l as lookupLegacySupport, L as LEGACY_SUPPORT, E as Errors } from "./errors-CXnfnBfQ.js";
7
- import { u as upgradeStore, F as FetchManager } from "./-private-Cvf_97EG.js";
7
+ import { l as lookupLegacySupport, L as LEGACY_SUPPORT, E as Errors } from "./errors-BGVFCBmi.js";
8
+ import { u as upgradeStore, F as FetchManager } from "./-private-BdyZaGEh.js";
8
9
  import { cacheFor } from '@ember/object/internals';
9
10
  import { Context } from '@warp-drive/core/reactive/-private';
10
11
  import { d as decorateMethodV2 } from "./runtime-BPCpkOf1-BKOwiRJp.js";
@@ -652,9 +653,7 @@ class Model extends EmberObject {
652
653
  the server or the `created` state if the record is created on the
653
654
  client. A record can also enter the empty state if the adapter is
654
655
  unable to locate the record.
655
- @property isEmpty
656
- @public
657
- @readonly
656
+ @public
658
657
  */
659
658
  get isEmpty() {
660
659
  return this.currentState.isEmpty;
@@ -665,9 +664,7 @@ class Model extends EmberObject {
665
664
  record enters this state when the store asks the adapter for its
666
665
  data. It remains in this state until the adapter provides the
667
666
  requested data.
668
- @property isLoading
669
- @public
670
- @readonly
667
+ @public
671
668
  */
672
669
  static {
673
670
  decorateMethodV2(this.prototype, "isEmpty", [memoized]);
@@ -688,9 +685,7 @@ class Model extends EmberObject {
688
685
  const { content: { data: model } } = await store.request(findRecord({ type: 'model', id: '1' }));
689
686
  model.isLoaded;
690
687
  ```
691
- @property isLoaded
692
- @public
693
- @readonly
688
+ @public
694
689
  */
695
690
  static {
696
691
  decorateMethodV2(this.prototype, "isLoading", [memoized]);
@@ -714,9 +709,7 @@ class Model extends EmberObject {
714
709
  model.hasDirtyAttributes; // true
715
710
  ```
716
711
  @since 1.13.0
717
- @property hasDirtyAttributes
718
712
  @public
719
- @readonly
720
713
  */
721
714
  static {
722
715
  decorateMethodV2(this.prototype, "isLoaded", [memoized]);
@@ -740,9 +733,7 @@ class Model extends EmberObject {
740
733
  record.isSaving; // false
741
734
  });
742
735
  ```
743
- @property isSaving
744
- @public
745
- @readonly
736
+ @public
746
737
  */
747
738
  static {
748
739
  decorateMethodV2(this.prototype, "hasDirtyAttributes", [memoized]);
@@ -778,9 +769,7 @@ class Model extends EmberObject {
778
769
  record.hasDirtyAttributes; // false
779
770
  });
780
771
  ```
781
- @property isDeleted
782
- @public
783
- @readonly
772
+ @public
784
773
  */
785
774
  static {
786
775
  decorateMethodV2(this.prototype, "isSaving", [memoized]);
@@ -802,9 +791,7 @@ class Model extends EmberObject {
802
791
  model.isNew; // false
803
792
  });
804
793
  ```
805
- @property isNew
806
- @public
807
- @readonly
794
+ @public
808
795
  */
809
796
  static {
810
797
  decorateMethodV2(this.prototype, "isDeleted", [memoized]);
@@ -817,9 +804,7 @@ class Model extends EmberObject {
817
804
  If this property is `true` the record is in the `valid` state.
818
805
  A record will be in the `valid` state when the adapter did not report any
819
806
  server-side validation failures.
820
- @property isValid
821
- @public
822
- @readonly
807
+ @public
823
808
  */
824
809
  static {
825
810
  decorateMethodV2(this.prototype, "isNew", [memoized]);
@@ -840,9 +825,7 @@ class Model extends EmberObject {
840
825
  let record = store.createRecord('model');
841
826
  record.dirtyType; // 'created'
842
827
  ```
843
- @property dirtyType
844
- @public
845
- @readonly
828
+ @public
846
829
  */
847
830
  static {
848
831
  decorateMethodV2(this.prototype, "isValid", [memoized]);
@@ -863,9 +846,7 @@ class Model extends EmberObject {
863
846
  record.isError; // true
864
847
  });
865
848
  ```
866
- @property isError
867
- @public
868
- @readonly
849
+ @public
869
850
  */
870
851
  static {
871
852
  decorateMethodV2(this.prototype, "dirtyType", [memoized]);
@@ -886,9 +867,7 @@ class Model extends EmberObject {
886
867
  record.reload();
887
868
  record.isReloading; // true
888
869
  ```
889
- @property isReloading
890
- @public
891
- @readonly
870
+ @public
892
871
  */
893
872
 
894
873
  /**
@@ -903,8 +882,7 @@ class Model extends EmberObject {
903
882
  const { content: { data: model } } = await store.request(findRecord({ type: 'model', id: '1' }));
904
883
  model.id; // '1'
905
884
  ```
906
- @property id
907
- @public
885
+ @public
908
886
  */
909
887
  get id() {
910
888
  // this guard exists, because some dev-only deprecation code
@@ -931,7 +909,6 @@ class Model extends EmberObject {
931
909
  }
932
910
 
933
911
  /**
934
- @property currentState
935
912
  @private
936
913
  */
937
914
  // TODO we can probably make this a computeOnce
@@ -957,8 +934,7 @@ class Model extends EmberObject {
957
934
 
958
935
  /**
959
936
  The store service instance which created this record instance
960
- @property store
961
- @public
937
+ @public
962
938
  */
963
939
 
964
940
  /**
@@ -1001,8 +977,7 @@ class Model extends EmberObject {
1001
977
  </div>
1002
978
  {{/each}}
1003
979
  ```
1004
- @property errors
1005
- @public
980
+ @public
1006
981
  */
1007
982
  get errors() {
1008
983
  const errors = Errors.create({
@@ -1015,8 +990,7 @@ class Model extends EmberObject {
1015
990
  /**
1016
991
  This property holds the `AdapterError` object with which
1017
992
  last adapter operation was rejected.
1018
- @property adapterError
1019
- @public
993
+ @public
1020
994
  */
1021
995
  static {
1022
996
  decorateMethodV2(this.prototype, "errors", [computeOnce]);
@@ -1126,9 +1100,7 @@ class Model extends EmberObject {
1126
1100
  }
1127
1101
  });
1128
1102
  ```
1129
- @property modelName
1130
- @public
1131
- @readonly
1103
+ @public
1132
1104
  */
1133
1105
  static modelName = null;
1134
1106
 
@@ -1254,11 +1226,8 @@ class Model extends EmberObject {
1254
1226
  relationships.post;
1255
1227
  //=> [ { name: 'posts', kind: 'hasMany' } ]
1256
1228
  ```
1257
- @property relationships
1258
- @public
1259
- @readonly
1229
+ @public
1260
1230
  */
1261
-
1262
1231
  static get relationships() {
1263
1232
  const map = new Map();
1264
1233
  const relationshipsByName = this.relationshipsByName;
@@ -1297,9 +1266,7 @@ class Model extends EmberObject {
1297
1266
  relationshipNames.belongsTo;
1298
1267
  //=> ['owner']
1299
1268
  ```
1300
- @property relationshipNames
1301
- @public
1302
- @readonly
1269
+ @public
1303
1270
  */
1304
1271
  static {
1305
1272
  decorateMethodV2(this, "relationships", [computeOnce]);
@@ -1336,9 +1303,7 @@ class Model extends EmberObject {
1336
1303
  let relatedTypes = Blog.relatedTypes');
1337
1304
  //=> ['user', 'post']
1338
1305
  ```
1339
- @property relatedTypes
1340
- @public
1341
- @readonly
1306
+ @public
1342
1307
  */
1343
1308
  static {
1344
1309
  decorateMethodV2(this, "relationshipNames", [computeOnce]);
@@ -1383,9 +1348,7 @@ class Model extends EmberObject {
1383
1348
  relationshipsByName.owner;
1384
1349
  //=> { name: 'owner', kind: 'belongsTo', type: 'user', options: Object }
1385
1350
  ```
1386
- @property relationshipsByName
1387
- @public
1388
- @readonly
1351
+ @public
1389
1352
  */
1390
1353
  static {
1391
1354
  decorateMethodV2(this, "relatedTypes", [computeOnce]);
@@ -1445,9 +1408,7 @@ class Model extends EmberObject {
1445
1408
  // posts, hasMany
1446
1409
  // title, attribute
1447
1410
  ```
1448
- @property fields
1449
- @public
1450
- @readonly
1411
+ @public
1451
1412
  */
1452
1413
  static {
1453
1414
  decorateMethodV2(this, "relationshipsObject", [computeOnce]);
@@ -1469,8 +1430,8 @@ class Model extends EmberObject {
1469
1430
  invoking the callback with the name of each relationship and its relationship
1470
1431
  descriptor.
1471
1432
  @public
1472
- @param {Function} callback the callback to invoke
1473
- @param {any} binding the value to which the callback's `this` should be bound
1433
+ @param callback the callback to invoke
1434
+ @param binding the value to which the callback's `this` should be bound
1474
1435
  */
1475
1436
  static {
1476
1437
  decorateMethodV2(this, "fields", [computeOnce]);
@@ -1487,8 +1448,8 @@ class Model extends EmberObject {
1487
1448
  returned just once, regardless of how many different relationships it has
1488
1449
  with a model.
1489
1450
  @public
1490
- @param {Function} callback the callback to invoke
1491
- @param {any} binding the value to which the callback's `this` should be bound
1451
+ @param callback the callback to invoke
1452
+ @param binding the value to which the callback's `this` should be bound
1492
1453
  */
1493
1454
  static eachRelatedType(callback, binding) {
1494
1455
  const relationshipTypes = this.relatedTypes;
@@ -1546,9 +1507,7 @@ class Model extends EmberObject {
1546
1507
  // lastName {type: "string", kind: 'attribute', options: Object, parentType: function, name: "lastName"}
1547
1508
  // birthday {type: "date", kind: 'attribute', options: Object, parentType: function, name: "birthday"}
1548
1509
  ```
1549
- @property attributes
1550
- @public
1551
- @readonly
1510
+ @public
1552
1511
  */
1553
1512
  static get attributes() {
1554
1513
  const map = new Map();
@@ -1587,9 +1546,7 @@ class Model extends EmberObject {
1587
1546
  // lastName string
1588
1547
  // birthday date
1589
1548
  ```
1590
- @property transformedAttributes
1591
- @public
1592
- @readonly
1549
+ @public
1593
1550
  */
1594
1551
  static {
1595
1552
  decorateMethodV2(this, "attributes", [computeOnce]);
@@ -1633,8 +1590,8 @@ class Model extends EmberObject {
1633
1590
  // birthday {type: "date", kind: 'attribute', options: Object, parentType: function, name: "birthday"}
1634
1591
  ```
1635
1592
  @public
1636
- @param {Function} callback The callback to execute
1637
- @param {Object} [binding] the value to which the callback's `this` should be bound
1593
+ @param callback The callback to execute
1594
+ @param binding [optional] the value to which the callback's `this` should be bound
1638
1595
  */
1639
1596
  static {
1640
1597
  decorateMethodV2(this, "transformedAttributes", [computeOnce]);
@@ -1675,8 +1632,8 @@ class Model extends EmberObject {
1675
1632
  // birthday date
1676
1633
  ```
1677
1634
  @public
1678
- @param {Function} callback The callback to execute
1679
- @param {Object} [binding] the value to which the callback's `this` should be bound
1635
+ @param callback The callback to execute
1636
+ @param binding [optional] the value to which the callback's `this` should be bound
1680
1637
  */
1681
1638
  static eachTransformedAttribute(callback, binding) {
1682
1639
  this.transformedAttributes.forEach((type, name) => {
@@ -1,5 +1,5 @@
1
1
  import '@warp-drive/core/reactive/-private';
2
- import "./-private-Cvf_97EG.js";
2
+ import "./-private-BdyZaGEh.js";
3
3
  import '@warp-drive/core/store/-private';
4
4
  const newline = /\r?\n/;
5
5
  function parseResponseHeaders(headersString) {
@@ -1,5 +1,5 @@
1
1
  import { dasherize, pluralize, singularize } from '@warp-drive/utilities/string';
2
- import { J as JSONSerializer } from "../json-BYrUP8ao.js";
2
+ import { J as JSONSerializer } from "../json-BWrZ5546.js";
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-return */
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
@@ -19,8 +19,9 @@ import { J as JSONSerializer } from "../json-BYrUP8ao.js";
19
19
  This process involves normalizing property names, transforming
20
20
  attribute values and serializing relationships.
21
21
 
22
- `JSONAPISerializer` supports the http://jsonapi.org/ spec and is the
23
- serializer recommended by Ember Data.
22
+ `JSONAPISerializer` supports the http://jsonapi.org/ spec, though
23
+ even compliant {json:api} servers may find writing an application
24
+ specific serializer better suited to their needs and more performant.
24
25
 
25
26
  This serializer normalizes a JSON API payload that looks like:
26
27
 
@@ -89,7 +90,7 @@ import { J as JSONSerializer } from "../json-BYrUP8ao.js";
89
90
  }
90
91
  ```
91
92
 
92
- to the format that the Ember Data store expects.
93
+ to the format that the JSONAPICache expects.
93
94
 
94
95
  ### Customizing meta
95
96
 
@@ -265,7 +266,7 @@ const JSONAPISerializer = JSONSerializer.extend({
265
266
  },
266
267
  /**
267
268
  Dasherizes and singularizes the model name in the payload to match
268
- the format Ember Data uses internally for the model name.
269
+ the common convention for model names.
269
270
  For example the key `posts` would be converted to `post` and the
270
271
  key `studentAssesments` would be converted to `student-assesment`.
271
272
  @public
@@ -1,4 +1,4 @@
1
1
  import '@ember/application';
2
2
  import '@warp-drive/utilities/string';
3
3
  import '../serializer.js';
4
- export { J as JSONSerializer } from "../json-BYrUP8ao.js";
4
+ export { J as JSONSerializer } from "../json-BWrZ5546.js";
@@ -1,5 +1,5 @@
1
1
  import { camelize, dasherize, singularize } from '@warp-drive/utilities/string';
2
- import { J as JSONSerializer, c as coerceId } from "../json-BYrUP8ao.js";
2
+ import { J as JSONSerializer, c as coerceId } from "../json-BWrZ5546.js";
3
3
  import Mixin from '@ember/object/mixin';
4
4
 
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
@@ -1,7 +1,8 @@
1
- import { defineSignal, assertPrivateStore, ensureStringId, recordIdentifierFor, constructResource } from '@warp-drive/core/store/-private';
1
+ import { assertPrivateStore, ensureStringId, recordIdentifierFor, constructResource } from '@warp-drive/core/store/-private';
2
2
  import { SkipCache } from '@warp-drive/core/types/request';
3
3
  import { i as isMaybeIdentifier } from "./utils-BhvS1iTS.js";
4
4
  import { n as normalizeModelName } from "./util-DvanW33H.js";
5
+ import { defineSignal } from '@warp-drive/core/signals/-leaked';
5
6
  import { getOrSetGlobal } from '@warp-drive/core/types/-private';
6
7
 
7
8
  /*
@@ -1,5 +1,6 @@
1
1
  import { Context } from '@warp-drive/core/reactive/-private';
2
2
  import { createDeferred } from '@warp-drive/core/request';
3
+ import '@warp-drive/core/signals/-leaked';
3
4
  import { assertPrivateStore } from '@warp-drive/core/store/-private';
4
5
  import { getOrSetGlobal } from '@warp-drive/core/types/-private';
5
6
 
@@ -1 +1 @@
1
- export { d as determineBodyPromise, g as fetch, p as parseResponseHeaders, b as serializeIntoHash, s as serializeQueryParams, a as setupFastboot } from "../serialize-into-hash-DYU2egXl.js";
1
+ export { d as determineBodyPromise, g as fetch, p as parseResponseHeaders, b as serializeIntoHash, s as serializeQueryParams, a as setupFastboot } from "../serialize-into-hash-DGlzQteF.js";
@@ -119,8 +119,8 @@ function extend(ParentErrorClass, defaultMessage) {
119
119
  transition to the `invalid` state and the errors will be set to the
120
120
  `errors` property on the record.
121
121
 
122
- For Ember Data to correctly map errors to their corresponding
123
- properties on the model, Ember Data expects each error to be
122
+ For WarpDrive to correctly map errors to their corresponding
123
+ properties on the model, WarpDrive expects each error to be
124
124
  a valid JSON-API error object with a `source/pointer` that matches
125
125
  the property name. For example, if you had a Post model that
126
126
  looked like this.
@@ -1,5 +1,5 @@
1
1
  import { dasherize, pluralize } from '@warp-drive/utilities/string';
2
- import { b as serializeIntoHash } from "../serialize-into-hash-DYU2egXl.js";
2
+ import { b as serializeIntoHash } from "../serialize-into-hash-DGlzQteF.js";
3
3
  import { RESTAdapter } from './rest.js';
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars