@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,15 +1,15 @@
|
|
|
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 { RecordStore, Type } from "./types/symbols.js";
|
|
8
8
|
import { isResourceSchema } from "./types/schema/fields.js";
|
|
9
|
-
import { t as DefaultCachePolicy } from "./store-
|
|
9
|
+
import { t as DefaultCachePolicy } from "./store-Bz9R5hGB.js";
|
|
10
10
|
import { setIsMaybeMirage } from "./types/runtime.js";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/reactive/-private/document.ts
|
|
13
13
|
function urlFromLink(link) {
|
|
14
14
|
if (typeof link === "string") return link;
|
|
15
15
|
return link.href;
|
|
@@ -127,8 +127,7 @@ function createReactiveDocument(store, cacheKey, localCache) {
|
|
|
127
127
|
return doc;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
//#region src/store/-private/managers/cache-capabilities-manager.ts
|
|
130
|
+
// src/store/-private/managers/cache-capabilities-manager.ts
|
|
132
131
|
var CacheCapabilitiesManager = class {
|
|
133
132
|
/** @internal */
|
|
134
133
|
/** @internal */
|
|
@@ -221,8 +220,7 @@ var CacheCapabilitiesManager = class {
|
|
|
221
220
|
*/
|
|
222
221
|
function assertPrivateCapabilities(manager) {}
|
|
223
222
|
|
|
224
|
-
|
|
225
|
-
//#region src/store/-private/caches/instance-cache.ts
|
|
223
|
+
// src/store/-private/caches/instance-cache.ts
|
|
226
224
|
const RecordCache = getOrSetGlobal("RecordCache", /* @__PURE__ */ new Map());
|
|
227
225
|
function peekResourceKey(record) {
|
|
228
226
|
return RecordCache.get(record);
|
|
@@ -458,8 +456,7 @@ function unloadRecord(instances, identifier) {
|
|
|
458
456
|
instances.store._requestCache._clearEntries(identifier);
|
|
459
457
|
}
|
|
460
458
|
|
|
461
|
-
|
|
462
|
-
//#region src/store/-private/caches/resource-utils.ts
|
|
459
|
+
// src/store/-private/caches/resource-utils.ts
|
|
463
460
|
function isResource(resource) {
|
|
464
461
|
return Boolean(resource && typeof resource === "object");
|
|
465
462
|
}
|
|
@@ -476,8 +473,7 @@ function hasType(resource) {
|
|
|
476
473
|
return hasProp(resource, "type");
|
|
477
474
|
}
|
|
478
475
|
|
|
479
|
-
|
|
480
|
-
//#region src/store/-private/utils/coerce-id.ts
|
|
476
|
+
// src/store/-private/utils/coerce-id.ts
|
|
481
477
|
/**
|
|
482
478
|
* Normalizes a resource `id` entering the store to a string (or `null`).
|
|
483
479
|
*
|
|
@@ -507,8 +503,7 @@ function ensureStringId(id) {
|
|
|
507
503
|
return normalized;
|
|
508
504
|
}
|
|
509
505
|
|
|
510
|
-
|
|
511
|
-
//#region src/store/-private/utils/normalize-model-name.ts
|
|
506
|
+
// src/store/-private/utils/normalize-model-name.ts
|
|
512
507
|
/**
|
|
513
508
|
* Normalizes a resource `type` to its dasherized form, e.g. `myClass` to
|
|
514
509
|
* `my-class`. Re-exported elsewhere as `_deprecatingNormalize`.
|
|
@@ -523,8 +518,7 @@ function normalizeModelName(type) {
|
|
|
523
518
|
return type;
|
|
524
519
|
}
|
|
525
520
|
|
|
526
|
-
|
|
527
|
-
//#region src/store/-private/managers/cache-key-manager.ts
|
|
521
|
+
// src/store/-private/managers/cache-key-manager.ts
|
|
528
522
|
/**
|
|
529
523
|
* Type-guard that returns `true` if the given value is a stable {@link ResourceKey}
|
|
530
524
|
* (as opposed to a {@link RequestKey} or arbitrary, not-yet-stabilized resource data).
|
|
@@ -1091,8 +1085,7 @@ function addResourceToCache(cache, identifier) {
|
|
|
1091
1085
|
if (identifier.id) typeSet.id.set(identifier.id, identifier);
|
|
1092
1086
|
}
|
|
1093
1087
|
|
|
1094
|
-
|
|
1095
|
-
//#region src/store/-private/managers/notification-manager.ts
|
|
1088
|
+
// src/store/-private/managers/notification-manager.ts
|
|
1096
1089
|
/**
|
|
1097
1090
|
* The kinds of change notifications the {@link NotificationManager} can emit for a resource.
|
|
1098
1091
|
*
|
|
@@ -1457,8 +1450,7 @@ function hasSubscribers(cache, cacheKey, value) {
|
|
|
1457
1450
|
return Boolean(callbackMap?.length);
|
|
1458
1451
|
}
|
|
1459
1452
|
|
|
1460
|
-
|
|
1461
|
-
//#region src/store/-private/record-arrays/-utils.ts
|
|
1453
|
+
// src/store/-private/record-arrays/-utils.ts
|
|
1462
1454
|
/**
|
|
1463
1455
|
* LegacyArrays have the capability of updating via `array.update()`
|
|
1464
1456
|
* and saving each contained record individually via `array.save()`
|
|
@@ -1534,8 +1526,7 @@ function safeForEach$1(instance, arr, store, callback, target) {
|
|
|
1534
1526
|
return instance;
|
|
1535
1527
|
}
|
|
1536
1528
|
|
|
1537
|
-
|
|
1538
|
-
//#region src/reactive/-private/fields/extension.ts
|
|
1529
|
+
// src/reactive/-private/fields/extension.ts
|
|
1539
1530
|
function expectNever(value) {}
|
|
1540
1531
|
function isExtensionProp(extensions, prop) {
|
|
1541
1532
|
return Boolean(extensions && typeof prop !== "number" && extensions.has(prop));
|
|
@@ -1602,8 +1593,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
1602
1593
|
}
|
|
1603
1594
|
}
|
|
1604
1595
|
|
|
1605
|
-
|
|
1606
|
-
//#region src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
1596
|
+
// src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
1607
1597
|
/**
|
|
1608
1598
|
* The global `Proxy` constructor, retyped with the corrected
|
|
1609
1599
|
* {@link ProxyConstructor} signature above so that `target` and `receiver`
|
|
@@ -1613,8 +1603,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
1613
1603
|
*/
|
|
1614
1604
|
const NativeProxy = Proxy;
|
|
1615
1605
|
|
|
1616
|
-
|
|
1617
|
-
//#region src/store/-private/record-arrays/resource-array.ts
|
|
1606
|
+
// src/store/-private/record-arrays/resource-array.ts
|
|
1618
1607
|
const IS_COLLECTION = getOrSetGlobal("IS_COLLECTION", Symbol.for("Collection"));
|
|
1619
1608
|
function isContextProp(prop) {
|
|
1620
1609
|
return prop === "destroy" || prop === "isDestroying" || prop === "isDestroyed";
|
|
@@ -1858,8 +1847,7 @@ function createRequestCollection(config) {
|
|
|
1858
1847
|
});
|
|
1859
1848
|
}
|
|
1860
1849
|
|
|
1861
|
-
|
|
1862
|
-
//#region src/store/-private/record-arrays/legacy-live-array.ts
|
|
1850
|
+
// src/store/-private/record-arrays/legacy-live-array.ts
|
|
1863
1851
|
/**
|
|
1864
1852
|
* LiveArrays contain all the known records for a given `ResourceType`.
|
|
1865
1853
|
*
|
|
@@ -1961,8 +1949,7 @@ function _updateLiveArray() {
|
|
|
1961
1949
|
return this[Context].store.findAll(this.modelName, { reload: true });
|
|
1962
1950
|
}
|
|
1963
1951
|
|
|
1964
|
-
|
|
1965
|
-
//#region src/store/-private/record-arrays/legacy-query.ts
|
|
1952
|
+
// src/store/-private/record-arrays/legacy-query.ts
|
|
1966
1953
|
/**
|
|
1967
1954
|
* QueryArrays contain the primary records returned when querying
|
|
1968
1955
|
* for records by `ResourceType`.
|
|
@@ -2091,8 +2078,7 @@ function destroyCollection(clear) {
|
|
|
2091
2078
|
manager._pending.delete(this);
|
|
2092
2079
|
}
|
|
2093
2080
|
|
|
2094
|
-
|
|
2095
|
-
//#region src/store/-private/managers/record-array-manager.ts
|
|
2081
|
+
// src/store/-private/managers/record-array-manager.ts
|
|
2096
2082
|
const FAKE_ARR = getOrSetGlobal("FAKE_ARR", {});
|
|
2097
2083
|
const SLICE_BATCH_SIZE = 4761;
|
|
2098
2084
|
/**
|
|
@@ -2505,8 +2491,7 @@ function isLegacyLiveArray(array) {
|
|
|
2505
2491
|
return context.features !== null && context.features.DEPRECATED_CLASS_NAME === "LiveArray";
|
|
2506
2492
|
}
|
|
2507
2493
|
|
|
2508
|
-
|
|
2509
|
-
//#region src/store/-private/network/request-cache.ts
|
|
2494
|
+
// src/store/-private/network/request-cache.ts
|
|
2510
2495
|
const Touching = getOrSetGlobal("Touching", Symbol("touching"));
|
|
2511
2496
|
const RequestPromise = getOrSetGlobal("RequestPromise", Symbol("promise"));
|
|
2512
2497
|
const EMPTY_ARR = [];
|
|
@@ -2714,8 +2699,7 @@ var RequestStateService = class {
|
|
|
2714
2699
|
*
|
|
2715
2700
|
* @private
|
|
2716
2701
|
*/
|
|
2717
|
-
|
|
2718
|
-
//#region src/store/-private/store-service.ts
|
|
2702
|
+
// src/store/-private/store-service.ts
|
|
2719
2703
|
/**
|
|
2720
2704
|
* Currently only records that extend object can be created via
|
|
2721
2705
|
* store.createRecord. This is a limitation of the current API,
|
|
@@ -3478,8 +3462,7 @@ function extractIdentifierFromRecord$1(recordOrPromiseRecord) {
|
|
|
3478
3462
|
return recordIdentifierFor(recordOrPromiseRecord);
|
|
3479
3463
|
}
|
|
3480
3464
|
|
|
3481
|
-
|
|
3482
|
-
//#region src/store/-private/cache-handler/utils.ts
|
|
3465
|
+
// src/store/-private/cache-handler/utils.ts
|
|
3483
3466
|
const MUTATION_OPS$1 = /* @__PURE__ */ new Set([
|
|
3484
3467
|
"createRecord",
|
|
3485
3468
|
"updateRecord",
|
|
@@ -3519,8 +3502,7 @@ function getPriority(identifier, deduped, priority) {
|
|
|
3519
3502
|
return priority;
|
|
3520
3503
|
}
|
|
3521
3504
|
|
|
3522
|
-
|
|
3523
|
-
//#region src/store/-private/cache-handler/handler.ts
|
|
3505
|
+
// src/store/-private/cache-handler/handler.ts
|
|
3524
3506
|
/**
|
|
3525
3507
|
* The request shape accepted by {@link Store.request}, either a fully-formed
|
|
3526
3508
|
* {@link ImmutableRequestInfo} or the looser {@link LooseStoreRequestInfo}.
|
|
@@ -3727,14 +3709,12 @@ function fetchContentAndHydrate(next, context, identifier, priority) {
|
|
|
3727
3709
|
}] });
|
|
3728
3710
|
}
|
|
3729
3711
|
|
|
3730
|
-
|
|
3731
|
-
//#region src/store/-private/utils/is-non-empty-string.ts
|
|
3712
|
+
// src/store/-private/utils/is-non-empty-string.ts
|
|
3732
3713
|
function isNonEmptyString(str) {
|
|
3733
3714
|
return Boolean(str && typeof str === "string");
|
|
3734
3715
|
}
|
|
3735
3716
|
|
|
3736
|
-
|
|
3737
|
-
//#region src/store/-private/utils/construct-resource.ts
|
|
3717
|
+
// src/store/-private/utils/construct-resource.ts
|
|
3738
3718
|
/**
|
|
3739
3719
|
* Given an existing resource identifier object (or a {@link ResourceKey}),
|
|
3740
3720
|
* returns it unchanged aside from coercing its `id`, if present, to a string.
|
|
@@ -3797,8 +3777,7 @@ function constructResource(type, id, lid) {
|
|
|
3797
3777
|
}
|
|
3798
3778
|
}
|
|
3799
3779
|
|
|
3800
|
-
|
|
3801
|
-
//#region src/store/-private/record-arrays/legacy-many-array.ts
|
|
3780
|
+
// src/store/-private/record-arrays/legacy-many-array.ts
|
|
3802
3781
|
/**
|
|
3803
3782
|
A `ManyArray` is a `MutableArray` that represents the contents of a has-many
|
|
3804
3783
|
relationship.
|
|
@@ -4045,8 +4024,7 @@ function mutate(collection, mutation, _SIGNAL) {
|
|
|
4045
4024
|
notifyInternalSignal(_SIGNAL);
|
|
4046
4025
|
}
|
|
4047
4026
|
|
|
4048
|
-
|
|
4049
|
-
//#region src/store/-private/debug/utils.ts
|
|
4027
|
+
// src/store/-private/debug/utils.ts
|
|
4050
4028
|
const TEXT_COLORS = {
|
|
4051
4029
|
TEXT: "inherit",
|
|
4052
4030
|
notify: [
|
|
@@ -4275,15 +4253,13 @@ function _log(scope, prefix, subScop1, subScop2, subScop3, subScop4) {
|
|
|
4275
4253
|
return [];
|
|
4276
4254
|
}
|
|
4277
4255
|
|
|
4278
|
-
|
|
4279
|
-
//#region src/reactive/-private/kind/alias-field.ts
|
|
4256
|
+
// src/reactive/-private/kind/alias-field.ts
|
|
4280
4257
|
function getAliasField(context) {}
|
|
4281
4258
|
function setAliasField(context) {
|
|
4282
4259
|
return false;
|
|
4283
4260
|
}
|
|
4284
4261
|
|
|
4285
|
-
|
|
4286
|
-
//#region src/reactive/-private/fields/managed-array.ts
|
|
4262
|
+
// src/reactive/-private/fields/managed-array.ts
|
|
4287
4263
|
const ARRAY_GETTER_METHODS = /* @__PURE__ */ new Set([
|
|
4288
4264
|
Symbol.iterator,
|
|
4289
4265
|
"concat",
|
|
@@ -4512,8 +4488,7 @@ Object.defineProperty(ManagedArray.prototype, "[]", {
|
|
|
4512
4488
|
get: function() {}
|
|
4513
4489
|
});
|
|
4514
4490
|
|
|
4515
|
-
|
|
4516
|
-
//#region src/reactive/-private/kind/array-field.ts
|
|
4491
|
+
// src/reactive/-private/kind/array-field.ts
|
|
4517
4492
|
function getArrayField(context) {
|
|
4518
4493
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4519
4494
|
const { record } = context;
|
|
@@ -4556,8 +4531,7 @@ function setArrayField(context) {
|
|
|
4556
4531
|
return true;
|
|
4557
4532
|
}
|
|
4558
4533
|
|
|
4559
|
-
|
|
4560
|
-
//#region src/reactive/-private/kind/attribute-field.ts
|
|
4534
|
+
// src/reactive/-private/kind/attribute-field.ts
|
|
4561
4535
|
function getAttributeField(context) {
|
|
4562
4536
|
entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4563
4537
|
const { cache } = context.store;
|
|
@@ -4568,8 +4542,7 @@ function setAttributeField(context) {
|
|
|
4568
4542
|
return true;
|
|
4569
4543
|
}
|
|
4570
4544
|
|
|
4571
|
-
|
|
4572
|
-
//#region src/reactive/-private/fields/get-field-key.ts
|
|
4545
|
+
// src/reactive/-private/fields/get-field-key.ts
|
|
4573
4546
|
const InvalidKinds = [
|
|
4574
4547
|
"alias",
|
|
4575
4548
|
"derived",
|
|
@@ -4588,8 +4561,7 @@ function getFieldCacheKey(field) {
|
|
|
4588
4561
|
return "sourceKey" in field && field.sourceKey ? field.sourceKey : field.name;
|
|
4589
4562
|
}
|
|
4590
4563
|
|
|
4591
|
-
|
|
4592
|
-
//#region src/reactive/-private/kind/belongs-to-field.ts
|
|
4564
|
+
// src/reactive/-private/kind/belongs-to-field.ts
|
|
4593
4565
|
function getBelongsToField(context) {
|
|
4594
4566
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4595
4567
|
const { field, resourceKey, store } = context;
|
|
@@ -4626,8 +4598,7 @@ function getResourceKey(record) {
|
|
|
4626
4598
|
return recordIdentifierFor(record);
|
|
4627
4599
|
}
|
|
4628
4600
|
|
|
4629
|
-
|
|
4630
|
-
//#region src/reactive/-private/kind/collection-field.ts
|
|
4601
|
+
// src/reactive/-private/kind/collection-field.ts
|
|
4631
4602
|
function getCollectionField(context) {
|
|
4632
4603
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4633
4604
|
}
|
|
@@ -4635,8 +4606,7 @@ function setCollectionField(context) {
|
|
|
4635
4606
|
return false;
|
|
4636
4607
|
}
|
|
4637
4608
|
|
|
4638
|
-
|
|
4639
|
-
//#region src/reactive/-private/kind/derived-field.ts
|
|
4609
|
+
// src/reactive/-private/kind/derived-field.ts
|
|
4640
4610
|
function getDerivedField(context) {
|
|
4641
4611
|
const { schema } = context.store;
|
|
4642
4612
|
return schema.derivation(context.field)(context.record, context.field.options ?? null, context.field.name);
|
|
@@ -4645,8 +4615,7 @@ function setDerivedField(context) {
|
|
|
4645
4615
|
return false;
|
|
4646
4616
|
}
|
|
4647
4617
|
|
|
4648
|
-
|
|
4649
|
-
//#region src/reactive/-private/kind/generic-field.ts
|
|
4618
|
+
// src/reactive/-private/kind/generic-field.ts
|
|
4650
4619
|
function getGenericField(context) {
|
|
4651
4620
|
const signal = entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4652
4621
|
signal.isStale = false;
|
|
@@ -4668,8 +4637,7 @@ function setGenericField(context) {
|
|
|
4668
4637
|
return true;
|
|
4669
4638
|
}
|
|
4670
4639
|
|
|
4671
|
-
|
|
4672
|
-
//#region src/reactive/-private/fields/many-array-manager.ts
|
|
4640
|
+
// src/reactive/-private/fields/many-array-manager.ts
|
|
4673
4641
|
var ManyArrayManager = class {
|
|
4674
4642
|
constructor(record, editable) {
|
|
4675
4643
|
const context = record[Context];
|
|
@@ -4725,8 +4693,7 @@ function extractCacheOptions(options) {
|
|
|
4725
4693
|
return cacheOptions;
|
|
4726
4694
|
}
|
|
4727
4695
|
|
|
4728
|
-
|
|
4729
|
-
//#region src/reactive/-private/kind/has-many-field.ts
|
|
4696
|
+
// src/reactive/-private/kind/has-many-field.ts
|
|
4730
4697
|
function getHasManyField(context) {
|
|
4731
4698
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4732
4699
|
const { store, field } = context;
|
|
@@ -4763,8 +4730,7 @@ function setHasManyField(context) {
|
|
|
4763
4730
|
return true;
|
|
4764
4731
|
}
|
|
4765
4732
|
|
|
4766
|
-
|
|
4767
|
-
//#region src/reactive/-private/kind/hash-field.ts
|
|
4733
|
+
// src/reactive/-private/kind/hash-field.ts
|
|
4768
4734
|
function getHashField(context) {
|
|
4769
4735
|
const { field, path, resourceKey } = context;
|
|
4770
4736
|
const { schema, cache } = context.store;
|
|
@@ -4776,8 +4742,7 @@ function setHashField(context) {
|
|
|
4776
4742
|
return false;
|
|
4777
4743
|
}
|
|
4778
4744
|
|
|
4779
|
-
|
|
4780
|
-
//#region src/reactive/-private/kind/identity-field.ts
|
|
4745
|
+
// src/reactive/-private/kind/identity-field.ts
|
|
4781
4746
|
function getIdentityField(context) {
|
|
4782
4747
|
entangleSignal(context.signals, context.record, "@identity", null);
|
|
4783
4748
|
return context.resourceKey.id;
|
|
@@ -4793,8 +4758,7 @@ function setIdentityField(context) {
|
|
|
4793
4758
|
return true;
|
|
4794
4759
|
}
|
|
4795
4760
|
|
|
4796
|
-
|
|
4797
|
-
//#region src/reactive/-private/kind/local-field.ts
|
|
4761
|
+
// src/reactive/-private/kind/local-field.ts
|
|
4798
4762
|
function getLocalField(context) {
|
|
4799
4763
|
const { field } = context;
|
|
4800
4764
|
const signal = getOrCreateInternalSignal(context.signals, context.record, field.name, field.options?.defaultValue ?? null);
|
|
@@ -4811,8 +4775,7 @@ function setLocalField(context) {
|
|
|
4811
4775
|
return true;
|
|
4812
4776
|
}
|
|
4813
4777
|
|
|
4814
|
-
|
|
4815
|
-
//#region src/reactive/-private/fields/managed-object.ts
|
|
4778
|
+
// src/reactive/-private/fields/managed-object.ts
|
|
4816
4779
|
const ObjectSymbols = /* @__PURE__ */ new Set([
|
|
4817
4780
|
OBJECT_SIGNAL,
|
|
4818
4781
|
Context,
|
|
@@ -4893,8 +4856,7 @@ function peekManagedObject(record, field) {
|
|
|
4893
4856
|
if (managedObjectMapForRecord) return managedObjectMapForRecord.get(field.name);
|
|
4894
4857
|
}
|
|
4895
4858
|
|
|
4896
|
-
|
|
4897
|
-
//#region src/reactive/-private/kind/object-field.ts
|
|
4859
|
+
// src/reactive/-private/kind/object-field.ts
|
|
4898
4860
|
function getObjectField(context) {
|
|
4899
4861
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
4900
4862
|
const { record, field } = context;
|
|
@@ -4950,8 +4912,7 @@ function setObjectField(context) {
|
|
|
4950
4912
|
return true;
|
|
4951
4913
|
}
|
|
4952
4914
|
|
|
4953
|
-
|
|
4954
|
-
//#region src/reactive/-private/kind/resource-field.ts
|
|
4915
|
+
// src/reactive/-private/kind/resource-field.ts
|
|
4955
4916
|
var ResourceRelationship = class {
|
|
4956
4917
|
constructor(context) {
|
|
4957
4918
|
const { store, resourceKey } = context;
|
|
@@ -4991,8 +4952,7 @@ function setResourceField(context) {
|
|
|
4991
4952
|
return false;
|
|
4992
4953
|
}
|
|
4993
4954
|
|
|
4994
|
-
|
|
4995
|
-
//#region src/reactive/-private/kind/schema-array-field.ts
|
|
4955
|
+
// src/reactive/-private/kind/schema-array-field.ts
|
|
4996
4956
|
function setSchemaArrayField(context) {
|
|
4997
4957
|
const arrayValue = context.value === null ? null : context.value?.slice();
|
|
4998
4958
|
const fieldSignal = peekInternalSignal(context.signals, context.path.at(-1));
|
|
@@ -5006,8 +4966,7 @@ function setSchemaArrayField(context) {
|
|
|
5006
4966
|
return true;
|
|
5007
4967
|
}
|
|
5008
4968
|
|
|
5009
|
-
|
|
5010
|
-
//#region src/reactive/-private/kind/schema-object-field.ts
|
|
4969
|
+
// src/reactive/-private/kind/schema-object-field.ts
|
|
5011
4970
|
function getSchemaObjectField(context) {
|
|
5012
4971
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
5013
4972
|
const { store, resourceKey, path, field } = context;
|
|
@@ -5062,8 +5021,7 @@ function setSchemaObjectField(context) {
|
|
|
5062
5021
|
return true;
|
|
5063
5022
|
}
|
|
5064
5023
|
|
|
5065
|
-
|
|
5066
|
-
//#region src/reactive/-private/default-mode.ts
|
|
5024
|
+
// src/reactive/-private/default-mode.ts
|
|
5067
5025
|
/**
|
|
5068
5026
|
* A ReactiveResource context object passed to
|
|
5069
5027
|
* the get/set functions of a field kind implementation.
|
|
@@ -5179,8 +5137,7 @@ const DefaultMode = {
|
|
|
5179
5137
|
}
|
|
5180
5138
|
};
|
|
5181
5139
|
|
|
5182
|
-
|
|
5183
|
-
//#region src/reactive/-private/record.ts
|
|
5140
|
+
// src/reactive/-private/record.ts
|
|
5184
5141
|
const IgnoredGlobalFields = /* @__PURE__ */ new Set([
|
|
5185
5142
|
"length",
|
|
5186
5143
|
"nodeType",
|
|
@@ -5642,8 +5599,7 @@ function commit(record) {
|
|
|
5642
5599
|
return record[Commit]();
|
|
5643
5600
|
}
|
|
5644
5601
|
|
|
5645
|
-
|
|
5646
|
-
//#region src/reactive/-private/hooks.ts
|
|
5602
|
+
// src/reactive/-private/hooks.ts
|
|
5647
5603
|
/**
|
|
5648
5604
|
* The store's default `instantiateRecord` hook implementation, which
|
|
5649
5605
|
* produces a {@link ReactiveResource} for `identifier` using the resource
|
|
@@ -5686,8 +5642,7 @@ function teardownRecord(record) {
|
|
|
5686
5642
|
record[Destroy]();
|
|
5687
5643
|
}
|
|
5688
5644
|
|
|
5689
|
-
|
|
5690
|
-
//#region src/reactive/-private/schema.ts
|
|
5645
|
+
// src/reactive/-private/schema.ts
|
|
5691
5646
|
const Support = getOrSetGlobal("Support", /* @__PURE__ */ new WeakMap());
|
|
5692
5647
|
const ConstructorField = {
|
|
5693
5648
|
type: "@constructor",
|
|
@@ -6248,8 +6203,7 @@ function mergeMap(base, toApply) {
|
|
|
6248
6203
|
for (const [key, value] of toApply) base.set(key, value);
|
|
6249
6204
|
}
|
|
6250
6205
|
|
|
6251
|
-
|
|
6252
|
-
//#region src/request/-private/fetch.ts
|
|
6206
|
+
// src/request/-private/fetch.ts
|
|
6253
6207
|
const _fetch = typeof fetch !== "undefined" ? (...args) => fetch(...args) : typeof FastBoot !== "undefined" ? (...args) => FastBoot.require("node-fetch")(...args) : () => {
|
|
6254
6208
|
throw new Error("No Fetch Implementation Found");
|
|
6255
6209
|
};
|
|
@@ -6451,8 +6405,7 @@ function isDict(v) {
|
|
|
6451
6405
|
return v !== null && typeof v === "object";
|
|
6452
6406
|
}
|
|
6453
6407
|
|
|
6454
|
-
|
|
6455
|
-
//#region src/request/-private/manager.ts
|
|
6408
|
+
// src/request/-private/manager.ts
|
|
6456
6409
|
/**
|
|
6457
6410
|
* ## Import
|
|
6458
6411
|
*
|
|
@@ -6699,8 +6652,7 @@ var RequestManager = class {
|
|
|
6699
6652
|
*
|
|
6700
6653
|
* @private
|
|
6701
6654
|
*/
|
|
6702
|
-
|
|
6703
|
-
//#region src/index.ts
|
|
6655
|
+
// src/index.ts
|
|
6704
6656
|
/**
|
|
6705
6657
|
* @summary Main entry point for WarpDrive: the `Store`, `RequestManager`, `Fetch` handler, `CacheHandler`, and
|
|
6706
6658
|
* `useRecommendedStore` for building a configured store.
|
|
@@ -6879,6 +6831,5 @@ function useRecommendedStore(options, StoreKlass = Store) {
|
|
|
6879
6831
|
};
|
|
6880
6832
|
}
|
|
6881
6833
|
|
|
6882
|
-
//#endregion
|
|
6883
6834
|
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 };
|
|
6884
|
-
//# sourceMappingURL=src-
|
|
6835
|
+
//# sourceMappingURL=src-evv7LXnE.js.map
|