@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 +1 -1
- package/addon/{cache-handler-DoL926UP.js → cache-handler-BTI9dTJb.js} +8 -7
- package/addon/cache-handler-BTI9dTJb.js.map +1 -0
- package/addon/index.js +1 -1
- package/package.json +10 -9
- package/unstable-preview-types/-private/store-service.d.ts +16 -13
- package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
- package/unstable-preview-types/-private/store-service.type-test.d.ts +4 -0
- package/unstable-preview-types/-private/store-service.type-test.d.ts.map +1 -0
- package/unstable-preview-types/-types/q/store.d.ts +25 -4
- package/unstable-preview-types/-types/q/store.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +1 -0
- package/addon/cache-handler-DoL926UP.js.map +0 -1
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-
|
|
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 {
|
|
4550
|
-
@param {
|
|
4551
|
-
@param {
|
|
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
|
-
|
|
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`,
|
|
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 ${
|
|
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(
|
|
4565
|
+
type: normalizeModelName(type),
|
|
4565
4566
|
query,
|
|
4566
4567
|
options: options || {}
|
|
4567
4568
|
},
|