@ember-data/store 5.5.0-alpha.22 → 5.5.0-alpha.24

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/-private.js CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CacheHandler, k as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, v as RelatedCollection, l as SOURCE, G as Signals, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, h as coerceId, g as constructResource, L as consumeInternalSignal, F as defineNonEnumerableSignal, E as defineSignal, j as ensureStringId, D as entangleSignal, m as fastPush, B as gate, N as getOrCreateInternalSignal, y as getPromiseState, z as getRequestState, f as isDocumentIdentifier, i as isStableIdentifier, w as log, x as logGroup, A as memoized, K as notifyInternalSignal, p as peekCache, H as peekInternalSignal, r as recordIdentifierFor, n as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor, J as withSignalStore } from "./request-state-BrADgFy5.js";
1
+ export { C as CacheHandler, k as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, v as RelatedCollection, l as SOURCE, G as Signals, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, h as coerceId, g as constructResource, L as consumeInternalSignal, F as defineNonEnumerableSignal, E as defineSignal, j as ensureStringId, D as entangleSignal, m as fastPush, B as gate, N as getOrCreateInternalSignal, y as getPromiseState, z as getRequestState, f as isDocumentIdentifier, i as isStableIdentifier, w as log, x as logGroup, A as memoized, K as notifyInternalSignal, p as peekCache, H as peekInternalSignal, r as recordIdentifierFor, n as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor, J as withSignalStore } from "./request-state-uRtpn0Lc.js";
2
2
  export { A as ARRAY_SIGNAL, O as OBJECT_SIGNAL, c as createMemo } from "./configure-BfLLW6GY.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, e as setKeyInfoForResource, s as storeFor } from "./request-state-BrADgFy5.js";
1
+ export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, e as setKeyInfoForResource, s as storeFor } from "./request-state-uRtpn0Lc.js";
2
2
  import '@ember/debug';
3
3
  import '@embroider/macros';
4
4
  import '@ember-data/request-utils/string';
