@warp-drive-mirror/core 5.10.0-alpha.18 → 5.10.0-alpha.19

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.
Files changed (66) hide show
  1. package/dist/build-config/babel-macros.d.ts +5 -0
  2. package/dist/build-config/canary-features.d.ts +5 -0
  3. package/dist/build-config/debugging.d.ts +59 -0
  4. package/dist/build-config/deprecations.d.ts +5 -0
  5. package/dist/build-config.d.ts +17 -0
  6. package/dist/configure.d.ts +8 -0
  7. package/dist/graph/-private.js +2 -1
  8. package/dist/graph/-private.js.map +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/reactive.d.ts +275 -0
  11. package/dist/reactive.js +1 -1
  12. package/dist/request.d.ts +8 -0
  13. package/dist/signals/-leaked.d.ts +14 -0
  14. package/dist/signals/-leaked.d.ts.map +1 -1
  15. package/dist/{src-PuYJ-RSZ.js → src-CvKTKJvq.js} +2 -2
  16. package/dist/src-CvKTKJvq.js.map +1 -0
  17. package/dist/store/-private.js +1 -1
  18. package/dist/store.d.ts +5 -0
  19. package/dist/types/-private.js +1 -1
  20. package/dist/types/cache/relationship.d.ts +5 -0
  21. package/dist/types/cache.d.ts +5 -0
  22. package/dist/types/graph.d.ts +5 -0
  23. package/dist/types/record.d.ts +5 -0
  24. package/dist/types/schema/concepts.d.ts +5 -0
  25. package/dist/types/schema/schema-service.d.ts +5 -0
  26. package/dist/types/spec/error.d.ts +4 -0
  27. package/dist/types/spec/json-api-raw.d.ts +5 -0
  28. package/dist/types.d.ts +8 -0
  29. package/dist/unpkg/dev/graph/-private.js +2 -1
  30. package/dist/unpkg/dev/graph/-private.js.map +1 -1
  31. package/dist/unpkg/dev/index.js +1 -1
  32. package/dist/unpkg/dev/reactive.js +1 -1
  33. package/dist/unpkg/dev/{src-Dy9m6GTv.js → src-CqJO8wIe.js} +2 -2
  34. package/dist/unpkg/dev/src-CqJO8wIe.js.map +1 -0
  35. package/dist/unpkg/dev/store/-private.js +1 -1
  36. package/dist/unpkg/dev/types/-private.js +1 -1
  37. package/dist/unpkg/dev-deprecated/graph/-private.js +2 -1
  38. package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
  39. package/dist/unpkg/dev-deprecated/index.js +1 -1
  40. package/dist/unpkg/dev-deprecated/reactive.js +1 -1
  41. package/dist/unpkg/dev-deprecated/{src-ByOiBTF3.js → src-BtyRjyV0.js} +2 -2
  42. package/dist/unpkg/dev-deprecated/src-BtyRjyV0.js.map +1 -0
  43. package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
  44. package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
  45. package/dist/unpkg/prod/graph/-private.js +5 -2
  46. package/dist/unpkg/prod/graph/-private.js.map +1 -1
  47. package/dist/unpkg/prod/index.js +1 -1
  48. package/dist/unpkg/prod/reactive.js +1 -1
  49. package/dist/unpkg/prod/{src-NuWjjfax.js → src-Ack6NaKZ.js} +2 -2
  50. package/dist/unpkg/prod/src-Ack6NaKZ.js.map +1 -0
  51. package/dist/unpkg/prod/store/-private.js +1 -1
  52. package/dist/unpkg/prod/types/-private.js +1 -1
  53. package/dist/unpkg/prod-deprecated/graph/-private.js +5 -2
  54. package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
  55. package/dist/unpkg/prod-deprecated/index.js +1 -1
  56. package/dist/unpkg/prod-deprecated/reactive.js +1 -1
  57. package/dist/unpkg/prod-deprecated/{src-Bt7BkX1Y.js → src-C8-R95FT.js} +2 -2
  58. package/dist/unpkg/prod-deprecated/src-C8-R95FT.js.map +1 -0
  59. package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
  60. package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
  61. package/package.json +4 -4
  62. package/dist/src-PuYJ-RSZ.js.map +0 -1
  63. package/dist/unpkg/dev/src-Dy9m6GTv.js.map +0 -1
  64. package/dist/unpkg/dev-deprecated/src-ByOiBTF3.js.map +0 -1
  65. package/dist/unpkg/prod/src-NuWjjfax.js.map +0 -1
  66. package/dist/unpkg/prod-deprecated/src-Bt7BkX1Y.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as setIdentifierGenerationMethod, M as setIdentifierUpdateMethod, N as setKeyInfoForResource, S as recordIdentifierFor, h as Store, j as setIdentifierResetMethod, k as setIdentifierForgetMethod, m as CacheHandler, n as RequestManager, r as Fetch, t as useRecommendedStore, w as storeFor } from "./src-PuYJ-RSZ.js";
