@ember-data/store 5.5.0-alpha.4 → 5.5.0-alpha.9
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 { f as AdapterPopulatedRecordArray, C as CacheHandler, h as IDENTIFIER_ARRAY_TAG, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, m as StoreMap, _ as _clearCaches, e as coerceId, j as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, k as removeRecordDataFor, o as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, l as setRecordIdentifier, s as storeFor } from "./store-service-
|
|
1
|
+
export { f as AdapterPopulatedRecordArray, C as CacheHandler, h as IDENTIFIER_ARRAY_TAG, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, m as StoreMap, _ as _clearCaches, e as coerceId, j as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, k as removeRecordDataFor, o as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, l as setRecordIdentifier, s as storeFor } from "./store-service-45bbfe5a";
|
package/addon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./store-service-
|
|
1
|
+
export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./store-service-45bbfe5a";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { macroCondition, getOwnConfig } from '@embroider/macros';
|
|
2
1
|
import { getOwner } from '@ember/application';
|
|
3
2
|
import { assert, deprecate, warn } from '@ember/debug';
|
|
4
3
|
import EmberObject from '@ember/object';
|
|
5
4
|
import { tracked } from '@glimmer/tracking';
|
|
5
|
+
import { macroCondition, getOwnConfig } from '@embroider/macros';
|
|
6
6
|
import { dasherize } from '@ember/string';
|
|
7
7
|
import { _backburner } from '@ember/runloop';
|
|
8
8
|
import { addToTransaction, subscribe, addTransactionCB } from '@ember-data/tracking/-private';
|
|
@@ -391,12 +391,10 @@ function copyDocumentProperties(target, source) {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
// ID into the URL, and if we later try to deserialize that URL and find the
|
|
399
|
-
// corresponding record, we will not know if it is a string or a number.
|
|
394
|
+
/**
|
|
395
|
+
@module @ember-data/store
|
|
396
|
+
*/
|
|
397
|
+
|
|
400
398
|
function coerceId(id) {
|
|
401
399
|
if (macroCondition(getOwnConfig().deprecations.DEPRECATE_NON_STRICT_ID)) {
|
|
402
400
|
let normalized;
|
|
@@ -1415,11 +1413,6 @@ function peekCache(instance) {
|
|
|
1415
1413
|
}
|
|
1416
1414
|
return null;
|
|
1417
1415
|
}
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
@module @ember-data/store
|
|
1421
|
-
*/
|
|
1422
|
-
|
|
1423
1416
|
const RecordCache = new Map();
|
|
1424
1417
|
function peekRecordIdentifier(record) {
|
|
1425
1418
|
return RecordCache.get(record);
|
|
@@ -2410,6 +2403,10 @@ class CacheManager {
|
|
|
2410
2403
|
return _classPrivateFieldBase(this, _cache)[_cache].isDeletionCommitted(identifier);
|
|
2411
2404
|
}
|
|
2412
2405
|
}
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* @module @ember-data/store
|
|
2409
|
+
*/
|
|
2413
2410
|
let tokenId = 0;
|
|
2414
2411
|
const CacheOperations = new Set(['added', 'removed', 'state', 'updated']);
|
|
2415
2412
|
function isCacheOperationValue(value) {
|
|
@@ -3396,6 +3393,9 @@ function sync(array, changes, arraySet) {
|
|
|
3396
3393
|
}
|
|
3397
3394
|
}
|
|
3398
3395
|
|
|
3396
|
+
/**
|
|
3397
|
+
* @module @ember-data/store
|
|
3398
|
+
*/
|
|
3399
3399
|
const Touching = Symbol('touching');
|
|
3400
3400
|
const RequestPromise = Symbol('promise');
|
|
3401
3401
|
const EMPTY_ARR = macroCondition(getOwnConfig().env.DEBUG) ? Object.freeze([]) : [];
|
|
@@ -3630,6 +3630,11 @@ function constructResource(type, id, lid) {
|
|
|
3630
3630
|
}
|
|
3631
3631
|
}
|
|
3632
3632
|
|
|
3633
|
+
/**
|
|
3634
|
+
@module @ember-data/store
|
|
3635
|
+
*/
|
|
3636
|
+
// this import location is deprecated but breaks in 4.8 and older
|
|
3637
|
+
|
|
3633
3638
|
/**
|
|
3634
3639
|
* A Store coordinates interaction between your application, a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache),
|
|
3635
3640
|
* and sources of data (such as your API or a local persistence layer)
|