@@ -1170,7 +1170,7 @@ class ReactiveDocument {
1170
1170
  * ```
1171
1171
  *
1172
1172
  * @property links
1173
- * @type {object|undefined} - a links object
1173
+ * @type {Object|undefined} - a links object
1174
1174
  * @public
1175
1175
  */
1176
1176
 
@@ -1185,7 +1185,7 @@ class ReactiveDocument {
1185
1185
  *
1186
1186
  * @property data
1187
1187
  * @public
1188
- * @type {object|Array<object>|null|undefined} - a data object
1188
+ * @type {Object|Array<object>|null|undefined} - a data object
1189
1189
  */
1190
1190
 
1191
1191
  /**
@@ -1193,7 +1193,7 @@ class ReactiveDocument {
1193
1193
  *
1194
1194
  * @property errors
1195
1195
  * @public
1196
- * @type {object|undefined} - an errors object
1196
+ * @type {Object|undefined} - an errors object
1197
1197
  */
1198
1198
 
1199
1199
  /**
@@ -1201,7 +1201,7 @@ class ReactiveDocument {
1201
1201
  *
1202
1202
  * @property meta
1203
1203
  * @public
1204
- * @type {object|undefined} - a meta object
1204
+ * @type {Object|undefined} - a meta object
1205
1205
  */
1206
1206
 
1207
1207
  /**
@@ -1255,7 +1255,7 @@ class ReactiveDocument {
1255
1255
  *
1256
1256
  * @method fetch
1257
1257
  * @public
1258
- * @param {object} options
1258
+ * @param {Object} options
1259
1259
  * @return Promise<Document>
1260
1260
  */
1261
1261
  fetch(options = {}) {
@@ -1276,7 +1276,7 @@ class ReactiveDocument {
1276
1276
  *
1277
1277
  * @method next
1278
1278
  * @public
1279
- * @param {object} options
1279
+ * @param {Object} options
1280
1280
  * @return Promise<Document | null>
1281
1281
  */
1282
1282
  next(options = {}) {
@@ -1290,7 +1290,7 @@ class ReactiveDocument {
1290
1290
  *
1291
1291
  * @method prev
1292
1292
  * @public
1293
- * @param {object} options
1293
+ * @param {Object} options
1294
1294
  * @return Promise<Document | null>
1295
1295
  */
1296
1296
  prev(options = {}) {
@@ -1304,7 +1304,7 @@ class ReactiveDocument {
1304
1304
  *
1305
1305
  * @method first
1306
1306
  * @public
1307
- * @param {object} options
1307
+ * @param {Object} options
1308
1308
  * @return Promise<Document | null>
1309
1309
  */
1310
1310
  first(options = {}) {
@@ -1318,7 +1318,7 @@ class ReactiveDocument {
1318
1318
  *
1319
1319
  * @method last
1320
1320
  * @public
1321
- * @param {object} options
1321
+ * @param {Object} options
1322
1322
  * @return Promise<Document | null>
1323
1323
  */
1324
1324
  last(options = {}) {
@@ -2671,7 +2671,7 @@ class CacheManager {
2671
2671
  * @method hasChangedAttrs
2672
2672
  * @public
2673
2673
  * @param identifier
2674
- * @return {boolean}
2674
+ * @return {Boolean}
2675
2675
  */
2676
2676
  hasChangedAttrs(identifier) {
2677
2677
  return this.#cache.hasChangedAttrs(identifier);
@@ -2729,7 +2729,7 @@ class CacheManager {
2729
2729
  * @method hasChangedRelationships
2730
2730
  * @public
2731
2731
  * @param {StableRecordIdentifier} identifier
2732
- * @return {boolean}
2732
+ * @return {Boolean}
2733
2733
  */
2734
2734
  hasChangedRelationships(identifier) {
2735
2735
  return this.#cache.hasChangedRelationships(identifier);
@@ -2745,7 +2745,7 @@ class CacheManager {
2745
2745
  * @method rollbackRelationships
2746
2746
  * @public
2747
2747
  * @param {StableRecordIdentifier} identifier
2748
- * @return {string[]} the names of relationships that were restored
2748
+ * @return {String[]} the names of relationships that were restored
2749
2749
  */
2750
2750
  rollbackRelationships(identifier) {
2751
2751
  return this.#cache.rollbackRelationships(identifier);
@@ -2811,7 +2811,7 @@ class CacheManager {
2811
2811
  * @method isEmpty
2812
2812
  * @public
2813
2813
  * @param identifier
2814
- * @return {boolean}
2814
+ * @return {Boolean}
2815
2815
  */
2816
2816
  isEmpty(identifier) {
2817
2817
  return this.#cache.isEmpty(identifier);
@@ -2824,7 +2824,7 @@ class CacheManager {
2824
2824
  * @method isNew
2825
2825
  * @public
2826
2826
  * @param identifier
2827
- * @return {boolean}
2827
+ * @return {Boolean}
2828
2828
  */
2829
2829
  isNew(identifier) {
2830
2830
  return this.#cache.isNew(identifier);
@@ -2837,7 +2837,7 @@ class CacheManager {
2837
2837
  * @method isDeleted
2838
2838
  * @public
2839
2839
  * @param identifier
2840
- * @return {boolean}
2840
+ * @return {Boolean}
2841
2841
  */
2842
2842
  isDeleted(identifier) {
2843
2843
  return this.#cache.isDeleted(identifier);
@@ -2850,7 +2850,7 @@ class CacheManager {
2850
2850
  * @method isDeletionCommitted
2851
2851
  * @public
2852
2852
  * @param identifier
2853
- * @return {boolean}
2853
+ * @return {Boolean}
2854
2854
  */
2855
2855
  isDeletionCommitted(identifier) {
2856
2856
  return this.#cache.isDeletionCommitted(identifier);
@@ -4481,7 +4481,8 @@ class Store extends BaseClass {
4481
4481
  * The NotificationManager can be used to subscribe to
4482
4482
  * changes to the cache.
4483
4483
  *
4484
- * @property {NotificationManager} notifications
4484
+ * @property notifications
4485
+ * @type {NotificationManager}
4485
4486
  * @public
4486
4487
  */
4487
4488
 
@@ -4492,7 +4493,8 @@ class Store extends BaseClass {
4492
4493
  * The SchemaService can be used to query for
4493
4494
  * information about the schema of a resource.
4494
4495
  *
4495
- * @property {SchemaService} schema
4496
+ * @property schema
4497
+ * @type {SchemaService}
4496
4498
  * @public
4497
4499
  */
4498
4500
  get schema() {
@@ -4509,7 +4511,8 @@ class Store extends BaseClass {
4509
4511
  * The IdentifierCache can be used to generate or
4510
4512
  * retrieve a stable unique identifier for any resource.
4511
4513
  *
4512
- * @property {IdentifierCache} identifierCache
4514
+ * @property identifierCache
4515
+ * @type {IdentifierCache}
4513
4516
  * @public
4514
4517
  */
4515
4518
 
@@ -4535,7 +4538,8 @@ class Store extends BaseClass {
4535
4538
  * ```
4536
4539
  *
4537
4540
  * @public
4538
- * @property {RequestManager} requestManager
4541
+ * @property requestManager
4542
+ * @type {RequestManager}
4539
4543
  */
4540
4544
 
4541
4545
  /**
@@ -4565,7 +4569,8 @@ class Store extends BaseClass {
4565
4569
  * ```
4566
4570
  *
4567
4571
  * @public
4568
- * @property {CachePolicy|undefined} lifetimes
4572
+ * @property lifetimes
4573
+ * @type {CachePolicy|undefined}
4569
4574
  */
4570
4575
 
4571
4576
  // Private
@@ -4857,7 +4862,7 @@ class Store extends BaseClass {
4857
4862
  @method modelFor
4858
4863
  @public
4859
4864
  @deprecated
4860
- @param {string} type
4865
+ @param {String} type
4861
4866
  @return {ModelSchema}
4862
4867
  */
4863
4868
 
@@ -5502,7 +5507,7 @@ class Store extends BaseClass {
5502
5507
  @method query
5503
5508
  @public
5504
5509
  @param {String} type the name of the resource
5505
- @param {object} query a query to be used by the adapter
5510
+ @param {Object} query a query to be used by the adapter
5506
5511
  @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.query
5507
5512
  @return {Promise} promise
5508
5513
  */
@@ -5616,9 +5621,9 @@ class Store extends BaseClass {
5616
5621
  @since 1.13.0
5617
5622
  @method queryRecord
5618
5623
  @public
5619
- @param {string} type
5620
- @param {object} query an opaque query to be used by the adapter
5621
- @param {object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord
5624
+ @param {String} type
5625
+ @param {Object} query an opaque query to be used by the adapter
5626
+ @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord
5622
5627
  @return {Promise} promise which resolves with the found record or `null`
5623
5628
  */
5624
5629
 
@@ -5797,8 +5802,8 @@ class Store extends BaseClass {
5797
5802
  @since 1.13.0
5798
5803
  @method findAll
5799
5804
  @public
5800
- @param {string} type the name of the resource
5801
- @param {object} options
5805
+ @param {String} type the name of the resource
5806
+ @param {Object} options
5802
5807
  @return {Promise} promise
5803
5808
  */
5804
5809
 
@@ -5846,7 +5851,7 @@ class Store extends BaseClass {
5846
5851
  @since 1.13.0
5847
5852
  @method peekAll
5848
5853
  @public
5849
- @param {string} type the name of the resource
5854
+ @param {String} type the name of the resource
5850
5855
  @return {RecordArray}
5851
5856
  */
5852
5857
 
@@ -5876,7 +5881,7 @@ class Store extends BaseClass {
5876
5881
  store.unloadAll('post');
5877
5882
  ```
5878
5883
  @method unloadAll
5879
- @param {string} type the name of the resource
5884
+ @param {String} type the name of the resource
5880
5885
  @public
5881
5886
  */
5882
5887
 
@@ -6148,7 +6153,8 @@ class Store extends BaseClass {
6148
6153
  * Returns the cache instance associated to this Store, instantiates the Cache
6149
6154
  * if necessary via `Store.createCache`
6150
6155
  *
6151
- * @property {Cache} cache
6156
+ * @property cache
6157
+ * @type {Cache}
6152
6158
  * @public
6153
6159
  */
6154
6160
  get cache() {
@@ -6710,13 +6716,15 @@ function fetchContentAndHydrate(next, context, identifier, priority) {
6710
6716
  class RelatedCollection extends IdentifierArray {
6711
6717
  /**
6712
6718
  The loading state of this array
6713
- @property {Boolean} isLoaded
6719
+ @property isLoaded
6720
+ @type {Boolean}
6714
6721
  @public
6715
6722
  */
6716
6723
 
6717
6724
  /**
6718
6725
  `true` if the relationship is polymorphic, `false` otherwise.
6719
- @property {Boolean} isPolymorphic
6726
+ @property isPolymorphic
6727
+ @type {Boolean}
6720
6728
  @private
6721
6729
  */
6722
6730
 
@@ -6746,14 +6754,16 @@ class RelatedCollection extends IdentifierArray {
6746
6754
  // meta.page => 1
6747
6755
  // meta.total => 5
6748
6756
  ```
6749
- @property {Object | null} meta
6757
+ @property meta
6758
+ @type {Object | null}
6750
6759
  @public
6751
6760
  */
6752
6761
 
6753
6762
  /**
6754
6763
  * Retrieve the links for this relationship
6755
6764
  *
6756
- @property {Object | null} links
6765
+ @property links
6766
+ @type {Object | null}
6757
6767
  @public
6758
6768
  */
6759
6769