1
+ import { A as setIdentifierGenerationMethod, M as setIdentifierUpdateMethod, N as setKeyInfoForResource, S as recordIdentifierFor, h as Store, j as setIdentifierResetMethod, k as setIdentifierForgetMethod, m as CacheHandler, n as RequestManager, r as Fetch, t as useRecommendedStore, w as storeFor } from "./src-CvKTKJvq.js";
2
2
 
3
3
  export { CacheHandler, Fetch, RequestManager, Store, recordIdentifierFor as cacheKeyFor, recordIdentifierFor, setIdentifierForgetMethod, setIdentifierGenerationMethod, setIdentifierResetMethod, setIdentifierUpdateMethod, setKeyInfoForResource, storeFor, useRecommendedStore };
@@ -1,2 +1,277 @@
1
+ /**
2
+ * # About
3
+ *
4
+ * This module provides an implementation of reactive objects that a Store may use for creating
5
+ * reactive representations of the raw data for requests, resources and their relationships
6
+ * stored in the cache.
7
+ *
8
+ * - For configuring the store to use these reactive objects, see [The Setup Guide](/guides/configuration/)
9
+ * - For defining resource schemas, see [The Schema Guide](/guides/the-manual/schemas/)
10
+ *
11
+ * Any method that returns a record instance will use the `instantiateRecord`
12
+ * hook configured above to instantiate a ReactiveResource once this is in place.
13
+ * After that, its up to you what ReactiveResource can do.
14
+ *
15
+ * ## Modes
16
+ *
17
+ * ReactiveResource has two modes: `legacy` and `polaris`.
18
+ *
19
+ * **LegacyMode** can be used to emulate the behaviors and capabilities of WarpDrive's `Model` class,
20
+ * and because there is little distinction between Model and a ReactiveResource in LegacyMode we refer
21
+ * to both of these approaches as LegacyMode. This mode is the default experience in V5.
22
+ *
23
+ * In LegacyMode:
24
+ *
25
+ * - records are mutable
26
+ * - local changes immediately reflect app wide
27
+ * - records have all the APIs of Model (references, state props, currentState, methods etc)
28
+ * - the continued use of `@warp-drive-mirror/legacy` is required (though most imports from it can be removed)
29
+ * - `async: true` relationships are supported (but not recommended outside of [LinksMode](/guides/the-manual/misc/links-mode.md))
30
+ *
31
+ * ---
32
+ *
33
+ * **PolarisMode** is an upcoming suite of features that will become the default experience in V6.
34
+ *
35
+ * In PolarisMode:
36
+ *
37
+ * - records are immutable, unless creating a new resource or explicitly checking out a record for editing
38
+ * - local changes are isolated until committed, displaying only via the editable version of the record
39
+ * - records have a more limited API, focused on only what is in their schema.
40
+ * - some common operations may have more friction to perform because intended utilities are not yet available
41
+ * - `async: true` relationships are not supported (see [LinksMode](/guides/the-manual/misc/links-mode.md))
42
+ * - The `@warp-drive-mirror/legacy` package is not required
43
+ *
44
+ * These modes are interopable. The reactive object (record) for a resource in PolarisMode can relate to
45
+ * a record in LegacyMode and vice-versa. This interopability is true whether the record in LegacyMode is
46
+ * a ReactiveResource or a Model.
47
+ *
48
+ * ---
49
+ *
50
+ * ## Basic Usage
51
+ *
52
+ * ReactiveResource is a reactive object that transforms raw data from an associated
53
+ * cache into reactive data backed by Signals.
54
+ *
55
+ * The shape of the object and the transformation of raw cache data into its
56
+ * reactive form is controlled by a resource schema.
57
+ *
58
+ * For instance, lets say your API is a [{json:api}](https://jsonapi.org) and your store is using
59
+ * the Cache provided by {@link @warp-drive-mirror/json-api! | @warp-drive-mirror/json-api}, and a request
60
+ * returns the following raw data:
61
+ *
62
+ * ```ts
63
+ * {
64
+ * data: {
65
+ * type: 'user',
66
+ * id: '1',
67
+ * attributes: { firstName: 'Chris', lastName: 'Thoburn' },
68
+ * relationships: { pets: { data: [{ type: 'dog', id: '1' }] }}
69
+ * },
70
+ * included: [
71
+ * {
72
+ * type: 'dog',
73
+ * id: '1',
74
+ * attributes: { name: 'Rey' },
75
+ * relationships: { owner: { data: { type: 'user', id: '1' }}}
76
+ * }
77
+ * ]
78
+ * }
79
+ * ```
80
+ *
81
+ * We could describe the `'user'` and `'dog'` resources in the above payload
82
+ * with the following schemas:
83
+ *
84
+ * ```ts
85
+ * store.schema.registerResources([
86
+ * {
87
+ * type: 'user',
88
+ * identity: { type: '@id', name: 'id' },
89
+ * fields: [
90
+ * {
91
+ * type: '@identity',
92
+ * name: '$type',
93
+ * kind: 'derived',
94
+ * options: { key: 'type' },
95
+ * },
96
+ * { kind: 'field', name: 'firstName' },
97
+ * { kind: 'field', name: 'lastName' },
98
+ * {
99
+ * kind: 'derived',
100
+ * name: 'name',
101
+ * type: 'concat',
102
+ * options: { fields: ['firstName', 'lastName'], separator: ' ' }
103
+ * },
104
+ * {
105
+ * kind: 'hasMany',
106
+ * name: 'pets',
107
+ * type: 'pet',
108
+ * options: {
109
+ * async: false,
110
+ * inverse: 'owner',
111
+ * polymorphic: true,
112
+ * linksMode: true,
113
+ * }
114
+ * }
115
+ * ]
116
+ * },
117
+ * {
118
+ * type: 'dog',
119
+ * identity: { type: '@id', name: 'id' },
120
+ * fields: [
121
+ * {
122
+ * type: '@identity',
123
+ * name: '$type',
124
+ * kind: 'derived',
125
+ * options: { key: 'type' },
126
+ * },
127
+ * { kind: 'field', name: 'name' },
128
+ * {
129
+ * kind: 'belongsTo',
130
+ * name: 'owner',
131
+ * type: 'user',
132
+ * options: {
133
+ * async: false,
134
+ * inverse: 'pets',
135
+ * as: 'pet',
136
+ * linksMode: true,
137
+ * }
138
+ * }
139
+ * ]
140
+ * }
141
+ * ]);
142
+ * ```
143
+ *
144
+ * With these schemas in place, the reactive objects that the store would
145
+ * provide us whenever we encountered a `'user'` or a `'dog'` would be:
146
+ *
147
+ * ```ts
148
+ * interface Pet {
149
+ * readonly id: string;
150
+ * readonly owner: User;
151
+ * }
152
+ *
153
+ * interface Dog extends Pet {
154
+ * readonly $type: 'dog';
155
+ * readonly name: string;
156
+ * }
157
+ *
158
+ * interface EditableUser {
159
+ * readonly $type: 'user';
160
+ * readonly id: string;
161
+ * firstName: string;
162
+ * lastName: string;
163
+ * readonly name: string;
164
+ * pets: Array<Dog | Pet>;
165
+ * }
166
+ *
167
+ * interface User {
168
+ * readonly $type: 'user';
169
+ * readonly id: string;
170
+ * readonly firstName: string;
171
+ * readonly lastName: string;
172
+ * readonly name: string;
173
+ * readonly pets: Readonly<Array<Dog | Pet>>;
174
+ * [Checkout](): Promise<EditableUser>
175
+ * }>
176
+ * ```
177
+ *
178
+ * Note how based on the schema the reactive object we receive is able to produce
179
+ * `name` on user (despite no name field being in the cache), provide `$type`
180
+ * pulled from the identity of the resource, and flatten the individual attributes
181
+ * and relationships onto the record for easier use.
182
+ *
183
+ * Notice also how we typed this object with `readonly`. This is because while
184
+ * ReactiveResource instances are ***deeply reactive***, they are also ***immutable***.
185
+ *
186
+ * We can mutate a ReactiveResource only be explicitly asking permission to do so, and
187
+ * in the process gaining access to an editable copy. The immutable version will
188
+ * not show any in-process edits made to this editable copy.
189
+ *
190
+ * ```ts
191
+ * import { checkout } from '@warp-drive-mirror/core/reactive';
192
+ *
193
+ * const editable = await checkout<EditableUser>(user);
194
+ * ```
195
+ *
196
+ * ## Utilities
197
+ *
198
+ * ReactiveResource provides a schema builder that simplifies setting up a couple of
199
+ * conventional fields like identity and `$type`. We can rewrite the schema
200
+ * definition above using this utility like so:
201
+ *
202
+ * ```ts
203
+ * import { withDefaults } from '@warp-drive-mirror/core/reactive';
204
+ *
205
+ * store.schema.registerResources([
206
+ * withDefaults({
207
+ * type: 'user',
208
+ * fields: [
209
+ * { kind: 'field', name: 'firstName' },
210
+ * { kind: 'field', name: 'lastName' },
211
+ * {
212
+ * kind: 'derived',
213
+ * name: 'name',
214
+ * type: 'concat',
215
+ * options: { fields: ['firstName', 'lastName'], separator: ' ' }
216
+ * },
217
+ * {
218
+ * kind: 'hasMany',
219
+ * name: 'pets',
220
+ * type: 'pet',
221
+ * options: {
222
+ * async: false,
223
+ * inverse: 'owner',
224
+ * polymorphic: true,
225
+ * linksMode: true,
226
+ * resetOnRemoteUpdate: false,
227
+ * }
228
+ * }
229
+ * ]
230
+ * }),
231
+ * withDefaults({
232
+ * type: 'dog',
233
+ * fields: [
234
+ * { kind: 'field', name: 'name' },
235
+ * {
236
+ * kind: 'belongsTo',
237
+ * name: 'owner',
238
+ * type: 'user',
239
+ * options: {
240
+ * async: false,
241
+ * inverse: 'pets',
242
+ * as: 'pet',
243
+ * linksMode: true,
244
+ * resetOnRemoteUpdate: false,
245
+ * }
246
+ * }
247
+ * ]
248
+ * })
249
+ * ]);
250
+ * ```
251
+ *
252
+ * ## Type Support
253
+ *
254
+ * ### Resource Schemas
255
+ *
256
+ * - {@link PolarisResourceSchema}
257
+ * - {@link LegacyResourceSchema}
258
+ * - {@link ObjectSchema}
259
+ *
260
+ * ### Resource Schema Type Utils
261
+ *
262
+ * - {@link resourceSchema}
263
+ * - {@link objectSchema}
264
+ * - {@link isResourceSchema}
265
+ * - {@link isLegacyResourceSchema}
266
+ *
267
+ * ### Field Schemas
268
+ *
269
+ * - {@link LegacyModeFieldSchema}
270
+ * - {@link PolarisModeFieldSchema}
271
+ *
272
+ * @summary Schema-driven reactive records, arrays, and documents the store builds from cached data, plus the
273
+ * `SchemaService` and schema types that define them.
274
+ * @module
275
+ */
1
276
  import { C as getRequestState, Cn as Transformation, D as ResolvedPromise, Dt as ReactiveDataDocument, E as RejectedPromise, En as withDefaults, H as checkout, K as LegacyManyArray, O as getPromiseState, Ot as ReactiveDocument, R as instantiateRecord, S as ResolvedRequest, Sn as SchemaService, T as PromiseState, Tn as registerDerivations, U as commit, V as ReactiveResource, _ as CancelledRequest, b as RequestLoadingState, bn as ExtensionDef, c as AutorefreshBehaviorCombos, dt as LegacyQueryArray, f as RecoveryFeatures, ft as LegacyLiveArray, g as createRequestSubscription, gt as Checkout, h as SubscriptionArgs, kt as ReactiveErrorDocument, l as AutorefreshBehaviorType, m as RequestSubscription, mt as ReactiveResourceArray, p as RequestArgs, u as ContentFeatures, v as PendingRequest, vn as CAUTION_MEGA_DANGER_ZONE_Extension, w as PendingPromise, wn as fromIdentity, x as RequestState, xn as ProcessedExtension, y as RejectedRequest, z as teardownRecord } from "./internal-DTPBJZLO.js";
