@ember-data/model 4.12.0-alpha.17 → 4.12.0-alpha.18
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/LICENSE.md
CHANGED
package/addon/-private.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Model } from "./has-many-
|
|
2
|
-
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-
|
|
1
|
+
import { M as Model } from "./has-many-c84372b4";
|
|
2
|
+
export { E as Errors, L as LEGACY_SUPPORT, R as ManyArray, P as PromiseBelongsTo, c as PromiseManyArray, a as attr, b as belongsTo, h as hasMany } from "./has-many-c84372b4";
|
|
3
3
|
import { getOwner } from '@ember/application';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -2716,7 +2716,10 @@ class LegacySupport {
|
|
|
2716
2716
|
return this.store.request({
|
|
2717
2717
|
op: 'findHasMany',
|
|
2718
2718
|
records: identifiers || [],
|
|
2719
|
-
data: request
|
|
2719
|
+
data: request,
|
|
2720
|
+
cacheOptions: {
|
|
2721
|
+
[Symbol.for('ember-data:skip-cache')]: true
|
|
2722
|
+
}
|
|
2720
2723
|
});
|
|
2721
2724
|
}
|
|
2722
2725
|
const preferLocalCache = hasReceivedData && !isEmpty;
|
|
@@ -2733,7 +2736,10 @@ class LegacySupport {
|
|
|
2733
2736
|
return this.store.request({
|
|
2734
2737
|
op: 'findHasMany',
|
|
2735
2738
|
records: identifiers,
|
|
2736
|
-
data: request
|
|
2739
|
+
data: request,
|
|
2740
|
+
cacheOptions: {
|
|
2741
|
+
[Symbol.for('ember-data:skip-cache')]: true
|
|
2742
|
+
}
|
|
2737
2743
|
});
|
|
2738
2744
|
}
|
|
2739
2745
|
|
|
@@ -2781,7 +2787,10 @@ class LegacySupport {
|
|
|
2781
2787
|
const future = this.store.request({
|
|
2782
2788
|
op: 'findBelongsTo',
|
|
2783
2789
|
records: identifier ? [identifier] : [],
|
|
2784
|
-
data: request
|
|
2790
|
+
data: request,
|
|
2791
|
+
cacheOptions: {
|
|
2792
|
+
[Symbol.for('ember-data:skip-cache')]: true
|
|
2793
|
+
}
|
|
2785
2794
|
});
|
|
2786
2795
|
this._pending = future.then(doc => doc.content).finally(() => {
|
|
2787
2796
|
this._pending = null;
|
|
@@ -2812,7 +2821,10 @@ class LegacySupport {
|
|
|
2812
2821
|
this._pending = this.store.request({
|
|
2813
2822
|
op: 'findBelongsTo',
|
|
2814
2823
|
records: [identifier],
|
|
2815
|
-
data: request
|
|
2824
|
+
data: request,
|
|
2825
|
+
cacheOptions: {
|
|
2826
|
+
[Symbol.for('ember-data:skip-cache')]: true
|
|
2827
|
+
}
|
|
2816
2828
|
}).then(doc => doc.content).finally(() => {
|
|
2817
2829
|
this._pending = null;
|
|
2818
2830
|
});
|
|
@@ -4277,6 +4289,9 @@ let Model = (_class = (_class2 = class Model extends EmberObject {
|
|
|
4277
4289
|
data: {
|
|
4278
4290
|
options,
|
|
4279
4291
|
record: identifier
|
|
4292
|
+
},
|
|
4293
|
+
cacheOptions: {
|
|
4294
|
+
[Symbol.for('ember-data:skip-cache')]: true
|
|
4280
4295
|
}
|
|
4281
4296
|
}).then(() => this).finally(() => {
|
|
4282
4297
|
this.isReloading = false;
|