@warp-drive/core 5.9.0-beta.1 → 5.9.0-beta.3
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-BL9zXgJB.js +3530 -0
- package/dist/-private-BL9zXgJB.js.map +1 -0
- package/dist/{-private-DMzvF_Q6.js → -private-Cxa8cMBj.js} +2 -2
- package/dist/-private-Cxa8cMBj.js.map +1 -0
- package/dist/{unpkg/dev-deprecated/-private-DL4tfrv9.js → -private-xK1KgxZJ.js} +2 -2
- package/dist/{-private-b1g4dhl0.js.map → -private-xK1KgxZJ.js.map} +1 -1
- package/{declarations/concepts-LHsLJZMl.d.ts → dist/concepts-DFldVwEM.d.ts} +2 -2
- package/{declarations/concepts-LHsLJZMl.d.ts.map → dist/concepts-DFldVwEM.d.ts.map} +1 -1
- package/dist/configure.js +1 -1
- package/dist/graph/-private.d.ts +2 -0
- package/dist/graph/-private.js +46 -33
- package/dist/graph/-private.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/{declarations/internal-Cz-893zD.d.ts → dist/internal-DtWOpxrR.d.ts} +2763 -2271
- package/dist/internal-DtWOpxrR.d.ts.map +1 -0
- package/dist/reactive/-private.d.ts +2 -0
- package/dist/reactive/-private.js +1 -1
- package/dist/reactive.d.ts +2 -0
- package/dist/reactive.js +3 -3
- package/{declarations → dist}/record-D3QQcaIR.d.ts.map +1 -1
- package/dist/{request--vRFALbQ.js → request-z2NByNx0.js} +2 -2
- package/dist/request-z2NByNx0.js.map +1 -0
- package/dist/request.d.ts +2 -0
- package/dist/request.js +1 -1
- package/dist/signals/-leaked.d.ts +1060 -0
- package/dist/signals/-leaked.d.ts.map +1 -0
- package/dist/signals/-leaked.js +2 -2
- package/dist/{src-Dex_phWI.js → src-s5HHjglV.js} +192 -53
- package/dist/src-s5HHjglV.js.map +1 -0
- package/dist/store/-private.d.ts +2 -0
- package/dist/store/-private.js +1 -1
- package/dist/store-DNF9Rgoh.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/{declarations → dist}/types/-private.d.ts +1 -1
- package/{declarations → dist}/types/-private.d.ts.map +1 -1
- package/dist/types/-private.js +1 -1
- package/dist/types/cache.d.ts +2 -0
- package/dist/types/record.js.map +1 -1
- package/dist/types/request.d.ts +2 -0
- package/dist/types/request.js +1 -1
- package/dist/types/request.js.map +1 -1
- package/dist/types/runtime.js +1 -1
- package/dist/types/schema/concepts.d.ts +2 -0
- package/dist/types/schema/fields.js.map +1 -1
- package/dist/types/schema/schema-service.d.ts +2 -0
- package/dist/types/symbols.js +1 -1
- package/dist/types/symbols.js.map +1 -1
- package/{declarations → dist}/types.d.ts +1 -1
- package/dist/{-private-b1g4dhl0.js → unpkg/dev/-private-BGCYELwo.js} +2 -2
- package/dist/unpkg/{dev-deprecated/-private-DL4tfrv9.js.map → dev/-private-BGCYELwo.js.map} +1 -1
- package/dist/unpkg/{dev-deprecated/-private-2RfQ2761.js → dev/-private-DhiS6yOR.js} +2 -2
- package/dist/unpkg/dev/-private-DhiS6yOR.js.map +1 -0
- package/dist/unpkg/dev/-private-pNQae3qH.js +3519 -0
- package/dist/unpkg/dev/-private-pNQae3qH.js.map +1 -0
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +46 -33
- 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-DAuXbfYi.js → dev/request-BbbzRou7.js} +2 -2
- package/dist/unpkg/dev/request-BbbzRou7.js.map +1 -0
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/{runtime-EoVKAhTv.js → runtime-DoDtzXJb.js} +2 -2
- package/dist/unpkg/dev/runtime-DoDtzXJb.js.map +1 -0
- package/dist/unpkg/dev/signals/-leaked.js +2 -2
- package/dist/unpkg/dev/{src-Bxlr_vue.js → src-Cf7NXXR2.js} +194 -55
- package/dist/unpkg/dev/src-Cf7NXXR2.js.map +1 -0
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/{dev-deprecated/store-TcP2H4Af.js → dev/store-DamE3C4y.js} +2 -2
- package/dist/unpkg/dev/store-DamE3C4y.js.map +1 -0
- package/dist/unpkg/dev/store.js +1 -1
- package/dist/unpkg/dev/types/-private.js +1 -1
- package/dist/unpkg/dev/types/record.js.map +1 -1
- package/dist/unpkg/dev/types/request.js +1 -1
- package/dist/unpkg/dev/types/request.js.map +1 -1
- package/dist/unpkg/dev/types/runtime.js +1 -1
- package/dist/unpkg/dev/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev/types/symbols.js +1 -1
- package/dist/unpkg/dev/types/symbols.js.map +1 -1
- package/dist/unpkg/{dev/-private-DL4tfrv9.js → dev-deprecated/-private-BGCYELwo.js} +2 -2
- package/dist/unpkg/{prod/-private-Z9i0icpE.js.map → dev-deprecated/-private-BGCYELwo.js.map} +1 -1
- package/dist/unpkg/{dev/-private-2RfQ2761.js → dev-deprecated/-private-DhiS6yOR.js} +2 -2
- package/dist/unpkg/dev-deprecated/-private-DhiS6yOR.js.map +1 -0
- package/dist/unpkg/dev-deprecated/-private-pNQae3qH.js +3519 -0
- package/dist/unpkg/dev-deprecated/-private-pNQae3qH.js.map +1 -0
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +47 -34
- 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-DAuXbfYi.js → dev-deprecated/request-BbbzRou7.js} +2 -2
- package/dist/unpkg/dev-deprecated/request-BbbzRou7.js.map +1 -0
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/{runtime-BacZMq1r.js → runtime-CPL2BGgT.js} +2 -2
- package/dist/unpkg/dev-deprecated/runtime-CPL2BGgT.js.map +1 -0
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +2 -2
- package/dist/unpkg/dev-deprecated/{src-DEl2Ca3T.js → src-CSuFUXv4.js} +195 -56
- package/dist/unpkg/dev-deprecated/src-CSuFUXv4.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/{dev/store-DmiFvT1B.js → dev-deprecated/store-Bsdz5mRe.js} +2 -2
- package/dist/unpkg/dev-deprecated/store-Bsdz5mRe.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store.js +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/request.js +1 -1
- package/dist/unpkg/dev-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/runtime.js +1 -1
- package/dist/unpkg/dev-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/symbols.js +1 -1
- package/dist/unpkg/dev-deprecated/types/symbols.js.map +1 -1
- package/dist/unpkg/prod/-private-8gd8hbwm.js +22 -0
- package/dist/unpkg/{prod-deprecated/-private-Z9i0icpE.js.map → prod/-private-8gd8hbwm.js.map} +1 -1
- package/dist/unpkg/prod/{-private-BK71-uXR.js → -private-B6aLbrgV.js} +2 -2
- package/dist/unpkg/prod/-private-B6aLbrgV.js.map +1 -0
- package/dist/unpkg/prod/-private-ggVX_Iob.js +3294 -0
- package/dist/unpkg/prod/-private-ggVX_Iob.js.map +1 -0
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +45 -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-BcJNzSgv.js → request-BoeppjDj.js} +2 -2
- package/dist/unpkg/prod/request-BoeppjDj.js.map +1 -0
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/signals/-leaked.js +2 -2
- package/dist/unpkg/prod/{src-Dzz-j6pp.js → src-C0wuASrN.js} +196 -53
- package/dist/unpkg/prod/src-C0wuASrN.js.map +1 -0
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/prod/store-BWhmb7Ob.js.map +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod/types/record.js.map +1 -1
- package/dist/unpkg/prod/types/request.js +1 -1
- package/dist/unpkg/prod/types/request.js.map +1 -1
- package/dist/unpkg/prod/types/runtime.js +1 -1
- package/dist/unpkg/prod/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod/types/symbols.js +1 -1
- package/dist/unpkg/prod/types/symbols.js.map +1 -1
- package/dist/unpkg/prod-deprecated/{-private-Z9i0icpE.js → -private-8gd8hbwm.js} +2 -2
- package/dist/unpkg/{dev/-private-DL4tfrv9.js.map → prod-deprecated/-private-8gd8hbwm.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/{-private-BK71-uXR.js → -private-B6aLbrgV.js} +2 -2
- package/dist/unpkg/prod-deprecated/-private-B6aLbrgV.js.map +1 -0
- package/dist/unpkg/prod-deprecated/-private-ggVX_Iob.js +3294 -0
- package/dist/unpkg/prod-deprecated/-private-ggVX_Iob.js.map +1 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +46 -35
- 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-BcJNzSgv.js → request-BoeppjDj.js} +2 -2
- package/dist/unpkg/prod-deprecated/request-BoeppjDj.js.map +1 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -1
- package/dist/unpkg/prod-deprecated/signals/-leaked.js +2 -2
- package/dist/unpkg/prod-deprecated/{src-BOifHFQ5.js → src-BXOgNqmz.js} +197 -54
- package/dist/unpkg/prod-deprecated/src-BXOgNqmz.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/request.js +1 -1
- package/dist/unpkg/prod-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/runtime.js +1 -1
- package/dist/unpkg/prod-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/symbols.js +1 -1
- package/dist/unpkg/prod-deprecated/types/symbols.js.map +1 -1
- package/package.json +15 -19
- package/declarations/graph/-private.d.ts +0 -2
- package/declarations/index.d.ts +0 -2
- package/declarations/internal-Cz-893zD.d.ts.map +0 -1
- package/declarations/reactive/-private.d.ts +0 -2
- package/declarations/reactive.d.ts +0 -2
- package/declarations/request.d.ts +0 -2
- package/declarations/signals/-leaked.d.ts +0 -63
- package/declarations/signals/-leaked.d.ts.map +0 -1
- package/declarations/store/-private.d.ts +0 -2
- package/declarations/store.d.ts +0 -8358
- package/declarations/store.d.ts.map +0 -1
- package/declarations/types/cache.d.ts +0 -2
- package/declarations/types/request.d.ts +0 -2
- package/declarations/types/schema/concepts.d.ts +0 -2
- package/declarations/types/schema/schema-service.d.ts +0 -2
- package/dist/-private-DMzvF_Q6.js.map +0 -1
- package/dist/-private-HjaQ1wp1.js +0 -1695
- package/dist/-private-HjaQ1wp1.js.map +0 -1
- package/dist/request--vRFALbQ.js.map +0 -1
- package/dist/src-Dex_phWI.js.map +0 -1
- package/dist/unpkg/dev/-private-2RfQ2761.js.map +0 -1
- package/dist/unpkg/dev/-private-CM1zxNws.js +0 -1684
- package/dist/unpkg/dev/-private-CM1zxNws.js.map +0 -1
- package/dist/unpkg/dev/request-DAuXbfYi.js.map +0 -1
- package/dist/unpkg/dev/runtime-EoVKAhTv.js.map +0 -1
- package/dist/unpkg/dev/src-Bxlr_vue.js.map +0 -1
- package/dist/unpkg/dev/store-DmiFvT1B.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-2RfQ2761.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-CM1zxNws.js +0 -1684
- package/dist/unpkg/dev-deprecated/-private-CM1zxNws.js.map +0 -1
- package/dist/unpkg/dev-deprecated/request-DAuXbfYi.js.map +0 -1
- package/dist/unpkg/dev-deprecated/runtime-BacZMq1r.js.map +0 -1
- package/dist/unpkg/dev-deprecated/src-DEl2Ca3T.js.map +0 -1
- package/dist/unpkg/dev-deprecated/store-TcP2H4Af.js.map +0 -1
- package/dist/unpkg/prod/-private-BK71-uXR.js.map +0 -1
- package/dist/unpkg/prod/-private-TNaS5Piv.js +0 -1494
- package/dist/unpkg/prod/-private-TNaS5Piv.js.map +0 -1
- package/dist/unpkg/prod/-private-Z9i0icpE.js +0 -22
- package/dist/unpkg/prod/request-BcJNzSgv.js.map +0 -1
- package/dist/unpkg/prod/src-Dzz-j6pp.js.map +0 -1
- package/dist/unpkg/prod-deprecated/-private-BK71-uXR.js.map +0 -1
- package/dist/unpkg/prod-deprecated/-private-TNaS5Piv.js +0 -1494
- package/dist/unpkg/prod-deprecated/-private-TNaS5Piv.js.map +0 -1
- package/dist/unpkg/prod-deprecated/request-BcJNzSgv.js.map +0 -1
- package/dist/unpkg/prod-deprecated/src-BOifHFQ5.js.map +0 -1
- /package/{declarations → dist}/aliases-BWYW5EhX.d.ts +0 -0
- /package/{declarations → dist}/aliases-BWYW5EhX.d.ts.map +0 -0
- /package/{declarations → dist}/build-config/babel-macros.d.ts +0 -0
- /package/{declarations → dist}/build-config/canary-features.d.ts +0 -0
- /package/{declarations → dist}/build-config/debugging.d.ts +0 -0
- /package/{declarations → dist}/build-config/deprecations.d.ts +0 -0
- /package/{declarations → dist}/build-config/env.d.ts +0 -0
- /package/{declarations → dist}/build-config/macros.d.ts +0 -0
- /package/{declarations → dist}/build-config.d.ts +0 -0
- /package/{declarations → dist}/change-C7kqv2kW.d.ts +0 -0
- /package/{declarations → dist}/change-C7kqv2kW.d.ts.map +0 -0
- /package/{declarations → dist}/configure-B_F639tN.d.ts +0 -0
- /package/{declarations → dist}/configure-B_F639tN.d.ts.map +0 -0
- /package/{declarations → dist}/configure.d.ts +0 -0
- /package/{declarations → dist}/document-BEn91SwT.d.ts +0 -0
- /package/{declarations → dist}/document-BEn91SwT.d.ts.map +0 -0
- /package/{declarations → dist}/error-50OSEhsF.d.ts +0 -0
- /package/{declarations → dist}/error-50OSEhsF.d.ts.map +0 -0
- /package/{declarations → dist}/fields-FM7peCiM.d.ts +0 -0
- /package/{declarations → dist}/fields-FM7peCiM.d.ts.map +0 -0
- /package/{declarations → dist}/graph-DLqYXP2z.d.ts +0 -0
- /package/{declarations → dist}/graph-DLqYXP2z.d.ts.map +0 -0
- /package/{declarations → dist}/identifier-DQnqOSJK.d.ts +0 -0
- /package/{declarations → dist}/identifier-DQnqOSJK.d.ts.map +0 -0
- /package/{declarations → dist}/json-api-raw-C5APJHHB.d.ts +0 -0
- /package/{declarations → dist}/json-api-raw-C5APJHHB.d.ts.map +0 -0
- /package/{declarations → dist}/mutations-CqtoGB4t.d.ts +0 -0
- /package/{declarations → dist}/mutations-CqtoGB4t.d.ts.map +0 -0
- /package/{declarations → dist}/operations-D1qA6r0_.d.ts +0 -0
- /package/{declarations → dist}/operations-D1qA6r0_.d.ts.map +0 -0
- /package/{declarations → dist}/params-DrEx3bf8.d.ts +0 -0
- /package/{declarations → dist}/params-DrEx3bf8.d.ts.map +0 -0
- /package/{declarations → dist}/raw-D5hnjiq7.d.ts +0 -0
- /package/{declarations → dist}/raw-D5hnjiq7.d.ts.map +0 -0
- /package/{declarations → dist}/record-D3QQcaIR.d.ts +0 -0
- /package/{declarations → dist}/relationship-CmHzMPKf.d.ts +0 -0
- /package/{declarations → dist}/relationship-CmHzMPKf.d.ts.map +0 -0
- /package/{declarations → dist}/symbols-DjRDCeX0.d.ts +0 -0
- /package/{declarations → dist}/symbols-DjRDCeX0.d.ts.map +0 -0
- /package/{declarations → dist}/types/cache/aliases.d.ts +0 -0
- /package/{declarations → dist}/types/cache/change.d.ts +0 -0
- /package/{declarations → dist}/types/cache/mutations.d.ts +0 -0
- /package/{declarations → dist}/types/cache/operations.d.ts +0 -0
- /package/{declarations → dist}/types/cache/relationship.d.ts +0 -0
- /package/{declarations → dist}/types/graph.d.ts +0 -0
- /package/{declarations → dist}/types/identifier.d.ts +0 -0
- /package/{declarations → dist}/types/json/raw.d.ts +0 -0
- /package/{declarations → dist}/types/params.d.ts +0 -0
- /package/{declarations → dist}/types/record.d.ts +0 -0
- /package/{declarations → dist}/types/runtime.d.ts +0 -0
- /package/{declarations → dist}/types/runtime.d.ts.map +0 -0
- /package/{declarations → dist}/types/schema/fields.d.ts +0 -0
- /package/{declarations → dist}/types/schema/fields.type-test.d.ts +0 -0
- /package/{declarations → dist}/types/spec/document.d.ts +0 -0
- /package/{declarations → dist}/types/spec/error.d.ts +0 -0
- /package/{declarations → dist}/types/spec/json-api-raw.d.ts +0 -0
- /package/{declarations → dist}/types/symbols.d.ts +0 -0
- /package/{declarations → dist}/types/utils.d.ts +0 -0
- /package/{declarations → dist}/utils/string.d.ts +0 -0
- /package/{declarations → dist}/utils/string.d.ts.map +0 -0
- /package/{declarations → dist}/utils-BtURiy8l.d.ts +0 -0
- /package/{declarations → dist}/utils-BtURiy8l.d.ts.map +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as setTransient, i as peekUniversalTransient, o as setUniversalTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-
|
|
2
|
-
import {
|
|
1
|
+
import { a as setTransient, i as peekUniversalTransient, o as setUniversalTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-DhiS6yOR.js";
|
|
2
|
+
import { A as ARRAY_SIGNAL, C as createInternalMemo, D as notifyInternalSignal, N as waitFor, O as peekInternalSignal, P as willSyncFlushWatchers, 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-pNQae3qH.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-BbbzRou7.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-
|
|
8
|
-
import { t as getGlobalConfig } from "./runtime-
|
|
7
|
+
import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-BGCYELwo.js";
|
|
8
|
+
import { t as getGlobalConfig } from "./runtime-DoDtzXJb.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-DamE3C4y.js";
|
|
12
12
|
|
|
13
13
|
//#region src/reactive/-private/document.ts
|
|
14
14
|
function urlFromLink(link) {
|
|
@@ -1101,13 +1101,18 @@ var CacheCapabilitiesManager = class {
|
|
|
1101
1101
|
return this.cacheKeyManager;
|
|
1102
1102
|
}
|
|
1103
1103
|
/** @internal */
|
|
1104
|
-
_scheduleNotification(identifier, key) {
|
|
1104
|
+
_scheduleNotification(identifier, key, channel) {
|
|
1105
1105
|
let pending = this._pendingNotifies.get(identifier);
|
|
1106
1106
|
if (!pending) {
|
|
1107
|
-
pending = /* @__PURE__ */ new
|
|
1107
|
+
pending = /* @__PURE__ */ new Map();
|
|
1108
1108
|
this._pendingNotifies.set(identifier, pending);
|
|
1109
1109
|
}
|
|
1110
|
-
pending.
|
|
1110
|
+
let channels = pending.get(key);
|
|
1111
|
+
if (!channels) {
|
|
1112
|
+
channels = /* @__PURE__ */ new Set();
|
|
1113
|
+
pending.set(key, channels);
|
|
1114
|
+
}
|
|
1115
|
+
channels.add(channel);
|
|
1111
1116
|
if (this._willNotify === true) return;
|
|
1112
1117
|
this._willNotify = true;
|
|
1113
1118
|
if (this._store._cbs) this._store._schedule("notify", () => this._flushNotifications());
|
|
@@ -1119,11 +1124,24 @@ var CacheCapabilitiesManager = class {
|
|
|
1119
1124
|
const pending = this._pendingNotifies;
|
|
1120
1125
|
this._pendingNotifies = /* @__PURE__ */ new Map();
|
|
1121
1126
|
this._willNotify = false;
|
|
1122
|
-
pending.forEach((
|
|
1123
|
-
|
|
1127
|
+
pending.forEach((channelsByKey, identifier) => {
|
|
1128
|
+
const keysByChannel = /* @__PURE__ */ new Map();
|
|
1129
|
+
channelsByKey.forEach((channels, key) => {
|
|
1130
|
+
channels.forEach((channel) => {
|
|
1131
|
+
let keys = keysByChannel.get(channel);
|
|
1132
|
+
if (!keys) {
|
|
1133
|
+
keys = /* @__PURE__ */ new Set();
|
|
1134
|
+
keysByChannel.set(channel, keys);
|
|
1135
|
+
}
|
|
1136
|
+
keys.add(key);
|
|
1137
|
+
});
|
|
1138
|
+
});
|
|
1139
|
+
keysByChannel.forEach((keys, channel) => {
|
|
1140
|
+
this._store.notifications.notify(identifier, "relationships", keys, channel);
|
|
1141
|
+
});
|
|
1124
1142
|
});
|
|
1125
1143
|
}
|
|
1126
|
-
notifyChange(identifier, namespace, key) {
|
|
1144
|
+
notifyChange(identifier, namespace, key, channel) {
|
|
1127
1145
|
((test) => {
|
|
1128
1146
|
if (!test) throw new Error(`Expected a stable identifier`);
|
|
1129
1147
|
})(isResourceKey(identifier) || isRequestKey(identifier));
|
|
@@ -1131,10 +1149,10 @@ var CacheCapabilitiesManager = class {
|
|
|
1131
1149
|
((test) => {
|
|
1132
1150
|
if (!test) throw new Error(`Expected a single relationship key`);
|
|
1133
1151
|
})(typeof key === "string");
|
|
1134
|
-
this._scheduleNotification(identifier, key);
|
|
1152
|
+
this._scheduleNotification(identifier, key, channel);
|
|
1135
1153
|
return;
|
|
1136
1154
|
}
|
|
1137
|
-
this._store.notifications.notify(identifier, namespace, key);
|
|
1155
|
+
this._store.notifications.notify(identifier, namespace, key, channel);
|
|
1138
1156
|
}
|
|
1139
1157
|
get schema() {
|
|
1140
1158
|
return this._store.schema;
|
|
@@ -1869,6 +1887,52 @@ function isCacheOperationValue(value) {
|
|
|
1869
1887
|
* @since 5.9.0
|
|
1870
1888
|
* @public
|
|
1871
1889
|
*/
|
|
1890
|
+
/**
|
|
1891
|
+
* A change to a resource's `attributes` or `relationships` can be relevant to
|
|
1892
|
+
* a "local" view of the resource (its mutable/editable state), a "remote" view
|
|
1893
|
+
* (its last-known-persisted state), or both.
|
|
1894
|
+
*
|
|
1895
|
+
* Each view subscribes to its own channel and, when notified, re-pulls its own
|
|
1896
|
+
* projection of the data: a remote-only reader (e.g. PolarisMode's default
|
|
1897
|
+
* immutable record) subscribes `'remote'` and re-reads remote state; an
|
|
1898
|
+
* editable/reconciled reader (a legacy record, or an editable checkout)
|
|
1899
|
+
* subscribes `'local'` (the same as omitting the channel) and re-reads local
|
|
1900
|
+
* state. A notifier that knows which projection changed tags the notification
|
|
1901
|
+
* with that channel; each tag is delivered only to that channel's subscribers.
|
|
1902
|
+
* A change affecting both projections is either notified unscoped or once per
|
|
1903
|
+
* channel. An unscoped notify cannot guarantee which view changed, so it
|
|
1904
|
+
* reaches every subscriber -- this keeps every pre-channel `notify` callsite
|
|
1905
|
+
* (and any custom cache that doesn't know about channels) fully compatible.
|
|
1906
|
+
*
|
|
1907
|
+
* The full delivery matrix:
|
|
1908
|
+
*
|
|
1909
|
+
* | notify ↓ subscribe → | `'local'` | `'remote'` | omitted (= `'local'`) |
|
|
1910
|
+
* | -------------------- | --------- | ---------- | --------------------- |
|
|
1911
|
+
* | `'local'` | ✅ | ❌ | ✅ |
|
|
1912
|
+
* | `'remote'` | ❌ | ✅ | ❌ |
|
|
1913
|
+
* | omitted | ✅ | ✅ | ✅ |
|
|
1914
|
+
*
|
|
1915
|
+
* Channel only applies to the `'attributes'` and `'relationships'`
|
|
1916
|
+
* notification types. All other types (`'errors'`,
|
|
1917
|
+
* `'identity'`, `'state'`, and the various `CacheOperation`/
|
|
1918
|
+
* `DocumentCacheOperation` values) are never filtered by channel since they
|
|
1919
|
+
* have no local/remote duality.
|
|
1920
|
+
*
|
|
1921
|
+
* @public
|
|
1922
|
+
*/
|
|
1923
|
+
/**
|
|
1924
|
+
* Well-known sentinel recorded in a {@link ChannelSet} for a touch that
|
|
1925
|
+
* carried no channel. An unscoped touch always reaches every subscriber
|
|
1926
|
+
* regardless of what channel(s) the same key was also touched with, so its
|
|
1927
|
+
* presence in the set short-circuits channel filtering.
|
|
1928
|
+
*/
|
|
1929
|
+
const UnscopedChannel = getOrSetGlobal("UnscopedChannel", Symbol("unscoped"));
|
|
1930
|
+
/**
|
|
1931
|
+
* The set of channels (if any) a given `'attributes'`/`'relationships'` touch
|
|
1932
|
+
* was tagged with while buffered. {@link UnscopedChannel} is included in this
|
|
1933
|
+
* set when at least one of the coalesced touches was itself unscoped (no
|
|
1934
|
+
* channel given).
|
|
1935
|
+
*/
|
|
1872
1936
|
function keyToString(key) {
|
|
1873
1937
|
return key instanceof Set ? Array.from(key).join(", ") : key || "";
|
|
1874
1938
|
}
|
|
@@ -1878,44 +1942,83 @@ function keyToString(key) {
|
|
|
1878
1942
|
* a single flush window.
|
|
1879
1943
|
*
|
|
1880
1944
|
* The buffer is a `Map` from namespace (`'attributes'`, `'relationships'`,
|
|
1881
|
-
* `'state'`, etc.) to
|
|
1882
|
-
*
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
*
|
|
1887
|
-
*
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1890
|
-
*
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
*
|
|
1894
|
-
*
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
1899
|
-
*
|
|
1900
|
-
*
|
|
1901
|
-
*
|
|
1902
|
-
*
|
|
1945
|
+
* `'state'`, etc.) to a "bucket". Using a `Map` means the *first* time a
|
|
1946
|
+
* namespace is touched during this flush window fixes its position in
|
|
1947
|
+
* iteration order; every subsequent touch to that same namespace (regardless
|
|
1948
|
+
* of how much later, or how many other namespaces fired in between) updates
|
|
1949
|
+
* its value in place without moving it. This preserves the relative order in
|
|
1950
|
+
* which *different* namespaces first fired, while intentionally not tracking
|
|
1951
|
+
* the arrival order of repeated touches to the *same* namespace - those are
|
|
1952
|
+
* provably safe to coalesce because subscribers never receive anything about
|
|
1953
|
+
* a notification beyond `(cacheKey, type, key?)`.
|
|
1954
|
+
*
|
|
1955
|
+
* For every namespace other than `'attributes'`/`'relationships'`, subscriber
|
|
1956
|
+
* callbacks never receive a key at all (and channel never applies to them -
|
|
1957
|
+
* see {@link NotificationChannel}), so the bucket is simply `null`, used
|
|
1958
|
+
* purely as a "this namespace fired at least once" presence marker; multiple
|
|
1959
|
+
* firings within one flush all collapse to the same single marker.
|
|
1960
|
+
*
|
|
1961
|
+
* For `'attributes'`/`'relationships'`, a key (or channel) *does* matter, so
|
|
1962
|
+
* the bucket is one of:
|
|
1963
|
+
* - a `Map<string, ChannelSet>`: the normal case, mapping each specific key
|
|
1964
|
+
* touched to the set of channels it was touched with ({@link UnscopedChannel}
|
|
1965
|
+
* in that set means at least one of those touches was itself unscoped).
|
|
1966
|
+
* - a `ChannelSet` directly: a wildcard meaning "an unspecified set of keys
|
|
1967
|
+
* changed" - a strict superset of any specific key list, per the existing
|
|
1968
|
+
* contract of {@link CacheCapabilitiesManager.notifyChange} - tagged with
|
|
1969
|
+
* the set of channels any of the coalesced keyless (or post-wildcard
|
|
1970
|
+
* keyed) touches carried.
|
|
1971
|
+
*
|
|
1972
|
+
* A keyless call always upgrades the bucket to the wildcard form. When
|
|
1973
|
+
* upgrading away from a `Map`, every channel ever recorded against any of
|
|
1974
|
+
* its specific keys is folded into the new wildcard `ChannelSet` - the
|
|
1975
|
+
* wildcard must remain a superset not just key-wise but channel-wise too, or
|
|
1976
|
+
* a channel-scoped subscriber that would have heard about one of those
|
|
1977
|
+
* specific keys could silently stop hearing about it once the bucket flips
|
|
1978
|
+
* to wildcard. Once a bucket is a wildcard it can never downgrade back to a
|
|
1979
|
+
* `Map`; a keyed touch that arrives after that point still folds its channel
|
|
1980
|
+
* into the wildcard's `ChannelSet` (the specific key itself is discarded,
|
|
1981
|
+
* since the wildcard already covers it).
|
|
1903
1982
|
*/
|
|
1904
|
-
function mergeIntoBuffer(buffer, value, key) {
|
|
1983
|
+
function mergeIntoBuffer(buffer, value, key, channel) {
|
|
1905
1984
|
if (value !== "attributes" && value !== "relationships") {
|
|
1906
1985
|
buffer.set(value, null);
|
|
1907
1986
|
return;
|
|
1908
1987
|
}
|
|
1909
1988
|
const existing = buffer.get(value);
|
|
1910
1989
|
if (key === null || key === void 0) {
|
|
1911
|
-
|
|
1990
|
+
const channels = existing instanceof Set ? existing : /* @__PURE__ */ new Set();
|
|
1991
|
+
if (existing instanceof Map) for (const channelsForKey of existing.values()) for (const ch of channelsForKey) channels.add(ch);
|
|
1992
|
+
channels.add(channel ?? UnscopedChannel);
|
|
1993
|
+
buffer.set(value, channels);
|
|
1912
1994
|
return;
|
|
1913
1995
|
}
|
|
1914
|
-
if (existing
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1996
|
+
if (existing instanceof Set) {
|
|
1997
|
+
existing.add(channel ?? UnscopedChannel);
|
|
1998
|
+
return;
|
|
1999
|
+
}
|
|
2000
|
+
const map = existing ?? /* @__PURE__ */ new Map();
|
|
2001
|
+
if (!existing) buffer.set(value, map);
|
|
2002
|
+
const keys = key instanceof Set ? key : [key];
|
|
2003
|
+
for (const k of keys) {
|
|
2004
|
+
let channels = map.get(k);
|
|
2005
|
+
if (!channels) {
|
|
2006
|
+
channels = /* @__PURE__ */ new Set();
|
|
2007
|
+
map.set(k, channels);
|
|
2008
|
+
}
|
|
2009
|
+
channels.add(channel ?? UnscopedChannel);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Given the set of channels a touch (or coalesced group of touches) was
|
|
2014
|
+
* recorded with, determines whether a subscriber scoped to `subscriberChannel`
|
|
2015
|
+
* should be delivered to (see the delivery matrix on
|
|
2016
|
+
* {@link NotificationChannel}): a subscriber hears a touch-set if any of its
|
|
2017
|
+
* touches was unscoped or tagged with the subscriber's own channel; a
|
|
2018
|
+
* touch-set exclusively tagged with the *other* channel is skipped.
|
|
2019
|
+
*/
|
|
2020
|
+
function shouldDeliverToChannel(channels, subscriberChannel) {
|
|
2021
|
+
return channels.has(UnscopedChannel) || channels.has(subscriberChannel);
|
|
1919
2022
|
}
|
|
1920
2023
|
function count(label) {
|
|
1921
2024
|
globalThis.__WarpDriveMetricCountData[label] = (globalThis.__WarpDriveMetricCountData[label] || 0) + 1;
|
|
@@ -1990,10 +2093,23 @@ var NotificationManager = class {
|
|
|
1990
2093
|
* }
|
|
1991
2094
|
* ```
|
|
1992
2095
|
*
|
|
2096
|
+
* A `channel` may be provided when subscribing to a `ResourceKey`. Its
|
|
2097
|
+
* effect is that the subscription skips `'attributes'`/`'relationships'`
|
|
2098
|
+
* notifications explicitly tagged with the *other* channel; unscoped
|
|
2099
|
+
* notifications, and notifications for all other notification types, always
|
|
2100
|
+
* reach the subscriber. Subscribing `'local'` and omitting the channel are
|
|
2101
|
+
* the same thing. See {@link NotificationChannel}.
|
|
2102
|
+
*
|
|
2103
|
+
* | notify ↓ subscribe → | `'local'` | `'remote'` | omitted (= `'local'`) |
|
|
2104
|
+
* | -------------------- | --------- | ---------- | --------------------- |
|
|
2105
|
+
* | `'local'` | ✅ | ❌ | ✅ |
|
|
2106
|
+
* | `'remote'` | ❌ | ✅ | ❌ |
|
|
2107
|
+
* | omitted | ✅ | ✅ | ✅ |
|
|
2108
|
+
*
|
|
1993
2109
|
* @public
|
|
1994
2110
|
* @return an opaque token to be used with unsubscribe
|
|
1995
2111
|
*/
|
|
1996
|
-
subscribe(cacheKey, callback) {
|
|
2112
|
+
subscribe(cacheKey, callback, channel) {
|
|
1997
2113
|
((test) => {
|
|
1998
2114
|
if (!test) throw new Error(`Expected not to be destroyed`);
|
|
1999
2115
|
})(!this.isDestroyed);
|
|
@@ -2008,6 +2124,7 @@ var NotificationManager = class {
|
|
|
2008
2124
|
if (!test) throw new Error(`cannot subscribe with the same callback twice`);
|
|
2009
2125
|
})(!callbacks || !callbacks.includes(callback));
|
|
2010
2126
|
callback.for = cacheKey;
|
|
2127
|
+
callback.channel = channel ?? "local";
|
|
2011
2128
|
if (!callbacks) {
|
|
2012
2129
|
callbacks = [];
|
|
2013
2130
|
this._cache.set(cacheKey, callbacks);
|
|
@@ -2037,13 +2154,29 @@ var NotificationManager = class {
|
|
|
2037
2154
|
* buffer/flush scheduling) only once for the whole batch instead of once
|
|
2038
2155
|
* per key.
|
|
2039
2156
|
*
|
|
2157
|
+
* A `channel` may be supplied for the `'attributes'`/`'relationships'`
|
|
2158
|
+
* namespaces. Tagging a notification `'local'` declares "only the local
|
|
2159
|
+
* (reconciled/editable) view changed"; tagging it `'remote'` declares "only
|
|
2160
|
+
* the remote view changed". Each tag is delivered only to that channel's
|
|
2161
|
+
* subscribers. Omitting the channel reaches every subscriber regardless of
|
|
2162
|
+
* its channel. See {@link NotificationChannel}.
|
|
2163
|
+
*
|
|
2164
|
+
* | notify ↓ subscribe → | `'local'` | `'remote'` | omitted (= `'local'`) |
|
|
2165
|
+
* | -------------------- | --------- | ---------- | --------------------- |
|
|
2166
|
+
* | `'local'` | ✅ | ❌ | ✅ |
|
|
2167
|
+
* | `'remote'` | ❌ | ✅ | ❌ |
|
|
2168
|
+
* | omitted | ✅ | ✅ | ✅ |
|
|
2169
|
+
*
|
|
2040
2170
|
* @private
|
|
2041
2171
|
*/
|
|
2042
|
-
notify(cacheKey, value, key) {
|
|
2172
|
+
notify(cacheKey, value, key, channel) {
|
|
2043
2173
|
if (this.isDestroyed) return false;
|
|
2044
2174
|
((test) => {
|
|
2045
2175
|
if (!test) throw new Error(`Notify does not accept a key argument for the namespace '${value}'. Received key '${keyToString(key)}'.`);
|
|
2046
2176
|
})(!key || value === "attributes" || value === "relationships");
|
|
2177
|
+
((test) => {
|
|
2178
|
+
if (!test) throw new Error(`Notify does not accept a channel argument for the namespace '${value}'. Received channel '${channel || ""}'.`);
|
|
2179
|
+
})(!channel || value === "attributes" || value === "relationships");
|
|
2047
2180
|
if (!isResourceKey(cacheKey) && !isRequestKey(cacheKey)) {
|
|
2048
2181
|
if (getGlobalConfig().WarpDrive.debug.LOG_NOTIFICATIONS || globalThis.getWarpDriveRuntimeConfig().debug.LOG_NOTIFICATIONS) console.log(`Notifying: Expected to receive a stable Identifier to notify '${value}' '${keyToString(key)}' with, but ${String(cacheKey)} is not in the cache`, cacheKey);
|
|
2049
2182
|
return false;
|
|
@@ -2055,7 +2188,7 @@ var NotificationManager = class {
|
|
|
2055
2188
|
buffer = /* @__PURE__ */ new Map();
|
|
2056
2189
|
this._buffered.set(cacheKey, buffer);
|
|
2057
2190
|
}
|
|
2058
|
-
mergeIntoBuffer(buffer, value, key);
|
|
2191
|
+
mergeIntoBuffer(buffer, value, key, channel);
|
|
2059
2192
|
if (getGlobalConfig().WarpDrive.debug.LOG_METRIC_COUNTS || globalThis.getWarpDriveRuntimeConfig().debug.LOG_METRIC_COUNTS) count(`notify ${"type" in cacheKey ? cacheKey.type : "<document>"} ${value} ${keyToString(key)}`);
|
|
2060
2193
|
if (!this._scheduleNotify()) {
|
|
2061
2194
|
if (getGlobalConfig().WarpDrive.debug.LOG_NOTIFICATIONS || globalThis.getWarpDriveRuntimeConfig().debug.LOG_NOTIFICATIONS) log("notify", "buffered", `${"type" in cacheKey ? cacheKey.type : "document"}`, cacheKey.lid, `${value}`, keyToString(key));
|
|
@@ -2088,8 +2221,9 @@ var NotificationManager = class {
|
|
|
2088
2221
|
const buffered = this._buffered;
|
|
2089
2222
|
if (buffered.size) {
|
|
2090
2223
|
this._buffered = /* @__PURE__ */ new Map();
|
|
2091
|
-
for (const [cacheKey, states] of buffered) for (const [value,
|
|
2092
|
-
else
|
|
2224
|
+
for (const [cacheKey, states] of buffered) for (const [value, bucket] of states) if (bucket === null) _flushNotification(this._cache, cacheKey, value, null);
|
|
2225
|
+
else if (bucket instanceof Set) _flushNotification(this._cache, cacheKey, value, null, bucket);
|
|
2226
|
+
else for (const [key, channels] of bucket) _flushNotification(this._cache, cacheKey, value, key, channels);
|
|
2093
2227
|
}
|
|
2094
2228
|
this._hasFlush = false;
|
|
2095
2229
|
this._onFlushCB?.();
|
|
@@ -2108,7 +2242,7 @@ var NotificationManager = class {
|
|
|
2108
2242
|
*
|
|
2109
2243
|
* @private
|
|
2110
2244
|
*/
|
|
2111
|
-
function _flushNotification(cache, cacheKey, value, key) {
|
|
2245
|
+
function _flushNotification(cache, cacheKey, value, key, channels) {
|
|
2112
2246
|
if (getGlobalConfig().WarpDrive.debug.LOG_NOTIFICATIONS || globalThis.getWarpDriveRuntimeConfig().debug.LOG_NOTIFICATIONS) log("notify", "", `${"type" in cacheKey ? cacheKey.type : "document"}`, cacheKey.lid, `${value}`, key || "");
|
|
2113
2247
|
if (isCacheOperationValue(value)) {
|
|
2114
2248
|
const callbackMap = cache.get(isRequestKey(cacheKey) ? "document" : "resource");
|
|
@@ -2119,6 +2253,10 @@ function _flushNotification(cache, cacheKey, value, key) {
|
|
|
2119
2253
|
const callbacks = cache.get(cacheKey);
|
|
2120
2254
|
if (!callbacks || !callbacks.length) return false;
|
|
2121
2255
|
callbacks.forEach((cb) => {
|
|
2256
|
+
if (channels) {
|
|
2257
|
+
const subscriberChannel = cb.channel;
|
|
2258
|
+
if (!shouldDeliverToChannel(channels, subscriberChannel)) return;
|
|
2259
|
+
}
|
|
2122
2260
|
cb(cacheKey, value, key);
|
|
2123
2261
|
});
|
|
2124
2262
|
return true;
|
|
@@ -3033,7 +3171,7 @@ var RecordArrayManager = class {
|
|
|
3033
3171
|
}
|
|
3034
3172
|
getCollection(config) {
|
|
3035
3173
|
if ("requestKey" in config && this._keyedArrays.has(config.requestKey.lid)) return this._keyedArrays.get(config.requestKey.lid);
|
|
3036
|
-
let array
|
|
3174
|
+
let array;
|
|
3037
3175
|
if ("requestKey" in config) {
|
|
3038
3176
|
const options = {
|
|
3039
3177
|
store: this.store,
|
|
@@ -3942,7 +4080,7 @@ var Store = class extends BaseClass {
|
|
|
3942
4080
|
this._join(() => {
|
|
3943
4081
|
const normalizedModelName = normalizeModelName(type);
|
|
3944
4082
|
const properties = { ...inputProperties };
|
|
3945
|
-
let id
|
|
4083
|
+
let id;
|
|
3946
4084
|
if (properties.id === null || properties.id === void 0) {
|
|
3947
4085
|
const adapter = this.adapterFor?.(normalizedModelName, true);
|
|
3948
4086
|
if (adapter && adapter.generateIdForRecord) id = properties.id = coerceId(adapter.generateIdForRecord(this, normalizedModelName, properties));
|
|
@@ -5478,7 +5616,7 @@ var ManyArrayManager = class {
|
|
|
5478
5616
|
if (rawValue.meta) array.meta = rawValue.meta;
|
|
5479
5617
|
if (rawValue.links) array.links = rawValue.links;
|
|
5480
5618
|
const currentState = array[Context].source;
|
|
5481
|
-
if (currentState !== rawValue.data) {
|
|
5619
|
+
if (rawValue.data !== void 0 && currentState !== rawValue.data) {
|
|
5482
5620
|
currentState.length = 0;
|
|
5483
5621
|
fastPush(currentState, rawValue.data);
|
|
5484
5622
|
}
|
|
@@ -5536,7 +5674,7 @@ function getHasManyField(context) {
|
|
|
5536
5674
|
if (cached) return cached;
|
|
5537
5675
|
const { editable, resourceKey } = context;
|
|
5538
5676
|
const { cache } = store;
|
|
5539
|
-
const rawValue = cache.getRelationship(resourceKey, getFieldCacheKeyStrict(field));
|
|
5677
|
+
const rawValue = editable ? cache.getRelationship(resourceKey, getFieldCacheKeyStrict(field)) : cache.getRemoteRelationship(resourceKey, getFieldCacheKeyStrict(field));
|
|
5540
5678
|
if (!rawValue) return null;
|
|
5541
5679
|
const managedArray = createLegacyManyArray({
|
|
5542
5680
|
store,
|
|
@@ -6172,7 +6310,7 @@ var ReactiveResource = class ReactiveResource {
|
|
|
6172
6310
|
}
|
|
6173
6311
|
}
|
|
6174
6312
|
}
|
|
6175
|
-
});
|
|
6313
|
+
}, context.legacy || context.editable ? "local" : "remote");
|
|
6176
6314
|
const proxy = new Proxy(this, {
|
|
6177
6315
|
ownKeys() {
|
|
6178
6316
|
const identityKey = identityField?.name;
|
|
@@ -7668,6 +7806,7 @@ const ERROR_STATUS_CODE_FOR = /* @__PURE__ */ new Map([
|
|
|
7668
7806
|
* ```
|
|
7669
7807
|
*
|
|
7670
7808
|
* @public
|
|
7809
|
+
* @badge Handler
|
|
7671
7810
|
*/
|
|
7672
7811
|
const Fetch = {
|
|
7673
7812
|
/**
|
|
@@ -8189,4 +8328,4 @@ function useRecommendedStore(options, StoreKlass = Store) {
|
|
|
8189
8328
|
|
|
8190
8329
|
//#endregion
|
|
8191
8330
|
export { setIdentifierResetMethod as A, setRecordIdentifier as C, isResourceKey as D, isRequestKey as E, ensureStringId as F, log as I, logGroup as L, setKeyInfoForResource as M, normalizeModelName as N, setIdentifierForgetMethod as O, coerceId as P, 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, setIdentifierUpdateMethod as j, setIdentifierGenerationMethod 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 };
|
|
8192
|
-
//# sourceMappingURL=src-
|
|
8331
|
+
//# sourceMappingURL=src-Cf7NXXR2.js.map
|