2
277
  export { type AutorefreshBehaviorCombos, type AutorefreshBehaviorType, type CAUTION_MEGA_DANGER_ZONE_Extension, type CancelledRequest, Checkout, type ContentFeatures, type ExtensionDef, type LegacyLiveArray, type LegacyManyArray, type LegacyQueryArray, type PendingPromise, type PendingRequest, type ProcessedExtension, type PromiseState, type ReactiveDataDocument, type ReactiveDocument, type ReactiveErrorDocument, type ReactiveResource, type ReactiveResourceArray, type RecoveryFeatures, type RejectedPromise, type RejectedRequest, type RequestArgs, type RequestLoadingState, type RequestState, type RequestSubscription, type ResolvedPromise, type ResolvedRequest, SchemaService, type SubscriptionArgs, type Transformation, checkout, commit, createRequestSubscription, fromIdentity, getPromiseState, getRequestState, instantiateRecord, registerDerivations, teardownRecord, withDefaults };
package/dist/reactive.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { d as getRequestState, t as getPromiseState, u as createRequestSubscription } from "./-private-Y-13dsHO.js";
2
2
  import { t as Checkout } from "./-private-CmNOwhK0.js";
3
- import { a as fromIdentity, c as instantiateRecord, d as commit, i as SchemaService, l as teardownRecord, o as registerDerivations, s as withDefaults, u as checkout } from "./src-PuYJ-RSZ.js";
3
+ import { a as fromIdentity, c as instantiateRecord, d as commit, i as SchemaService, l as teardownRecord, o as registerDerivations, s as withDefaults, u as checkout } from "./src-CvKTKJvq.js";
4
4
 
