@ember-data/store 5.4.0-alpha.59 → 5.4.0-alpha.60

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/addon/-private.js CHANGED
@@ -1 +1 @@
1
- export { A as ARRAY_SIGNAL, b as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, d as SOURCE, S as Store, j as StoreMap, _ as _clearCaches, l as _deprecatingNormalize, a as coerceId, c as constructResource, e as ensureStringId, f as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, g as removeRecordDataFor, k as setCacheFor, h as setRecordIdentifier, s as storeFor } from "./cache-handler-DoL926UP";
1
+ export { A as ARRAY_SIGNAL, b as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, d as SOURCE, S as Store, j as StoreMap, _ as _clearCaches, l as _deprecatingNormalize, a as coerceId, c as constructResource, e as ensureStringId, f as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, g as removeRecordDataFor, k as setCacheFor, h as setRecordIdentifier, s as storeFor } from "./cache-handler-BTI9dTJb";
@@ -4546,22 +4546,23 @@ class Store extends EmberObject {
4546
4546
  @since 1.13.0
4547
4547
  @method queryRecord
4548
4548
  @public
4549
- @param {String} modelName
4550
- @param {any} query an opaque query to be used by the adapter
4551
- @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord
4549
+ @param {string} type
4550
+ @param {object} query an opaque query to be used by the adapter
4551
+ @param {object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord
4552
4552
  @return {Promise} promise which resolves with the found record or `null`
4553
4553
  */
4554
- queryRecord(modelName, query, options) {
4554
+
4555
+ queryRecord(type, query, options) {
4555
4556
  if (macroCondition(getOwnConfig().env.DEBUG)) {
4556
4557
  assertDestroyingStore(this, 'queryRecord');
4557
4558
  }
4558
- assert(`You need to pass a model name to the store's queryRecord method`, modelName);
4559
+ assert(`You need to pass a model name to the store's queryRecord method`, type);
4559
4560
  assert(`You need to pass a query hash to the store's queryRecord method`, query);
4560
- assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string');
4561
+ assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${type}`, typeof type === 'string');
4561
4562
  const promise = this.request({
4562
4563
  op: 'queryRecord',
4563
4564
  data: {
4564
- type: normalizeModelName(modelName),
4565
+ type: normalizeModelName(type),
4565
4566
  query,
4566
4567
  options: options || {}
4567
4568
  },