@warp-drive-mirror/core 5.10.0-alpha.10 → 5.10.0-alpha.13
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/README.md +116 -6
- package/dist/{-private-CjK1Dmuh.js → -private-BpyvBYFj.js} +508 -144
- package/dist/-private-BpyvBYFj.js.map +1 -0
- package/dist/{unpkg/dev/-private-Dtj8O5W7.js → -private-CmNOwhK0.js} +3 -1
- package/dist/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/{aliases-BWYW5EhX.d.ts → aliases-BQmAxXmb.d.ts} +4 -1
- package/dist/aliases-BQmAxXmb.d.ts.map +1 -0
- package/dist/{change-C7kqv2kW.d.ts → change-DClXcHvr.d.ts} +4 -2
- package/dist/change-DClXcHvr.d.ts.map +1 -0
- package/dist/{concepts-DFldVwEM.d.ts → concepts-DzuY5M1K.d.ts} +14 -5
- package/dist/concepts-DzuY5M1K.d.ts.map +1 -0
- package/dist/{configure-B_F639tN.d.ts → configure-CjsojjiI.d.ts} +7 -1
- package/dist/configure-CjsojjiI.d.ts.map +1 -0
- package/dist/configure.d.ts +1 -1
- package/dist/configure.js +1 -1
- package/dist/{document-Ca4ZZBd9.d.ts → document-Ni8Ns26t.d.ts} +22 -4
- package/dist/document-Ni8Ns26t.d.ts.map +1 -0
- package/dist/{error-0uD6GkNX.d.ts → error-APuUdUGk.d.ts} +4 -2
- package/dist/error-APuUdUGk.d.ts.map +1 -0
- package/dist/{fields-FM7peCiM.d.ts → fields-D6173Q_a.d.ts} +134 -7
- package/dist/fields-D6173Q_a.d.ts.map +1 -0
- package/dist/graph/-private.d.ts +1 -1
- package/dist/graph/-private.js +2 -0
- package/dist/graph/-private.js.map +1 -1
- package/dist/{graph-DLqYXP2z.d.ts → graph-rjTyJ-gd.d.ts} +25 -5
- package/dist/graph-rjTyJ-gd.d.ts.map +1 -0
- package/dist/{identifier-DQnqOSJK.d.ts → identifier-B_tK3FUw.d.ts} +29 -4
- package/dist/identifier-B_tK3FUw.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-9XuWZdDv.d.ts → internal-CgOlgOt3.d.ts} +497 -31
- package/dist/internal-CgOlgOt3.d.ts.map +1 -0
- package/dist/{json-api-raw-C5APJHHB.d.ts → json-api-raw-BxzNsCg0.d.ts} +44 -2
- package/dist/json-api-raw-BxzNsCg0.d.ts.map +1 -0
- package/dist/{mutations-CqtoGB4t.d.ts → mutations-C81gbYjB.d.ts} +18 -2
- package/dist/mutations-C81gbYjB.d.ts.map +1 -0
- package/dist/{operations-D1qA6r0_.d.ts → operations-B4pQM7D6.d.ts} +39 -5
- package/dist/operations-B4pQM7D6.d.ts.map +1 -0
- package/dist/{params-DrEx3bf8.d.ts → params-dbHiSOMF.d.ts} +11 -1
- package/dist/params-dbHiSOMF.d.ts.map +1 -0
- package/dist/{raw-D5hnjiq7.d.ts → raw-CiC64nCY.d.ts} +10 -1
- package/dist/raw-CiC64nCY.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 +2 -2
- package/dist/reactive.js +3 -3
- package/dist/{record-D3QQcaIR.d.ts → record-DDxPtzcY.d.ts} +22 -2
- package/dist/record-DDxPtzcY.d.ts.map +1 -0
- package/dist/{relationship-CmHzMPKf.d.ts → relationship-BlGIXgj4.d.ts} +10 -3
- package/dist/relationship-BlGIXgj4.d.ts.map +1 -0
- package/dist/{request-Di274pQz.js → request-MiwUbGdT.js} +26 -1
- package/dist/request-MiwUbGdT.js.map +1 -0
- package/dist/request.d.ts +1 -1
- package/dist/request.js +1 -1
- package/dist/signals/-leaked.d.ts +86 -4
- package/dist/signals/-leaked.d.ts.map +1 -1
- package/dist/signals/-leaked.js +1 -1
- package/dist/{src-TlQlgL5V.js → src-DlNeupkA.js} +222 -20
- package/dist/src-DlNeupkA.js.map +1 -0
- package/dist/store/-private.d.ts +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/{store-DNF9Rgoh.js → store-lcyaxrpj.js} +16 -1
- package/dist/store-lcyaxrpj.js.map +1 -0
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/{symbols-DjRDCeX0.d.ts → symbols-Cu9un1NR.d.ts} +10 -1
- package/dist/symbols-Cu9un1NR.d.ts.map +1 -0
- package/dist/types/-private.js +1 -1
- 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 -1
- package/dist/types/cache.d.ts +1 -1
- package/dist/types/graph.d.ts +1 -1
- package/dist/types/identifier.d.ts +1 -1
- package/dist/types/identifier.js +33 -3
- package/dist/types/identifier.js.map +1 -1
- package/dist/types/json/raw.d.ts +1 -1
- package/dist/types/params.d.ts +1 -1
- package/dist/types/record.d.ts +1 -1
- package/dist/types/record.js +25 -0
- package/dist/types/record.js.map +1 -1
- package/dist/types/request.d.ts +1 -1
- package/dist/types/request.js +80 -0
- package/dist/types/request.js.map +1 -1
- package/dist/types/runtime.d.ts.map +1 -1
- package/dist/types/schema/concepts.d.ts +1 -1
- package/dist/types/schema/fields.d.ts +1 -1
- package/dist/types/schema/fields.js +132 -3
- package/dist/types/schema/fields.js.map +1 -1
- package/dist/types/schema/schema-service.d.ts +1 -1
- package/dist/types/spec/document.d.ts +1 -1
- package/dist/types/spec/error.d.ts +1 -1
- package/dist/types/spec/json-api-raw.d.ts +1 -1
- package/dist/types/symbols.d.ts +1 -1
- package/dist/types/symbols.js +14 -0
- package/dist/types/symbols.js.map +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/unpkg/{dev-deprecated/-private-DrQgwtNS.js → dev/-private-BH4O810v.js} +508 -144
- package/dist/unpkg/dev/-private-BH4O810v.js.map +1 -0
- package/dist/{-private-Dtj8O5W7.js → unpkg/dev/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/dev/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +2 -0
- 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-nAaeDlS9.js → dev/request-Fe-vpe-u.js} +26 -1
- package/dist/unpkg/dev/request-Fe-vpe-u.js.map +1 -0
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/signals/-leaked.js +1 -1
- package/dist/unpkg/dev/{src-D8uKAIUN.js → src-FSk0Z_Lp.js} +213 -13
- package/dist/unpkg/dev/src-FSk0Z_Lp.js.map +1 -0
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/dev/{store-BIFNM_fB.js → store-BUV8Pfi7.js} +16 -1
- package/dist/unpkg/dev/store-BUV8Pfi7.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/identifier.js +33 -3
- package/dist/unpkg/dev/types/identifier.js.map +1 -1
- package/dist/unpkg/dev/types/record.js +25 -0
- package/dist/unpkg/dev/types/record.js.map +1 -1
- package/dist/unpkg/dev/types/request.js +80 -0
- package/dist/unpkg/dev/types/request.js.map +1 -1
- package/dist/unpkg/dev/types/schema/fields.js +132 -3
- package/dist/unpkg/dev/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev/types/symbols.js +14 -0
- package/dist/unpkg/dev/types/symbols.js.map +1 -1
- package/dist/unpkg/{dev/-private-DrQgwtNS.js → dev-deprecated/-private-BH4O810v.js} +508 -144
- package/dist/unpkg/dev-deprecated/-private-BH4O810v.js.map +1 -0
- package/dist/unpkg/{prod-deprecated/-private-Dtj8O5W7.js → dev-deprecated/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/dev-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +2 -0
- 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-nAaeDlS9.js → dev-deprecated/request-Fe-vpe-u.js} +26 -1
- package/dist/unpkg/dev-deprecated/request-Fe-vpe-u.js.map +1 -0
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/dev-deprecated/{src-BlewXGbB.js → src-Isk_Je7q.js} +215 -13
- package/dist/unpkg/dev-deprecated/src-Isk_Je7q.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/{store-X1WN7P_O.js → store-CCZBSe0p.js} +16 -1
- package/dist/unpkg/dev-deprecated/store-CCZBSe0p.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/identifier.js +33 -3
- package/dist/unpkg/dev-deprecated/types/identifier.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/record.js +25 -0
- package/dist/unpkg/dev-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/request.js +80 -0
- package/dist/unpkg/dev-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/schema/fields.js +132 -3
- package/dist/unpkg/dev-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/symbols.js +14 -0
- package/dist/unpkg/dev-deprecated/types/symbols.js.map +1 -1
- package/dist/unpkg/prod/-private-CmNOwhK0.js +24 -0
- package/dist/unpkg/prod/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/prod/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
- package/dist/unpkg/prod/-private-DKVDMUfT.js.map +1 -0
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +2 -0
- 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-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
- package/dist/unpkg/prod/request-ndw2Fy91.js.map +1 -0
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/signals/-leaked.js +1 -1
- package/dist/unpkg/prod/{src-DGB6WvXW.js → src-CoSpuocQ.js} +213 -13
- package/dist/unpkg/prod/src-CoSpuocQ.js.map +1 -0
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/{prod-deprecated/store-BWhmb7Ob.js → prod/store-CQOsqdST.js} +16 -1
- package/dist/unpkg/prod/store-CQOsqdST.js.map +1 -0
- package/dist/unpkg/prod/store.js +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod/types/identifier.js +33 -3
- package/dist/unpkg/prod/types/identifier.js.map +1 -1
- package/dist/unpkg/prod/types/record.js +25 -0
- package/dist/unpkg/prod/types/record.js.map +1 -1
- package/dist/unpkg/prod/types/request.js +80 -0
- package/dist/unpkg/prod/types/request.js.map +1 -1
- package/dist/unpkg/prod/types/schema/fields.js +132 -3
- package/dist/unpkg/prod/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod/types/symbols.js +14 -0
- package/dist/unpkg/prod/types/symbols.js.map +1 -1
- package/dist/unpkg/{dev-deprecated/-private-Dtj8O5W7.js → prod-deprecated/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/prod-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
- package/dist/unpkg/prod-deprecated/-private-DKVDMUfT.js.map +1 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +2 -0
- 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-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
- package/dist/unpkg/prod-deprecated/request-ndw2Fy91.js.map +1 -0
- 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-B9AnmJPz.js → src-FK_rMde5.js} +215 -13
- package/dist/unpkg/prod-deprecated/src-FK_rMde5.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/{prod/store-BWhmb7Ob.js → prod-deprecated/store-CQOsqdST.js} +16 -1
- package/dist/unpkg/prod-deprecated/store-CQOsqdST.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store.js +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/identifier.js +33 -3
- package/dist/unpkg/prod-deprecated/types/identifier.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/record.js +25 -0
- package/dist/unpkg/prod-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/request.js +80 -0
- package/dist/unpkg/prod-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/schema/fields.js +132 -3
- package/dist/unpkg/prod-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/symbols.js +14 -0
- package/dist/unpkg/prod-deprecated/types/symbols.js.map +1 -1
- package/dist/{utils-BtURiy8l.d.ts → utils-CNmQoKm8.d.ts} +8 -1
- package/dist/utils-CNmQoKm8.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/-private-CjK1Dmuh.js.map +0 -1
- package/dist/aliases-BWYW5EhX.d.ts.map +0 -1
- package/dist/change-C7kqv2kW.d.ts.map +0 -1
- package/dist/concepts-DFldVwEM.d.ts.map +0 -1
- package/dist/configure-B_F639tN.d.ts.map +0 -1
- package/dist/document-Ca4ZZBd9.d.ts.map +0 -1
- package/dist/error-0uD6GkNX.d.ts.map +0 -1
- package/dist/fields-FM7peCiM.d.ts.map +0 -1
- package/dist/graph-DLqYXP2z.d.ts.map +0 -1
- package/dist/identifier-DQnqOSJK.d.ts.map +0 -1
- package/dist/internal-9XuWZdDv.d.ts.map +0 -1
- package/dist/json-api-raw-C5APJHHB.d.ts.map +0 -1
- package/dist/mutations-CqtoGB4t.d.ts.map +0 -1
- package/dist/operations-D1qA6r0_.d.ts.map +0 -1
- package/dist/params-DrEx3bf8.d.ts.map +0 -1
- package/dist/raw-D5hnjiq7.d.ts.map +0 -1
- package/dist/record-D3QQcaIR.d.ts.map +0 -1
- package/dist/relationship-CmHzMPKf.d.ts.map +0 -1
- package/dist/request-Di274pQz.js.map +0 -1
- package/dist/src-TlQlgL5V.js.map +0 -1
- package/dist/store-DNF9Rgoh.js.map +0 -1
- package/dist/symbols-DjRDCeX0.d.ts.map +0 -1
- package/dist/types/schema/fields.type-test.d.ts +0 -1
- package/dist/types/schema/fields.type-test.js +0 -79
- package/dist/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/dev/-private-DrQgwtNS.js.map +0 -1
- package/dist/unpkg/dev/request-nAaeDlS9.js.map +0 -1
- package/dist/unpkg/dev/src-D8uKAIUN.js.map +0 -1
- package/dist/unpkg/dev/store-BIFNM_fB.js.map +0 -1
- package/dist/unpkg/dev/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/dev/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-DrQgwtNS.js.map +0 -1
- package/dist/unpkg/dev-deprecated/request-nAaeDlS9.js.map +0 -1
- package/dist/unpkg/dev-deprecated/src-BlewXGbB.js.map +0 -1
- package/dist/unpkg/dev-deprecated/store-X1WN7P_O.js.map +0 -1
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/prod/-private-Dg1vsF-H.js.map +0 -1
- package/dist/unpkg/prod/-private-Dtj8O5W7.js +0 -22
- package/dist/unpkg/prod/request-DK7nNaAf.js.map +0 -1
- package/dist/unpkg/prod/src-DGB6WvXW.js.map +0 -1
- package/dist/unpkg/prod/store-BWhmb7Ob.js.map +0 -1
- package/dist/unpkg/prod/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/prod/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/prod-deprecated/-private-Dg1vsF-H.js.map +0 -1
- package/dist/unpkg/prod-deprecated/request-DK7nNaAf.js.map +0 -1
- package/dist/unpkg/prod-deprecated/src-B9AnmJPz.js.map +0 -1
- package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +0 -1
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js.map +0 -1
- package/dist/utils-BtURiy8l.d.ts.map +0 -1
|
@@ -7,6 +7,8 @@ const Destroy = getOrSetGlobal("Destroy", Symbol.dispose || Symbol.for("Dispose"
|
|
|
7
7
|
* Symbol for the method used to request a mutable copy of an otherwise
|
|
8
8
|
* immutable {@link ReactiveResource}.
|
|
9
9
|
*
|
|
10
|
+
* @summary Deprecated symbol-keyed method on a ReactiveResource that resolves with an editable copy;
|
|
11
|
+
* use `checkout` instead.
|
|
10
12
|
* @deprecated use the {@link checkout} utility function instead.
|
|
11
13
|
*/
|
|
12
14
|
const Checkout = getOrSetGlobal("Checkout", Symbol("Checkout"));
|
|
@@ -19,4 +21,4 @@ const Context = getOrSetGlobal("Context", Symbol("Context"));
|
|
|
19
21
|
|
|
20
22
|
//#endregion
|
|
21
23
|
export { SOURCE as a, Destroy as i, Commit as n, Context as r, Checkout as t };
|
|
22
|
-
//# sourceMappingURL=-private-
|
|
24
|
+
//# sourceMappingURL=-private-CmNOwhK0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"-private-
|
|
1
|
+
{"version":3,"file":"-private-CmNOwhK0.js","names":["getOrSetGlobal","SOURCE","Symbol","Destroy","dispose","for","Checkout","Commit","Context"],"sources":["../src/reactive/-private/symbols.ts"],"sourcesContent":["///////////////////\n///// WARNING /////\n///////////////////\n\nimport { getOrSetGlobal } from '../../types/-private';\n\n// Great, got your attention with that warning didn't we?\n// Good. Here's the deal: typescript treats symbols as unique types.\n// If by accident a module creating a symbol is processed more than\n// once, the symbol will be different in each processing. This will\n// cause a type error.\n// It could also cause a runtime error if the symbol is used innapropriately.\n// However, this case is extremely hard to hit and would require other things\n// to go wrong first.\n//\n// So, why do the warning? And why do we lie about the types of the symbols?\n//\n// Because we intentionally create multiple copies of them within the types\n// at build time. This is because we rollup our d.ts files in order to give\n// our consumers a better experience.\n//\n// However, no tool today supports rolling up d.ts files with multiple entry\n// points correctly. The tool we use currently (vite-plugin-dts) uses @microsoft/api-extractor\n// which creates a fully unique stand-alone types file per-entry-point. Thus\n// every entry point that uses one of these symbols somewhere will have accidentally\n// created a new symbol type.\n//\n// This cast allows us to rollup these types using this tool while not encountering\n// the unique symbol type issue.\n//\n// Note that none of these symbols are part of the public API, these are used for\n// debugging DX and as a safe way to provide an intimate contract on public objects.\n\nexport const SOURCE: '___(unique) Symbol(SOURCE)' = getOrSetGlobal('SOURCE', Symbol('#source'));\n\nexport const Destroy: '___(unique) Symbol(Destroy)' = getOrSetGlobal(\n 'Destroy',\n Symbol.dispose || Symbol.for('Dispose')\n);\n/**\n * Symbol for the method used to request a mutable copy of an otherwise\n * immutable {@link ReactiveResource}.\n *\n * @summary Deprecated symbol-keyed method on a ReactiveResource that resolves with an editable copy;\n * use `checkout` instead.\n * @deprecated use the {@link checkout} utility function instead.\n */\nexport const Checkout: '___(unique) Symbol(Checkout)' = getOrSetGlobal('Checkout', Symbol('Checkout'));\nexport const Commit: '___(unique) Symbol(Commit)' = getOrSetGlobal('Commit', Symbol('Commit'));\n\n/**\n * Symbol used to stash the internal field/resource context (schema, store,\n * mutability, etc.) on a {@link ReactiveResource} or reactive field instance.\n */\nexport const Context: '___(unique) Symbol(Context)' = getOrSetGlobal('Context', Symbol('Context'));\n"],"mappings":";;;AAiCA,MAAaC,SAAuCD,eAAe,UAAUE,OAAO,SAAS,CAAC;AAE9F,MAAaC,UAAyCH,eACpD,WACAE,OAAOE,WAAWF,OAAOG,IAAI,SAAS,CACxC;;;;;;;;;AASA,MAAaC,WAA2CN,eAAe,YAAYE,OAAO,UAAU,CAAC;AACrG,MAAaK,SAAuCP,eAAe,UAAUE,OAAO,QAAQ,CAAC;;;;;AAM7F,MAAaM,UAAyCR,eAAe,WAAWE,OAAO,SAAS,CAAC"}
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This opaqueness allows arbitrary storage of any serializable/transferable
|
|
12
12
|
* state, including such things as `Buffer`s and `String`s.
|
|
13
|
+
*
|
|
14
|
+
* @summary Opaque raw resource data whose format the Cache defines and from which the CacheKeyManager can derive a
|
|
15
|
+
* `ResourceKey`.
|
|
13
16
|
*/
|
|
14
17
|
type ResourceBlob = unknown;
|
|
15
18
|
//#endregion
|
|
16
19
|
export { ResourceBlob as t };
|
|
17
|
-
//# sourceMappingURL=aliases-
|
|
20
|
+
//# sourceMappingURL=aliases-BQmAxXmb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases-BQmAxXmb.d.ts","names":[],"sources":["../src/types/cache/aliases.ts"],"mappings":";;;;;;;;;;;;;;;;KA2BY"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { c as RequestKey, l as ResourceKey } from "./identifier-
|
|
1
|
+
import { c as RequestKey, l as ResourceKey } from "./identifier-B_tK3FUw.js";
|
|
2
2
|
//#region src/types/cache/change.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describes a single mutation to a resource or document that occurred
|
|
5
5
|
* in the cache, as returned by {@link Cache.diff}.
|
|
6
6
|
*
|
|
7
|
+
* @summary One upsert or removal of a resource or document recorded by the cache, with an optional patch, as
|
|
8
|
+
* returned by `cache.diff`.
|
|
7
9
|
* @example
|
|
8
10
|
* ```ts
|
|
9
11
|
* const change: Change = {
|
|
@@ -38,4 +40,4 @@ interface Change {
|
|
|
38
40
|
}
|
|
39
41
|
//#endregion
|
|
40
42
|
export { Change as t };
|
|
41
|
-
//# sourceMappingURL=change-
|
|
43
|
+
//# sourceMappingURL=change-DClXcHvr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-DClXcHvr.d.ts","names":[],"sources":["../src/types/cache/change.ts"],"mappings":";;;;;;;;;;;;;;;;;UAwBiB;;;;EAIf,YAAY,cAAc;;;;;EAK1B;;;;;;;;;;;;EAYA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as ResourceKey } from "./identifier-
|
|
2
|
-
import { a as Type } from "./symbols-
|
|
3
|
-
import { i as OpaqueRecordInstance } from "./record-
|
|
4
|
-
import { i as Value, n as ObjectValue } from "./raw-
|
|
1
|
+
import { l as ResourceKey } from "./identifier-B_tK3FUw.js";
|
|
2
|
+
import { a as Type } from "./symbols-Cu9un1NR.js";
|
|
3
|
+
import { i as OpaqueRecordInstance } from "./record-DDxPtzcY.js";
|
|
4
|
+
import { i as Value, n as ObjectValue } from "./raw-CiC64nCY.js";
|
|
5
5
|
//#region src/types/schema/concepts.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* A Transformation converts a cached primitive value into a richer
|
|
@@ -14,6 +14,9 @@ import { i as Value, n as ObjectValue } from "./raw-D5hnjiq7.js";
|
|
|
14
14
|
* Transformations must be registered with the SchemaService via
|
|
15
15
|
* `schema.registerTransformation(transform)` before use, keyed by the
|
|
16
16
|
* name assigned to their {@link Type} property.
|
|
17
|
+
*
|
|
18
|
+
* @summary A registered pair of `serialize` and `hydrate` functions that convert a field's raw cached value to and from
|
|
19
|
+
* the value exposed on a record.
|
|
17
20
|
*/
|
|
18
21
|
type Transformation<T extends Value = Value, PT = unknown> = {
|
|
19
22
|
/**
|
|
@@ -47,6 +50,9 @@ type Transformation<T extends Value = Value, PT = unknown> = {
|
|
|
47
50
|
* Derivations must be registered with the SchemaService via
|
|
48
51
|
* `schema.registerDerivation(derivation)` before use, keyed by the
|
|
49
52
|
* name assigned to their {@link Type} property.
|
|
53
|
+
*
|
|
54
|
+
* @summary A registered function that computes a memoized, read-only field value from a record's other fields, backing
|
|
55
|
+
* `derived` fields.
|
|
50
56
|
*/
|
|
51
57
|
type Derivation<R = unknown, T = unknown, FM extends ObjectValue | null = ObjectValue | null> = {
|
|
52
58
|
/**
|
|
@@ -65,6 +71,9 @@ type Derivation<R = unknown, T = unknown, FM extends ObjectValue | null = Object
|
|
|
65
71
|
* HashFns must be registered with the SchemaService via
|
|
66
72
|
* `schema.registerHashFn(hashFn)` before use, keyed by the name
|
|
67
73
|
* assigned to their {@link Type} property.
|
|
74
|
+
*
|
|
75
|
+
* @summary A registered function that computes a stable string identity from an object's cache data, used for `@hash`
|
|
76
|
+
* fields and polymorphic schema-object types.
|
|
68
77
|
*/
|
|
69
78
|
type HashFn<T extends object = object> = {
|
|
70
79
|
/**
|
|
@@ -74,4 +83,4 @@ type HashFn<T extends object = object> = {
|
|
|
74
83
|
} & ((data: T, options: ObjectValue | null, prop: string | null) => string);
|
|
75
84
|
//#endregion
|
|
76
85
|
export { HashFn as n, Transformation as r, Derivation as t };
|
|
77
|
-
//# sourceMappingURL=concepts-
|
|
86
|
+
//# sourceMappingURL=concepts-DzuY5M1K.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concepts-DzuY5M1K.d.ts","names":[],"sources":["../src/types/schema/concepts.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;KA0BY,eAAe,UAAU,QAAQ,OAAO;;;;;EAKlD,UAAU,OAAO,IAAI,SAAS,oBAAoB,QAAQ,uBAAuB;;;;;EAMjF,QAAQ,OAAO,eAAe,SAAS,oBAAoB,QAAQ,uBAAuB;;;;;EAM1F,cAAc,SAAS,oBAAoB,YAAY,cAAc;;;;GAKpE;;;;;;;;;;;;;;;;;KAkBS,WAAW,aAAa,aAAa,WAAW,qBAAqB;;;;GAI9E;MACG,QAAQ,GAAG,SAAS,IAAI,iBAAiB;;;;;;;;;;;;;;;;KAiBnC,OAAO;;;;GAIhB;MACG,MAAM,GAAG,SAAS,oBAAoB"}
|
|
@@ -30,6 +30,8 @@ type SignalRef = unknown;
|
|
|
30
30
|
* scenarios you may also be interested in integrating with the {@link NotificationManager}
|
|
31
31
|
* more directly.
|
|
32
32
|
*
|
|
33
|
+
* @summary The create, consume, notify, and memo hooks a framework or TC39 signals implementation
|
|
34
|
+
* supplies to `setupSignals` to make WarpDrive data reactive.
|
|
33
35
|
* @public
|
|
34
36
|
*/
|
|
35
37
|
interface SignalHooks<T = SignalRef> {
|
|
@@ -90,6 +92,8 @@ interface SignalHooks<T = SignalRef> {
|
|
|
90
92
|
* }
|
|
91
93
|
* ```
|
|
92
94
|
*
|
|
95
|
+
* @summary The options passed to the `setupSignals` callback, including the well-known key WarpDrive
|
|
96
|
+
* uses for an array's contents signal.
|
|
93
97
|
* @public
|
|
94
98
|
*/
|
|
95
99
|
interface HooksOptions {
|
|
@@ -119,6 +123,8 @@ interface HooksOptions {
|
|
|
119
123
|
* See {@link SignalHooks} for the implementation the callback function should
|
|
120
124
|
* return.
|
|
121
125
|
*
|
|
126
|
+
* @summary Registers the signal hooks WarpDrive uses for reactivity, built by a callback that receives
|
|
127
|
+
* `HooksOptions`.
|
|
122
128
|
* @public
|
|
123
129
|
* @param buildConfig - a function that takes options and returns a configuration object
|
|
124
130
|
*/
|
|
@@ -131,4 +137,4 @@ declare function setupSignals<T>(buildConfig: (options: HooksOptions) => SignalH
|
|
|
131
137
|
declare function waitFor<K>(promise: Promise<K>): Promise<K>;
|
|
132
138
|
//#endregion
|
|
133
139
|
export { setupSignals as a, SignalRef as i, HooksOptions as n, waitFor as o, SignalHooks as r, ARRAY_SIGNAL as t };
|
|
134
|
-
//# sourceMappingURL=configure-
|
|
140
|
+
//# sourceMappingURL=configure-CjsojjiI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configure-CjsojjiI.d.ts","names":[],"sources":["../src/signals/reactivity/configure.ts"],"mappings":";cAMa;;;;;;;;KAsCD;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BK,YAAY,IAAI;;;;;;;;;;EAU/B,eAAe,aAAa,yBAAyB;;;;EAIrD,gBAAgB,QAAQ;;;;EAIxB,eAAe,QAAQ;;;;;;;;EAQvB,aAAa,GAAG,aAAa,sBAAsB,UAAU,YAAY;;;;;;;;;;;;EAazE;;;;;EAMA,WAAW,GAAG,SAAS,QAAQ,OAAO,QAAQ;;;;;;;;;;;;;;;;;;;UAoB/B;;;;;;EAMf;;;;;;;;IAQE;;;;;;;;;;;;;;;;;;iBAmBY,aAAa,GAAG,cAAc,SAAS,iBAAiB,YAAY;;;;;;iBAgEpE,QAAQ,GAAG,SAAS,QAAQ,KAAK,QAAQ"}
|
package/dist/configure.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as setupSignals, n as HooksOptions, r as SignalHooks } from "./configure-
|
|
1
|
+
import { a as setupSignals, n as HooksOptions, r as SignalHooks } from "./configure-CjsojjiI.js";
|
|
2
2
|
export { type HooksOptions, type SignalHooks, setupSignals };
|
package/dist/configure.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { s as PersistedResourceKey } from "./identifier-
|
|
2
|
-
import { d as Meta, m as PaginationLinks, u as Links } from "./json-api-raw-
|
|
3
|
-
import { t as ApiError } from "./error-
|
|
1
|
+
import { s as PersistedResourceKey } from "./identifier-B_tK3FUw.js";
|
|
2
|
+
import { d as Meta, m as PaginationLinks, u as Links } from "./json-api-raw-BxzNsCg0.js";
|
|
3
|
+
import { t as ApiError } from "./error-APuUdUGk.js";
|
|
4
4
|
//#region src/types/spec/document.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* This type represents a raw {json:api} document for a meta-only
|
|
7
7
|
* document returned by a request intended to be inserted into the cache.
|
|
8
|
+
*
|
|
9
|
+
* @summary A raw {json:api} document carrying only `meta` and optional `links`, as returned by a request and
|
|
10
|
+
* inserted into the cache.
|
|
8
11
|
*/
|
|
9
12
|
interface ResourceMetaDocument {
|
|
10
13
|
/**
|
|
@@ -25,6 +28,9 @@ interface ResourceMetaDocument {
|
|
|
25
28
|
* returned by a request intended to be inserted into the cache.
|
|
26
29
|
*
|
|
27
30
|
* For the Reactive value returned by a request using the store, use {@link ReactiveDataDocument} instead.
|
|
31
|
+
*
|
|
32
|
+
* @summary A raw {json:api} document whose `data` is a single resource or `null`, as returned by a request and
|
|
33
|
+
* inserted into the cache.
|
|
28
34
|
*/
|
|
29
35
|
interface SingleResourceDataDocument<T = PersistedResourceKey, R = PersistedResourceKey> {
|
|
30
36
|
/**
|
|
@@ -53,6 +59,9 @@ interface SingleResourceDataDocument<T = PersistedResourceKey, R = PersistedReso
|
|
|
53
59
|
* returned by a request intended to be inserted into the cache.
|
|
54
60
|
*
|
|
55
61
|
* For the Reactive value returned by a request using the store, use {@link ReactiveDataDocument} instead.
|
|
62
|
+
*
|
|
63
|
+
* @summary A raw {json:api} document whose `data` is an array of resources, as returned by a request and inserted
|
|
64
|
+
* into the cache.
|
|
56
65
|
*/
|
|
57
66
|
interface CollectionResourceDataDocument<T = PersistedResourceKey> {
|
|
58
67
|
/**
|
|
@@ -85,6 +94,9 @@ interface CollectionResourceDataDocument<T = PersistedResourceKey> {
|
|
|
85
94
|
* - {@link CollectionResourceDataDocument}
|
|
86
95
|
*
|
|
87
96
|
* For the Reactive value returned by a request using the store, use {@link ReactiveDataDocument} instead.
|
|
97
|
+
*
|
|
98
|
+
* @summary Either a single-resource or a collection raw {json:api} data document, as stored in and returned by
|
|
99
|
+
* the cache.
|
|
88
100
|
*/
|
|
89
101
|
type ResourceDataDocument<T = PersistedResourceKey> = SingleResourceDataDocument<T> | CollectionResourceDataDocument<T>;
|
|
90
102
|
/**
|
|
@@ -92,6 +104,9 @@ type ResourceDataDocument<T = PersistedResourceKey> = SingleResourceDataDocument
|
|
|
92
104
|
* the cache may use.
|
|
93
105
|
*
|
|
94
106
|
* For the Reactive value returned by a request using the store, use {@link ReactiveErrorDocument} instead.
|
|
107
|
+
*
|
|
108
|
+
* @summary A raw {json:api} document carrying an `errors` array for a failed request, as stored in and returned
|
|
109
|
+
* by the cache.
|
|
95
110
|
*/
|
|
96
111
|
interface ResourceErrorDocument {
|
|
97
112
|
/**
|
|
@@ -122,8 +137,11 @@ interface ResourceErrorDocument {
|
|
|
122
137
|
* - {@link ResourceErrorDocument}
|
|
123
138
|
*
|
|
124
139
|
* For the Reactive value returned by a request using the store, use {@link ReactiveDocument} instead.
|
|
140
|
+
*
|
|
141
|
+
* @summary Any raw {json:api} document the cache stores and returns: meta-only, single-resource, collection, or
|
|
142
|
+
* error.
|
|
125
143
|
*/
|
|
126
144
|
type ResourceDocument<T = PersistedResourceKey> = ResourceMetaDocument | SingleResourceDataDocument<T> | CollectionResourceDataDocument<T> | ResourceErrorDocument;
|
|
127
145
|
//#endregion
|
|
128
146
|
export { ResourceMetaDocument as a, ResourceErrorDocument as i, ResourceDataDocument as n, SingleResourceDataDocument as o, ResourceDocument as r, CollectionResourceDataDocument as t };
|
|
129
|
-
//# sourceMappingURL=document-
|
|
147
|
+
//# sourceMappingURL=document-Ni8Ns26t.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-Ni8Ns26t.d.ts","names":[],"sources":["../src/types/spec/document.ts"],"mappings":";;;;;;;;;;;UAmBiB;;;;EAIf;;;;EAIA,MAAM;;;;EAIN,QAAQ,QAAQ;;;;;;;;;;;UAYD,2BAA2B,IAAI,sBAAsB,IAAI;;;;EAIxE;;;;EAIA,QAAQ,QAAQ;;;;EAIhB,OAAO;;;;EAIP,MAAM;;;;EAIN,WAAW;;;;;;;;;;;UAYI,+BAA+B,IAAI;;;;EAIlD;;;;EAIA,QAAQ,QAAQ;;;;EAIhB,OAAO;;;;EAIP,MAAM;;;;EAIN,WAAW;;;;;;;;;;;;;;;KAgBD,qBAAqB,IAAI,wBACjC,2BAA2B,KAC3B,+BAA+B;;;;;;;;;;UAWlB;;;;EAIf;;;;EAIA,QAAQ,QAAQ;;;;EAIhB,OAAO;;;;EAIP,QAAQ;;;;;;;;;;;;;;;;;KAkBE,iBAAiB,IAAI,wBAC7B,uBACA,2BAA2B,KAC3B,+BAA+B,KAC/B"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { c as Link, d as Meta } from "./json-api-raw-
|
|
1
|
+
import { c as Link, d as Meta } from "./json-api-raw-BxzNsCg0.js";
|
|
2
2
|
//#region src/types/spec/error.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Represents a single error in the `errors` member of a {json:api} document.
|
|
5
5
|
*
|
|
6
6
|
* [{json:api} Spec](https://jsonapi.org/format/#error-objects)
|
|
7
7
|
*
|
|
8
|
+
* @summary One {json:api} error object, with optional `status`, `code`, `title`, `detail`, `source`, `links`, and
|
|
9
|
+
* `meta`, found in a document's `errors` array.
|
|
8
10
|
* @example
|
|
9
11
|
* ```json
|
|
10
12
|
* {
|
|
@@ -78,4 +80,4 @@ interface ApiError {
|
|
|
78
80
|
}
|
|
79
81
|
//#endregion
|
|
80
82
|
export { ApiError as t };
|
|
81
|
-
//# sourceMappingURL=error-
|
|
83
|
+
//# sourceMappingURL=error-APuUdUGk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-APuUdUGk.d.ts","names":[],"sources":["../src/types/spec/error.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UAwBiB;;;;EAIf;;;;;EAKA;;;;EAIA;;;;EAIA;;;;IAIE,QAAQ;;;;IAIR,OAAO;;;;;EAKT;;;;EAIA;;;;;;;;EAQA;;;;IAIE;;;;IAIA;;;;IAIA;;;;;EAKF,OAAO"}
|