5
5
  export { Checkout, SchemaService, checkout, commit, createRequestSubscription, fromIdentity, getPromiseState, getRequestState, instantiateRecord, registerDerivations, teardownRecord, withDefaults };
package/dist/request.d.ts CHANGED
@@ -1,2 +1,10 @@
1
+ /**
2
+ * The [Making Requests](/guides/the-manual/requests/) guide teaches the request layer
3
+ * these types and helpers belong to.
4
+ *
5
+ * @module
6
+ * @summary Request-layer types such as `Future`, `Handler` and `Context`, plus `withResponseType` and
7
+ * `withReactiveResponse` for typing the response a request resolves with.
8
+ */
1
9
  import { Bt as createDeferred, Ft as withReactiveResponse, It as withResponseType, Lt as Awaitable, Pt as withBrand, Rt as getPromiseResult, cr as Deferred, dr as ManagedRequestPriority, fr as NextFn, lr as Future, or as Context, sr as CacheHandler, ur as Handler, zt as setPromiseResult } from "./internal-DTPBJZLO.js";
2
10
  export { type Awaitable, type CacheHandler, type Context, type Deferred, type Future, type Handler, type ManagedRequestPriority, type NextFn, createDeferred, getPromiseResult, setPromiseResult, withBrand, withReactiveResponse, withResponseType };
