@warp-drive-mirror/core 5.10.0-alpha.19 → 5.10.0-alpha.20
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/dist/{-private-CmNOwhK0.js → -private-BiuED7nc.js} +2 -3
- package/dist/{-private-CmNOwhK0.js.map → -private-BiuED7nc.js.map} +1 -1
- package/dist/{-private-Y-13dsHO.js → -private-CvZfrDZl.js} +22 -29
- package/dist/-private-CvZfrDZl.js.map +1 -0
- package/dist/{aliases-BQmAxXmb.d.ts → aliases-BG5TxALl.d.ts} +1 -3
- package/dist/aliases-BG5TxALl.d.ts.map +1 -0
- package/dist/build-config/babel-macros.d.ts +0 -5
- package/dist/build-config/canary-features.d.ts +0 -5
- package/dist/build-config/debugging.d.ts +0 -59
- package/dist/build-config/deprecations.d.ts +0 -5
- package/dist/build-config.d.ts +0 -17
- package/dist/{change-DClXcHvr.d.ts → change-INHMiZ2a.d.ts} +2 -4
- package/dist/change-INHMiZ2a.d.ts.map +1 -0
- package/dist/{concepts-DzuY5M1K.d.ts → concepts-vh86nAcd.d.ts} +5 -7
- package/dist/concepts-vh86nAcd.d.ts.map +1 -0
- package/dist/{configure-CodrrdQr.d.ts → configure-BfXDuPUb.d.ts} +1 -3
- package/dist/configure-BfXDuPUb.d.ts.map +1 -0
- package/dist/configure.d.ts +1 -9
- package/dist/configure.js +1 -1
- package/dist/{document-Ni8Ns26t.d.ts → document-B8Fup751.d.ts} +4 -6
- package/dist/document-B8Fup751.d.ts.map +1 -0
- package/dist/{error-APuUdUGk.d.ts → error-j5n1yL9m.d.ts} +2 -4
- package/dist/error-j5n1yL9m.d.ts.map +1 -0
- package/dist/{fields-D6173Q_a.d.ts → fields-r1rZJB9d.d.ts} +2 -4
- package/dist/fields-r1rZJB9d.d.ts.map +1 -0
- package/dist/graph/-private.d.ts +1 -1
- package/dist/graph/-private.js +18 -36
- package/dist/graph/-private.js.map +1 -1
- package/dist/{graph-rjTyJ-gd.d.ts → graph-BqxaFjEb.d.ts} +5 -7
- package/dist/graph-BqxaFjEb.d.ts.map +1 -0
- package/dist/{identifier-B_tK3FUw.d.ts → identifier-DmgDehQK.d.ts} +1 -3
- package/dist/identifier-DmgDehQK.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-DTPBJZLO.d.ts → internal-BE5B0ZXl.d.ts} +19 -133
- package/dist/internal-BE5B0ZXl.d.ts.map +1 -0
- package/dist/{json-api-raw-BxzNsCg0.d.ts → json-api-raw-juUdIITO.d.ts} +2 -4
- package/dist/json-api-raw-juUdIITO.d.ts.map +1 -0
- package/dist/{mutations-C81gbYjB.d.ts → mutations-CA39mior.d.ts} +2 -4
- package/dist/mutations-CA39mior.d.ts.map +1 -0
- package/dist/{operations-B4pQM7D6.d.ts → operations-C1WAEKKq.d.ts} +5 -7
- package/dist/operations-C1WAEKKq.d.ts.map +1 -0
- package/dist/{params-dbHiSOMF.d.ts → params-CNLjCRyH.d.ts} +1 -3
- package/dist/params-CNLjCRyH.d.ts.map +1 -0
- package/dist/{raw-CiC64nCY.d.ts → raw-adYGuEGM.d.ts} +1 -3
- package/dist/raw-adYGuEGM.d.ts.map +1 -0
- package/dist/reactive/-private.d.ts +1 -1
- package/dist/reactive/-private.js +1 -1
- package/dist/reactive.d.ts +1 -276
- package/dist/reactive.js +3 -3
- package/dist/{record-DDxPtzcY.d.ts → record-f5-uOgHt.d.ts} +2 -4
- package/dist/record-f5-uOgHt.d.ts.map +1 -0
- package/dist/{relationship-BlGIXgj4.d.ts → relationship-99pc4CaS.d.ts} +3 -5
- package/dist/relationship-99pc4CaS.d.ts.map +1 -0
- package/dist/{request-DUGpwUhf.js → request-CxtnNIIp.js} +7 -13
- package/dist/{request-DUGpwUhf.js.map → request-CxtnNIIp.js.map} +1 -1
- package/dist/request.d.ts +1 -9
- package/dist/request.js +1 -1
- package/dist/signals/-leaked.d.ts +2 -30
- package/dist/signals/-leaked.d.ts.map +1 -1
- package/dist/signals/-leaked.js +1 -1
- package/dist/{src-CvKTKJvq.js → src-BTF6QRQ3.js} +58 -111
- package/dist/{src-CvKTKJvq.js.map → src-BTF6QRQ3.js.map} +1 -1
- package/dist/store/-private.d.ts +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/{store-lcyaxrpj.js → store-C8iKKtQK.js} +2 -3
- package/dist/{store-lcyaxrpj.js.map → store-C8iKKtQK.js.map} +1 -1
- package/dist/store.d.ts +1 -6
- package/dist/store.js +1 -1
- package/dist/{symbols-Cu9un1NR.d.ts → symbols-DVa1PMFG.d.ts} +1 -3
- package/dist/symbols-DVa1PMFG.d.ts.map +1 -0
- package/dist/types/-private.d.ts +0 -2
- package/dist/types/-private.d.ts.map +1 -1
- package/dist/types/-private.js +2 -3
- package/dist/types/cache/aliases.d.ts +1 -1
- package/dist/types/cache/change.d.ts +1 -1
- package/dist/types/cache/mutations.d.ts +1 -1
- package/dist/types/cache/operations.d.ts +1 -1
- package/dist/types/cache/relationship.d.ts +1 -6
- package/dist/types/cache.d.ts +1 -6
- package/dist/types/graph.d.ts +1 -6
- package/dist/types/identifier.d.ts +1 -1
- package/dist/types/identifier.js +1 -2
- package/dist/types/json/raw.d.ts +1 -1
- package/dist/types/params.d.ts +1 -1
- package/dist/types/record.d.ts +1 -6
- package/dist/types/record.js +1 -2
- package/dist/types/request.d.ts +1 -1
- package/dist/types/request.js +1 -2
- package/dist/types/runtime.d.ts +0 -2
- package/dist/types/runtime.d.ts.map +1 -1
- package/dist/types/runtime.js +1 -2
- package/dist/types/schema/concepts.d.ts +1 -6
- package/dist/types/schema/fields.d.ts +1 -1
- package/dist/types/schema/fields.js +1 -2
- package/dist/types/schema/schema-service.d.ts +1 -6
- package/dist/types/spec/document.d.ts +1 -1
- package/dist/types/spec/error.d.ts +1 -5
- package/dist/types/spec/json-api-raw.d.ts +1 -6
- package/dist/types/symbols.d.ts +1 -1
- package/dist/types/symbols.js +1 -2
- package/dist/types/utils.d.ts +1 -1
- package/dist/types.d.ts +2 -10
- package/dist/unpkg/{dev-deprecated/-private-BoKjsWc1.js → dev/-private-B4pCmkq-.js} +22 -29
- package/dist/unpkg/dev/-private-B4pCmkq-.js.map +1 -0
- package/dist/unpkg/{prod-deprecated/-private-CmNOwhK0.js → dev/-private-BiuED7nc.js} +2 -3
- package/dist/unpkg/{prod/-private-CmNOwhK0.js.map → dev/-private-BiuED7nc.js.map} +1 -1
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +19 -37
- package/dist/unpkg/dev/graph/-private.js.map +1 -1
- package/dist/unpkg/dev/index.js +1 -1
- package/dist/unpkg/dev/reactive/-private.js +1 -1
- package/dist/unpkg/dev/reactive.js +3 -3
- package/dist/unpkg/{dev-deprecated/request-BQUGZTOj.js → dev/request-oWpijCPQ.js} +7 -13
- package/dist/unpkg/dev/{request-BQUGZTOj.js.map → request-oWpijCPQ.js.map} +1 -1
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/{runtime-DhiRXM4s.js → runtime-RYvEtg99.js} +2 -3
- package/dist/unpkg/dev/{runtime-DhiRXM4s.js.map → runtime-RYvEtg99.js.map} +1 -1
- package/dist/unpkg/dev/signals/-leaked.js +1 -1
- package/dist/unpkg/dev/{src-CqJO8wIe.js → src-Dt1O1Pw1.js} +56 -106
- package/dist/unpkg/dev/{src-CqJO8wIe.js.map → src-Dt1O1Pw1.js.map} +1 -1
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/{dev-deprecated/store-BCq54-8u.js → dev/store-dZViNfMK.js} +3 -4
- package/dist/unpkg/{dev-deprecated/store-BCq54-8u.js.map → dev/store-dZViNfMK.js.map} +1 -1
- package/dist/unpkg/dev/store.js +1 -1
- package/dist/unpkg/dev/types/-private.js +2 -3
- package/dist/unpkg/dev/types/identifier.js +1 -2
- package/dist/unpkg/dev/types/record.js +1 -2
- package/dist/unpkg/dev/types/request.js +1 -2
- package/dist/unpkg/dev/types/runtime.js +1 -2
- package/dist/unpkg/dev/types/schema/fields.js +1 -2
- package/dist/unpkg/dev/types/symbols.js +1 -2
- package/dist/unpkg/dev/utils/string.js +1 -2
- package/dist/unpkg/{dev/-private-BoKjsWc1.js → dev-deprecated/-private-B4pCmkq-.js} +22 -29
- package/dist/unpkg/dev-deprecated/-private-B4pCmkq-.js.map +1 -0
- package/dist/unpkg/dev-deprecated/{-private-CmNOwhK0.js → -private-BiuED7nc.js} +2 -3
- package/dist/unpkg/dev-deprecated/{-private-CmNOwhK0.js.map → -private-BiuED7nc.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +19 -37
- package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/dev-deprecated/index.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive.js +3 -3
- package/dist/unpkg/{dev/request-BQUGZTOj.js → dev-deprecated/request-oWpijCPQ.js} +7 -13
- package/dist/unpkg/dev-deprecated/{request-BQUGZTOj.js.map → request-oWpijCPQ.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/{runtime-DtHRI2Rj.js → runtime-DZVuMuzL.js} +2 -3
- package/dist/unpkg/dev-deprecated/{runtime-DtHRI2Rj.js.map → runtime-DZVuMuzL.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/dev-deprecated/{src-BtyRjyV0.js → src-B5QlMjHe.js} +59 -112
- package/dist/unpkg/dev-deprecated/{src-BtyRjyV0.js.map → src-B5QlMjHe.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/{dev/store-EH1qO_5y.js → dev-deprecated/store-I7YB0_rC.js} +3 -4
- package/dist/unpkg/{dev/store-EH1qO_5y.js.map → dev-deprecated/store-I7YB0_rC.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/store.js +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +2 -3
- package/dist/unpkg/dev-deprecated/types/identifier.js +1 -2
- package/dist/unpkg/dev-deprecated/types/record.js +1 -2
- package/dist/unpkg/dev-deprecated/types/request.js +1 -2
- package/dist/unpkg/dev-deprecated/types/runtime.js +1 -2
- package/dist/unpkg/dev-deprecated/types/schema/fields.js +1 -2
- package/dist/unpkg/dev-deprecated/types/symbols.js +1 -2
- package/dist/unpkg/dev-deprecated/utils/string.js +1 -2
- package/dist/unpkg/prod/-private-BiuED7nc.js +23 -0
- package/dist/unpkg/{prod-deprecated/-private-CmNOwhK0.js.map → prod/-private-BiuED7nc.js.map} +1 -1
- package/dist/unpkg/prod/{-private-CRDwlN1v.js → -private-CrUi_3E_.js} +22 -29
- package/dist/unpkg/prod/-private-CrUi_3E_.js.map +1 -0
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +16 -32
- package/dist/unpkg/prod/graph/-private.js.map +1 -1
- package/dist/unpkg/prod/index.js +1 -1
- package/dist/unpkg/prod/reactive/-private.js +1 -1
- package/dist/unpkg/prod/reactive.js +3 -3
- package/dist/unpkg/prod/{request-0h8eJko9.js → request-Cgw3j6Dx.js} +6 -11
- package/dist/unpkg/{prod-deprecated/request-0h8eJko9.js.map → prod/request-Cgw3j6Dx.js.map} +1 -1
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/signals/-leaked.js +1 -1
- package/dist/unpkg/prod/{src-Ack6NaKZ.js → src-evv7LXnE.js} +54 -103
- package/dist/unpkg/prod/{src-Ack6NaKZ.js.map → src-evv7LXnE.js.map} +1 -1
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/prod/{store-CQOsqdST.js → store-Bz9R5hGB.js} +2 -3
- package/dist/unpkg/prod/{store-CQOsqdST.js.map → store-Bz9R5hGB.js.map} +1 -1
- package/dist/unpkg/prod/store.js +1 -1
- package/dist/unpkg/prod/types/-private.js +2 -3
- package/dist/unpkg/prod/types/identifier.js +1 -2
- package/dist/unpkg/prod/types/record.js +1 -2
- package/dist/unpkg/prod/types/request.js +1 -2
- package/dist/unpkg/prod/types/runtime.js +1 -2
- package/dist/unpkg/prod/types/schema/fields.js +1 -2
- package/dist/unpkg/prod/types/symbols.js +1 -2
- package/dist/unpkg/prod/utils/string.js +1 -2
- package/dist/unpkg/{dev/-private-CmNOwhK0.js → prod-deprecated/-private-BiuED7nc.js} +2 -3
- package/dist/unpkg/{dev/-private-CmNOwhK0.js.map → prod-deprecated/-private-BiuED7nc.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/{-private-CRDwlN1v.js → -private-CrUi_3E_.js} +22 -29
- package/dist/unpkg/prod-deprecated/-private-CrUi_3E_.js.map +1 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +16 -32
- package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/prod-deprecated/index.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive.js +3 -3
- package/dist/unpkg/prod-deprecated/{request-0h8eJko9.js → request-Cgw3j6Dx.js} +6 -11
- package/dist/unpkg/{prod/request-0h8eJko9.js.map → prod-deprecated/request-Cgw3j6Dx.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/request.js +1 -1
- package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/prod-deprecated/{src-C8-R95FT.js → src-D6BqG5K8.js} +57 -109
- package/dist/unpkg/prod-deprecated/{src-C8-R95FT.js.map → src-D6BqG5K8.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/{store-CQOsqdST.js → store-Bz9R5hGB.js} +2 -3
- package/dist/unpkg/prod-deprecated/{store-CQOsqdST.js.map → store-Bz9R5hGB.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/store.js +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +2 -3
- package/dist/unpkg/prod-deprecated/types/identifier.js +1 -2
- package/dist/unpkg/prod-deprecated/types/record.js +1 -2
- package/dist/unpkg/prod-deprecated/types/request.js +1 -2
- package/dist/unpkg/prod-deprecated/types/runtime.js +1 -2
- package/dist/unpkg/prod-deprecated/types/schema/fields.js +1 -2
- package/dist/unpkg/prod-deprecated/types/symbols.js +1 -2
- package/dist/unpkg/prod-deprecated/utils/string.js +1 -2
- package/dist/utils/string.d.ts +0 -2
- package/dist/utils/string.d.ts.map +1 -1
- package/dist/utils/string.js +1 -2
- package/dist/{utils-CNmQoKm8.d.ts → utils-BVKvrO6e.d.ts} +1 -3
- package/dist/utils-BVKvrO6e.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/-private-Y-13dsHO.js.map +0 -1
- package/dist/aliases-BQmAxXmb.d.ts.map +0 -1
- package/dist/change-DClXcHvr.d.ts.map +0 -1
- package/dist/concepts-DzuY5M1K.d.ts.map +0 -1
- package/dist/configure-CodrrdQr.d.ts.map +0 -1
- package/dist/document-Ni8Ns26t.d.ts.map +0 -1
- package/dist/error-APuUdUGk.d.ts.map +0 -1
- package/dist/fields-D6173Q_a.d.ts.map +0 -1
- package/dist/graph-rjTyJ-gd.d.ts.map +0 -1
- package/dist/identifier-B_tK3FUw.d.ts.map +0 -1
- package/dist/internal-DTPBJZLO.d.ts.map +0 -1
- package/dist/json-api-raw-BxzNsCg0.d.ts.map +0 -1
- package/dist/mutations-C81gbYjB.d.ts.map +0 -1
- package/dist/operations-B4pQM7D6.d.ts.map +0 -1
- package/dist/params-dbHiSOMF.d.ts.map +0 -1
- package/dist/raw-CiC64nCY.d.ts.map +0 -1
- package/dist/record-DDxPtzcY.d.ts.map +0 -1
- package/dist/relationship-BlGIXgj4.d.ts.map +0 -1
- package/dist/symbols-Cu9un1NR.d.ts.map +0 -1
- package/dist/unpkg/dev/-private-BoKjsWc1.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-BoKjsWc1.js.map +0 -1
- package/dist/unpkg/prod/-private-CRDwlN1v.js.map +0 -1
- package/dist/unpkg/prod/-private-CmNOwhK0.js +0 -24
- package/dist/unpkg/prod-deprecated/-private-CRDwlN1v.js.map +0 -1
- package/dist/utils-CNmQoKm8.d.ts.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { getOrSetGlobal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient } from "./types/-private.js";
|
|
2
|
-
import { A as ARRAY_SIGNAL, C as createInternalMemo, D as notifyInternalSignal, F as willSyncFlushWatchers, O as peekInternalSignal, S as consumeInternalSignal, T as getOrCreateInternalSignal, _ as entangleSignal, f as createSignalDescriptor, g as entangleInitiallyStaleSignal, h as defineSignal, j as OBJECT_SIGNAL, k as withSignalStore, p as defineGate, w as createInternalSignal, x as Signals } from "./-private-
|
|
2
|
+
import { A as ARRAY_SIGNAL, C as createInternalMemo, D as notifyInternalSignal, F as willSyncFlushWatchers, O as peekInternalSignal, S as consumeInternalSignal, T as getOrCreateInternalSignal, _ as entangleSignal, f as createSignalDescriptor, g as entangleInitiallyStaleSignal, h as defineSignal, j as OBJECT_SIGNAL, k as withSignalStore, p as defineGate, w as createInternalSignal, x as Signals } from "./-private-CrUi_3E_.js";
|
|
3
3
|
import { EnableHydration, STRUCTURED, SkipCache } from "./types/request.js";
|
|
4
|
-
import { a as upgradePromise, c as executeNextHandler, d as getRequestResult, f as setPromiseResult, l as clearRequestResult, o as DOMError, p as cloneResponseProperties, s as IS_CACHE_HANDLER, t as withBrand } from "./request-
|
|
5
|
-
import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-
|
|
4
|
+
import { a as upgradePromise, c as executeNextHandler, d as getRequestResult, f as setPromiseResult, l as clearRequestResult, o as DOMError, p as cloneResponseProperties, s as IS_CACHE_HANDLER, t as withBrand } from "./request-Cgw3j6Dx.js";
|
|
5
|
+
import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-BiuED7nc.js";
|
|
6
6
|
import { CACHE_OWNER } from "./types/identifier.js";
|
|
7
7
|
import { dasherize } from "./utils/string.js";
|
|
8
8
|
import { RecordStore, Type } from "./types/symbols.js";
|
|
9
9
|
import { isResourceSchema } from "./types/schema/fields.js";
|
|
10
|
-
import { t as DefaultCachePolicy } from "./store-
|
|
10
|
+
import { t as DefaultCachePolicy } from "./store-Bz9R5hGB.js";
|
|
11
11
|
import { setIsMaybeMirage } from "./types/runtime.js";
|
|
12
12
|
import * as _importSync20 from "@ember/object";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/reactive/-private/document.ts
|
|
15
15
|
function urlFromLink(link) {
|
|
16
16
|
if (typeof link === "string") return link;
|
|
17
17
|
return link.href;
|
|
@@ -129,8 +129,7 @@ function createReactiveDocument(store, cacheKey, localCache) {
|
|
|
129
129
|
return doc;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
//#region src/store/-private/managers/cache-capabilities-manager.ts
|
|
132
|
+
// src/store/-private/managers/cache-capabilities-manager.ts
|
|
134
133
|
var CacheCapabilitiesManager = class {
|
|
135
134
|
/** @internal */
|
|
136
135
|
/** @internal */
|
|
@@ -219,8 +218,7 @@ CacheCapabilitiesManager.prototype.getSchemaDefinitionService = function() {
|
|
|
219
218
|
*/
|
|
220
219
|
function assertPrivateCapabilities(manager) {}
|
|
221
220
|
|
|
222
|
-
|
|
223
|
-
//#region src/store/-private/caches/instance-cache.ts
|
|
221
|
+
// src/store/-private/caches/instance-cache.ts
|
|
224
222
|
const RecordCache = getOrSetGlobal("RecordCache", /* @__PURE__ */ new Map());
|
|
225
223
|
function peekResourceKey(record) {
|
|
226
224
|
return RecordCache.get(record);
|
|
@@ -456,8 +454,7 @@ function unloadRecord(instances, identifier) {
|
|
|
456
454
|
instances.store._requestCache._clearEntries(identifier);
|
|
457
455
|
}
|
|
458
456
|
|
|
459
|
-
|
|
460
|
-
//#region src/store/-private/caches/resource-utils.ts
|
|
457
|
+
// src/store/-private/caches/resource-utils.ts
|
|
461
458
|
function isResource(resource) {
|
|
462
459
|
return Boolean(resource && typeof resource === "object");
|
|
463
460
|
}
|
|
@@ -474,8 +471,7 @@ function hasType(resource) {
|
|
|
474
471
|
return hasProp(resource, "type");
|
|
475
472
|
}
|
|
476
473
|
|
|
477
|
-
|
|
478
|
-
//#region src/store/-private/utils/coerce-id.ts
|
|
474
|
+
// src/store/-private/utils/coerce-id.ts
|
|
479
475
|
/**
|
|
480
476
|
* Normalizes a resource `id` entering the store to a string (or `null`).
|
|
481
477
|
*
|
|
@@ -510,8 +506,7 @@ function ensureStringId(id) {
|
|
|
510
506
|
return normalized;
|
|
511
507
|
}
|
|
512
508
|
|
|
513
|
-
|
|
514
|
-
//#region src/store/-private/utils/normalize-model-name.ts
|
|
509
|
+
// src/store/-private/utils/normalize-model-name.ts
|
|
515
510
|
/**
|
|
516
511
|
* Normalizes a resource `type` to its dasherized form, e.g. `myClass` to
|
|
517
512
|
* `my-class`. Re-exported elsewhere as `_deprecatingNormalize`.
|
|
@@ -526,8 +521,7 @@ function normalizeModelName(type) {
|
|
|
526
521
|
return dasherize(type);
|
|
527
522
|
}
|
|
528
523
|
|
|
529
|
-
|
|
530
|
-
//#region src/store/-private/managers/cache-key-manager.ts
|
|
524
|
+
// src/store/-private/managers/cache-key-manager.ts
|
|
531
525
|
/**
|
|
532
526
|
* Type-guard that returns `true` if the given value is a stable {@link ResourceKey}
|
|
533
527
|
* (as opposed to a {@link RequestKey} or arbitrary, not-yet-stabilized resource data).
|
|
@@ -1094,8 +1088,7 @@ function addResourceToCache(cache, identifier) {
|
|
|
1094
1088
|
if (identifier.id) typeSet.id.set(identifier.id, identifier);
|
|
1095
1089
|
}
|
|
1096
1090
|
|
|
1097
|
-
|
|
1098
|
-
//#region src/store/-private/managers/notification-manager.ts
|
|
1091
|
+
// src/store/-private/managers/notification-manager.ts
|
|
1099
1092
|
/**
|
|
1100
1093
|
* The kinds of change notifications the {@link NotificationManager} can emit for a resource.
|
|
1101
1094
|
*
|
|
@@ -1460,8 +1453,7 @@ function hasSubscribers(cache, cacheKey, value) {
|
|
|
1460
1453
|
return Boolean(callbackMap?.length);
|
|
1461
1454
|
}
|
|
1462
1455
|
|
|
1463
|
-
|
|
1464
|
-
//#region src/store/-private/record-arrays/-utils.ts
|
|
1456
|
+
// src/store/-private/record-arrays/-utils.ts
|
|
1465
1457
|
/**
|
|
1466
1458
|
* LegacyArrays have the capability of updating via `array.update()`
|
|
1467
1459
|
* and saving each contained record individually via `array.save()`
|
|
@@ -1537,8 +1529,7 @@ function safeForEach$1(instance, arr, store, callback, target) {
|
|
|
1537
1529
|
return instance;
|
|
1538
1530
|
}
|
|
1539
1531
|
|
|
1540
|
-
|
|
1541
|
-
//#region src/reactive/-private/fields/extension.ts
|
|
1532
|
+
// src/reactive/-private/fields/extension.ts
|
|
1542
1533
|
function expectNever(value) {}
|
|
1543
1534
|
function isExtensionProp(extensions, prop) {
|
|
1544
1535
|
return Boolean(extensions && typeof prop !== "number" && extensions.has(prop));
|
|
@@ -1605,8 +1596,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
1605
1596
|
}
|
|
1606
1597
|
}
|
|
1607
1598
|
|
|
1608
|
-
|
|
1609
|
-
//#region src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
1599
|
+
// src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
1610
1600
|
/**
|
|
1611
1601
|
* The global `Proxy` constructor, retyped with the corrected
|
|
1612
1602
|
* {@link ProxyConstructor} signature above so that `target` and `receiver`
|
|
@@ -1616,8 +1606,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
1616
1606
|
*/
|
|
1617
1607
|
const NativeProxy = Proxy;
|
|
1618
1608
|
|
|
1619
|
-
|
|
1620
|
-
//#region src/store/-private/record-arrays/resource-array.ts
|
|
1609
|
+
// src/store/-private/record-arrays/resource-array.ts
|
|
1621
1610
|
const IS_COLLECTION = getOrSetGlobal("IS_COLLECTION", Symbol.for("Collection"));
|
|
1622
1611
|
function isContextProp(prop) {
|
|
1623
1612
|
return prop === "destroy" || prop === "isDestroying" || prop === "isDestroyed";
|
|
@@ -1863,8 +1852,7 @@ function createRequestCollection(config) {
|
|
|
1863
1852
|
});
|
|
1864
1853
|
}
|
|
1865
1854
|
|
|
1866
|
-
|
|
1867
|
-
//#region src/store/-private/record-arrays/legacy-live-array.ts
|
|
1855
|
+
// src/store/-private/record-arrays/legacy-live-array.ts
|
|
1868
1856
|
/**
|
|
1869
1857
|
* LiveArrays contain all the known records for a given `ResourceType`.
|
|
1870
1858
|
*
|
|
@@ -1966,8 +1954,7 @@ function _updateLiveArray() {
|
|
|
1966
1954
|
return this[Context].store.findAll(this.modelName, { reload: true });
|
|
1967
1955
|
}
|
|
1968
1956
|
|
|
1969
|
-
|
|
1970
|
-
//#region src/store/-private/record-arrays/legacy-query.ts
|
|
1957
|
+
// src/store/-private/record-arrays/legacy-query.ts
|
|
1971
1958
|
/**
|
|
1972
1959
|
* QueryArrays contain the primary records returned when querying
|
|
1973
1960
|
* for records by `ResourceType`.
|
|
@@ -2096,8 +2083,7 @@ function destroyCollection(clear) {
|
|
|
2096
2083
|
manager._pending.delete(this);
|
|
2097
2084
|
}
|
|
2098
2085
|
|
|
2099
|
-
|
|
2100
|
-
//#region src/store/-private/managers/record-array-manager.ts
|
|
2086
|
+
// src/store/-private/managers/record-array-manager.ts
|
|
2101
2087
|
const FAKE_ARR = getOrSetGlobal("FAKE_ARR", {});
|
|
2102
2088
|
const SLICE_BATCH_SIZE = 4761;
|
|
2103
2089
|
/**
|
|
@@ -2510,8 +2496,7 @@ function isLegacyLiveArray(array) {
|
|
|
2510
2496
|
return context.features !== null && context.features.DEPRECATED_CLASS_NAME === "LiveArray";
|
|
2511
2497
|
}
|
|
2512
2498
|
|
|
2513
|
-
|
|
2514
|
-
//#region src/store/-private/network/request-cache.ts
|
|
2499
|
+
// src/store/-private/network/request-cache.ts
|
|
2515
2500
|
const Touching = getOrSetGlobal("Touching", Symbol("touching"));
|
|
2516
2501
|
const RequestPromise = getOrSetGlobal("RequestPromise", Symbol("promise"));
|
|
2517
2502
|
const EMPTY_ARR = [];
|
|
@@ -2719,8 +2704,7 @@ var RequestStateService = class {
|
|
|
2719
2704
|
*
|
|
2720
2705
|
* @private
|
|
2721
2706
|
*/
|
|
2722
|
-
|
|
2723
|
-
//#region ../../node_modules/.pnpm/@embroider+macros@1.21.3/node_modules/@embroider/macros/src/addon/es-compat2.js
|
|
2707
|
+
// ../../node_modules/.pnpm/@embroider+macros@1.21.4/node_modules/@embroider/macros/src/addon/es-compat2.js
|
|
2724
2708
|
function esCompat(m) {
|
|
2725
2709
|
return m?.__esModule ? m : {
|
|
2726
2710
|
default: m,
|
|
@@ -2728,8 +2712,7 @@ function esCompat(m) {
|
|
|
2728
2712
|
};
|
|
2729
2713
|
}
|
|
2730
2714
|
|
|
2731
|
-
|
|
2732
|
-
//#region src/store/-private/store-service.ts
|
|
2715
|
+
// src/store/-private/store-service.ts
|
|
2733
2716
|
const _BaseClass = esCompat(_importSync20);
|
|
2734
2717
|
const BaseClass = _BaseClass.default ? _BaseClass.default : _BaseClass;
|
|
2735
2718
|
/**
|
|
@@ -3482,8 +3465,7 @@ function extractIdentifierFromRecord$1(recordOrPromiseRecord) {
|
|
|
3482
3465
|
return recordIdentifierFor(recordOrPromiseRecord);
|
|
3483
3466
|
}
|
|
3484
3467
|
|
|
3485
|
-
|
|
3486
|
-
//#region src/store/deprecated/-private.ts
|
|
3468
|
+
// src/store/deprecated/-private.ts
|
|
3487
3469
|
function preloadData(store, identifier, preload) {
|
|
3488
3470
|
const jsonPayload = {};
|
|
3489
3471
|
const fields = store.schema.fields(identifier);
|
|
@@ -3748,8 +3730,7 @@ var ShimModelClass = class {
|
|
|
3748
3730
|
}
|
|
3749
3731
|
};
|
|
3750
3732
|
|
|
3751
|
-
|
|
3752
|
-
//#region src/store/deprecated/store.ts
|
|
3733
|
+
// src/store/deprecated/store.ts
|
|
3753
3734
|
Store.prototype.findRecord = function(resource, id, options) {
|
|
3754
3735
|
if (isMaybeIdentifier(resource)) options = id;
|
|
3755
3736
|
else {
|
|
@@ -3854,8 +3835,7 @@ function upgradeInstanceCaches(cache) {
|
|
|
3854
3835
|
return withReferences;
|
|
3855
3836
|
}
|
|
3856
3837
|
|
|
3857
|
-
|
|
3858
|
-
//#region src/store/-private/cache-handler/utils.ts
|
|
3838
|
+
// src/store/-private/cache-handler/utils.ts
|
|
3859
3839
|
const MUTATION_OPS$1 = /* @__PURE__ */ new Set([
|
|
3860
3840
|
"createRecord",
|
|
3861
3841
|
"updateRecord",
|
|
@@ -3895,8 +3875,7 @@ function getPriority(identifier, deduped, priority) {
|
|
|
3895
3875
|
return priority;
|
|
3896
3876
|
}
|
|
3897
3877
|
|
|
3898
|
-
|
|
3899
|
-
//#region src/store/-private/cache-handler/handler.ts
|
|
3878
|
+
// src/store/-private/cache-handler/handler.ts
|
|
3900
3879
|
/**
|
|
3901
3880
|
* The request shape accepted by {@link Store.request}, either a fully-formed
|
|
3902
3881
|
* {@link ImmutableRequestInfo} or the looser {@link LooseStoreRequestInfo}.
|
|
@@ -4103,14 +4082,12 @@ function fetchContentAndHydrate(next, context, identifier, priority) {
|
|
|
4103
4082
|
}] });
|
|
4104
4083
|
}
|
|
4105
4084
|
|
|
4106
|
-
|
|
4107
|
-
//#region src/store/-private/utils/is-non-empty-string.ts
|
|
4085
|
+
// src/store/-private/utils/is-non-empty-string.ts
|
|
4108
4086
|
function isNonEmptyString(str) {
|
|
4109
4087
|
return Boolean(str && typeof str === "string");
|
|
4110
4088
|
}
|
|
4111
4089
|
|
|
4112
|
-
|
|
4113
|
-
//#region src/store/-private/utils/construct-resource.ts
|
|
4090
|
+
// src/store/-private/utils/construct-resource.ts
|
|
4114
4091
|
/**
|
|
4115
4092
|
* Given an existing resource identifier object (or a {@link ResourceKey}),
|
|
4116
4093
|
* returns it unchanged aside from coercing its `id`, if present, to a string.
|
|
@@ -4173,8 +4150,7 @@ function constructResource(type, id, lid) {
|
|
|
4173
4150
|
}
|
|
4174
4151
|
}
|
|
4175
4152
|
|
|
4176
|
-
|
|
4177
|
-
//#region src/store/-private/record-arrays/legacy-many-array.ts
|
|
4153
|
+
// src/store/-private/record-arrays/legacy-many-array.ts
|
|
4178
4154
|
/**
|
|
4179
4155
|
A `ManyArray` is a `MutableArray` that represents the contents of a has-many
|
|
4180
4156
|
relationship.
|
|
@@ -4465,8 +4441,7 @@ function mutate(collection, mutation, _SIGNAL) {
|
|
|
4465
4441
|
notifyInternalSignal(_SIGNAL);
|
|
4466
4442
|
}
|
|
4467
4443
|
|
|
4468
|
-
|
|
4469
|
-
//#region src/store/-private/debug/utils.ts
|
|
4444
|
+
// src/store/-private/debug/utils.ts
|
|
4470
4445
|
const TEXT_COLORS = {
|
|
4471
4446
|
TEXT: "inherit",
|
|
4472
4447
|
notify: [
|
|
@@ -4695,15 +4670,13 @@ function _log(scope, prefix, subScop1, subScop2, subScop3, subScop4) {
|
|
|
4695
4670
|
return [];
|
|
4696
4671
|
}
|
|
4697
4672
|
|
|
4698
|
-
|
|
4699
|
-
//#region src/reactive/-private/kind/alias-field.ts
|
|
4673
|
+
// src/reactive/-private/kind/alias-field.ts
|
|
4700
4674
|
function getAliasField(context) {}
|
|
4701
4675
|
function setAliasField(context) {
|
|
4702
4676
|
return false;
|
|
4703
4677
|
}
|
|
4704
4678
|
|
|
4705
|
-
|
|
4706
|
-
//#region src/reactive/-private/fields/managed-array.ts
|
|
4679
|
+
// src/reactive/-private/fields/managed-array.ts
|
|
4707
4680
|
const ARRAY_GETTER_METHODS = /* @__PURE__ */ new Set([
|
|
4708
4681
|
Symbol.iterator,
|
|
4709
4682
|
"concat",
|
|
@@ -4934,8 +4907,7 @@ Object.defineProperty(ManagedArray.prototype, "[]", {
|
|
|
4934
4907
|
}
|
|
4935
4908
|
});
|
|
4936
4909
|
|
|
4937
|
-
|
|
4938
|
-
//#region src/reactive/-private/kind/array-field.ts
|
|
4910
|
+
// src/reactive/-private/kind/array-field.ts
|
|
4939
4911
|
function getArrayField(context) {
|
|
4940
4912
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4941
4913
|
const { record } = context;
|
|
@@ -4978,8 +4950,7 @@ function setArrayField(context) {
|
|
|
4978
4950
|
return true;
|
|
4979
4951
|
}
|
|
4980
4952
|
|
|
4981
|
-
|
|
4982
|
-
//#region src/reactive/-private/kind/attribute-field.ts
|
|
4953
|
+
// src/reactive/-private/kind/attribute-field.ts
|
|
4983
4954
|
function getAttributeField(context) {
|
|
4984
4955
|
entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4985
4956
|
const { cache } = context.store;
|
|
@@ -4990,8 +4961,7 @@ function setAttributeField(context) {
|
|
|
4990
4961
|
return true;
|
|
4991
4962
|
}
|
|
4992
4963
|
|
|
4993
|
-
|
|
4994
|
-
//#region src/reactive/-private/fields/get-field-key.ts
|
|
4964
|
+
// src/reactive/-private/fields/get-field-key.ts
|
|
4995
4965
|
const InvalidKinds = [
|
|
4996
4966
|
"alias",
|
|
4997
4967
|
"derived",
|
|
@@ -5010,8 +4980,7 @@ function getFieldCacheKey(field) {
|
|
|
5010
4980
|
return "sourceKey" in field && field.sourceKey ? field.sourceKey : field.name;
|
|
5011
4981
|
}
|
|
5012
4982
|
|
|
5013
|
-
|
|
5014
|
-
//#region src/reactive/-private/kind/belongs-to-field.ts
|
|
4983
|
+
// src/reactive/-private/kind/belongs-to-field.ts
|
|
5015
4984
|
function getBelongsToField(context) {
|
|
5016
4985
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5017
4986
|
const { field, resourceKey, store } = context;
|
|
@@ -5048,8 +5017,7 @@ function getResourceKey(record) {
|
|
|
5048
5017
|
return recordIdentifierFor(record);
|
|
5049
5018
|
}
|
|
5050
5019
|
|
|
5051
|
-
|
|
5052
|
-
//#region src/reactive/-private/kind/collection-field.ts
|
|
5020
|
+
// src/reactive/-private/kind/collection-field.ts
|
|
5053
5021
|
function getCollectionField(context) {
|
|
5054
5022
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5055
5023
|
}
|
|
@@ -5057,8 +5025,7 @@ function setCollectionField(context) {
|
|
|
5057
5025
|
return false;
|
|
5058
5026
|
}
|
|
5059
5027
|
|
|
5060
|
-
|
|
5061
|
-
//#region src/reactive/-private/kind/derived-field.ts
|
|
5028
|
+
// src/reactive/-private/kind/derived-field.ts
|
|
5062
5029
|
function getDerivedField(context) {
|
|
5063
5030
|
const { schema } = context.store;
|
|
5064
5031
|
return schema.derivation(context.field)(context.record, context.field.options ?? null, context.field.name);
|
|
@@ -5067,8 +5034,7 @@ function setDerivedField(context) {
|
|
|
5067
5034
|
return false;
|
|
5068
5035
|
}
|
|
5069
5036
|
|
|
5070
|
-
|
|
5071
|
-
//#region src/reactive/-private/kind/generic-field.ts
|
|
5037
|
+
// src/reactive/-private/kind/generic-field.ts
|
|
5072
5038
|
function getGenericField(context) {
|
|
5073
5039
|
const signal = entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5074
5040
|
signal.isStale = false;
|
|
@@ -5090,8 +5056,7 @@ function setGenericField(context) {
|
|
|
5090
5056
|
return true;
|
|
5091
5057
|
}
|
|
5092
5058
|
|
|
5093
|
-
|
|
5094
|
-
//#region src/reactive/-private/fields/many-array-manager.ts
|
|
5059
|
+
// src/reactive/-private/fields/many-array-manager.ts
|
|
5095
5060
|
var ManyArrayManager = class {
|
|
5096
5061
|
constructor(record, editable) {
|
|
5097
5062
|
const context = record[Context];
|
|
@@ -5147,8 +5112,7 @@ function extractCacheOptions(options) {
|
|
|
5147
5112
|
return cacheOptions;
|
|
5148
5113
|
}
|
|
5149
5114
|
|
|
5150
|
-
|
|
5151
|
-
//#region src/reactive/-private/kind/has-many-field.ts
|
|
5115
|
+
// src/reactive/-private/kind/has-many-field.ts
|
|
5152
5116
|
function getHasManyField(context) {
|
|
5153
5117
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5154
5118
|
const { store, field } = context;
|
|
@@ -5185,8 +5149,7 @@ function setHasManyField(context) {
|
|
|
5185
5149
|
return true;
|
|
5186
5150
|
}
|
|
5187
5151
|
|
|
5188
|
-
|
|
5189
|
-
//#region src/reactive/-private/kind/hash-field.ts
|
|
5152
|
+
// src/reactive/-private/kind/hash-field.ts
|
|
5190
5153
|
function getHashField(context) {
|
|
5191
5154
|
const { field, path, resourceKey } = context;
|
|
5192
5155
|
const { schema, cache } = context.store;
|
|
@@ -5198,8 +5161,7 @@ function setHashField(context) {
|
|
|
5198
5161
|
return false;
|
|
5199
5162
|
}
|
|
5200
5163
|
|
|
5201
|
-
|
|
5202
|
-
//#region src/reactive/-private/kind/identity-field.ts
|
|
5164
|
+
// src/reactive/-private/kind/identity-field.ts
|
|
5203
5165
|
function getIdentityField(context) {
|
|
5204
5166
|
entangleSignal(context.signals, context.record, "@identity", null);
|
|
5205
5167
|
return context.resourceKey.id;
|
|
@@ -5215,8 +5177,7 @@ function setIdentityField(context) {
|
|
|
5215
5177
|
return true;
|
|
5216
5178
|
}
|
|
5217
5179
|
|
|
5218
|
-
|
|
5219
|
-
//#region src/reactive/-private/kind/local-field.ts
|
|
5180
|
+
// src/reactive/-private/kind/local-field.ts
|
|
5220
5181
|
function getLocalField(context) {
|
|
5221
5182
|
const { field } = context;
|
|
5222
5183
|
const signal = getOrCreateInternalSignal(context.signals, context.record, field.name, field.options?.defaultValue ?? null);
|
|
@@ -5233,8 +5194,7 @@ function setLocalField(context) {
|
|
|
5233
5194
|
return true;
|
|
5234
5195
|
}
|
|
5235
5196
|
|
|
5236
|
-
|
|
5237
|
-
//#region src/reactive/-private/fields/managed-object.ts
|
|
5197
|
+
// src/reactive/-private/fields/managed-object.ts
|
|
5238
5198
|
const ObjectSymbols = /* @__PURE__ */ new Set([
|
|
5239
5199
|
OBJECT_SIGNAL,
|
|
5240
5200
|
Context,
|
|
@@ -5315,8 +5275,7 @@ function peekManagedObject(record, field) {
|
|
|
5315
5275
|
if (managedObjectMapForRecord) return managedObjectMapForRecord.get(field.name);
|
|
5316
5276
|
}
|
|
5317
5277
|
|
|
5318
|
-
|
|
5319
|
-
//#region src/reactive/-private/kind/object-field.ts
|
|
5278
|
+
// src/reactive/-private/kind/object-field.ts
|
|
5320
5279
|
function getObjectField(context) {
|
|
5321
5280
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5322
5281
|
const { record, field } = context;
|
|
@@ -5372,8 +5331,7 @@ function setObjectField(context) {
|
|
|
5372
5331
|
return true;
|
|
5373
5332
|
}
|
|
5374
5333
|
|
|
5375
|
-
|
|
5376
|
-
//#region src/reactive/-private/kind/resource-field.ts
|
|
5334
|
+
// src/reactive/-private/kind/resource-field.ts
|
|
5377
5335
|
var ResourceRelationship = class {
|
|
5378
5336
|
constructor(context) {
|
|
5379
5337
|
const { store, resourceKey } = context;
|
|
@@ -5413,8 +5371,7 @@ function setResourceField(context) {
|
|
|
5413
5371
|
return false;
|
|
5414
5372
|
}
|
|
5415
5373
|
|
|
5416
|
-
|
|
5417
|
-
//#region src/reactive/-private/kind/schema-array-field.ts
|
|
5374
|
+
// src/reactive/-private/kind/schema-array-field.ts
|
|
5418
5375
|
function setSchemaArrayField(context) {
|
|
5419
5376
|
const arrayValue = context.value === null ? null : context.value?.slice();
|
|
5420
5377
|
const fieldSignal = peekInternalSignal(context.signals, context.path.at(-1));
|
|
@@ -5428,8 +5385,7 @@ function setSchemaArrayField(context) {
|
|
|
5428
5385
|
return true;
|
|
5429
5386
|
}
|
|
5430
5387
|
|
|
5431
|
-
|
|
5432
|
-
//#region src/reactive/-private/kind/schema-object-field.ts
|
|
5388
|
+
// src/reactive/-private/kind/schema-object-field.ts
|
|
5433
5389
|
function getSchemaObjectField(context) {
|
|
5434
5390
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5435
5391
|
const { store, resourceKey, path, field } = context;
|
|
@@ -5484,8 +5440,7 @@ function setSchemaObjectField(context) {
|
|
|
5484
5440
|
return true;
|
|
5485
5441
|
}
|
|
5486
5442
|
|
|
5487
|
-
|
|
5488
|
-
//#region src/reactive/-private/default-mode.ts
|
|
5443
|
+
// src/reactive/-private/default-mode.ts
|
|
5489
5444
|
/**
|
|
5490
5445
|
* A ReactiveResource context object passed to
|
|
5491
5446
|
* the get/set functions of a field kind implementation.
|
|
@@ -5601,8 +5556,7 @@ const DefaultMode = {
|
|
|
5601
5556
|
}
|
|
5602
5557
|
};
|
|
5603
5558
|
|
|
5604
|
-
|
|
5605
|
-
//#region src/reactive/-private/record.ts
|
|
5559
|
+
// src/reactive/-private/record.ts
|
|
5606
5560
|
const IgnoredGlobalFields = /* @__PURE__ */ new Set([
|
|
5607
5561
|
"length",
|
|
5608
5562
|
"nodeType",
|
|
@@ -6064,8 +6018,7 @@ function commit(record) {
|
|
|
6064
6018
|
return record[Commit]();
|
|
6065
6019
|
}
|
|
6066
6020
|
|
|
6067
|
-
|
|
6068
|
-
//#region src/reactive/-private/hooks.ts
|
|
6021
|
+
// src/reactive/-private/hooks.ts
|
|
6069
6022
|
/**
|
|
6070
6023
|
* The store's default `instantiateRecord` hook implementation, which
|
|
6071
6024
|
* produces a {@link ReactiveResource} for `identifier` using the resource
|
|
@@ -6108,8 +6061,7 @@ function teardownRecord(record) {
|
|
|
6108
6061
|
record[Destroy]();
|
|
6109
6062
|
}
|
|
6110
6063
|
|
|
6111
|
-
|
|
6112
|
-
//#region src/reactive/-private/schema.ts
|
|
6064
|
+
// src/reactive/-private/schema.ts
|
|
6113
6065
|
const Support = getOrSetGlobal("Support", /* @__PURE__ */ new WeakMap());
|
|
6114
6066
|
const ConstructorField = {
|
|
6115
6067
|
type: "@constructor",
|
|
@@ -6683,8 +6635,7 @@ function mergeMap(base, toApply) {
|
|
|
6683
6635
|
for (const [key, value] of toApply) base.set(key, value);
|
|
6684
6636
|
}
|
|
6685
6637
|
|
|
6686
|
-
|
|
6687
|
-
//#region src/request/-private/fetch.ts
|
|
6638
|
+
// src/request/-private/fetch.ts
|
|
6688
6639
|
const _fetch = typeof fetch !== "undefined" ? (...args) => fetch(...args) : typeof FastBoot !== "undefined" ? (...args) => FastBoot.require("node-fetch")(...args) : () => {
|
|
6689
6640
|
throw new Error("No Fetch Implementation Found");
|
|
6690
6641
|
};
|
|
@@ -6886,8 +6837,7 @@ function isDict(v) {
|
|
|
6886
6837
|
return v !== null && typeof v === "object";
|
|
6887
6838
|
}
|
|
6888
6839
|
|
|
6889
|
-
|
|
6890
|
-
//#region src/request/-private/manager.ts
|
|
6840
|
+
// src/request/-private/manager.ts
|
|
6891
6841
|
/**
|
|
6892
6842
|
* ## Import
|
|
6893
6843
|
*
|
|
@@ -7134,8 +7084,7 @@ var RequestManager = class {
|
|
|
7134
7084
|
*
|
|
7135
7085
|
* @private
|
|
7136
7086
|
*/
|
|
7137
|
-
|
|
7138
|
-
//#region src/index.ts
|
|
7087
|
+
// src/index.ts
|
|
7139
7088
|
/**
|
|
7140
7089
|
* @summary Main entry point for WarpDrive: the `Store`, `RequestManager`, `Fetch` handler, `CacheHandler`, and
|
|
7141
7090
|
* `useRecommendedStore` for building a configured store.
|
|
@@ -7314,6 +7263,5 @@ function useRecommendedStore(options, StoreKlass = Store) {
|
|
|
7314
7263
|
};
|
|
7315
7264
|
}
|
|
7316
7265
|
|
|
7317
|
-
//#endregion
|
|
7318
7266
|
export { normalizeModelName as A, isRequestKey as C, setIdentifierResetMethod as D, setIdentifierGenerationMethod as E, recordIdentifierFor as F, setRecordIdentifier as I, storeFor as L, ensureStringId as M, StoreMap as N, setIdentifierUpdateMethod as O, _clearCaches as P, assertPrivateCapabilities as R, fieldValueIdentity as S, setIdentifierForgetMethod as T, Store as _, fromIdentity as a, RecordArrayManager as b, instantiateRecord as c, commit as d, log as f, CacheHandler as g, constructResource as h, SchemaService as i, coerceId as j, setKeyInfoForResource as k, teardownRecord as l, createLegacyManyArray as m, RequestManager as n, registerDerivations as o, logGroup as p, Fetch as r, withDefaults as s, useRecommendedStore as t, checkout as u, assertPrivateStore as v, isResourceKey as w, fastPush as x, isPrivateStore as y };
|
|
7319
|
-
//# sourceMappingURL=src-
|
|
7267
|
+
//# sourceMappingURL=src-D6BqG5K8.js.map
|