@warp-drive/core 5.6.0-alpha.11

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 (337) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/LICENSE.md +23 -0
  3. package/README.md +70 -0
  4. package/addon-main.cjs +5 -0
  5. package/cjs-dist/addon-shim.cjs +1 -0
  6. package/cjs-dist/cjs-set-config.cjs +1 -0
  7. package/declarations/build-config/babel-macros.d.ts +2 -0
  8. package/declarations/build-config/babel-macros.d.ts.map +1 -0
  9. package/declarations/build-config/canary-features.d.ts +2 -0
  10. package/declarations/build-config/canary-features.d.ts.map +1 -0
  11. package/declarations/build-config/debugging.d.ts +2 -0
  12. package/declarations/build-config/debugging.d.ts.map +1 -0
  13. package/declarations/build-config/deprecations.d.ts +2 -0
  14. package/declarations/build-config/deprecations.d.ts.map +1 -0
  15. package/declarations/build-config/env.d.ts +2 -0
  16. package/declarations/build-config/env.d.ts.map +1 -0
  17. package/declarations/build-config/macros.d.ts +2 -0
  18. package/declarations/build-config/macros.d.ts.map +1 -0
  19. package/declarations/build-config.d.ts +2 -0
  20. package/declarations/build-config.d.ts.map +1 -0
  21. package/declarations/configure.d.ts +8 -0
  22. package/declarations/configure.d.ts.map +1 -0
  23. package/declarations/graph/-private/-diff.d.ts +33 -0
  24. package/declarations/graph/-private/-diff.d.ts.map +1 -0
  25. package/declarations/graph/-private/-edge-definition.d.ts +149 -0
  26. package/declarations/graph/-private/-edge-definition.d.ts.map +1 -0
  27. package/declarations/graph/-private/-state.d.ts +10 -0
  28. package/declarations/graph/-private/-state.d.ts.map +1 -0
  29. package/declarations/graph/-private/-utils.d.ts +26 -0
  30. package/declarations/graph/-private/-utils.d.ts.map +1 -0
  31. package/declarations/graph/-private/coerce-id.d.ts +5 -0
  32. package/declarations/graph/-private/coerce-id.d.ts.map +1 -0
  33. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +7 -0
  34. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts.map +1 -0
  35. package/declarations/graph/-private/edges/collection.d.ts +40 -0
  36. package/declarations/graph/-private/edges/collection.d.ts.map +1 -0
  37. package/declarations/graph/-private/edges/implicit.d.ts +14 -0
  38. package/declarations/graph/-private/edges/implicit.d.ts.map +1 -0
  39. package/declarations/graph/-private/edges/resource.d.ts +25 -0
  40. package/declarations/graph/-private/edges/resource.d.ts.map +1 -0
  41. package/declarations/graph/-private/graph.d.ts +55 -0
  42. package/declarations/graph/-private/graph.d.ts.map +1 -0
  43. package/declarations/graph/-private/normalize-link.d.ts +3 -0
  44. package/declarations/graph/-private/normalize-link.d.ts.map +1 -0
  45. package/declarations/graph/-private/operations/add-to-related-records.d.ts +5 -0
  46. package/declarations/graph/-private/operations/add-to-related-records.d.ts.map +1 -0
  47. package/declarations/graph/-private/operations/merge-identifier.d.ts +4 -0
  48. package/declarations/graph/-private/operations/merge-identifier.d.ts.map +1 -0
  49. package/declarations/graph/-private/operations/remove-from-related-records.d.ts +5 -0
  50. package/declarations/graph/-private/operations/remove-from-related-records.d.ts.map +1 -0
  51. package/declarations/graph/-private/operations/replace-related-record.d.ts +4 -0
  52. package/declarations/graph/-private/operations/replace-related-record.d.ts.map +1 -0
  53. package/declarations/graph/-private/operations/replace-related-records.d.ts +8 -0
  54. package/declarations/graph/-private/operations/replace-related-records.d.ts.map +1 -0
  55. package/declarations/graph/-private/operations/update-relationship.d.ts +11 -0
  56. package/declarations/graph/-private/operations/update-relationship.d.ts.map +1 -0
  57. package/declarations/graph/-private.d.ts +14 -0
  58. package/declarations/graph/-private.d.ts.map +1 -0
  59. package/declarations/index.d.ts +15 -0
  60. package/declarations/index.d.ts.map +1 -0
  61. package/declarations/reactive/-private/document.d.ts +147 -0
  62. package/declarations/reactive/-private/document.d.ts.map +1 -0
  63. package/declarations/reactive/-private/fields/compute.d.ts +40 -0
  64. package/declarations/reactive/-private/fields/compute.d.ts.map +1 -0
  65. package/declarations/reactive/-private/fields/managed-array.d.ts +23 -0
  66. package/declarations/reactive/-private/fields/managed-array.d.ts.map +1 -0
  67. package/declarations/reactive/-private/fields/managed-object.d.ts +21 -0
  68. package/declarations/reactive/-private/fields/managed-object.d.ts.map +1 -0
  69. package/declarations/reactive/-private/fields/many-array-manager.d.ts +20 -0
  70. package/declarations/reactive/-private/fields/many-array-manager.d.ts.map +1 -0
  71. package/declarations/reactive/-private/hooks.d.ts +6 -0
  72. package/declarations/reactive/-private/hooks.d.ts.map +1 -0
  73. package/declarations/reactive/-private/record.d.ts +61 -0
  74. package/declarations/reactive/-private/record.d.ts.map +1 -0
  75. package/declarations/reactive/-private/schema.d.ts +180 -0
  76. package/declarations/reactive/-private/schema.d.ts.map +1 -0
  77. package/declarations/reactive/-private/symbols.d.ts +11 -0
  78. package/declarations/reactive/-private/symbols.d.ts.map +1 -0
  79. package/declarations/reactive/-private.d.ts +2 -0
  80. package/declarations/reactive/-private.d.ts.map +1 -0
  81. package/declarations/reactive.d.ts +5 -0
  82. package/declarations/reactive.d.ts.map +1 -0
  83. package/declarations/request/-private/context.d.ts +42 -0
  84. package/declarations/request/-private/context.d.ts.map +1 -0
  85. package/declarations/request/-private/debug.d.ts +5 -0
  86. package/declarations/request/-private/debug.d.ts.map +1 -0
  87. package/declarations/request/-private/fetch.d.ts +40 -0
  88. package/declarations/request/-private/fetch.d.ts.map +1 -0
  89. package/declarations/request/-private/future.d.ts +8 -0
  90. package/declarations/request/-private/future.d.ts.map +1 -0
  91. package/declarations/request/-private/manager.d.ts +160 -0
  92. package/declarations/request/-private/manager.d.ts.map +1 -0
  93. package/declarations/request/-private/promise-cache.d.ts +20 -0
  94. package/declarations/request/-private/promise-cache.d.ts.map +1 -0
  95. package/declarations/request/-private/types.d.ts +236 -0
  96. package/declarations/request/-private/types.d.ts.map +1 -0
  97. package/declarations/request/-private/utils.d.ts +16 -0
  98. package/declarations/request/-private/utils.d.ts.map +1 -0
  99. package/declarations/request.d.ts +6 -0
  100. package/declarations/request.d.ts.map +1 -0
  101. package/declarations/store/-private/cache-handler/handler.d.ts +57 -0
  102. package/declarations/store/-private/cache-handler/handler.d.ts.map +1 -0
  103. package/declarations/store/-private/cache-handler/types.d.ts +99 -0
  104. package/declarations/store/-private/cache-handler/types.d.ts.map +1 -0
  105. package/declarations/store/-private/cache-handler/utils.d.ts +32 -0
  106. package/declarations/store/-private/cache-handler/utils.d.ts.map +1 -0
  107. package/declarations/store/-private/caches/cache-utils.d.ts +9 -0
  108. package/declarations/store/-private/caches/cache-utils.d.ts.map +1 -0
  109. package/declarations/store/-private/caches/identifier-cache.d.ts +316 -0
  110. package/declarations/store/-private/caches/identifier-cache.d.ts.map +1 -0
  111. package/declarations/store/-private/caches/instance-cache.d.ts +65 -0
  112. package/declarations/store/-private/caches/instance-cache.d.ts.map +1 -0
  113. package/declarations/store/-private/caches/resource-utils.d.ts +10 -0
  114. package/declarations/store/-private/caches/resource-utils.d.ts.map +1 -0
  115. package/declarations/store/-private/debug/utils.d.ts +7 -0
  116. package/declarations/store/-private/debug/utils.d.ts.map +1 -0
  117. package/declarations/store/-private/default-cache-policy.d.ts +383 -0
  118. package/declarations/store/-private/default-cache-policy.d.ts.map +1 -0
  119. package/declarations/store/-private/legacy-model-support/record-reference.d.ts +164 -0
  120. package/declarations/store/-private/legacy-model-support/record-reference.d.ts.map +1 -0
  121. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +17 -0
  122. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
  123. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +26 -0
  124. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
  125. package/declarations/store/-private/managers/cache-manager.d.ts +428 -0
  126. package/declarations/store/-private/managers/cache-manager.d.ts.map +1 -0
  127. package/declarations/store/-private/managers/notification-manager.d.ts +93 -0
  128. package/declarations/store/-private/managers/notification-manager.d.ts.map +1 -0
  129. package/declarations/store/-private/managers/record-array-manager.d.ts +98 -0
  130. package/declarations/store/-private/managers/record-array-manager.d.ts.map +1 -0
  131. package/declarations/store/-private/network/request-cache.d.ts +104 -0
  132. package/declarations/store/-private/network/request-cache.d.ts.map +1 -0
  133. package/declarations/store/-private/new-core-tmp/promise-state.d.ts +255 -0
  134. package/declarations/store/-private/new-core-tmp/promise-state.d.ts.map +1 -0
  135. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +93 -0
  136. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -0
  137. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +170 -0
  138. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts.map +1 -0
  139. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +30 -0
  140. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts.map +1 -0
  141. package/declarations/store/-private/new-core-tmp/request-state.d.ts +255 -0
  142. package/declarations/store/-private/new-core-tmp/request-state.d.ts.map +1 -0
  143. package/declarations/store/-private/record-arrays/identifier-array.d.ts +141 -0
  144. package/declarations/store/-private/record-arrays/identifier-array.d.ts.map +1 -0
  145. package/declarations/store/-private/record-arrays/many-array.d.ts +199 -0
  146. package/declarations/store/-private/record-arrays/many-array.d.ts.map +1 -0
  147. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +116 -0
  148. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
  149. package/declarations/store/-private/store-service.d.ts +1597 -0
  150. package/declarations/store/-private/store-service.d.ts.map +1 -0
  151. package/declarations/store/-private/store-service.type-test.d.ts +2 -0
  152. package/declarations/store/-private/store-service.type-test.d.ts.map +1 -0
  153. package/declarations/store/-private/utils/coerce-id.d.ts +5 -0
  154. package/declarations/store/-private/utils/coerce-id.d.ts.map +1 -0
  155. package/declarations/store/-private/utils/construct-resource.d.ts +7 -0
  156. package/declarations/store/-private/utils/construct-resource.d.ts.map +1 -0
  157. package/declarations/store/-private/utils/is-non-empty-string.d.ts +2 -0
  158. package/declarations/store/-private/utils/is-non-empty-string.d.ts.map +1 -0
  159. package/declarations/store/-private/utils/normalize-model-name.d.ts +2 -0
  160. package/declarations/store/-private/utils/normalize-model-name.d.ts.map +1 -0
  161. package/declarations/store/-private/utils/uuid-polyfill.d.ts +2 -0
  162. package/declarations/store/-private/utils/uuid-polyfill.d.ts.map +1 -0
  163. package/declarations/store/-private.d.ts +27 -0
  164. package/declarations/store/-private.d.ts.map +1 -0
  165. package/declarations/store/-types/q/cache-capabilities-manager.d.ts +100 -0
  166. package/declarations/store/-types/q/cache-capabilities-manager.d.ts.map +1 -0
  167. package/declarations/store/-types/q/ds-model.d.ts +22 -0
  168. package/declarations/store/-types/q/ds-model.d.ts.map +1 -0
  169. package/declarations/store/-types/q/identifier.d.ts +21 -0
  170. package/declarations/store/-types/q/identifier.d.ts.map +1 -0
  171. package/declarations/store/-types/q/promise-proxies.d.ts +2 -0
  172. package/declarations/store/-types/q/promise-proxies.d.ts.map +1 -0
  173. package/declarations/store/-types/q/record-data-json-api.d.ts +31 -0
  174. package/declarations/store/-types/q/record-data-json-api.d.ts.map +1 -0
  175. package/declarations/store/-types/q/record-instance.d.ts +24 -0
  176. package/declarations/store/-types/q/record-instance.d.ts.map +1 -0
  177. package/declarations/store/-types/q/schema-service.d.ts +331 -0
  178. package/declarations/store/-types/q/schema-service.d.ts.map +1 -0
  179. package/declarations/store/-types/q/store.d.ts +35 -0
  180. package/declarations/store/-types/q/store.d.ts.map +1 -0
  181. package/declarations/store.d.ts +2 -0
  182. package/declarations/store.d.ts.map +1 -0
  183. package/declarations/types/-private.d.ts +14 -0
  184. package/declarations/types/-private.d.ts.map +1 -0
  185. package/declarations/types/cache/aliases.d.ts +2 -0
  186. package/declarations/types/cache/aliases.d.ts.map +1 -0
  187. package/declarations/types/cache/change.d.ts +7 -0
  188. package/declarations/types/cache/change.d.ts.map +1 -0
  189. package/declarations/types/cache/mutations.d.ts +39 -0
  190. package/declarations/types/cache/mutations.d.ts.map +1 -0
  191. package/declarations/types/cache/operations.d.ts +72 -0
  192. package/declarations/types/cache/operations.d.ts.map +1 -0
  193. package/declarations/types/cache/relationship.d.ts +14 -0
  194. package/declarations/types/cache/relationship.d.ts.map +1 -0
  195. package/declarations/types/cache.d.ts +492 -0
  196. package/declarations/types/cache.d.ts.map +1 -0
  197. package/declarations/types/graph.d.ts +48 -0
  198. package/declarations/types/graph.d.ts.map +1 -0
  199. package/declarations/types/identifier.d.ts +111 -0
  200. package/declarations/types/identifier.d.ts.map +1 -0
  201. package/declarations/types/json/raw.d.ts +7 -0
  202. package/declarations/types/json/raw.d.ts.map +1 -0
  203. package/declarations/types/params.d.ts +10 -0
  204. package/declarations/types/params.d.ts.map +1 -0
  205. package/declarations/types/record.d.ts +96 -0
  206. package/declarations/types/record.d.ts.map +1 -0
  207. package/declarations/types/record.type-test.d.ts +2 -0
  208. package/declarations/types/record.type-test.d.ts.map +1 -0
  209. package/declarations/types/request.d.ts +308 -0
  210. package/declarations/types/request.d.ts.map +1 -0
  211. package/declarations/types/request.type-test.d.ts +2 -0
  212. package/declarations/types/request.type-test.d.ts.map +1 -0
  213. package/declarations/types/runtime.d.ts +15 -0
  214. package/declarations/types/runtime.d.ts.map +1 -0
  215. package/declarations/types/schema/concepts.d.ts +17 -0
  216. package/declarations/types/schema/concepts.d.ts.map +1 -0
  217. package/declarations/types/schema/fields.d.ts +1674 -0
  218. package/declarations/types/schema/fields.d.ts.map +1 -0
  219. package/declarations/types/schema/fields.type-test.d.ts +2 -0
  220. package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
  221. package/declarations/types/spec/document.d.ts +31 -0
  222. package/declarations/types/spec/document.d.ts.map +1 -0
  223. package/declarations/types/spec/error.d.ts +19 -0
  224. package/declarations/types/spec/error.d.ts.map +1 -0
  225. package/declarations/types/spec/json-api-raw.d.ts +142 -0
  226. package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
  227. package/declarations/types/symbols.d.ts +79 -0
  228. package/declarations/types/symbols.d.ts.map +1 -0
  229. package/declarations/types/utils.d.ts +5 -0
  230. package/declarations/types/utils.d.ts.map +1 -0
  231. package/declarations/types.d.ts +12 -0
  232. package/declarations/types.d.ts.map +1 -0
  233. package/declarations/utils/string.d.ts +45 -0
  234. package/declarations/utils/string.d.ts.map +1 -0
  235. package/dist/build-config/babel-macros.js +1 -0
  236. package/dist/build-config/babel-macros.js.map +1 -0
  237. package/dist/build-config/canary-features.js +1 -0
  238. package/dist/build-config/canary-features.js.map +1 -0
  239. package/dist/build-config/debugging.js +1 -0
  240. package/dist/build-config/debugging.js.map +1 -0
  241. package/dist/build-config/deprecations.js +1 -0
  242. package/dist/build-config/deprecations.js.map +1 -0
  243. package/dist/build-config/env.js +1 -0
  244. package/dist/build-config/env.js.map +1 -0
  245. package/dist/build-config/macros.js +1 -0
  246. package/dist/build-config/macros.js.map +1 -0
  247. package/dist/build-config.js +1 -0
  248. package/dist/build-config.js.map +1 -0
  249. package/dist/configure-Bz49BEZQ.js +145 -0
  250. package/dist/configure-Bz49BEZQ.js.map +1 -0
  251. package/dist/configure.js +1 -0
  252. package/dist/configure.js.map +1 -0
  253. package/dist/context-DE5sFezZ.js +636 -0
  254. package/dist/context-DE5sFezZ.js.map +1 -0
  255. package/dist/graph/-private.js +3364 -0
  256. package/dist/graph/-private.js.map +1 -0
  257. package/dist/handler-DYUefHNU.js +339 -0
  258. package/dist/handler-DYUefHNU.js.map +1 -0
  259. package/dist/index.js +382 -0
  260. package/dist/index.js.map +1 -0
  261. package/dist/reactive/-private.js +1 -0
  262. package/dist/reactive/-private.js.map +1 -0
  263. package/dist/reactive.js +1802 -0
  264. package/dist/reactive.js.map +1 -0
  265. package/dist/request-state-Bv5CY_H0.js +7358 -0
  266. package/dist/request-state-Bv5CY_H0.js.map +1 -0
  267. package/dist/request.js +1 -0
  268. package/dist/request.js.map +1 -0
  269. package/dist/store/-private.js +3 -0
  270. package/dist/store/-private.js.map +1 -0
  271. package/dist/store.js +545 -0
  272. package/dist/store.js.map +1 -0
  273. package/dist/symbols-DyqeYQTe.js +44 -0
  274. package/dist/symbols-DyqeYQTe.js.map +1 -0
  275. package/dist/types/-private.js +79 -0
  276. package/dist/types/-private.js.map +1 -0
  277. package/dist/types/cache/aliases.js +0 -0
  278. package/dist/types/cache/aliases.js.map +1 -0
  279. package/dist/types/cache/change.js +0 -0
  280. package/dist/types/cache/change.js.map +1 -0
  281. package/dist/types/cache/mutations.js +0 -0
  282. package/dist/types/cache/mutations.js.map +1 -0
  283. package/dist/types/cache/operations.js +0 -0
  284. package/dist/types/cache/operations.js.map +1 -0
  285. package/dist/types/cache/relationship.js +0 -0
  286. package/dist/types/cache/relationship.js.map +1 -0
  287. package/dist/types/cache.js +0 -0
  288. package/dist/types/cache.js.map +1 -0
  289. package/dist/types/graph.js +0 -0
  290. package/dist/types/graph.js.map +1 -0
  291. package/dist/types/identifier.js +89 -0
  292. package/dist/types/identifier.js.map +1 -0
  293. package/dist/types/json/raw.js +0 -0
  294. package/dist/types/json/raw.js.map +1 -0
  295. package/dist/types/params.js +0 -0
  296. package/dist/types/params.js.map +1 -0
  297. package/dist/types/record.js +64 -0
  298. package/dist/types/record.js.map +1 -0
  299. package/dist/types/request.js +33 -0
  300. package/dist/types/request.js.map +1 -0
  301. package/dist/types/runtime.js +34 -0
  302. package/dist/types/runtime.js.map +1 -0
  303. package/dist/types/schema/concepts.js +0 -0
  304. package/dist/types/schema/concepts.js.map +1 -0
  305. package/dist/types/schema/fields.js +470 -0
  306. package/dist/types/schema/fields.js.map +1 -0
  307. package/dist/types/schema/fields.type-test.js +0 -0
  308. package/dist/types/schema/fields.type-test.js.map +1 -0
  309. package/dist/types/spec/document.js +0 -0
  310. package/dist/types/spec/document.js.map +1 -0
  311. package/dist/types/spec/error.js +0 -0
  312. package/dist/types/spec/error.js.map +1 -0
  313. package/dist/types/spec/json-api-raw.js +0 -0
  314. package/dist/types/spec/json-api-raw.js.map +1 -0
  315. package/dist/types/symbols.js +84 -0
  316. package/dist/types/symbols.js.map +1 -0
  317. package/dist/types/utils.js +0 -0
  318. package/dist/types/utils.js.map +1 -0
  319. package/dist/types.js +0 -0
  320. package/dist/types.js.map +1 -0
  321. package/dist/utils/string.js +92 -0
  322. package/dist/utils/string.js.map +1 -0
  323. package/logos/NCC-1701-a-blue.svg +4 -0
  324. package/logos/NCC-1701-a-gold.svg +4 -0
  325. package/logos/NCC-1701-a-gold_100.svg +1 -0
  326. package/logos/NCC-1701-a-gold_base-64.txt +1 -0
  327. package/logos/NCC-1701-a.svg +4 -0
  328. package/logos/README.md +4 -0
  329. package/logos/docs-badge.svg +2 -0
  330. package/logos/ember-data-logo-dark.svg +12 -0
  331. package/logos/ember-data-logo-light.svg +12 -0
  332. package/logos/github-header.svg +444 -0
  333. package/logos/social1.png +0 -0
  334. package/logos/social2.png +0 -0
  335. package/logos/warp-drive-logo-dark.svg +4 -0
  336. package/logos/warp-drive-logo-gold.svg +4 -0
  337. package/package.json +70 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # @warp-drive/core changelog