@@ -1,3 +1,17 @@
1
+ /**
2
+ * Internals that `@warp-drive-mirror/core` leaks to its sibling `@warp-drive/*` packages:
3
+ * the signal primitives `@warp-drive-mirror/ember`, `@warp-drive-mirror/react`, `@warp-drive-mirror/legacy`
4
+ * and `@warp-drive-mirror/experiments` build on, and the reactive pagination primitives.
5
+ *
6
+ * This is not public API and is left out of the published docs. Apps should import
7
+ * pagination from `@warp-drive-mirror/experiments/pagination` and the Ember components from
8
+ * `@warp-drive-mirror/ember/experiments`; the request-subscription types are published from
9
+ * `@warp-drive-mirror/core/reactive`.
10
+ *
11
+ * @summary Private signal and pagination primitives that core shares with sibling `@warp-drive/*` packages; not
12
+ * public API for apps.
13
+ * @module
14
+ */
1
15
  import { Ot as ReactiveDocument, a as notifyInternalSignal, b as RequestLoadingState, c as AutorefreshBehaviorCombos, d as DISPOSE, et as Store, f as RecoveryFeatures, h as SubscriptionArgs, i as makeInitializer, lr as Future, n as WarpDriveSignal, o as peekInternalSignal, p as RequestArgs, pr as RequestManager, r as getOrCreateInternalSignal, rr as StructuredErrorDocument, s as withSignalStore, t as SignalStore, u as ContentFeatures } from "../internal-DTPBJZLO.js";
