@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,18 +1,18 @@
|
|
|
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, P as waitFor, 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, P as waitFor, 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-CvZfrDZl.js";
|
|
3
3
|
import { EnableHydration, STRUCTURED, SkipCache } from "./types/request.js";
|
|
4
4
|
import { CACHE_OWNER, DEBUG_CLIENT_ORIGINATED, DEBUG_KEY_TYPE, DEBUG_STALE_CACHE_OWNER } from "./types/identifier.js";
|
|
5
|
-
import { a as upgradePromise, c as executeNextHandler, d as getRequestResult, f as setPromiseResult, l as clearRequestResult, m as assertValidRequest, o as DOMError, p as cloneResponseProperties, s as IS_CACHE_HANDLER, t as withBrand } from "./request-
|
|
5
|
+
import { a as upgradePromise, c as executeNextHandler, d as getRequestResult, f as setPromiseResult, l as clearRequestResult, m as assertValidRequest, o as DOMError, p as cloneResponseProperties, s as IS_CACHE_HANDLER, t as withBrand } from "./request-CxtnNIIp.js";
|
|
6
6
|
import { getRuntimeConfig, setIsMaybeMirage, setLogging } from "./types/runtime.js";
|
|
7
|
-
import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-
|
|
7
|
+
import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-BiuED7nc.js";
|
|
8
8
|
import { dasherize } from "./utils/string.js";
|
|
9
9
|
import { RecordStore, Type } from "./types/symbols.js";
|
|
10
10
|
import { isResourceSchema } from "./types/schema/fields.js";
|
|
11
|
-
import { t as DefaultCachePolicy } from "./store-
|
|
11
|
+
import { t as DefaultCachePolicy } from "./store-C8iKKtQK.js";
|
|
12
12
|
import { dependencySatisfies, getGlobalConfig, importSync, macroCondition } from "@embroider/macros";
|
|
13
13
|
import { deprecate, warn } from "@ember/debug";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// src/reactive/-private/document.ts
|
|
16
16
|
function urlFromLink(link) {
|
|
17
17
|
if (typeof link === "string") return link;
|
|
18
18
|
return link.href;
|
|
@@ -150,8 +150,7 @@ function createReactiveDocument(store, cacheKey, localCache) {
|
|
|
150
150
|
return doc;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
//#region src/store/-private/debug/utils.ts
|
|
153
|
+
// src/store/-private/debug/utils.ts
|
|
155
154
|
const TEXT_COLORS = {
|
|
156
155
|
TEXT: "inherit",
|
|
157
156
|
notify: [
|
|
@@ -380,8 +379,7 @@ function _log(scope, prefix, subScop1, subScop2, subScop3, subScop4) {
|
|
|
380
379
|
return [];
|
|
381
380
|
}
|
|
382
381
|
|
|
383
|
-
|
|
384
|
-
//#region src/store/-private/caches/resource-utils.ts
|
|
382
|
+
// src/store/-private/caches/resource-utils.ts
|
|
385
383
|
function isResource(resource) {
|
|
386
384
|
return Boolean(resource && typeof resource === "object");
|
|
387
385
|
}
|
|
@@ -398,8 +396,7 @@ function hasType(resource) {
|
|
|
398
396
|
return hasProp(resource, "type");
|
|
399
397
|
}
|
|
400
398
|
|
|
401
|
-
|
|
402
|
-
//#region src/store/-private/utils/coerce-id.ts
|
|
399
|
+
// src/store/-private/utils/coerce-id.ts
|
|
403
400
|
/**
|
|
404
401
|
* Normalizes a resource `id` entering the store to a string (or `null`).
|
|
405
402
|
*
|
|
@@ -450,8 +447,7 @@ function ensureStringId(id) {
|
|
|
450
447
|
return normalized;
|
|
451
448
|
}
|
|
452
449
|
|
|
453
|
-
|
|
454
|
-
//#region src/store/-private/utils/normalize-model-name.ts
|
|
450
|
+
// src/store/-private/utils/normalize-model-name.ts
|
|
455
451
|
/**
|
|
456
452
|
* Normalizes a resource `type` to its dasherized form, e.g. `myClass` to
|
|
457
453
|
* `my-class`. Re-exported elsewhere as `_deprecatingNormalize`.
|
|
@@ -479,8 +475,7 @@ function normalizeModelName(type) {
|
|
|
479
475
|
return type;
|
|
480
476
|
}
|
|
481
477
|
|
|
482
|
-
|
|
483
|
-
//#region src/store/-private/utils/uuid-polyfill.ts
|
|
478
|
+
// src/store/-private/utils/uuid-polyfill.ts
|
|
484
479
|
function installPolyfill() {
|
|
485
480
|
const isFastBoot = typeof FastBoot !== "undefined";
|
|
486
481
|
const CRYPTO = isFastBoot ? FastBoot.require("crypto") : globalThis.crypto;
|
|
@@ -526,8 +521,7 @@ function installPolyfill() {
|
|
|
526
521
|
}
|
|
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).
|
|
@@ -1257,8 +1251,7 @@ function addResourceToCache(cache, identifier) {
|
|
|
1257
1251
|
if (identifier.id) typeSet.id.set(identifier.id, identifier);
|
|
1258
1252
|
}
|
|
1259
1253
|
|
|
1260
|
-
|
|
1261
|
-
//#region src/store/-private/managers/cache-capabilities-manager.ts
|
|
1254
|
+
// src/store/-private/managers/cache-capabilities-manager.ts
|
|
1262
1255
|
var CacheCapabilitiesManager = class {
|
|
1263
1256
|
/** @internal */
|
|
1264
1257
|
/** @internal */
|
|
@@ -1366,8 +1359,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
|
|
|
1366
1359
|
*/
|
|
1367
1360
|
function assertPrivateCapabilities(manager) {}
|
|
1368
1361
|
|
|
1369
|
-
|
|
1370
|
-
//#region src/store/-private/caches/instance-cache.ts
|
|
1362
|
+
// src/store/-private/caches/instance-cache.ts
|
|
1371
1363
|
function isDestroyable(record) {
|
|
1372
1364
|
return Boolean(record && typeof record === "object" && typeof record.destroy === "function");
|
|
1373
1365
|
}
|
|
@@ -1675,8 +1667,7 @@ function unloadRecord(instances, identifier) {
|
|
|
1675
1667
|
}
|
|
1676
1668
|
}
|
|
1677
1669
|
|
|
1678
|
-
|
|
1679
|
-
//#region src/store/-private/managers/cache-manager.ts
|
|
1670
|
+
// src/store/-private/managers/cache-manager.ts
|
|
1680
1671
|
/**
|
|
1681
1672
|
* The CacheManager wraps a Cache enforcing that only
|
|
1682
1673
|
* the public API surface area is exposed.
|
|
@@ -2063,8 +2054,7 @@ var CacheManager = class {
|
|
|
2063
2054
|
}
|
|
2064
2055
|
};
|
|
2065
2056
|
|
|
2066
|
-
|
|
2067
|
-
//#region src/store/-private/managers/notification-manager.ts
|
|
2057
|
+
// src/store/-private/managers/notification-manager.ts
|
|
2068
2058
|
/**
|
|
2069
2059
|
* The kinds of change notifications the {@link NotificationManager} can emit for a resource.
|
|
2070
2060
|
*
|
|
@@ -2497,8 +2487,7 @@ function hasSubscribers(cache, cacheKey, value) {
|
|
|
2497
2487
|
return Boolean(callbackMap?.length);
|
|
2498
2488
|
}
|
|
2499
2489
|
|
|
2500
|
-
|
|
2501
|
-
//#region src/store/-private/record-arrays/-utils.ts
|
|
2490
|
+
// src/store/-private/record-arrays/-utils.ts
|
|
2502
2491
|
/**
|
|
2503
2492
|
* LegacyArrays have the capability of updating via `array.update()`
|
|
2504
2493
|
* and saving each contained record individually via `array.save()`
|
|
@@ -2577,8 +2566,7 @@ function safeForEach$1(instance, arr, store, callback, target) {
|
|
|
2577
2566
|
return instance;
|
|
2578
2567
|
}
|
|
2579
2568
|
|
|
2580
|
-
|
|
2581
|
-
//#region src/reactive/-private/fields/extension.ts
|
|
2569
|
+
// src/reactive/-private/fields/extension.ts
|
|
2582
2570
|
function expectNever(value) {}
|
|
2583
2571
|
function isExtensionProp(extensions, prop) {
|
|
2584
2572
|
return Boolean(extensions && typeof prop !== "number" && extensions.has(prop));
|
|
@@ -2666,8 +2654,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
2666
2654
|
}
|
|
2667
2655
|
}
|
|
2668
2656
|
|
|
2669
|
-
|
|
2670
|
-
//#region src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
2657
|
+
// src/store/-private/record-arrays/native-proxy-type-fix.ts
|
|
2671
2658
|
/**
|
|
2672
2659
|
* The global `Proxy` constructor, retyped with the corrected
|
|
2673
2660
|
* {@link ProxyConstructor} signature above so that `target` and `receiver`
|
|
@@ -2677,8 +2664,7 @@ function performArrayExtensionGet(receiver, extensions, signals, prop, _SIGNAL,
|
|
|
2677
2664
|
*/
|
|
2678
2665
|
const NativeProxy = Proxy;
|
|
2679
2666
|
|
|
2680
|
-
|
|
2681
|
-
//#region src/store/-private/record-arrays/resource-array.ts
|
|
2667
|
+
// src/store/-private/record-arrays/resource-array.ts
|
|
2682
2668
|
const IS_COLLECTION = getOrSetGlobal("IS_COLLECTION", Symbol.for("Collection"));
|
|
2683
2669
|
function isContextProp(prop) {
|
|
2684
2670
|
return prop === "destroy" || prop === "isDestroying" || prop === "isDestroyed";
|
|
@@ -2972,8 +2958,7 @@ function createRequestCollection(config) {
|
|
|
2972
2958
|
});
|
|
2973
2959
|
}
|
|
2974
2960
|
|
|
2975
|
-
|
|
2976
|
-
//#region src/store/-private/record-arrays/legacy-live-array.ts
|
|
2961
|
+
// src/store/-private/record-arrays/legacy-live-array.ts
|
|
2977
2962
|
/**
|
|
2978
2963
|
* LiveArrays contain all the known records for a given `ResourceType`.
|
|
2979
2964
|
*
|
|
@@ -3079,8 +3064,7 @@ function _updateLiveArray() {
|
|
|
3079
3064
|
return context.store.findAll(this.modelName, { reload: true });
|
|
3080
3065
|
}
|
|
3081
3066
|
|
|
3082
|
-
|
|
3083
|
-
//#region src/store/-private/record-arrays/legacy-query.ts
|
|
3067
|
+
// src/store/-private/record-arrays/legacy-query.ts
|
|
3084
3068
|
/**
|
|
3085
3069
|
* QueryArrays contain the primary records returned when querying
|
|
3086
3070
|
* for records by `ResourceType`.
|
|
@@ -3215,8 +3199,7 @@ function destroyCollection(clear) {
|
|
|
3215
3199
|
manager._pending.delete(this);
|
|
3216
3200
|
}
|
|
3217
3201
|
|
|
3218
|
-
|
|
3219
|
-
//#region src/store/-private/managers/record-array-manager.ts
|
|
3202
|
+
// src/store/-private/managers/record-array-manager.ts
|
|
3220
3203
|
const FAKE_ARR = getOrSetGlobal("FAKE_ARR", {});
|
|
3221
3204
|
const SLICE_BATCH_SIZE = 4761;
|
|
3222
3205
|
/**
|
|
@@ -3635,8 +3618,7 @@ function isLegacyLiveArray(array) {
|
|
|
3635
3618
|
return context.features !== null && context.features.DEPRECATED_CLASS_NAME === "LiveArray";
|
|
3636
3619
|
}
|
|
3637
3620
|
|
|
3638
|
-
|
|
3639
|
-
//#region src/store/-private/network/request-cache.ts
|
|
3621
|
+
// src/store/-private/network/request-cache.ts
|
|
3640
3622
|
const Touching = getOrSetGlobal("Touching", Symbol("touching"));
|
|
3641
3623
|
const RequestPromise = getOrSetGlobal("RequestPromise", Symbol("promise"));
|
|
3642
3624
|
const EMPTY_ARR = macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? Object.freeze([]) : [];
|
|
@@ -3847,8 +3829,7 @@ var RequestStateService = class {
|
|
|
3847
3829
|
*
|
|
3848
3830
|
* @private
|
|
3849
3831
|
*/
|
|
3850
|
-
|
|
3851
|
-
//#region src/store/-private/store-service.ts
|
|
3832
|
+
// src/store/-private/store-service.ts
|
|
3852
3833
|
if (macroCondition(getGlobalConfig().WarpDriveMirror.env.TESTING)) {
|
|
3853
3834
|
globalThis.setWarpDriveLogging = setLogging;
|
|
3854
3835
|
globalThis.getWarpDriveRuntimeConfig = getRuntimeConfig;
|
|
@@ -4877,8 +4858,7 @@ function extractIdentifierFromRecord$1(recordOrPromiseRecord) {
|
|
|
4877
4858
|
return recordIdentifierFor(recordOrPromiseRecord);
|
|
4878
4859
|
}
|
|
4879
4860
|
|
|
4880
|
-
|
|
4881
|
-
//#region src/store/deprecated/-private.ts
|
|
4861
|
+
// src/store/deprecated/-private.ts
|
|
4882
4862
|
function preloadData(store, identifier, preload) {
|
|
4883
4863
|
const jsonPayload = {};
|
|
4884
4864
|
const fields = store.schema.fields(identifier);
|
|
@@ -5157,8 +5137,7 @@ var ShimModelClass = class {
|
|
|
5157
5137
|
}
|
|
5158
5138
|
};
|
|
5159
5139
|
|
|
5160
|
-
|
|
5161
|
-
//#region src/store/deprecated/store.ts
|
|
5140
|
+
// src/store/deprecated/store.ts
|
|
5162
5141
|
if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_REQUEST_METHODS)) {
|
|
5163
5142
|
Store.prototype.findRecord = function(resource, id, options) {
|
|
5164
5143
|
deprecate(`store.findRecord is deprecated. Use store.request instead.`, false, {
|
|
@@ -5401,8 +5380,7 @@ function upgradeInstanceCaches(cache) {
|
|
|
5401
5380
|
return withReferences;
|
|
5402
5381
|
}
|
|
5403
5382
|
|
|
5404
|
-
|
|
5405
|
-
//#region src/store/-private/cache-handler/utils.ts
|
|
5383
|
+
// src/store/-private/cache-handler/utils.ts
|
|
5406
5384
|
const MUTATION_OPS$1 = /* @__PURE__ */ new Set([
|
|
5407
5385
|
"createRecord",
|
|
5408
5386
|
"updateRecord",
|
|
@@ -5442,8 +5420,7 @@ function getPriority(identifier, deduped, priority) {
|
|
|
5442
5420
|
return priority;
|
|
5443
5421
|
}
|
|
5444
5422
|
|
|
5445
|
-
|
|
5446
|
-
//#region src/store/-private/cache-handler/handler.ts
|
|
5423
|
+
// src/store/-private/cache-handler/handler.ts
|
|
5447
5424
|
/**
|
|
5448
5425
|
* The request shape accepted by {@link Store.request}, either a fully-formed
|
|
5449
5426
|
* {@link ImmutableRequestInfo} or the looser {@link LooseStoreRequestInfo}.
|
|
@@ -5676,14 +5653,12 @@ function fetchContentAndHydrate(next, context, identifier, priority) {
|
|
|
5676
5653
|
}] });
|
|
5677
5654
|
}
|
|
5678
5655
|
|
|
5679
|
-
|
|
5680
|
-
//#region src/store/-private/utils/is-non-empty-string.ts
|
|
5656
|
+
// src/store/-private/utils/is-non-empty-string.ts
|
|
5681
5657
|
function isNonEmptyString(str) {
|
|
5682
5658
|
return Boolean(str && typeof str === "string");
|
|
5683
5659
|
}
|
|
5684
5660
|
|
|
5685
|
-
|
|
5686
|
-
//#region src/store/-private/utils/construct-resource.ts
|
|
5661
|
+
// src/store/-private/utils/construct-resource.ts
|
|
5687
5662
|
/**
|
|
5688
5663
|
* Given an existing resource identifier object (or a {@link ResourceKey}),
|
|
5689
5664
|
* returns it unchanged aside from coercing its `id`, if present, to a string.
|
|
@@ -5755,8 +5730,7 @@ function constructResource(type, id, lid) {
|
|
|
5755
5730
|
}
|
|
5756
5731
|
}
|
|
5757
5732
|
|
|
5758
|
-
|
|
5759
|
-
//#region src/store/-private/record-arrays/legacy-many-array.ts
|
|
5733
|
+
// src/store/-private/record-arrays/legacy-many-array.ts
|
|
5760
5734
|
/**
|
|
5761
5735
|
A `ManyArray` is a `MutableArray` that represents the contents of a has-many
|
|
5762
5736
|
relationship.
|
|
@@ -6106,8 +6080,7 @@ function mutate(collection, mutation, _SIGNAL) {
|
|
|
6106
6080
|
notifyInternalSignal(_SIGNAL);
|
|
6107
6081
|
}
|
|
6108
6082
|
|
|
6109
|
-
|
|
6110
|
-
//#region src/reactive/-private/kind/alias-field.ts
|
|
6083
|
+
// src/reactive/-private/kind/alias-field.ts
|
|
6111
6084
|
function getAliasField(context) {
|
|
6112
6085
|
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) && ((test) => {
|
|
6113
6086
|
if (!test) throw new Error(`Alias field access is not implemented`);
|
|
@@ -6120,8 +6093,7 @@ function setAliasField(context) {
|
|
|
6120
6093
|
return false;
|
|
6121
6094
|
}
|
|
6122
6095
|
|
|
6123
|
-
|
|
6124
|
-
//#region src/reactive/-private/fields/managed-array.ts
|
|
6096
|
+
// src/reactive/-private/fields/managed-array.ts
|
|
6125
6097
|
const ARRAY_GETTER_METHODS = /* @__PURE__ */ new Set([
|
|
6126
6098
|
Symbol.iterator,
|
|
6127
6099
|
"concat",
|
|
@@ -6387,8 +6359,7 @@ Object.defineProperty(ManagedArray.prototype, "[]", {
|
|
|
6387
6359
|
}
|
|
6388
6360
|
});
|
|
6389
6361
|
|
|
6390
|
-
|
|
6391
|
-
//#region src/reactive/-private/kind/array-field.ts
|
|
6362
|
+
// src/reactive/-private/kind/array-field.ts
|
|
6392
6363
|
function getArrayField(context) {
|
|
6393
6364
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6394
6365
|
const { record } = context;
|
|
@@ -6434,8 +6405,7 @@ function setArrayField(context) {
|
|
|
6434
6405
|
return true;
|
|
6435
6406
|
}
|
|
6436
6407
|
|
|
6437
|
-
|
|
6438
|
-
//#region src/reactive/-private/kind/attribute-field.ts
|
|
6408
|
+
// src/reactive/-private/kind/attribute-field.ts
|
|
6439
6409
|
function getAttributeField(context) {
|
|
6440
6410
|
entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6441
6411
|
const { cache } = context.store;
|
|
@@ -6446,8 +6416,7 @@ function setAttributeField(context) {
|
|
|
6446
6416
|
return true;
|
|
6447
6417
|
}
|
|
6448
6418
|
|
|
6449
|
-
|
|
6450
|
-
//#region src/reactive/-private/fields/get-field-key.ts
|
|
6419
|
+
// src/reactive/-private/fields/get-field-key.ts
|
|
6451
6420
|
const InvalidKinds = [
|
|
6452
6421
|
"alias",
|
|
6453
6422
|
"derived",
|
|
@@ -6466,8 +6435,7 @@ function getFieldCacheKey(field) {
|
|
|
6466
6435
|
return "sourceKey" in field && field.sourceKey ? field.sourceKey : field.name;
|
|
6467
6436
|
}
|
|
6468
6437
|
|
|
6469
|
-
|
|
6470
|
-
//#region src/reactive/-private/kind/belongs-to-field.ts
|
|
6438
|
+
// src/reactive/-private/kind/belongs-to-field.ts
|
|
6471
6439
|
function getBelongsToField(context) {
|
|
6472
6440
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6473
6441
|
const { field, resourceKey, store } = context;
|
|
@@ -6510,8 +6478,7 @@ function getResourceKey(record) {
|
|
|
6510
6478
|
return recordIdentifierFor(record);
|
|
6511
6479
|
}
|
|
6512
6480
|
|
|
6513
|
-
|
|
6514
|
-
//#region src/reactive/-private/kind/collection-field.ts
|
|
6481
|
+
// src/reactive/-private/kind/collection-field.ts
|
|
6515
6482
|
function getCollectionField(context) {
|
|
6516
6483
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6517
6484
|
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) && ((test) => {
|
|
@@ -6525,8 +6492,7 @@ function setCollectionField(context) {
|
|
|
6525
6492
|
return false;
|
|
6526
6493
|
}
|
|
6527
6494
|
|
|
6528
|
-
|
|
6529
|
-
//#region src/reactive/-private/kind/derived-field.ts
|
|
6495
|
+
// src/reactive/-private/kind/derived-field.ts
|
|
6530
6496
|
function getDerivedField(context) {
|
|
6531
6497
|
const { schema } = context.store;
|
|
6532
6498
|
return schema.derivation(context.field)(context.record, context.field.options ?? null, context.field.name);
|
|
@@ -6538,8 +6504,7 @@ function setDerivedField(context) {
|
|
|
6538
6504
|
return false;
|
|
6539
6505
|
}
|
|
6540
6506
|
|
|
6541
|
-
|
|
6542
|
-
//#region src/reactive/-private/kind/generic-field.ts
|
|
6507
|
+
// src/reactive/-private/kind/generic-field.ts
|
|
6543
6508
|
function getGenericField(context) {
|
|
6544
6509
|
const signal = entangleInitiallyStaleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6545
6510
|
signal.isStale = false;
|
|
@@ -6561,8 +6526,7 @@ function setGenericField(context) {
|
|
|
6561
6526
|
return true;
|
|
6562
6527
|
}
|
|
6563
6528
|
|
|
6564
|
-
|
|
6565
|
-
//#region src/reactive/-private/fields/many-array-manager.ts
|
|
6529
|
+
// src/reactive/-private/fields/many-array-manager.ts
|
|
6566
6530
|
var ManyArrayManager = class {
|
|
6567
6531
|
constructor(record, editable) {
|
|
6568
6532
|
const context = record[Context];
|
|
@@ -6624,8 +6588,7 @@ function extractCacheOptions(options) {
|
|
|
6624
6588
|
return cacheOptions;
|
|
6625
6589
|
}
|
|
6626
6590
|
|
|
6627
|
-
|
|
6628
|
-
//#region src/reactive/-private/kind/has-many-field.ts
|
|
6591
|
+
// src/reactive/-private/kind/has-many-field.ts
|
|
6629
6592
|
function getHasManyField(context) {
|
|
6630
6593
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6631
6594
|
const { store, field } = context;
|
|
@@ -6671,8 +6634,7 @@ function setHasManyField(context) {
|
|
|
6671
6634
|
return true;
|
|
6672
6635
|
}
|
|
6673
6636
|
|
|
6674
|
-
|
|
6675
|
-
//#region src/reactive/-private/kind/hash-field.ts
|
|
6637
|
+
// src/reactive/-private/kind/hash-field.ts
|
|
6676
6638
|
function getHashField(context) {
|
|
6677
6639
|
const { field, path, resourceKey } = context;
|
|
6678
6640
|
const { schema, cache } = context.store;
|
|
@@ -6690,8 +6652,7 @@ function setHashField(context) {
|
|
|
6690
6652
|
return false;
|
|
6691
6653
|
}
|
|
6692
6654
|
|
|
6693
|
-
|
|
6694
|
-
//#region src/reactive/-private/kind/identity-field.ts
|
|
6655
|
+
// src/reactive/-private/kind/identity-field.ts
|
|
6695
6656
|
function getIdentityField(context) {
|
|
6696
6657
|
entangleSignal(context.signals, context.record, "@identity", null);
|
|
6697
6658
|
return context.resourceKey.id;
|
|
@@ -6713,8 +6674,7 @@ function setIdentityField(context) {
|
|
|
6713
6674
|
return true;
|
|
6714
6675
|
}
|
|
6715
6676
|
|
|
6716
|
-
|
|
6717
|
-
//#region src/reactive/-private/kind/local-field.ts
|
|
6677
|
+
// src/reactive/-private/kind/local-field.ts
|
|
6718
6678
|
function getLocalField(context) {
|
|
6719
6679
|
const { field } = context;
|
|
6720
6680
|
const signal = getOrCreateInternalSignal(context.signals, context.record, field.name, field.options?.defaultValue ?? null);
|
|
@@ -6731,8 +6691,7 @@ function setLocalField(context) {
|
|
|
6731
6691
|
return true;
|
|
6732
6692
|
}
|
|
6733
6693
|
|
|
6734
|
-
|
|
6735
|
-
//#region src/reactive/-private/fields/managed-object.ts
|
|
6694
|
+
// src/reactive/-private/fields/managed-object.ts
|
|
6736
6695
|
const ObjectSymbols = /* @__PURE__ */ new Set([
|
|
6737
6696
|
OBJECT_SIGNAL,
|
|
6738
6697
|
Context,
|
|
@@ -6816,8 +6775,7 @@ function peekManagedObject(record, field) {
|
|
|
6816
6775
|
if (managedObjectMapForRecord) return managedObjectMapForRecord.get(field.name);
|
|
6817
6776
|
}
|
|
6818
6777
|
|
|
6819
|
-
|
|
6820
|
-
//#region src/reactive/-private/kind/object-field.ts
|
|
6778
|
+
// src/reactive/-private/kind/object-field.ts
|
|
6821
6779
|
function getObjectField(context) {
|
|
6822
6780
|
entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6823
6781
|
const { record, field } = context;
|
|
@@ -6873,8 +6831,7 @@ function setObjectField(context) {
|
|
|
6873
6831
|
return true;
|
|
6874
6832
|
}
|
|
6875
6833
|
|
|
6876
|
-
|
|
6877
|
-
//#region src/reactive/-private/kind/resource-field.ts
|
|
6834
|
+
// src/reactive/-private/kind/resource-field.ts
|
|
6878
6835
|
var ResourceRelationship = class {
|
|
6879
6836
|
constructor(context) {
|
|
6880
6837
|
const { store, resourceKey } = context;
|
|
@@ -6922,8 +6879,7 @@ function setResourceField(context) {
|
|
|
6922
6879
|
return false;
|
|
6923
6880
|
}
|
|
6924
6881
|
|
|
6925
|
-
|
|
6926
|
-
//#region src/reactive/-private/kind/schema-array-field.ts
|
|
6882
|
+
// src/reactive/-private/kind/schema-array-field.ts
|
|
6927
6883
|
function setSchemaArrayField(context) {
|
|
6928
6884
|
const arrayValue = context.value === null ? null : context.value?.slice();
|
|
6929
6885
|
const fieldSignal = peekInternalSignal(context.signals, context.path.at(-1));
|
|
@@ -6940,8 +6896,7 @@ function setSchemaArrayField(context) {
|
|
|
6940
6896
|
return true;
|
|
6941
6897
|
}
|
|
6942
6898
|
|
|
6943
|
-
|
|
6944
|
-
//#region src/reactive/-private/kind/schema-object-field.ts
|
|
6899
|
+
// src/reactive/-private/kind/schema-object-field.ts
|
|
6945
6900
|
function getSchemaObjectField(context) {
|
|
6946
6901
|
const signal = entangleSignal(context.signals, context.record, context.path.at(-1), null);
|
|
6947
6902
|
const { store, resourceKey, path, field } = context;
|
|
@@ -7008,8 +6963,7 @@ function setSchemaObjectField(context) {
|
|
|
7008
6963
|
return true;
|
|
7009
6964
|
}
|
|
7010
6965
|
|
|
7011
|
-
|
|
7012
|
-
//#region src/reactive/-private/default-mode.ts
|
|
6966
|
+
// src/reactive/-private/default-mode.ts
|
|
7013
6967
|
/**
|
|
7014
6968
|
* A ReactiveResource context object passed to
|
|
7015
6969
|
* the get/set functions of a field kind implementation.
|
|
@@ -7125,8 +7079,7 @@ const DefaultMode = {
|
|
|
7125
7079
|
}
|
|
7126
7080
|
};
|
|
7127
7081
|
|
|
7128
|
-
|
|
7129
|
-
//#region src/reactive/-private/record.ts
|
|
7082
|
+
// src/reactive/-private/record.ts
|
|
7130
7083
|
const IgnoredGlobalFields = /* @__PURE__ */ new Set([
|
|
7131
7084
|
"length",
|
|
7132
7085
|
"nodeType",
|
|
@@ -7646,8 +7599,7 @@ function commit(record) {
|
|
|
7646
7599
|
return record[Commit]();
|
|
7647
7600
|
}
|
|
7648
7601
|
|
|
7649
|
-
|
|
7650
|
-
//#region src/reactive/-private/hooks.ts
|
|
7602
|
+
// src/reactive/-private/hooks.ts
|
|
7651
7603
|
/**
|
|
7652
7604
|
* The store's default `instantiateRecord` hook implementation, which
|
|
7653
7605
|
* produces a {@link ReactiveResource} for `identifier` using the resource
|
|
@@ -7700,8 +7652,7 @@ function teardownRecord(record) {
|
|
|
7700
7652
|
record[Destroy]();
|
|
7701
7653
|
}
|
|
7702
7654
|
|
|
7703
|
-
|
|
7704
|
-
//#region src/reactive/-private/schema.ts
|
|
7655
|
+
// src/reactive/-private/schema.ts
|
|
7705
7656
|
const Support = getOrSetGlobal("Support", /* @__PURE__ */ new WeakMap());
|
|
7706
7657
|
const ConstructorField = {
|
|
7707
7658
|
type: "@constructor",
|
|
@@ -8483,8 +8434,7 @@ function mergeMap(base, toApply) {
|
|
|
8483
8434
|
for (const [key, value] of toApply) base.set(key, value);
|
|
8484
8435
|
}
|
|
8485
8436
|
|
|
8486
|
-
|
|
8487
|
-
//#region src/request/-private/fetch.ts
|
|
8437
|
+
// src/request/-private/fetch.ts
|
|
8488
8438
|
const _fetch = typeof fetch !== "undefined" ? (...args) => fetch(...args) : typeof FastBoot !== "undefined" ? (...args) => FastBoot.require("node-fetch")(...args) : () => {
|
|
8489
8439
|
throw new Error("No Fetch Implementation Found");
|
|
8490
8440
|
};
|
|
@@ -8694,8 +8644,7 @@ function isDict(v) {
|
|
|
8694
8644
|
return v !== null && typeof v === "object";
|
|
8695
8645
|
}
|
|
8696
8646
|
|
|
8697
|
-
|
|
8698
|
-
//#region src/request/-private/manager.ts
|
|
8647
|
+
// src/request/-private/manager.ts
|
|
8699
8648
|
/**
|
|
8700
8649
|
* ## Import
|
|
8701
8650
|
*
|
|
@@ -8981,8 +8930,7 @@ var RequestManager = class {
|
|
|
8981
8930
|
*
|
|
8982
8931
|
* @private
|
|
8983
8932
|
*/
|
|
8984
|
-
|
|
8985
|
-
//#region src/index.ts
|
|
8933
|
+
// src/index.ts
|
|
8986
8934
|
/**
|
|
8987
8935
|
* @summary Main entry point for WarpDrive: the `Store`, `RequestManager`, `Fetch` handler, `CacheHandler`, and
|
|
8988
8936
|
* `useRecommendedStore` for building a configured store.
|
|
@@ -9165,6 +9113,5 @@ function useRecommendedStore(options, StoreKlass = Store) {
|
|
|
9165
9113
|
};
|
|
9166
9114
|
}
|
|
9167
9115
|
|
|
9168
|
-
//#endregion
|
|
9169
9116
|
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-
|
|
9117
|
+
//# sourceMappingURL=src-BTF6QRQ3.js.map
|