package/LICENSE.md ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017-2025 Ember.js and contributors
4
+ Copyright (c) 2011-2017 Tilde, Inc. and contributors
5
+ Copyright (c) 2011 LivingSocial Inc.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ <h1 align="center">
2
+ <img
3
+ class="project-logo light-only"
4
+ src="./logos/github-header.svg#gh-light-mode-only"
5
+ alt="WarpDrive | Boldly go where no app has gone before"
6
+ title="WarpDrive | Boldly go where no app has gone before"
7
+ />
8
+ <img
9
+ class="project-logo dark-only"
10
+ src="./logos/github-header.svg#gh-dark-mode-only"
11
+ alt="WarpDrive | Boldly go where no app has gone before"
12
+ title="WarpDrive | Boldly go where no app has gone before"
13
+ />
14
+ </h1>
15
+
16
+ ![NPM Stable Version](https://img.shields.io/npm/v/ember-data/latest?label=version&style=flat&color=FFC474)
17
+ ![NPM Downloads](https://img.shields.io/npm/dm/ember-data.svg?style=flat&color=FFC474)
18
+ ![License](https://img.shields.io/github/license/emberjs/data.svg?style=flat&color=FFC474)
19
+ [![Docs](./logos/docs-badge.svg)](https://api.emberjs.com/ember-data/release)
20
+ [![Discord Community Server](https://img.shields.io/badge/Discord-grey?logo=discord&logoColor=FFC474)](https://discord.gg/zT3asNS
21
+ )
22
+
23
+ <p align="center">
24
+ <br>
25
+ <a href="https://warp-drive.io">WarpDrive</a> is a lightweight data library for web apps &mdash;
26
+ <br>
27
+ universal, typed, reactive, and ready to scale.
28
+ <br>
29
+ <br>
30
+ </p>
31
+
32
+ WarpDrive provides features that make it easy to build scalable, fast, feature
33
+ rich application &mdash; letting you ship better experiences more quickly without re-architecting your app or API. WarpDrive is:
34
+
35
+ - ⚡️ Committed to Best-In-Class Performance
36
+ - 🌲 Focused on being as svelte as possible
37
+ - 🚀 SSR Ready
38
+ - 💚 Typed
39
+ - 🔜 works with any framework
40
+ - ⚛️ Supports any API: `GraphQL` `JSON:API` `REST` `tRPC` ...bespoke or a mix
41
+ - 🐹 Built with ♥️ by [Ember](https://emberjs.com)
42
+
43
+ <br>
44
+ <br>
45
+
46
+ *Get Started* → [Guides](./guides/index.md)
47
+
48
+ <br>
49
+
50
+ ---
51
+
52
+ <br>
53
+
54
+ ## Installation
55
+
56
+ ```sh
57
+ pnpm add -E @warp-drive/core@latest
58
+ ```
59
+
60
+ <br>
61
+
62
+ ## Code of Conduct
63
+
64
+ Refer to the [Code of Conduct](https://github.com/emberjs/data/blob/main/CODE_OF_CONDUCT.md) for community guidelines and inclusivity.
65
+
66
+ <br>
67
+
68
+ ### License
69
+
70
+ This project is licensed under the [MIT License](LICENSE.md).
package/addon-main.cjs ADDED
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const { addonShim } = require('@warp-drive/build-config/addon-shim.cjs');
4
+
5
+ module.exports = addonShim(__dirname);
@@ -0,0 +1 @@
1
+ module.exports = require('@warp-drive/build-config/addon-shim.cjs');
@@ -0,0 +1 @@
1
+ module.exports = require('@warp-drive/build-config/cjs-set-config.cjs');
@@ -0,0 +1,2 @@
1
+ export { macros } from '@warp-drive/build-config/babel-macros';
2
+ //# sourceMappingURL=babel-macros.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babel-macros.d.ts","sourceRoot":"","sources":["../../src/build-config/babel-macros.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@warp-drive/build-config/canary-features';
2
+ //# sourceMappingURL=canary-features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canary-features.d.ts","sourceRoot":"","sources":["../../src/build-config/canary-features.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@warp-drive/build-config/debugging';
2
+ //# sourceMappingURL=debugging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debugging.d.ts","sourceRoot":"","sources":["../../src/build-config/debugging.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@warp-drive/build-config/deprecations';
2
+ //# sourceMappingURL=deprecations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecations.d.ts","sourceRoot":"","sources":["../../src/build-config/deprecations.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { DEBUG, PRODUCTION, IS_CI, IS_RECORDING, SHOULD_RECORD, TESTING } from '@warp-drive/build-config/env';
2
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/build-config/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { assert } from '@warp-drive/build-config/macros';
2
+ //# sourceMappingURL=macros.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"macros.d.ts","sourceRoot":"","sources":["../../src/build-config/macros.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { setConfig } from '@warp-drive/build-config';
2
+ //# sourceMappingURL=build-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-config.d.ts","sourceRoot":"","sources":["../src/build-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Provides a configuration API for the reactivity system
3
+ * that WarpDrive should use.
4
+ *
5
+ * @module
6
+ */
7
+ export { setupSignals } from './store/-private/new-core-tmp/reactivity/configure';
8
+ //# sourceMappingURL=configure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { StableRecordIdentifier } from '../../types/identifier.ts';
2
+ import type { CollectionEdge } from './edges/collection.ts';
3
+ import type { ResourceEdge } from './edges/resource.ts';
4
+ import type { Graph } from './graph.ts';
5
+ type Diff<T> = {
6
+ add: Set<T>;
7
+ del: Set<T>;
8
+ finalState: T[];
9
+ finalSet: Set<T>;
10
+ changed: boolean;
11
+ remoteOrderChanged: boolean;
12
+ };
13
+ export declare function diffCollection(finalState: StableRecordIdentifier[], relationship: CollectionEdge, onAdd: (v: StableRecordIdentifier) => void, onDel: (v: StableRecordIdentifier) => void): Diff<StableRecordIdentifier>;
14
+ export declare function computeLocalState(storage: CollectionEdge): StableRecordIdentifier[];
15
+ /**
16
+ * A function which attempts to add a value to the local state of a collection
17
+ * relationship, and returns true if the value was added, or false if it was
18
+ * already present.
19
+ *
20
+ * It will not generate a notification, will not update the relationships to dirty,
21
+ * and will not update the inverse relationships, making it suitable for use as
22
+ * an internal util to perform the just the addition to a specific side of a
23
+ * relationship.
24
+ *
25
+ * @internal
26
+ */
27
+ export declare function _add(graph: Graph, record: StableRecordIdentifier, relationship: CollectionEdge, value: StableRecordIdentifier, index: number | null, isRemote: boolean): boolean;
28
+ export declare function _remove(graph: Graph, record: StableRecordIdentifier, relationship: CollectionEdge, value: StableRecordIdentifier, index: number | null, isRemote: boolean): boolean;
29
+ export declare function _removeLocal(relationship: CollectionEdge, value: StableRecordIdentifier): boolean;
30
+ export declare function _removeRemote(relationship: CollectionEdge, value: StableRecordIdentifier): boolean;
31
+ export declare function rollbackRelationship(graph: Graph, identifier: StableRecordIdentifier, field: string, relationship: CollectionEdge | ResourceEdge): void;
32
+ export {};
33
+ //# sourceMapping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,EAC9B,YAAY,EAAE,cAAc,EAC5B,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAET;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAyCjG;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CA8ClG;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,sBAAsB,EAClC,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,cAAc,GAAG,YAAY,GAC1C,IAAI,CA+BN"}
@@ -0,0 +1,149 @@
1
+ import type { StableRecordIdentifier } from '../../types.ts';
2
+ import type { CollectionField, FieldSchema, LegacyBelongsToField, LegacyHasManyField, ResourceField } from '../../types/schema/fields.ts';
3
+ import type { Graph } from './graph.ts';
4
+ export type EdgeCache = Record<string, Record<string, EdgeDefinition | null>>;
5
+ export type RelationshipField = LegacyBelongsToField | LegacyHasManyField | ResourceField | CollectionField;
6
+ export type RelationshipFieldKind = RelationshipField['kind'];
7
+ export type CollectionKind = 'hasMany' | 'collection';
8
+ export type ResourceKind = 'belongsTo' | 'resource';
9
+ export declare const RELATIONSHIP_KINDS: string[];
10
+ export declare function isLegacyField(field: FieldSchema): field is LegacyBelongsToField | LegacyHasManyField;
11
+ export declare function isRelationshipField(field: FieldSchema): field is RelationshipField;
12
+ export declare function temporaryConvertToLegacy(field: ResourceField | CollectionField): LegacyBelongsToField | LegacyHasManyField;
13
+ /**
14
+ *
15
+ * Given RHS (Right Hand Side)
16
+ *
17
+ * ```ts
18
+ * class User extends Model {
19
+ * @hasMany('animal', { async: false, inverse: 'owner' }) pets;
20
+ * }
21
+ * ```
22
+ *
23
+ * Given LHS (Left Hand Side)
24
+ *
25
+ * ```ts
26
+ * class Animal extends Model {
27
+ * @belongsTo('user', { async: false, inverse: 'pets' }) owner;
28
+ * }
29
+ * ```
30
+ *
31
+ * The UpgradedMeta for the RHS would be:
32
+ *
33
+ * ```ts
34
+ * {
35
+ * kind: 'hasMany',
36
+ * key: 'pets',
37
+ * type: 'animal',
38
+ * isAsync: false,
39
+ * isImplicit: false,
40
+ * isCollection: true,
41
+ * isPolymorphic: false,
42
+ * inverseKind: 'belongsTo',
43
+ * inverseKey: 'owner',
44
+ * inverseType: 'user',
45
+ * inverseIsAsync: false,
46
+ * inverseIsImplicit: false,
47
+ * inverseIsCollection: false,
48
+ * inverseIsPolymorphic: false,
49
+ * }
50
+ * ```
51
+ *
52
+ * The UpgradeMeta for the LHS would be:
53
+ *
54
+ * ```ts
55
+ * {
56
+ * kind: 'belongsTo',
57
+ * key: 'owner',
58
+ * type: 'user',
59
+ * isAsync: false,
60
+ * isImplicit: false,
61
+ * isCollection: false,
62
+ * isPolymorphic: false,
63
+ * inverseKind: 'hasMany',
64
+ * inverseKey: 'pets',
65
+ * inverseType: 'animal',
66
+ * inverseIsAsync: false,
67
+ * inverseIsImplicit: false,
68
+ * inverseIsCollection: true,
69
+ * inverseIsPolymorphic: false,
70
+ * }
71
+ * ```
72
+ *
73
+ *
74
+ * @class UpgradedMeta
75
+ * @internal
76
+ */
77
+ export interface UpgradedMeta {
78
+ kind: 'implicit' | RelationshipFieldKind;
79
+ /**
80
+ * The field name on `this` record
81
+ *
82
+ * @internal
83
+ */
84
+ key: string;
85
+ /**
86
+ * The `type` of the related record
87
+ *
88
+ * @internal
89
+ */
90
+ type: string;
91
+ isAsync: boolean;
92
+ isImplicit: boolean;
93
+ isCollection: boolean;
94
+ isPolymorphic: boolean;
95
+ resetOnRemoteUpdate: boolean;
96
+ isLinksMode: boolean;
97
+ inverseKind: 'implicit' | RelationshipFieldKind;
98
+ /**
99
+ * The field name on the opposing record
100
+ * @internal
101
+ */
102
+ inverseKey: string;
103
+ /**
104
+ * The `type` of `this` record
105
+ * @internal
106
+ */
107
+ inverseType: string;
108
+ inverseIsAsync: boolean;
109
+ inverseIsImplicit: boolean;
110
+ inverseIsCollection: boolean;
111
+ inverseIsPolymorphic: boolean;
112
+ inverseIsLinksMode: boolean;
113
+ }
114
+ export interface EdgeDefinition {
115
+ lhs_key: string;
116
+ lhs_modelNames: string[];
117
+ lhs_baseModelName: string;
118
+ lhs_relationshipName: string;
119
+ lhs_definition: UpgradedMeta;
120
+ lhs_isPolymorphic: boolean;
121
+ rhs_key: string;
122
+ rhs_modelNames: string[];
123
+ rhs_baseModelName: string;
124
+ rhs_relationshipName: string;
125
+ rhs_definition: UpgradedMeta | null;
126
+ rhs_isPolymorphic: boolean;
127
+ hasInverse: boolean;
128
+ /**
129
+ * Whether this relationship points back at the same type.
130
+ *
131
+ * If the relationship is polymorphic, this will be true if
132
+ * it points back at the same abstract type.
133
+ *
134
+ * @internal
135
+ */
136
+ isSelfReferential: boolean;
137
+ /**
138
+ * If this is a reflexive relationship, this is true
139
+ * if the relationship also points back at the same
140
+ * field.
141
+ *
142
+ * @internal
143
+ */
144
+ isReflexive: boolean;
145
+ }
146
+ export declare function isLHS(info: EdgeDefinition, type: string, key: string): boolean;
147
+ export declare function isRHS(info: EdgeDefinition, type: string, key: string): boolean;
148
+ export declare function upgradeDefinition(graph: Graph, identifier: StableRecordIdentifier, propertyName: string, isImplicit?: boolean): EdgeDefinition | null;
149
+ //# sourceMappingURL=-edge-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-edge-definition.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/-edge-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACd,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,SA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Reload: boolean;
7
+ hasDematerializedInverse: boolean;
8
+ }
9
+ export declare function createState(): RelationshipState;
10
+ //# sourceMappingURL=-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-state.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IA2BhC,eAAe,EAAE,OAAO,CAAC;IAkBzB,OAAO,EAAE,OAAO,CAAC;IA8BjB,OAAO,EAAE,OAAO,CAAC;IAEjB,oBAAoB,EAAE,OAAO,CAAC;IAK9B,iBAAiB,EAAE,OAAO,CAAC;IAa3B,wBAAwB,EAAE,OAAO,CAAC;CAOnC;AAED,wBAAgB,WAAW,IAAI,iBAAiB,CAS/C"}
@@ -0,0 +1,26 @@
1
+ import type { Store } from '../../store/-private.ts';
2
+ import type { CacheCapabilitiesManager } from '../../types.ts';
3
+ import type { UpdateResourceRelationshipOperation } from '../../types/cache/operations.ts';
4
+ import type { UpdateRelationshipOperation } from '../../types/graph.ts';
5
+ import type { StableRecordIdentifier } from '../../types/identifier.ts';
6
+ import type { ResourceIdentifierObject } from '../../types/spec/json-api-raw.ts';
7
+ import type { UpgradedMeta } from './-edge-definition.ts';
8
+ import type { CollectionEdge } from './edges/collection.ts';
9
+ import type { ImplicitEdge } from './edges/implicit.ts';
10
+ import type { ResourceEdge } from './edges/resource.ts';
11
+ import type { Graph, GraphEdge } from './graph.ts';
12
+ export declare function getStore(wrapper: CacheCapabilitiesManager | {
13
+ _store: Store;
14
+ }): Store;
15
+ export declare function expandingGet<T>(cache: Record<string, Record<string, T>>, key1: string, key2: string): T | undefined;
16
+ export declare function expandingSet<T>(cache: Record<string, Record<string, T>>, key1: string, key2: string, value: T): void;
17
+ export declare function assertValidRelationshipPayload(graph: Graph, op: UpdateRelationshipOperation | UpdateResourceRelationshipOperation): void;
18
+ export declare function isNew(identifier: StableRecordIdentifier): boolean;
19
+ export declare function isBelongsTo(relationship: GraphEdge): relationship is ResourceEdge;
20
+ export declare function isImplicit(relationship: GraphEdge): relationship is ImplicitEdge;
21
+ export declare function isHasMany(relationship: GraphEdge): relationship is CollectionEdge;
22
+ export declare function forAllRelatedIdentifiers(rel: GraphEdge, cb: (identifier: StableRecordIdentifier) => void): void;
23
+ export declare function removeIdentifierCompletelyFromRelationship(graph: Graph, relationship: GraphEdge, value: StableRecordIdentifier, silenceNotifications?: boolean): void;
24
+ export declare function notifyChange(graph: Graph, relationship: CollectionEdge | ResourceEdge): void;
25
+ export declare function assertRelationshipData(store: Store, identifier: StableRecordIdentifier, data: ResourceIdentifierObject, meta: UpgradedMeta): void;
26
+ //# sourceMappingURL=-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-utils.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/-utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,wBAAwB,GAAG;IAAE,MAAM,EAA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AAK,EAAE,KAAK,EACZ,UAAU,EAAE,sBAAsB,EAClC,IAAI,EAAE,wBAAwB,EAC9B,IAAI,EAAE,YAAY,QAiDnB"}
@@ -0,0 +1,5 @@
1
+ type Coercable = string | number | boolean | null | undefined | symbol;
2
+ export declare function coerceId(id: Coercable): string | null;
3
+ export declare function ensureStringId(id: Coercable): string;
4
+ export {};
5
+ //# sourceMappingURL=coerce-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/coerce-id.ts"],"names":[],"mappings":"AAWA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,wBAAgB,QAAQ,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAkCrD;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD"}
@@ -0,0 +1,7 @@
1
+ import type { CacheCapabilitiesManager } from '../../../types.ts';
2
+ import type { StableRecordIdentifier } from '../../../types/identifier.ts';
3
+ import { type UpgradedMeta } from '../-edge-definition.ts';
4
+ declare let assertPolymorphicType: (parentIdentifier: StableRecordIdentifier, parentDefinition: UpgradedMeta, addedIdentifier: StableRecordIdentifier, store: CacheCapabilitiesManager) => void;
5
+ declare let assertInheritedSchema: (definition: UpgradedMeta, type: string) => void;
6
+ export { assertPolymorphicType, assertInheritedSchema };
7
+ //# sourceMappingURL=assert-polymorphic-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert-polymorphic-type.d.ts","sourceRoot":"","sources":["../../../../src/graph/-private/debug/assert-polymorphic-type.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAchC,QAAA,IAAI,qBAAqB,EAAE,CACzB,gBAAgB,EAAE,sBAAsB,EACxC,gBAAgB,EAAE,YAAY,EAC9B,eAAe,EAAE,sBAAsB,EACvC,KAAK,EAAE,wBAAwB,KAC5B,IAAI,CAAC;AACV,QAAA,IAAI,qBAAqB,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAiQ5E,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { CollectionRelationship } from '../../../types/cache/relationship.ts';
2
+ import type { StableRecordIdentifier } from '../../../types/identifier.ts';
3
+ import type { Links, Meta, PaginationLinks } from '../../../types/spec/json-api-raw.ts';
4
+ import type { UpgradedMeta } from '../-edge-definition.ts';
5
+ import type { RelationshipState } from '../-state.ts';
6
+ export interface CollectionEdge {
7
+ definition: UpgradedMeta;
8
+ identifier: StableRecordIdentifier;
9
+ state: RelationshipState;
10
+ remoteMembers: Set<StableRecordIdentifier>;
11
+ remoteState: StableRecordIdentifier[];
12
+ additions: Set<StableRecordIdentifier> | null;
13
+ removals: Set<StableRecordIdentifier> | null;
14
+ meta: Meta | null;
15
+ links: Links | PaginationLinks | null;
16
+ localState: StableRecordIdentifier[] | null;
17
+ /**
18
+ * Whether the localState for this edge is out-of-sync
19
+ * with the remoteState.
20
+ *
21
+ * if state.hasReceivedData=false we are also
22
+ * not dirty since there is nothing to sync with.
23
+ *
24
+ */
25
+ isDirty: boolean;
26
+ transactionRef: number;
27
+ /**
28
+ * Whether data for this edge has been accessed at least once
29
+ * via `graph.getData`
30
+ *
31
+ */
32
+ accessed: boolean;
33
+ _diff?: {
34
+ add: Set<StableRecordIdentifier>;
35
+ del: Set<StableRecordIdentifier>;
36
+ };
37
+ }
38
+ export declare function createCollectionEdge(definition: UpgradedMeta, identifier: StableRecordIdentifier): CollectionEdge;
39
+ export declare function legacyGetCollectionRelationshipData(source: CollectionEdge, getRemoteState: boolean): CollectionRelationship;
40
+ //# sourceMappingURL=collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../src/graph/-private/edges/collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,YAAY,CAAC;IACzB,UAAU,EAAE,sBAAsB,CAAC;IACnC,KAAK,EAAE,iBAAiB,CAAC;IAEzB,aAAa,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;IAC3C,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAEtC,SAAS,EAAE,GAAG,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;IAC9C,QAAQ,EAAE,GAAG,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;IAE7C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,eAAe,GAAG,IAAI,CAAC;IAEtC,UAAU,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC;IAC5C;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACjC,GAAG,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;KAClC,CAAC;CACH;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,GAAG,cAAc,CAmBjH;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,cAAc,EACtB,cAAc,EAAE,OAAO,GACtB,sBAAsB,CAiBxB"}
@@ -0,0 +1,14 @@
1
+ import type { StableRecordIdentifier } from '../../../types/identifier.ts';
2
+ import type { UpgradedMeta } from '../-edge-definition.ts';
3
+ export type ImplicitMeta = UpgradedMeta & {
4
+ kind: 'implicit';
5
+ isImplicit: true;
6
+ };
7
+ export interface ImplicitEdge {
8
+ definition: ImplicitMeta;
9
+ identifier: StableRecordIdentifier;
10
+ localMembers: Set<StableRecordIdentifier>;
11
+ remoteMembers: Set<StableRecordIdentifier>;
12
+ }
13
+ export declare function createImplicitEdge(definition: ImplicitMeta, identifier: StableRecordIdentifier): ImplicitEdge;
14
+ //# sourceMappingURL=implicit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"implicit.d.ts","sourceRoot":"","sources":["../../../../src/graph/-private/edges/implicit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,UAAU,EAAE,IAAI,CAAA;CAAE,CAAC;AAEjF,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,YAAY,CAAC;IACzB,UAAU,EAAE,sBAAsB,CAAC;IACnC,YAAY,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;IAC1C,aAAa,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;CAC5C;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,GAAG,YAAY,CAO7G"}
@@ -0,0 +1,25 @@
1
+ import type { ResourceRelationship } from '../../../types/cache/relationship.ts';
2
+ import type { StableRecordIdentifier } from '../../../types/identifier.ts';
3
+ import type { Links, Meta, PaginationLinks } from '../../../types/spec/json-api-raw.ts';
4
+ import type { UpgradedMeta } from '../-edge-definition.ts';
5
+ import type { RelationshipState } from '../-state.ts';
6
+ /**
7
+ * Stores the data for one side of a "single" resource relationship.
8
+ *
9
+ * @class ResourceEdge
10
+ * @internal
11
+ */
12
+ export interface ResourceEdge {
13
+ definition: UpgradedMeta;
14
+ identifier: StableRecordIdentifier;
15
+ state: RelationshipState;
16
+ localState: StableRecordIdentifier | null;
17
+ remoteState: StableRecordIdentifier | null;
18
+ meta: Meta | null;
19
+ links: Links | PaginationLinks | null;
20
+ transactionRef: number;
21
+ accessed: boolean;
22
+ }
23
+ export declare function createResourceEdge(definition: UpgradedMeta, identifier: StableRecordIdentifier): ResourceEdge;
24
+ export declare function legacyGetResourceRelationshipData(source: ResourceEdge, getRemoteState: boolean): ResourceRelationship;
25
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../../src/graph/-private/edges/resource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,YAAY,CAAC;IACzB,UAAU,EAAE,sBAAsB,CAAC;IACnC,KAAK,EAAE,iBAAiB,CAAC;IACzB,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC1C,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,eAAe,GAAG,IAAI,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,GAAG,YAAY,CAY7G;AAED,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,GAAG,oBAAoB,CAwBrH"}
@@ -0,0 +1,55 @@
1
+ import type { CacheCapabilitiesManager, StableRecordIdentifier } from '../../types.ts';
2
+ import type { RelationshipDiff } from '../../types/cache.ts';
3
+ import type { MergeOperation } from '../../types/cache/operations.ts';
4
+ import type { CollectionRelationship, ResourceRelationship } from '../../types/cache/relationship.ts';
5
+ import type { DeleteRecordOperation, LocalRelationshipOperation, RemoteRelationshipOperation } from '../../types/graph.ts';
6
+ import type { EdgeCache, UpgradedMeta } from './-edge-definition.ts';
7
+ import { type CollectionEdge } from './edges/collection.ts';
8
+ import type { ImplicitEdge } from './edges/implicit.ts';
9
+ import { type ResourceEdge } from './edges/resource.ts';
10
+ export type GraphEdge = ImplicitEdge | CollectionEdge | ResourceEdge;
11
+ export declare const Graphs: Map<CacheCapabilitiesManager, Graph>;
12
+ type PendingOps = {
13
+ belongsTo?: Map<string, Map<string, RemoteRelationshipOperation[]>>;
14
+ hasMany?: Map<string, Map<string, RemoteRelationshipOperation[]>>;
15
+ deletions: DeleteRecordOperation[];
16
+ };
17
+ export declare class Graph {
18
+ _definitionCache: EdgeCache;
19
+ _metaCache: Record<string, Record<string, UpgradedMeta>>;
20
+ _potentialPolymorphicTypes: Record<string, Record<string, boolean>>;
21
+ identifiers: Map<StableRecordIdentifier, Record<string, GraphEdge>>;
22
+ store: CacheCapabilitiesManager;
23
+ isDestroyed: boolean;
24
+ _willSyncRemote: boolean;
25
+ _willSyncLocal: boolean;
26
+ silenceNotifications: boolean;
27
+ _pushedUpdates: PendingOps;
28
+ _updatedRelationships: Set<CollectionEdge>;
29
+ _transaction: number | null;
30
+ _removing: StableRecordIdentifier | null;
31
+ constructor(store: CacheCapabilitiesManager);
32
+ has(identifier: StableRecordIdentifier, propertyName: string): boolean;
33
+ getDefinition(identifier: StableRecordIdentifier, propertyName: string): UpgradedMeta;
34
+ get(identifier: StableRecordIdentifier, propertyName: string): GraphEdge;
35
+ getData(identifier: StableRecordIdentifier, propertyName: string): ResourceRelationship | CollectionRelationship;
36
+ getRemoteData(identifier: StableRecordIdentifier, propertyName: string): ResourceRelationship | CollectionRelationship;
37
+ registerPolymorphicType(type1: string, type2: string): void;
38
+ isReleasable(identifier: StableRecordIdentifier): boolean;
39
+ unload(identifier: StableRecordIdentifier, silenceNotifications?: boolean): void;
40
+ _isDirty(identifier: StableRecordIdentifier, field: string): boolean;
41
+ getChanged(identifier: StableRecordIdentifier): Map<string, RelationshipDiff>;
42
+ hasChanged(identifier: StableRecordIdentifier): boolean;
43
+ rollback(identifier: StableRecordIdentifier): string[];
44
+ remove(identifier: StableRecordIdentifier): void;
45
+ push(op: RemoteRelationshipOperation): void;
46
+ update(op: RemoteRelationshipOperation | MergeOperation, isRemote: true): void;
47
+ update(op: LocalRelationshipOperation, isRemote?: false): void;
48
+ _scheduleLocalSync(relationship: CollectionEdge): void;
49
+ _flushRemoteQueue(): void;
50
+ _addToTransaction(relationship: CollectionEdge | ResourceEdge): void;
51
+ _flushLocalQueue(): void;
52
+ destroy(): void;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,C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U,EAAE,sBAAsB,GAAG,MAAM,EAAE;IAuBtD,MAAM,CAAC,UAAU,EAAE,sBAAsB;IAezC,IAAI,CAAC,EAAE,EAAE,2BAA2B;IA0BpC,MAAM,CAAC,EAAE,EAAE,2BAA2B,GAAG,cAAc,EAAE,QAAQ,EAAE,IAAI,GAAG,IAAI;IAC9E,MAAM,CAAC,EAAE,EAAE,0BAA0B,EAAE,QAAQ,CAAC,EAAE,KAAK,GAAG,IAAI;IAqE9D,kBAAkB,CAAC,YAAY,EAAE,cAAc;IAQ/C,iBAAiB;IAsCjB,iBAAiB,CAAC,YAAY,EAAE,cAAc,GAAG,YAAY;IAS7D,gBAAgB;IAiBhB,OAAO;CAoBR"}
@@ -0,0 +1,3 @@
1
+ import type { Link, LinkObject } from '../../types/spec/json-api-raw.ts';
2
+ export default function _normalizeLink(link: Link): LinkObject | null;
3
+ //# sourceMappingURL=normalize-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-link.d.ts","sourceRoot":"","sources":["../../../src/graph/-private/normalize-link.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAQzE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,GAAG,IAAI,CAOpE"}
@@ -0,0 +1,5 @@
1
+ import type { AddToResourceRelationshipMutation } from '../../../types/cache/mutations.ts';
2
+ import type { AddToResourceRelationshipOperation } from '../../../types/cache/operations.ts';
3
+ import type { Graph } from '../graph.ts';
4
+ export default function addToRelatedRecords(graph: Graph, op: AddToResourceRelationshipOperation | AddToResourceRelationshipMutation, isRemote: boolean): void;
5
+ //# sourceMappingURL=add-to-related-records.d.ts.map