2
16
  import { s as waitFor } from "../configure-CodrrdQr.js";
3
17
  //#region src/signals/page-cache.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"-leaked.d.ts","names":[],"sources":["../../src/signals/page-cache.ts","../../src/signals/pagination-cache.ts","../../src/signals/pagination-state.ts","../../src/signals/pagination-links.ts","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../src/signals/pagination-cache.ts","../../src/signals/pagination-state.ts","../../src/signals/pagination-links.ts","../../src/signals/pagination-subscription.ts","../../src/signals/pagination-links-subscription.ts","../../src/signals/reactivity/signal.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;KAiBY,YAAY,MAAM;EAAa,YAAY;IAAM,IAAI;;;;;KAMrD,YAAY,MAAM,YAAY,4BAA4B,OAAO,IAAI,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+ChF,UAAU,cAAc;;;;;;EASnC,SAAyB,OAAO;;EAMhC;;EAGA;;EAGA;;EAGA;;EAGA;;;;;;EAOA;EAOA,YAAY,SAAS,gBAAgB,IAAI,IAAI;;;;;MAWzC,SAAS;;;;;MAST,QAAQ,YAAY;;;;;MASpB;;MAMA;;MAMA;;MAMA;;MAMA;;MAMA;;MAMA,UAAU,wBAAwB;;MAMlC,QAAQ,UAAU,IAAI;;MAOtB,QAAQ,UAAU,IAAI;;MAOtB,SAAS,UAAU,IAAI;;MAOvB,QAAQ,UAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;UC7KX;GACd,UAAU;IAA8B;IAAqB;;;;;;;;;;;;;qBAanD,kBAAkB;;;;;;;;;;;;;;;;;cAsBlB,gBAAgB,cAAc;;;;;EAkBzC;EAeA,YAAY;;;;;;;;;;;;;;;MAmHR,SAAS,SAAS,SAAS,UAAU,IAAI;;;;;;;;;MAsBzC,QAAQ,SAAS,YAAY;;;;;;;;;;;;wBAsBnB,mBAAmB,IAAI,GAAG,cAAc,gBAAgB,IAAI;;;;;;;;;;wBAoB5D;;;;;;;;;;;;;;KCjQJ;;;;;;;UAQK,sBAAsB,cAAc;;WAE1C;;EAET,UAAU,SAAS,OAAO,MAAM,QAAQ;;;;;;;;;;;UAkBzB,qBAAqB,cAAc,qBAAqB,sBAAsB,IAAI;;WAExF,YAAY,SAAS,UAAU,IAAI;;WAEnC,mBAAmB,OAAO;;EAEnC,WAAW,gBAAgB,QAAQ;;;;;;;;;;;UAYp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,aAAa,MAAM"}
@@ -5829,7 +5829,7 @@ function createLegacyManyArray(options) {
5829
5829
  isAsync: options.isAsync,
5830
5830
  isPolymorphic: options.isPolymorphic,
5831
5831
  identifier: options.identifier,
5832
- key: options.field.name,
5832
+ key: options.field.sourceKey ?? options.field.name,
5833
5833
  reload,
5834
5834
  createRecord,
5835
5835
  notify
@@ -9167,4 +9167,4 @@ function useRecommendedStore(options, StoreKlass = Store) {
9167
9167
 
9168
9168
  //#endregion
9169
9169
  export { setIdentifierGenerationMethod as A, setRecordIdentifier as C, isRequestKey as D, fieldValueIdentity as E, coerceId as F, ensureStringId as I, log as L, setIdentifierUpdateMethod as M, setKeyInfoForResource as N, isResourceKey as O, normalizeModelName as P, logGroup as R, recordIdentifierFor as S, assertPrivateCapabilities as T, isPrivateStore as _, fromIdentity as a, StoreMap as b, instantiateRecord as c, commit as d, createLegacyManyArray as f, assertPrivateStore as g, Store as h, SchemaService as i, setIdentifierResetMethod as j, setIdentifierForgetMethod as k, teardownRecord as l, CacheHandler as m, RequestManager as n, registerDerivations as o, constructResource as p, Fetch as r, withDefaults as s, useRecommendedStore as t, checkout as u, RecordArrayManager as v, storeFor as w, _clearCaches as x, fastPush as y };
9170
- //# sourceMappingURL=src-PuYJ-RSZ.js.map
9170
+ //# sourceMappingURL=src-CvKTKJvq.js.map