@warp-drive-mirror/core 5.10.0-alpha.12 → 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.
Files changed (267) hide show
  1. package/README.md +32 -0
  2. package/dist/{-private-CjK1Dmuh.js → -private-BpyvBYFj.js} +508 -144
  3. package/dist/-private-BpyvBYFj.js.map +1 -0
  4. package/dist/{unpkg/dev/-private-Dtj8O5W7.js → -private-CmNOwhK0.js} +3 -1
  5. package/dist/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
  6. package/dist/{aliases-BWYW5EhX.d.ts → aliases-BQmAxXmb.d.ts} +4 -1
  7. package/dist/aliases-BQmAxXmb.d.ts.map +1 -0
  8. package/dist/{change-C7kqv2kW.d.ts → change-DClXcHvr.d.ts} +4 -2
  9. package/dist/change-DClXcHvr.d.ts.map +1 -0
  10. package/dist/{concepts-DFldVwEM.d.ts → concepts-DzuY5M1K.d.ts} +14 -5
  11. package/dist/concepts-DzuY5M1K.d.ts.map +1 -0
  12. package/dist/{configure-B_F639tN.d.ts → configure-CjsojjiI.d.ts} +7 -1
  13. package/dist/configure-CjsojjiI.d.ts.map +1 -0
  14. package/dist/configure.d.ts +1 -1
  15. package/dist/configure.js +1 -1
  16. package/dist/{document-Ca4ZZBd9.d.ts → document-Ni8Ns26t.d.ts} +22 -4
  17. package/dist/document-Ni8Ns26t.d.ts.map +1 -0
  18. package/dist/{error-0uD6GkNX.d.ts → error-APuUdUGk.d.ts} +4 -2
  19. package/dist/error-APuUdUGk.d.ts.map +1 -0
  20. package/dist/{fields-CnlWuUd5.d.ts → fields-D6173Q_a.d.ts} +126 -5
  21. package/dist/fields-D6173Q_a.d.ts.map +1 -0
  22. package/dist/graph/-private.d.ts +1 -1
  23. package/dist/graph/-private.js +2 -0
  24. package/dist/graph/-private.js.map +1 -1
  25. package/dist/{graph-DLqYXP2z.d.ts → graph-rjTyJ-gd.d.ts} +25 -5
  26. package/dist/graph-rjTyJ-gd.d.ts.map +1 -0
  27. package/dist/{identifier-DQnqOSJK.d.ts → identifier-B_tK3FUw.d.ts} +29 -4
  28. package/dist/identifier-B_tK3FUw.d.ts.map +1 -0
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/{internal-DBnp5uP6.d.ts → internal-CgOlgOt3.d.ts} +496 -31
  32. package/dist/internal-CgOlgOt3.d.ts.map +1 -0
  33. package/dist/{json-api-raw-C5APJHHB.d.ts → json-api-raw-BxzNsCg0.d.ts} +44 -2
  34. package/dist/json-api-raw-BxzNsCg0.d.ts.map +1 -0
  35. package/dist/{mutations-CqtoGB4t.d.ts → mutations-C81gbYjB.d.ts} +18 -2
  36. package/dist/mutations-C81gbYjB.d.ts.map +1 -0
  37. package/dist/{operations-D1qA6r0_.d.ts → operations-B4pQM7D6.d.ts} +39 -5
  38. package/dist/operations-B4pQM7D6.d.ts.map +1 -0
  39. package/dist/{params-DrEx3bf8.d.ts → params-dbHiSOMF.d.ts} +11 -1
  40. package/dist/params-dbHiSOMF.d.ts.map +1 -0
  41. package/dist/{raw-D5hnjiq7.d.ts → raw-CiC64nCY.d.ts} +10 -1
  42. package/dist/raw-CiC64nCY.d.ts.map +1 -0
  43. package/dist/reactive/-private.d.ts +1 -1
  44. package/dist/reactive/-private.js +1 -1
  45. package/dist/reactive.d.ts +2 -2
  46. package/dist/reactive.js +3 -3
  47. package/dist/{record-D3QQcaIR.d.ts → record-DDxPtzcY.d.ts} +22 -2
  48. package/dist/record-DDxPtzcY.d.ts.map +1 -0
  49. package/dist/{relationship-CmHzMPKf.d.ts → relationship-BlGIXgj4.d.ts} +10 -3
  50. package/dist/relationship-BlGIXgj4.d.ts.map +1 -0
  51. package/dist/{request-Di274pQz.js → request-MiwUbGdT.js} +26 -1
  52. package/dist/request-MiwUbGdT.js.map +1 -0
  53. package/dist/request.d.ts +1 -1
  54. package/dist/request.js +1 -1
  55. package/dist/signals/-leaked.d.ts +86 -4
  56. package/dist/signals/-leaked.d.ts.map +1 -1
  57. package/dist/signals/-leaked.js +1 -1
  58. package/dist/{src-B9WcEdYg.js → src-DlNeupkA.js} +221 -20
  59. package/dist/src-DlNeupkA.js.map +1 -0
  60. package/dist/store/-private.d.ts +1 -1
  61. package/dist/store/-private.js +1 -1
  62. package/dist/{store-DNF9Rgoh.js → store-lcyaxrpj.js} +16 -1
  63. package/dist/store-lcyaxrpj.js.map +1 -0
  64. package/dist/store.d.ts +1 -1
  65. package/dist/store.js +1 -1
  66. package/dist/{symbols-DjRDCeX0.d.ts → symbols-Cu9un1NR.d.ts} +10 -1
  67. package/dist/symbols-Cu9un1NR.d.ts.map +1 -0
  68. package/dist/types/-private.js +1 -1
  69. package/dist/types/cache/aliases.d.ts +1 -1
  70. package/dist/types/cache/change.d.ts +1 -1
  71. package/dist/types/cache/mutations.d.ts +1 -1
  72. package/dist/types/cache/operations.d.ts +1 -1
  73. package/dist/types/cache/relationship.d.ts +1 -1
  74. package/dist/types/cache.d.ts +1 -1
  75. package/dist/types/graph.d.ts +1 -1
  76. package/dist/types/identifier.d.ts +1 -1
  77. package/dist/types/identifier.js +33 -3
  78. package/dist/types/identifier.js.map +1 -1
  79. package/dist/types/json/raw.d.ts +1 -1
  80. package/dist/types/params.d.ts +1 -1
  81. package/dist/types/record.d.ts +1 -1
  82. package/dist/types/record.js +25 -0
  83. package/dist/types/record.js.map +1 -1
  84. package/dist/types/request.d.ts +1 -1
  85. package/dist/types/request.js +80 -0
  86. package/dist/types/request.js.map +1 -1
  87. package/dist/types/runtime.d.ts.map +1 -1
  88. package/dist/types/schema/concepts.d.ts +1 -1
  89. package/dist/types/schema/fields.d.ts +1 -1
  90. package/dist/types/schema/fields.js +132 -3
  91. package/dist/types/schema/fields.js.map +1 -1
  92. package/dist/types/schema/schema-service.d.ts +1 -1
  93. package/dist/types/spec/document.d.ts +1 -1
  94. package/dist/types/spec/error.d.ts +1 -1
  95. package/dist/types/spec/json-api-raw.d.ts +1 -1
  96. package/dist/types/symbols.d.ts +1 -1
  97. package/dist/types/symbols.js +14 -0
  98. package/dist/types/symbols.js.map +1 -1
  99. package/dist/types/utils.d.ts +1 -1
  100. package/dist/types.d.ts +2 -2
  101. package/dist/unpkg/{dev-deprecated/-private-DrQgwtNS.js → dev/-private-BH4O810v.js} +508 -144
  102. package/dist/unpkg/dev/-private-BH4O810v.js.map +1 -0
  103. package/dist/{-private-Dtj8O5W7.js → unpkg/dev/-private-CmNOwhK0.js} +3 -1
  104. package/dist/unpkg/dev/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
  105. package/dist/unpkg/dev/configure.js +1 -1
  106. package/dist/unpkg/dev/graph/-private.js +2 -0
  107. package/dist/unpkg/dev/graph/-private.js.map +1 -1
  108. package/dist/unpkg/dev/index.js +1 -1
  109. package/dist/unpkg/dev/reactive/-private.js +1 -1
  110. package/dist/unpkg/dev/reactive.js +3 -3
  111. package/dist/unpkg/{dev-deprecated/request-nAaeDlS9.js → dev/request-Fe-vpe-u.js} +26 -1
  112. package/dist/unpkg/dev/request-Fe-vpe-u.js.map +1 -0
  113. package/dist/unpkg/dev/request.js +1 -1
  114. package/dist/unpkg/dev/signals/-leaked.js +1 -1
  115. package/dist/unpkg/dev/{src-CkkrRFE1.js → src-FSk0Z_Lp.js} +212 -13
  116. package/dist/unpkg/dev/src-FSk0Z_Lp.js.map +1 -0
  117. package/dist/unpkg/dev/store/-private.js +1 -1
  118. package/dist/unpkg/dev/{store-BIFNM_fB.js → store-BUV8Pfi7.js} +16 -1
  119. package/dist/unpkg/dev/store-BUV8Pfi7.js.map +1 -0
  120. package/dist/unpkg/dev/store.js +1 -1
  121. package/dist/unpkg/dev/types/-private.js +1 -1
  122. package/dist/unpkg/dev/types/identifier.js +33 -3
  123. package/dist/unpkg/dev/types/identifier.js.map +1 -1
  124. package/dist/unpkg/dev/types/record.js +25 -0
  125. package/dist/unpkg/dev/types/record.js.map +1 -1
  126. package/dist/unpkg/dev/types/request.js +80 -0
  127. package/dist/unpkg/dev/types/request.js.map +1 -1
  128. package/dist/unpkg/dev/types/schema/fields.js +132 -3
  129. package/dist/unpkg/dev/types/schema/fields.js.map +1 -1
  130. package/dist/unpkg/dev/types/symbols.js +14 -0
  131. package/dist/unpkg/dev/types/symbols.js.map +1 -1
  132. package/dist/unpkg/{dev/-private-DrQgwtNS.js → dev-deprecated/-private-BH4O810v.js} +508 -144
  133. package/dist/unpkg/dev-deprecated/-private-BH4O810v.js.map +1 -0
  134. package/dist/unpkg/{prod-deprecated/-private-Dtj8O5W7.js → dev-deprecated/-private-CmNOwhK0.js} +3 -1
  135. package/dist/unpkg/dev-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
  136. package/dist/unpkg/dev-deprecated/configure.js +1 -1
  137. package/dist/unpkg/dev-deprecated/graph/-private.js +2 -0
  138. package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
  139. package/dist/unpkg/dev-deprecated/index.js +1 -1
  140. package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
  141. package/dist/unpkg/dev-deprecated/reactive.js +3 -3
  142. package/dist/unpkg/{dev/request-nAaeDlS9.js → dev-deprecated/request-Fe-vpe-u.js} +26 -1
  143. package/dist/unpkg/dev-deprecated/request-Fe-vpe-u.js.map +1 -0
  144. package/dist/unpkg/dev-deprecated/request.js +1 -1
  145. package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
  146. package/dist/unpkg/dev-deprecated/{src-oz6OaQXu.js → src-Isk_Je7q.js} +214 -13
  147. package/dist/unpkg/dev-deprecated/src-Isk_Je7q.js.map +1 -0
  148. package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
  149. package/dist/unpkg/dev-deprecated/{store-X1WN7P_O.js → store-CCZBSe0p.js} +16 -1
  150. package/dist/unpkg/dev-deprecated/store-CCZBSe0p.js.map +1 -0
  151. package/dist/unpkg/dev-deprecated/store.js +1 -1
  152. package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
  153. package/dist/unpkg/dev-deprecated/types/identifier.js +33 -3
  154. package/dist/unpkg/dev-deprecated/types/identifier.js.map +1 -1
  155. package/dist/unpkg/dev-deprecated/types/record.js +25 -0
  156. package/dist/unpkg/dev-deprecated/types/record.js.map +1 -1
  157. package/dist/unpkg/dev-deprecated/types/request.js +80 -0
  158. package/dist/unpkg/dev-deprecated/types/request.js.map +1 -1
  159. package/dist/unpkg/dev-deprecated/types/schema/fields.js +132 -3
  160. package/dist/unpkg/dev-deprecated/types/schema/fields.js.map +1 -1
  161. package/dist/unpkg/dev-deprecated/types/symbols.js +14 -0
  162. package/dist/unpkg/dev-deprecated/types/symbols.js.map +1 -1
  163. package/dist/unpkg/prod/-private-CmNOwhK0.js +24 -0
  164. package/dist/unpkg/prod/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
  165. package/dist/unpkg/prod/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
  166. package/dist/unpkg/prod/-private-DKVDMUfT.js.map +1 -0
  167. package/dist/unpkg/prod/configure.js +1 -1
  168. package/dist/unpkg/prod/graph/-private.js +2 -0
  169. package/dist/unpkg/prod/graph/-private.js.map +1 -1
  170. package/dist/unpkg/prod/index.js +1 -1
  171. package/dist/unpkg/prod/reactive/-private.js +1 -1
  172. package/dist/unpkg/prod/reactive.js +3 -3
  173. package/dist/unpkg/prod/{request-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
  174. package/dist/unpkg/prod/request-ndw2Fy91.js.map +1 -0
  175. package/dist/unpkg/prod/request.js +1 -1
  176. package/dist/unpkg/prod/signals/-leaked.js +1 -1
  177. package/dist/unpkg/prod/{src-BGKCOL5L.js → src-CoSpuocQ.js} +212 -13
  178. package/dist/unpkg/prod/src-CoSpuocQ.js.map +1 -0
  179. package/dist/unpkg/prod/store/-private.js +1 -1
  180. package/dist/unpkg/{prod-deprecated/store-BWhmb7Ob.js → prod/store-CQOsqdST.js} +16 -1
  181. package/dist/unpkg/prod/store-CQOsqdST.js.map +1 -0
  182. package/dist/unpkg/prod/store.js +1 -1
  183. package/dist/unpkg/prod/types/-private.js +1 -1
  184. package/dist/unpkg/prod/types/identifier.js +33 -3
  185. package/dist/unpkg/prod/types/identifier.js.map +1 -1
  186. package/dist/unpkg/prod/types/record.js +25 -0
  187. package/dist/unpkg/prod/types/record.js.map +1 -1
  188. package/dist/unpkg/prod/types/request.js +80 -0
  189. package/dist/unpkg/prod/types/request.js.map +1 -1
  190. package/dist/unpkg/prod/types/schema/fields.js +132 -3
  191. package/dist/unpkg/prod/types/schema/fields.js.map +1 -1
  192. package/dist/unpkg/prod/types/symbols.js +14 -0
  193. package/dist/unpkg/prod/types/symbols.js.map +1 -1
  194. package/dist/unpkg/{dev-deprecated/-private-Dtj8O5W7.js → prod-deprecated/-private-CmNOwhK0.js} +3 -1
  195. package/dist/unpkg/prod-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
  196. package/dist/unpkg/prod-deprecated/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
  197. package/dist/unpkg/prod-deprecated/-private-DKVDMUfT.js.map +1 -0
  198. package/dist/unpkg/prod-deprecated/configure.js +1 -1
  199. package/dist/unpkg/prod-deprecated/graph/-private.js +2 -0
  200. package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
  201. package/dist/unpkg/prod-deprecated/index.js +1 -1
  202. package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
  203. package/dist/unpkg/prod-deprecated/reactive.js +3 -3
  204. package/dist/unpkg/prod-deprecated/{request-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
  205. package/dist/unpkg/prod-deprecated/request-ndw2Fy91.js.map +1 -0
  206. package/dist/unpkg/prod-deprecated/request.js +1 -1
  207. package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -1
  208. package/dist/unpkg/prod-deprecated/{src-CGypdIsf.js → src-FK_rMde5.js} +214 -13
  209. package/dist/unpkg/prod-deprecated/src-FK_rMde5.js.map +1 -0
  210. package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
  211. package/dist/unpkg/{prod/store-BWhmb7Ob.js → prod-deprecated/store-CQOsqdST.js} +16 -1
  212. package/dist/unpkg/prod-deprecated/store-CQOsqdST.js.map +1 -0
  213. package/dist/unpkg/prod-deprecated/store.js +1 -1
  214. package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
  215. package/dist/unpkg/prod-deprecated/types/identifier.js +33 -3
  216. package/dist/unpkg/prod-deprecated/types/identifier.js.map +1 -1
  217. package/dist/unpkg/prod-deprecated/types/record.js +25 -0
  218. package/dist/unpkg/prod-deprecated/types/record.js.map +1 -1
  219. package/dist/unpkg/prod-deprecated/types/request.js +80 -0
  220. package/dist/unpkg/prod-deprecated/types/request.js.map +1 -1
  221. package/dist/unpkg/prod-deprecated/types/schema/fields.js +132 -3
  222. package/dist/unpkg/prod-deprecated/types/schema/fields.js.map +1 -1
  223. package/dist/unpkg/prod-deprecated/types/symbols.js +14 -0
  224. package/dist/unpkg/prod-deprecated/types/symbols.js.map +1 -1
  225. package/dist/{utils-BtURiy8l.d.ts → utils-CNmQoKm8.d.ts} +8 -1
  226. package/dist/utils-CNmQoKm8.d.ts.map +1 -0
  227. package/package.json +5 -5
  228. package/dist/-private-CjK1Dmuh.js.map +0 -1
  229. package/dist/aliases-BWYW5EhX.d.ts.map +0 -1
  230. package/dist/change-C7kqv2kW.d.ts.map +0 -1
  231. package/dist/concepts-DFldVwEM.d.ts.map +0 -1
  232. package/dist/configure-B_F639tN.d.ts.map +0 -1
  233. package/dist/document-Ca4ZZBd9.d.ts.map +0 -1
  234. package/dist/error-0uD6GkNX.d.ts.map +0 -1
  235. package/dist/fields-CnlWuUd5.d.ts.map +0 -1
  236. package/dist/graph-DLqYXP2z.d.ts.map +0 -1
  237. package/dist/identifier-DQnqOSJK.d.ts.map +0 -1
  238. package/dist/internal-DBnp5uP6.d.ts.map +0 -1
  239. package/dist/json-api-raw-C5APJHHB.d.ts.map +0 -1
  240. package/dist/mutations-CqtoGB4t.d.ts.map +0 -1
  241. package/dist/operations-D1qA6r0_.d.ts.map +0 -1
  242. package/dist/params-DrEx3bf8.d.ts.map +0 -1
  243. package/dist/raw-D5hnjiq7.d.ts.map +0 -1
  244. package/dist/record-D3QQcaIR.d.ts.map +0 -1
  245. package/dist/relationship-CmHzMPKf.d.ts.map +0 -1
  246. package/dist/request-Di274pQz.js.map +0 -1
  247. package/dist/src-B9WcEdYg.js.map +0 -1
  248. package/dist/store-DNF9Rgoh.js.map +0 -1
  249. package/dist/symbols-DjRDCeX0.d.ts.map +0 -1
  250. package/dist/unpkg/dev/-private-DrQgwtNS.js.map +0 -1
  251. package/dist/unpkg/dev/request-nAaeDlS9.js.map +0 -1
  252. package/dist/unpkg/dev/src-CkkrRFE1.js.map +0 -1
  253. package/dist/unpkg/dev/store-BIFNM_fB.js.map +0 -1
  254. package/dist/unpkg/dev-deprecated/-private-DrQgwtNS.js.map +0 -1
  255. package/dist/unpkg/dev-deprecated/request-nAaeDlS9.js.map +0 -1
  256. package/dist/unpkg/dev-deprecated/src-oz6OaQXu.js.map +0 -1
  257. package/dist/unpkg/dev-deprecated/store-X1WN7P_O.js.map +0 -1
  258. package/dist/unpkg/prod/-private-Dg1vsF-H.js.map +0 -1
  259. package/dist/unpkg/prod/-private-Dtj8O5W7.js +0 -22
  260. package/dist/unpkg/prod/request-DK7nNaAf.js.map +0 -1
  261. package/dist/unpkg/prod/src-BGKCOL5L.js.map +0 -1
  262. package/dist/unpkg/prod/store-BWhmb7Ob.js.map +0 -1
  263. package/dist/unpkg/prod-deprecated/-private-Dg1vsF-H.js.map +0 -1
  264. package/dist/unpkg/prod-deprecated/request-DK7nNaAf.js.map +0 -1
  265. package/dist/unpkg/prod-deprecated/src-CGypdIsf.js.map +0 -1
  266. package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +0 -1
  267. package/dist/utils-BtURiy8l.d.ts.map +0 -1
@@ -1,14 +1,14 @@
1
1
  import { getOrSetGlobal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient } from "./types/-private.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-CjK1Dmuh.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-BpyvBYFj.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-Di274pQz.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-MiwUbGdT.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-Dtj8O5W7.js";
7
+ import { a as SOURCE, i as Destroy, n as Commit, r as Context, t as Checkout } from "./-private-CmNOwhK0.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-DNF9Rgoh.js";
11
+ import { t as DefaultCachePolicy } from "./store-lcyaxrpj.js";
12
12
  import { dependencySatisfies, getGlobalConfig, importSync, macroCondition } from "@embroider/macros";
13
13
  import { deprecate, warn } from "@ember/debug";
14
14
 
@@ -22,10 +22,15 @@ function urlFromLink(link) {
22
22
  * returned by `Cache.put` or `Cache.peek`, converting ResourceKeys into
23
23
  * ReactiveResource instances.
24
24
  *
25
+ * The [Using The Response](/guides/the-manual/requests/using-the-response) guide
26
+ * shows when a request's content is a ReactiveDocument.
27
+ *
25
28
  * It is not directly instantiated by the user, and its properties should not
26
29
  * be directly modified. Whether individual properties are mutable or not is
27
30
  * determined by the record instance itself.
28
31
  *
32
+ * @summary The reactive wrapper around a request's response document that exposes its data or errors
33
+ * as live records, plus meta, links, and pagination helpers.
29
34
  * @public
30
35
  */
31
36
  const ReactiveDocumentProto = {
@@ -671,6 +676,8 @@ implement this hook.
671
676
 
672
677
  ⚠️ Caution: Requests that do not have a `method` assigned are assumed to be `GET`
673
678
 
679
+ @summary Overrides how the store generates `lid` cache keys for resources and documents; must be set
680
+ before the store is created.
674
681
  @public
675
682
  */
676
683
  function setIdentifierGenerationMethod(method) {
@@ -705,6 +712,8 @@ prior to this `UpdateMethod` being called; however, calls to the parent method
705
712
  `updateRecordIdentifier` that attempt to change the `id` or calling update
706
713
  without providing an `id` when one is missing will throw an error.
707
714
 
715
+ @summary Registers a callback run when an existing resource key receives new data, for updating your
716
+ own secondary lookup tables.
708
717
  @public
709
718
  */
710
719
  function setIdentifierUpdateMethod(method) {
@@ -722,6 +731,8 @@ import { setIdentifierForgetMethod } from '@warp-drive-mirror/core';
722
731
  Takes method which can expect to receive an existing `Identifier` that should be eliminated
723
732
  from any secondary lookup tables or caches that the user has populated for it.
724
733
 
734
+ @summary Registers a callback run when the store releases a resource key, for cleaning up your own
735
+ lookup tables.
725
736
  @public
726
737
  */
727
738
  function setIdentifierForgetMethod(method) {
@@ -741,6 +752,8 @@ Takes a method which can expect to be called when the parent application is dest
741
752
  If you have properly used a WeakMap to encapsulate the state of your customization
742
753
  to the application instance, you may not need to implement the `resetMethod`.
743
754
 
755
+ @summary Registers a callback run when the store's key cache is torn down, for resetting any custom
756
+ key-generation state.
744
757
  @public
745
758
  */
746
759
  function setIdentifierResetMethod(method) {
@@ -759,6 +772,8 @@ This configuration MUST occur prior to the store instance being created.
759
772
  import { setKeyInfoForResource } from '@warp-drive-mirror/core';
760
773
  ```
761
774
 
775
+ @summary Overrides how the store derives the `type` and `id` of a new `ResourceKey` from resource data;
776
+ must be set before the store is created.
762
777
  @public
763
778
  */
764
779
  function setKeyInfoForResource(method) {
@@ -1374,6 +1389,7 @@ const identifier = recordIdentifierFor(record);
1374
1389
  const { id, type, lid } = identifier;
1375
1390
  ```
1376
1391
 
1392
+ @summary Returns the stable `ResourceKey` (type, id, and lid) the store assigned to a record instance.
1377
1393
  @public
1378
1394
  @param record a record instance previously obstained from the store.
1379
1395
  */
@@ -2051,9 +2067,15 @@ var CacheManager = class {
2051
2067
  //#region src/store/-private/managers/notification-manager.ts
2052
2068
  /**
2053
2069
  * The kinds of change notifications the {@link NotificationManager} can emit for a resource.
2070
+ *
2071
+ * @summary The lifecycle notification kinds sent to resource subscribers: `added`, `removed`, `updated`,
2072
+ * or `state`.
2054
2073
  */
2055
2074
  /**
2056
2075
  * The kinds of change notifications the {@link NotificationManager} can emit for a request document.
2076
+ *
2077
+ * @summary The notification kinds sent to request document subscribers, such as `updated` or
2078
+ * `invalidated`.
2057
2079
  */
2058
2080
  function isCacheOperationValue(value) {
2059
2081
  return value === "added" || value === "state" || value === "updated" || value === "removed" || value === "invalidated";
@@ -2061,6 +2083,9 @@ function isCacheOperationValue(value) {
2061
2083
  /**
2062
2084
  * The full set of notification kinds the {@link NotificationManager} can emit for a resource,
2063
2085
  * including both {@link CacheOperation}s and finer-grained field-level change notifications.
2086
+ *
2087
+ * @summary Every notification kind a resource subscriber can receive, from lifecycle operations to
2088
+ * `attributes`, `relationships`, `errors`, `meta`, and `identity` changes.
2064
2089
  */
2065
2090
  /**
2066
2091
  * The shape accepted by {@link NotificationManager.notify} and
@@ -2068,6 +2093,8 @@ function isCacheOperationValue(value) {
2068
2093
  * the `'attributes'` or `'relationships'` namespaces in a single call
2069
2094
  * instead of once per key.
2070
2095
  *
2096
+ * @summary A set of field names passed to `notify` or `notifyChange` to report many `attributes` or
2097
+ * `relationships` changes in one call.
2071
2098
  * @since 5.9.0
2072
2099
  * @public
2073
2100
  */
@@ -2102,6 +2129,8 @@ function isCacheOperationValue(value) {
2102
2129
  * `DocumentCacheOperation` values) are never filtered by channel since they
2103
2130
  * have no local/remote duality.
2104
2131
  *
2132
+ * @summary Scopes an `attributes` or `relationships` notification to a resource's local (editable) or
2133
+ * remote (persisted) view so only matching subscribers hear it.
2105
2134
  * @public
2106
2135
  */
2107
2136
  /**
@@ -2240,6 +2269,8 @@ function _unsubscribe(token, cache) {
2240
2269
  * This Feature is what allows WarpDrive to create subscriptions that
2241
2270
  * work with any framework or change-notification system.
2242
2271
  *
2272
+ * @summary The store service that lets code subscribe to and batch-deliver change notifications for
2273
+ * cached resources and request documents.
2243
2274
  * @hideconstructor
2244
2275
  * @public
2245
2276
  */
@@ -2674,10 +2705,15 @@ const MUTABLE_PROPS = [
2674
2705
  * as the base for relationship and legacy record-array types such as
2675
2706
  * {@link LegacyLiveArray}, {@link LegacyQueryArray} and {@link LegacyManyArray}.
2676
2707
  *
2708
+ * The [Key Terminology](/guides/the-manual/caching/key-terms#resources) guide explains
2709
+ * how it relates to resources.
2710
+ *
2677
2711
  * Behaves like a native Array: `Array.isArray(arr)` and `arr instanceof Array`
2678
2712
  * both report `true`. The array stays in sync with the cache, updating
2679
2713
  * reactively as the underlying {@link ResourceKey}s change.
2680
2714
  *
2715
+ * @summary Native-Array-compatible reactive list of records backed by cache keys, returned for collection responses
2716
+ * and underlying relationship and legacy record arrays.
2681
2717
  * @public
2682
2718
  */
2683
2719
  /**
@@ -2998,6 +3034,8 @@ function createRequestCollection(config) {
2998
3034
  * and "bmw" will have populated LiveArrays, but the LiveArray for "car"
2999
3035
  * would be empty.
3000
3036
  *
3037
+ * @summary Legacy reactive array of every record of one type in the store, returned by `store.peekAll` and
3038
+ * `store.findAll`.
3001
3039
  * @legacy we recommend againt using LiveArrays. Use {@link Store.request} instead
3002
3040
  */
3003
3041
  /**
@@ -3113,6 +3151,8 @@ function _updateLiveArray() {
3113
3151
  * from the cache, but it does remove the array as well as the overhead it requires
3114
3152
  * from the store for book-keeping.
3115
3153
  *
3154
+ * @summary Legacy immutable reactive array of the primary records returned by `store.query`, refreshable with
3155
+ * `update()` and released with `destroy()`.
3116
3156
  * @legacy we recommend againt using QueryArrays. Use {@link Store.request} instead
3117
3157
  */
3118
3158
  /**
@@ -3935,6 +3975,10 @@ const app = new EmberApp(defaults, {
3935
3975
  * The `Store` is the central piece of the ***Warp*Drive** experience. It connects
3936
3976
  * requests for data with schemas, caching and reactivity.
3937
3977
  *
3978
+ * The [Setup](/guides/configuration/#configure-the-store) guide shows how to configure
3979
+ * one, and [Making Requests](/guides/the-manual/requests/) shows how to request data
3980
+ * through it.
3981
+ *
3938
3982
  * While it's easy to use ***just*** ***Warp*Drive**'s request management, most projects will find they
3939
3983
  * require far more than basic fetch management. For this reason it's often best to start with a `Store`
3940
3984
  * even when you aren't sure yet.
@@ -3942,6 +3986,7 @@ const app = new EmberApp(defaults, {
3942
3986
  * Most projects will only have a single `Store`, though using multiple distinct stores
3943
3987
  * is possible.
3944
3988
  *
3989
+ * @summary Central coordinator that connects requests for data with schemas, the cache and reactivity.
3945
3990
  * @public
3946
3991
  * @hideconstructor
3947
3992
  */
@@ -4156,12 +4201,25 @@ var Store = class extends BaseClass {
4156
4201
  }
4157
4202
  }
4158
4203
  /**
4159
- * ::: tip 💡 For a more complete overview see the [Request Guide](/guides/2-requests/1-overview)
4204
+ * ::: tip 💡 For a more complete overview see the [Request Guide](/guides/the-manual/requests/)
4160
4205
  * :::
4161
4206
  *
4162
4207
  * Issue a request via the configured {@link RequestManager},
4163
4208
  * inserting the response into the {@link Store.cache | cache} and handing
4164
- * back a {@link Future} which resolves to a {@link ReactiveDocument | ReactiveDocument}
4209
+ * back a {@link Future} which resolves to a {@link ReactiveDocument | ReactiveDocument}.
4210
+ * Use `store.request` for anything the Store's cache should own, which is nearly all app
4211
+ * code; reach for {@link RequestManager.request | requestManager.request} directly only when
4212
+ * there is no `Store` involved, or you specifically want the unprocessed
4213
+ * {@link StructuredDocument}.
4214
+ *
4215
+ * #### Building Requests
4216
+ *
4217
+ * `requestConfig` can be written by hand, but for anything reused more than once prefer a
4218
+ * request builder — a plain function that returns the right shape for `store.request`. This
4219
+ * repo ships builders for common operations (`findRecord`, `query`, `createRecord`, and more)
4220
+ * for {json:api}, REST, and ActiveRecord-style APIs in `@warp-drive-mirror/utilities`; each builder's
4221
+ * return value also carries its own response type, so `RT` below is inferred automatically
4222
+ * instead of being written by hand. See [Builders](/guides/the-manual/requests/builders.md).
4165
4223
  *
4166
4224
  * #### Request Cache Keys
4167
4225
  *
@@ -4206,6 +4264,29 @@ var Store = class extends BaseClass {
4206
4264
  * is that `store.request` will convert the response into a {@link ReactiveDocument}
4207
4265
  * containing {@link Store.instantiateRecord | ReactiveResources}.
4208
4266
  *
4267
+ * A {@link ReactiveDocument} is either a {@link ReactiveDataDocument} (`content.data` holds
4268
+ * the resource(s)) or a {@link ReactiveErrorDocument} (`content.errors` holds the API's error
4269
+ * objects), depending on whether the `Future` resolves or rejects; both carry the response's
4270
+ * `content.meta`. Read either state reactively with {@link getRequestState} or the
4271
+ * `<Request />` component instead of always `await`-ing the `Future` directly — see
4272
+ * [Using the Response](/guides/the-manual/requests/using-the-response.md).
4273
+ *
4274
+ * #### Typing The Response
4275
+ *
4276
+ * `request<RT>` accepts an explicit type argument, but the more common path is to let it be
4277
+ * inferred: build the request with {@link withResponseType} (or {@link withReactiveResponse}
4278
+ * for the common reactive-document case), or with a builder from `@warp-drive-mirror/utilities` as
4279
+ * described above, and `RT` is inferred from the request object itself. See
4280
+ * [Typing Requests](/guides/the-manual/requests/typing-requests.md) for the full mechanism.
4281
+ *
4282
+ * @example
4283
+ * ```ts
4284
+ * import { findRecord } from '@warp-drive-mirror/utilities/json-api';
4285
+ *
4286
+ * const { content } = await store.request(findRecord('user', '1'));
4287
+ * content.data; // ReactiveResource, typed from the builder's response type
4288
+ * ```
4289
+ *
4209
4290
  * @public
4210
4291
  */
4211
4292
  request(requestConfig) {
@@ -4844,6 +4925,8 @@ function _convertPreloadRelationshipToJSON(value, type) {
4844
4925
  * for @warp-drive-mirror/legacy/model or when wrapping schema for legacy
4845
4926
  * Adapters/Serializers.
4846
4927
  *
4928
+ * @summary Legacy shape of a Model class's static schema API (fields, attributes, relationships, iterators) used
4929
+ * by the legacy schema service and Adapters/Serializers.
4847
4930
  */
4848
4931
  function _resourceIsFullDeleted(identifier, cache) {
4849
4932
  return cache.isDeletionCommitted(identifier) || cache.isNew(identifier) && cache.isDeleted(identifier);
@@ -5082,7 +5165,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5082
5165
  id: "warp-drive:deprecate-legacy-request-methods",
5083
5166
  until: "6.0",
5084
5167
  for: "@warp-drive-mirror/core",
5085
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5168
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5086
5169
  since: {
5087
5170
  enabled: "5.7",
5088
5171
  available: "5.7"
@@ -5127,7 +5210,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5127
5210
  id: "warp-drive:deprecate-legacy-request-methods",
5128
5211
  until: "6.0",
5129
5212
  for: "@warp-drive-mirror/core",
5130
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5213
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5131
5214
  since: {
5132
5215
  enabled: "5.7",
5133
5216
  available: "5.7"
@@ -5156,7 +5239,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5156
5239
  id: "warp-drive:deprecate-legacy-request-methods",
5157
5240
  until: "6.0",
5158
5241
  for: "@warp-drive-mirror/core",
5159
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5242
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5160
5243
  since: {
5161
5244
  enabled: "5.7",
5162
5245
  available: "5.7"
@@ -5189,7 +5272,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5189
5272
  id: "warp-drive:deprecate-legacy-request-methods",
5190
5273
  until: "6.0",
5191
5274
  for: "@warp-drive-mirror/core",
5192
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5275
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5193
5276
  since: {
5194
5277
  enabled: "5.7",
5195
5278
  available: "5.7"
@@ -5222,7 +5305,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5222
5305
  id: "warp-drive:deprecate-legacy-request-methods",
5223
5306
  until: "6.0",
5224
5307
  for: "@warp-drive-mirror/core",
5225
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5308
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5226
5309
  since: {
5227
5310
  enabled: "5.7",
5228
5311
  available: "5.7"
@@ -5255,7 +5338,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5255
5338
  id: "warp-drive:deprecate-legacy-request-methods",
5256
5339
  until: "6.0",
5257
5340
  for: "@warp-drive-mirror/core",
5258
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5341
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5259
5342
  since: {
5260
5343
  enabled: "5.7",
5261
5344
  available: "5.7"
@@ -5277,7 +5360,7 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.ENABLE_LEGACY_
5277
5360
  id: "warp-drive:deprecate-legacy-request-methods",
5278
5361
  until: "6.0",
5279
5362
  for: "@warp-drive-mirror/core",
5280
- url: "https://docs.warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5363
+ url: "https://warp-drive.io/api/@warp-drive-mirror/core/build-config/deprecations/variables/ENABLE_LEGACY_REQUEST_METHODS",
5281
5364
  since: {
5282
5365
  enabled: "5.7",
5283
5366
  available: "5.7"
@@ -5364,10 +5447,16 @@ function getPriority(identifier, deduped, priority) {
5364
5447
  /**
5365
5448
  * The request shape accepted by {@link Store.request}, either a fully-formed
5366
5449
  * {@link ImmutableRequestInfo} or the looser {@link LooseStoreRequestInfo}.
5450
+ *
5451
+ * @summary The request object `store.request` accepts, either a full immutable request info or a looser
5452
+ * form with plain `records` and `headers`.
5367
5453
  */
5368
5454
  /**
5369
5455
  * A CacheHandler that adds support for using an WarpDrive Cache with a RequestManager.
5370
5456
  *
5457
+ * The [Caching](/guides/the-manual/caching/) guide explains how it decides whether a
5458
+ * request can use the cache.
5459
+ *
5371
5460
  * This handler will only run when a request has supplied a `store` instance. Requests
5372
5461
  * issued by the store via `store.request()` will automatically have the `store` instance
5373
5462
  * attached to the request.
@@ -5403,7 +5492,10 @@ function getPriority(identifier, deduped, priority) {
5403
5492
  * method: 'GET',
5404
5493
  * [EnableHydration]: true
5405
5494
  * });
5495
+ * ```
5406
5496
  *
5497
+ * @summary The RequestManager cache handler that serves, dedupes, and caches store requests and returns
5498
+ * reactive documents when hydration is enabled.
5407
5499
  */
5408
5500
  const CacheHandler = { request(context, next) {
5409
5501
  if (!context.request.store || context.request.cacheOptions?.[SkipCache]) return next(context.request);
@@ -5705,6 +5797,7 @@ the has-many.
5705
5797
  We call the record to which a relationship belongs-to the
5706
5798
  relationship's _owner_.
5707
5799
 
5800
+ @summary Legacy mutable reactive array holding the related records of a legacy or linksMode has-many relationship.
5708
5801
  @public
5709
5802
  */
5710
5803
  /**
@@ -7066,10 +7159,14 @@ const Editables = /* @__PURE__ */ new Map();
7066
7159
  * and a ResourceKey to transform data from the cache into a rich, reactive
7067
7160
  * object.
7068
7161
  *
7162
+ * The [ResourceSchemas](/guides/the-manual/schemas/resources/) guide shows how to
7163
+ * define the schema it reads.
7164
+ *
7069
7165
  * This class is not directly instantiable. To use it, you should
7070
7166
  * configure the store's `instantiateRecord` and `teardownRecord` hooks
7071
7167
  * with the matching hooks provided by this package.
7072
7168
  *
7169
+ * @summary The rich, reactive record object that presents a resource's cached data through its `ResourceSchema`.
7073
7170
  * @hideconstructor
7074
7171
  * @public
7075
7172
  */
@@ -7523,6 +7620,8 @@ function assertNeverField(identifier, field, path) {
7523
7620
  * Edits to editable resources will be automatically committed if a new
7524
7621
  * payload from the cache matches their existing value.
7525
7622
  *
7623
+ * @summary Resolves with an editable copy of an immutable `ReactiveResource` so its fields can be
7624
+ * changed locally.
7526
7625
  * @public
7527
7626
  *
7528
7627
  * @returns a promise that resolves to the editable resource
@@ -7539,6 +7638,8 @@ function checkout(resource) {
7539
7638
  * approach is for either the API or a Handler to reflect saved
7540
7639
  * changes back to update the cache.
7541
7640
  *
7641
+ * @summary Forcibly makes an editable resource's local changes its new remote (immutable) state,
7642
+ * bypassing a save round-trip.
7542
7643
  * @public
7543
7644
  */
7544
7645
  function commit(record) {
@@ -7556,6 +7657,8 @@ function commit(record) {
7556
7657
  * schema is `legacy`, matching the historical behavior of assigning initial
7557
7658
  * properties when creating a new legacy record.
7558
7659
  *
7660
+ * @summary Default store `instantiateRecord` hook that creates a `ReactiveResource` for a resource key
7661
+ * from its registered schema.
7559
7662
  * @public
7560
7663
  */
7561
7664
  function instantiateRecord(store, identifier, createArgs) {
@@ -7588,6 +7691,8 @@ function assertReactiveResource(record) {
7588
7691
  * that `record` is a {@link ReactiveResource} and invokes its `Destroy`
7589
7692
  * behavior.
7590
7693
  *
7694
+ * @summary Default store `teardownRecord` hook that destroys a `ReactiveResource` when the store
7695
+ * releases it.
7591
7696
  * @public
7592
7697
  */
7593
7698
  function teardownRecord(record) {
@@ -7642,16 +7747,25 @@ _constructor[Type] = "@constructor";
7642
7747
  * This should only be used for temporary migration purposes
7643
7748
  * to the new schema system when migrating from either Model
7644
7749
  * or ModelFragments.
7750
+ *
7751
+ * @summary Registers named methods, getters, and values to add to ReactiveResources, ReactiveObjects,
7752
+ * or ReactiveArrays; meant only as a temporary aid when migrating from Model or ModelFragments.
7645
7753
  */
7646
7754
  /**
7647
7755
  * Describes one feature added to a resource by a schema extension, as
7648
7756
  * classified by {@link processExtension} from the property descriptor it
7649
7757
  * was declared with (a method, a plain value, or a getter/setter pair).
7758
+ *
7759
+ * @summary One normalized feature of a schema extension, tagged by kind as a method, a readonly or
7760
+ * mutable value, or a getter/setter accessor.
7650
7761
  */
7651
7762
  /**
7652
7763
  * The result of {@link processExtension} normalizing a
7653
7764
  * {@link CAUTION_MEGA_DANGER_ZONE_Extension} into a lookup of its features
7654
7765
  * by name.
7766
+ *
7767
+ * @summary A registered schema extension normalized into its kind, name, and a map of its features
7768
+ * keyed by property name.
7655
7769
  */
7656
7770
  const BannedKeys = ["constructor", "__proto__"];
7657
7771
  function processExtension(extension) {
@@ -7751,14 +7865,19 @@ function processExtensions(schema, field, scenario, resolvedType) {
7751
7865
  * Utility for constructing a ResourceSchema with the recommended
7752
7866
  * fields for the PolarisMode experience.
7753
7867
  *
7868
+ * The [ResourceSchemas](/guides/the-manual/schemas/resources/) guide shows how to
7869
+ * create a schema with it.
7870
+ *
7754
7871
  * Using this requires registering the PolarisMode derivations
7755
7872
  *
7756
7873
  * ```ts
7757
- * import { registerDerivations } from '@warp-drive-mirror/schema-record';
7874
+ * import { registerDerivations } from '@warp-drive-mirror/core/reactive';
7758
7875
  *
7759
7876
  * registerDerivations(schema);
7760
7877
  * ```
7761
7878
  *
7879
+ * @summary Adds the default `id` identity plus `$key`, `$type`, and `constructor` derived fields to a
7880
+ * PolarisMode resource schema.
7762
7881
  * @public
7763
7882
  * @param schema
7764
7883
  * @return {PolarisResourceSchema}
@@ -7789,6 +7908,8 @@ function withDefaults(schema) {
7789
7908
  *
7790
7909
  * `^` returns the entire identifier object.
7791
7910
  *
7911
+ * @summary The `@identity` derivation, which reads a record's `id`, `lid`, `type`, or whole resource key
7912
+ * for use in derived fields.
7792
7913
  * @public
7793
7914
  */
7794
7915
  const fromIdentity = (record, options, key) => {
@@ -7812,9 +7933,14 @@ fromIdentity[Type] = "@identity";
7812
7933
  * to use the PolarisMode defaults provided by
7813
7934
  *
7814
7935
  * ```ts
7815
- * import { withDefaults } from '@warp-drive-mirror/schema-record';
7936
+ * import { withDefaults } from '@warp-drive-mirror/core/reactive';
7816
7937
  * ```
7817
7938
  *
7939
+ * The [Derivations](/guides/the-manual/schemas/derivations#about-built-in-derivations)
7940
+ * guide explains when you need to call it.
7941
+ *
7942
+ * @summary Registers the `@identity` and `@constructor` derivations that schemas built with
7943
+ * `withDefaults` depend on.
7818
7944
  * @public
7819
7945
  */
7820
7946
  function registerDerivations(schema) {
@@ -7890,6 +8016,9 @@ function assertConsistentAbstractFieldShape(abstractType, fieldName, existing, i
7890
8016
  * Defines how to convert a `GenericField`, `ObjectField`, or `ArrayField`
7891
8017
  * between the raw value `T` stored in the cache and the presentation value
7892
8018
  * `PT` exposed on the record.
8019
+ *
8020
+ * @summary A registered converter between a field's raw cache value and the value exposed on the
8021
+ * record, with optional default.
7893
8022
  */
7894
8023
  /**
7895
8024
  * Wraps a derivation in a new function with Derivation signature but that looks
@@ -7912,6 +8041,12 @@ function makeCachedDerivation(derivation) {
7912
8041
  /**
7913
8042
  * A SchemaService designed to work with dynamically registered schemas.
7914
8043
  *
8044
+ * The [Schemas](/guides/the-manual/schemas/) guide shows how to register schemas
8045
+ * with it, and [Advanced Store Configuration](/guides/configuration/advanced#add-a-source-for-schema-for-your-data)
8046
+ * shows how to give a store one.
8047
+ *
8048
+ * @summary The default schema service, which stores resource and object schemas, traits, derivations,
8049
+ * transformations, hash functions and extensions registered at runtime.
7915
8050
  * @public
7916
8051
  */
7917
8052
  var SchemaService = class {
@@ -8621,6 +8756,8 @@ function mergeMap(base, toApply) {
8621
8756
  * - {@link LegacyModeFieldSchema}
8622
8757
  * - {@link PolarisModeFieldSchema}
8623
8758
  *
8759
+ * @summary Schema-driven reactive records, arrays, and documents the store builds from cached data, plus the
8760
+ * `SchemaService` and schema types that define them.
8624
8761
  * @module
8625
8762
  */
8626
8763
 
@@ -8703,6 +8840,9 @@ const ERROR_STATUS_CODE_FOR = /* @__PURE__ */ new Map([
8703
8840
  * A basic Fetch Handler which converts a request into a
8704
8841
  * `fetch` call presuming the response to be `json`.
8705
8842
  *
8843
+ * The [Making Requests](/guides/the-manual/requests/#requests-do-not-need-to-use-fetch)
8844
+ * guide shows where it sits in the handler chain.
8845
+ *
8706
8846
  * ```ts
8707
8847
  * import { RequestManager, Fetch } from '@warp-drive-mirror/core';
8708
8848
  *
@@ -8710,6 +8850,8 @@ const ERROR_STATUS_CODE_FOR = /* @__PURE__ */ new Map([
8710
8850
  * .use([Fetch]);
8711
8851
  * ```
8712
8852
  *
8853
+ * @summary Terminal request handler that sends the request with native `fetch` and resolves with the
8854
+ * parsed JSON body, turning HTTP failures into errors.
8713
8855
  * @public
8714
8856
  * @badge Handler
8715
8857
  */
@@ -8839,7 +8981,8 @@ function isDict(v) {
8839
8981
  * import { RequestManager } from '@warp-drive-mirror/core';
8840
8982
  * ```
8841
8983
  *
8842
- * For complete usage guide see the [RequestManager Documentation](/guides/).
8984
+ * For a complete usage guide see [Making Requests](/guides/the-manual/requests/), and
8985
+ * [Handlers](/guides/the-manual/requests/handlers) for writing the handlers it runs.
8843
8986
  *
8844
8987
  * ## How It Works
8845
8988
  *
@@ -8862,11 +9005,28 @@ function isDict(v) {
8862
9005
  * ```ts [Setup.ts]
8863
9006
  * import { RequestManager, Fetch } from '@warp-drive-mirror/core';
8864
9007
  * import { AutoCompress } from '@warp-drive-mirror/utilities/handlers';
8865
- * import Auth from 'ember-simple-auth/handler';
9008
+ * import { AuthHandler } from './auth-handler';
8866
9009
  *
8867
9010
  * // ... create manager
8868
9011
  * const manager = new RequestManager()
8869
- * .use([Auth, new AutoCompress(), Fetch]); // [!code focus]
9012
+ * .use([AuthHandler, new AutoCompress(), Fetch]); // [!code focus]
9013
+ * ```
9014
+ *
9015
+ * ```ts [auth-handler.ts]
9016
+ * import type { Handler, NextFn } from '@warp-drive-mirror/core/request';
9017
+ * import type { RequestContext } from '@warp-drive-mirror/core/types/request';
9018
+ *
9019
+ * const token = '<token>';
9020
+ *
9021
+ * // adds a bearer token to every request, then passes it along
9022
+ * export const AuthHandler: Handler = {
9023
+ * request<T>(context: RequestContext, next: NextFn<T>) {
9024
+ * const headers = new Headers(context.request.headers);
9025
+ * headers.append('Authorization', `Bearer ${token}`);
9026
+ *
9027
+ * return next(Object.assign({}, context.request, { headers }));
9028
+ * },
9029
+ * };
8870
9030
  * ```
8871
9031
  *
8872
9032
  * ```ts [Usage.ts]
@@ -8882,6 +9042,20 @@ function isDict(v) {
8882
9042
  *
8883
9043
  * :::
8884
9044
  *
9045
+ * ### RequestManager vs {@link Store.request}
9046
+ *
9047
+ * A bare `RequestManager` is the low-level primitive: it runs a request through the configured
9048
+ * {@link Handler | handler chain} and settles with the raw {@link StructuredDocument}. It has no
9049
+ * cache and does not hydrate {@link ReactiveDocument | ReactiveDocuments} unless you register a
9050
+ * cache handler yourself via {@link RequestManager.useCache} and the request opts in.
9051
+ *
9052
+ * {@link Store.request} issues requests through this same `RequestManager`, but with the Store's
9053
+ * cache handler and hydration already wired up — inserting the response into the Store's cache
9054
+ * and resolving with a `ReactiveDocument` instead. Use `store.request` for anything the Store's
9055
+ * cache should own, which is nearly all app code. Reach for `requestManager.request` directly
9056
+ * only when there is no {@link Store} involved, or you specifically want the unprocessed
9057
+ * `StructuredDocument`.
9058
+ *
8885
9059
  * ### Futures
8886
9060
  *
8887
9061
  * The return value of `manager.request` is a `Future`, which allows
@@ -8984,7 +9158,23 @@ var RequestManager = class {
8984
9158
  /**
8985
9159
  * Issue a Request.
8986
9160
  *
8987
- * Returns a Future that fulfills with a StructuredDocument
9161
+ * Runs `request` through the configured {@link Handler | handler chain} and settles with the
9162
+ * {@link StructuredDocument} the chain produces — a plain `{ request, response, content }`
9163
+ * object, not a {@link ReactiveDocument}. Caching and hydration only happen if a cache handler
9164
+ * has been registered via {@link RequestManager.useCache} and the request opts in; a
9165
+ * `RequestManager` created on its own has neither.
9166
+ *
9167
+ * Most app code should use {@link Store.request} instead, which calls this same method with
9168
+ * the Store's cache handler and hydration already configured. Reach for `requestManager.request`
9169
+ * directly when there is no {@link Store} involved, or when you want the unprocessed
9170
+ * `StructuredDocument`. The `<RT>` generic can be set explicitly or inferred from a request
9171
+ * built with {@link withResponseType} or {@link withReactiveResponse} — see
9172
+ * [Typing Requests](/guides/the-manual/requests/typing-requests.md).
9173
+ *
9174
+ * @example
9175
+ * ```ts
9176
+ * const { content } = await requestManager.request({ url: '/users' });
9177
+ * ```
8988
9178
  *
8989
9179
  * @public
8990
9180
  */
@@ -9072,6 +9262,8 @@ var RequestManager = class {
9072
9262
  //#endregion
9073
9263
  //#region src/index.ts
9074
9264
  /**
9265
+ * @summary Main entry point for WarpDrive: the `Store`, `RequestManager`, `Fetch` handler, `CacheHandler`, and
9266
+ * `useRecommendedStore` for building a configured store.
9075
9267
  * @module
9076
9268
  * @mergeModuleWith <project>
9077
9269
  */
@@ -9082,11 +9274,17 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.env.TESTING)) {
9082
9274
  globalThis.setWarpDriveIsMaybeMirage = setIsMaybeMirage;
9083
9275
  /**
9084
9276
  * Options for setting up a Store instance with `useRecommendedStore`.
9277
+ *
9278
+ * @summary Configures the cache, cache policy, request handlers, schemas, and schema extensions that
9279
+ * `useRecommendedStore` wires into a Store class.
9085
9280
  */
9086
9281
  /**
9087
9282
  * Creates a configured Store class with recommended defaults
9088
9283
  * for schema handling, reactivity, caching, and request management.
9089
9284
  *
9285
+ * The [Setup](/guides/configuration/#configure-the-store) guide walks through
9286
+ * configuring the store with it.
9287
+ *
9090
9288
  * ```ts
9091
9289
  * import { useRecommendedStore } from '@warp-drive-mirror/core';
9092
9290
  * import { JSONAPICache } from '@warp-drive-mirror/json-api';
@@ -9189,6 +9387,9 @@ globalThis.setWarpDriveIsMaybeMirage = setIsMaybeMirage;
9189
9387
  * {@link RequestManager} won't have it set unless the caller supplies it
9190
9388
  * explicitly, so a handler relying on it should treat it as optional (as
9191
9389
  * `LoggingHandler` does above).
9390
+ *
9391
+ * @summary Builds a Store subclass preconfigured with the given cache, schemas, and handlers, plus
9392
+ * `Fetch`, `CacheHandler`, and a default cache policy.
9192
9393
  */
9193
9394
  function useRecommendedStore(options, StoreKlass = Store) {
9194
9395
  return class AppStore extends StoreKlass {
@@ -9244,4 +9445,4 @@ function useRecommendedStore(options, StoreKlass = Store) {
9244
9445
 
9245
9446
  //#endregion
9246
9447
  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 };
9247
- //# sourceMappingURL=src-B9WcEdYg.js.map
9448
+ //# sourceMappingURL=src-DlNeupkA.js.map