@warp-drive/core 5.10.0-alpha.7 → 5.10.0-alpha.8

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 (128) hide show
  1. package/dist/{-private-DBlBmiNp.js → -private-CjK1Dmuh.js} +3 -3
  2. package/dist/{-private-DBlBmiNp.js.map → -private-CjK1Dmuh.js.map} +1 -1
  3. package/dist/{unpkg/dev-deprecated/-private-6kTp5R1L.js → -private-Dtj8O5W7.js} +2 -2
  4. package/dist/{-private-KOOIu1oa.js.map → -private-Dtj8O5W7.js.map} +1 -1
  5. package/dist/configure.js +1 -1
  6. package/dist/graph/-private.js +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/reactive/-private.js +1 -1
  9. package/dist/reactive.js +3 -3
  10. package/dist/{request-CU7NcFQP.js → request-Di274pQz.js} +2 -2
  11. package/dist/{request-CU7NcFQP.js.map → request-Di274pQz.js.map} +1 -1
  12. package/dist/request.js +1 -1
  13. package/dist/signals/-leaked.js +1 -1
  14. package/dist/{src-CjNe_Kwe.js → src-BVANmW9j.js} +5 -5
  15. package/dist/{src-CjNe_Kwe.js.map → src-BVANmW9j.js.map} +1 -1
  16. package/dist/store/-private.js +1 -1
  17. package/dist/types/-private.d.ts.map +1 -1
  18. package/dist/types/-private.js +116 -2
  19. package/dist/types/-private.js.map +1 -0
  20. package/dist/types/request.js +1 -1
  21. package/dist/types/runtime.js +1 -1
  22. package/dist/types/symbols.js +1 -1
  23. package/dist/unpkg/dev/{-private-BVekQ7LS.js → -private-DrQgwtNS.js} +3 -3
  24. package/dist/unpkg/{dev-deprecated/-private-BVekQ7LS.js.map → dev/-private-DrQgwtNS.js.map} +1 -1
  25. package/dist/{-private-KOOIu1oa.js → unpkg/dev/-private-Dtj8O5W7.js} +2 -2
  26. package/dist/unpkg/dev/{-private-6kTp5R1L.js.map → -private-Dtj8O5W7.js.map} +1 -1
  27. package/dist/unpkg/dev/configure.js +1 -1
  28. package/dist/unpkg/dev/graph/-private.js +2 -2
  29. package/dist/unpkg/dev/index.js +1 -1
  30. package/dist/unpkg/dev/reactive/-private.js +1 -1
  31. package/dist/unpkg/dev/reactive.js +3 -3
  32. package/dist/unpkg/dev/{request-C21stEc9.js → request-nAaeDlS9.js} +2 -2
  33. package/dist/unpkg/dev/{request-C21stEc9.js.map → request-nAaeDlS9.js.map} +1 -1
  34. package/dist/unpkg/dev/request.js +1 -1
  35. package/dist/unpkg/dev/{runtime-DW881fpw.js → runtime-vtT5WRY_.js} +2 -2
  36. package/dist/unpkg/dev/{runtime-DW881fpw.js.map → runtime-vtT5WRY_.js.map} +1 -1
  37. package/dist/unpkg/dev/signals/-leaked.js +1 -1
  38. package/dist/unpkg/dev/{src-B8mXRVra.js → src-BxlrcSwo.js} +7 -7
  39. package/dist/unpkg/dev/{src-B8mXRVra.js.map → src-BxlrcSwo.js.map} +1 -1
  40. package/dist/unpkg/dev/store/-private.js +1 -1
  41. package/dist/unpkg/{dev-deprecated/store-D-z_1Jxe.js → dev/store-BIFNM_fB.js} +2 -2
  42. package/dist/unpkg/{dev-deprecated/store-D-z_1Jxe.js.map → dev/store-BIFNM_fB.js.map} +1 -1
  43. package/dist/unpkg/dev/store.js +1 -1
  44. package/dist/unpkg/dev/types/-private.js +107 -2
  45. package/dist/unpkg/dev/types/-private.js.map +1 -0
  46. package/dist/unpkg/dev/types/request.js +1 -1
  47. package/dist/unpkg/dev/types/runtime.js +1 -1
  48. package/dist/unpkg/dev/types/symbols.js +1 -1
  49. package/dist/unpkg/dev-deprecated/{-private-BVekQ7LS.js → -private-DrQgwtNS.js} +3 -3
  50. package/dist/unpkg/{dev/-private-BVekQ7LS.js.map → dev-deprecated/-private-DrQgwtNS.js.map} +1 -1
  51. package/dist/unpkg/{dev/-private-6kTp5R1L.js → dev-deprecated/-private-Dtj8O5W7.js} +2 -2
  52. package/dist/unpkg/dev-deprecated/{-private-6kTp5R1L.js.map → -private-Dtj8O5W7.js.map} +1 -1
  53. package/dist/unpkg/dev-deprecated/configure.js +1 -1
  54. package/dist/unpkg/dev-deprecated/graph/-private.js +2 -2
  55. package/dist/unpkg/dev-deprecated/index.js +1 -1
  56. package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
  57. package/dist/unpkg/dev-deprecated/reactive.js +3 -3
  58. package/dist/unpkg/dev-deprecated/{request-C21stEc9.js → request-nAaeDlS9.js} +2 -2
  59. package/dist/unpkg/dev-deprecated/{request-C21stEc9.js.map → request-nAaeDlS9.js.map} +1 -1
  60. package/dist/unpkg/dev-deprecated/request.js +1 -1
  61. package/dist/unpkg/dev-deprecated/{runtime-BIra6K31.js → runtime-e4oZ_UWz.js} +2 -2
  62. package/dist/unpkg/dev-deprecated/{runtime-BIra6K31.js.map → runtime-e4oZ_UWz.js.map} +1 -1
  63. package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
  64. package/dist/unpkg/dev-deprecated/{src-Dozi8FJ1.js → src-BEpY2ZqX.js} +8 -8
  65. package/dist/unpkg/dev-deprecated/{src-Dozi8FJ1.js.map → src-BEpY2ZqX.js.map} +1 -1
  66. package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
  67. package/dist/unpkg/{dev/store-C0p6sclI.js → dev-deprecated/store-X1WN7P_O.js} +2 -2
  68. package/dist/unpkg/{dev/store-C0p6sclI.js.map → dev-deprecated/store-X1WN7P_O.js.map} +1 -1
  69. package/dist/unpkg/dev-deprecated/store.js +1 -1
  70. package/dist/unpkg/dev-deprecated/types/-private.js +107 -2
  71. package/dist/unpkg/dev-deprecated/types/-private.js.map +1 -0
  72. package/dist/unpkg/dev-deprecated/types/request.js +1 -1
  73. package/dist/unpkg/dev-deprecated/types/runtime.js +1 -1
  74. package/dist/unpkg/dev-deprecated/types/symbols.js +1 -1
  75. package/dist/unpkg/{prod-deprecated/-private-CDTSpfo8.js → prod/-private-Dg1vsF-H.js} +3 -3
  76. package/dist/unpkg/{prod-deprecated/-private-CDTSpfo8.js.map → prod/-private-Dg1vsF-H.js.map} +1 -1
  77. package/dist/unpkg/prod/-private-Dtj8O5W7.js +22 -0
  78. package/dist/unpkg/prod/{-private-DOd4F2SW.js.map → -private-Dtj8O5W7.js.map} +1 -1
  79. package/dist/unpkg/prod/configure.js +1 -1
  80. package/dist/unpkg/prod/graph/-private.js +1 -1
  81. package/dist/unpkg/prod/index.js +1 -1
  82. package/dist/unpkg/prod/reactive/-private.js +1 -1
  83. package/dist/unpkg/prod/reactive.js +3 -3
  84. package/dist/unpkg/{prod-deprecated/request-BwNFEGCB.js → prod/request-DK7nNaAf.js} +2 -2
  85. package/dist/unpkg/{prod-deprecated/request-BwNFEGCB.js.map → prod/request-DK7nNaAf.js.map} +1 -1
  86. package/dist/unpkg/prod/request.js +1 -1
  87. package/dist/unpkg/prod/signals/-leaked.js +1 -1
  88. package/dist/unpkg/prod/{src-Bvzysa0G.js → src-_zEt-Z_U.js} +5 -5
  89. package/dist/unpkg/prod/{src-Bvzysa0G.js.map → src-_zEt-Z_U.js.map} +1 -1
  90. package/dist/unpkg/prod/store/-private.js +1 -1
  91. package/dist/unpkg/prod/types/-private.js +95 -2
  92. package/dist/unpkg/prod/types/-private.js.map +1 -0
  93. package/dist/unpkg/prod/types/request.js +1 -1
  94. package/dist/unpkg/prod/types/runtime.js +1 -1
  95. package/dist/unpkg/prod/types/symbols.js +1 -1
  96. package/dist/unpkg/{prod/-private-CDTSpfo8.js → prod-deprecated/-private-Dg1vsF-H.js} +3 -3
  97. package/dist/unpkg/{prod/-private-CDTSpfo8.js.map → prod-deprecated/-private-Dg1vsF-H.js.map} +1 -1
  98. package/dist/unpkg/prod-deprecated/{-private-DOd4F2SW.js → -private-Dtj8O5W7.js} +2 -2
  99. package/dist/unpkg/prod-deprecated/{-private-DOd4F2SW.js.map → -private-Dtj8O5W7.js.map} +1 -1
  100. package/dist/unpkg/prod-deprecated/configure.js +1 -1
  101. package/dist/unpkg/prod-deprecated/graph/-private.js +1 -1
  102. package/dist/unpkg/prod-deprecated/index.js +1 -1
  103. package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
  104. package/dist/unpkg/prod-deprecated/reactive.js +3 -3
  105. package/dist/unpkg/{prod/request-BwNFEGCB.js → prod-deprecated/request-DK7nNaAf.js} +2 -2
  106. package/dist/unpkg/{prod/request-BwNFEGCB.js.map → prod-deprecated/request-DK7nNaAf.js.map} +1 -1
  107. package/dist/unpkg/prod-deprecated/request.js +1 -1
  108. package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -1
  109. package/dist/unpkg/prod-deprecated/{src-fN7gkcUd.js → src-COK6V0cs.js} +6 -6
  110. package/dist/unpkg/prod-deprecated/{src-fN7gkcUd.js.map → src-COK6V0cs.js.map} +1 -1
  111. package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
  112. package/dist/unpkg/prod-deprecated/types/-private.js +95 -2
  113. package/dist/unpkg/prod-deprecated/types/-private.js.map +1 -0
  114. package/dist/unpkg/prod-deprecated/types/request.js +1 -1
  115. package/dist/unpkg/prod-deprecated/types/runtime.js +1 -1
  116. package/dist/unpkg/prod-deprecated/types/symbols.js +1 -1
  117. package/package.json +6 -6
  118. package/dist/-private-vJakAjAP.js +0 -120
  119. package/dist/-private-vJakAjAP.js.map +0 -1
  120. package/dist/unpkg/dev/-private-qh-3RIJv.js +0 -111
  121. package/dist/unpkg/dev/-private-qh-3RIJv.js.map +0 -1
  122. package/dist/unpkg/dev-deprecated/-private-qh-3RIJv.js +0 -111
  123. package/dist/unpkg/dev-deprecated/-private-qh-3RIJv.js.map +0 -1
  124. package/dist/unpkg/prod/-private-DOd4F2SW.js +0 -22
  125. package/dist/unpkg/prod/-private-PfiN6w09.js +0 -99
  126. package/dist/unpkg/prod/-private-PfiN6w09.js.map +0 -1
  127. package/dist/unpkg/prod-deprecated/-private-PfiN6w09.js +0 -99
  128. package/dist/unpkg/prod-deprecated/-private-PfiN6w09.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import { C as setRecordIdentifier, D as isResourceKey, E as isRequestKey, F as ensureStringId, I as log, L as logGroup, N as normalizeModelName, P as coerceId, S as recordIdentifierFor, T as assertPrivateCapabilities, _ as isPrivateStore, b as StoreMap, f as createLegacyManyArray, g as assertPrivateStore, h as Store, m as CacheHandler, p as constructResource, v as RecordArrayManager, w as storeFor, x as _clearCaches, y as fastPush } from "../src-CjNe_Kwe.js";
1
+ import { C as setRecordIdentifier, D as isResourceKey, E as isRequestKey, F as ensureStringId, I as log, L as logGroup, N as normalizeModelName, P as coerceId, S as recordIdentifierFor, T as assertPrivateCapabilities, _ as isPrivateStore, b as StoreMap, f as createLegacyManyArray, g as assertPrivateStore, h as Store, m as CacheHandler, p as constructResource, v as RecordArrayManager, w as storeFor, x as _clearCaches, y as fastPush } from "../src-BVANmW9j.js";
2
2
 
3
3
  export { CacheHandler, RecordArrayManager, Store, StoreMap, _clearCaches, normalizeModelName as _deprecatingNormalize, assertPrivateCapabilities, assertPrivateStore, coerceId, constructResource, createLegacyManyArray, ensureStringId, fastPush, isPrivateStore, isRequestKey, isResourceKey, log, logGroup, recordIdentifierFor, setRecordIdentifier, storeFor };
@@ -1 +1 @@
1
- {"version":3,"file":"-private.d.ts","names":[],"sources":["../../src/types/-private.ts"],"mappings":";KAMK;KAIA,8BACc;KAWd;KAWA,2BACc;KA8Gd,aAAa,0CAA0C;KACvD,eAAe,GAAG,oBAAoB,mBAAmB,aAAa,KAAK;;;;;;;;;;;;;;;;;;wBAmBhE,eAAe,GAAG,UAAU,WAAW,KAAK,GAAG,OAAO,IAAI,eAAe,GAAG;;;;;;;;;;;;wBAwB5E,cAAc,GAAG,KAAK,eAAe;;;;;;;;;wBAarC,aAAa,GAAG,KAAK,cAAc,OAAO,IAAI;;;;;;;;;;;wBAe9C,kBAAkB,GAAG,UAAU,cAAc,KAAK,GAAG,OAAO,IAAI,eAAe,GAAG;;;;;;;;wBAoBlF,uBAAuB,GAAG,KAAK,wBAAwB;;;;;;;;wBAYvD,sBAAsB,GAAG,KAAK,uBAAuB,OAAO,IAAI"}
1
+ {"version":3,"file":"-private.d.ts","names":[],"sources":["../../src/types/-private.ts"],"mappings":";KAcK;KAIA,8BACc;KAWd;KAWA,2BACc;KA8Gd,aAAa,0CAA0C;KACvD,eAAe,GAAG,oBAAoB,mBAAmB,aAAa,KAAK;;;;;;;;;;;;;;;;;;wBAmBhE,eAAe,GAAG,UAAU,WAAW,KAAK,GAAG,OAAO,IAAI,eAAe,GAAG;;;;;;;;;;;;wBAwB5E,cAAc,GAAG,KAAK,eAAe;;;;;;;;;wBAarC,aAAa,GAAG,KAAK,cAAc,OAAO,IAAI;;;;;;;;;;;wBAe9C,kBAAkB,GAAG,UAAU,cAAc,KAAK,GAAG,OAAO,IAAI,eAAe,GAAG;;;;;;;;wBAoBlF,uBAAuB,GAAG,KAAK,wBAAwB;;;;;;;;wBAYvD,sBAAsB,GAAG,KAAK,uBAAuB,OAAO,IAAI"}
@@ -1,3 +1,117 @@
1
- import { a as setTransient, i as peekUniversalTransient, n as getOrSetUniversal, o as setUniversalTransient, r as peekTransient, t as getOrSetGlobal } from "../-private-vJakAjAP.js";
1
+ import { getGlobalConfig, macroCondition } from "@embroider/macros";
2
2
 
3
- export { getOrSetGlobal, getOrSetUniversal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient };
3
+ //#region src/types/-private.ts
4
+ const name = "@warp-drive/core";
5
+ const version = "5.10.0-alpha.8";
6
+ const GlobalRef = globalThis;
7
+ const UniversalCache = GlobalRef.__warpDrive_universalCache = GlobalRef.__warpDrive_universalCache ?? {};
8
+ GlobalRef[name] = GlobalRef[name] ?? { __version: version };
9
+ const GlobalSink = GlobalRef[name];
10
+ if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
11
+ if (GlobalSink.__version !== version) throw new Error("Multiple versions of WarpDrive detected, the application will malfunction.");
12
+ }
13
+ const ModuleScopedCaches = GlobalSink.__warpDrive_ModuleScopedCaches ?? {};
14
+ if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
15
+ if (!GlobalSink.__warpDrive_ModuleScopedCaches) GlobalSink.__warpDrive_ModuleScopedCaches = ModuleScopedCaches;
16
+ else console.warn(`
17
+ Multiple copies of WarpDrive have been detected. This may be due to a bug in ember-auto-import
18
+ in which test assets get their own copy of some v2-addons. This can cause the application to
19
+ malfunction as each copy will maintain its own separate state.`);
20
+ } else {
21
+ if (GlobalSink.__warpDrive_hasOtherCopy) throw new Error("Multiple copies of WarpDrive detected, the application will malfunction.");
22
+ GlobalSink.__warpDrive_hasOtherCopy = true;
23
+ }
24
+ /**
25
+ * Coordinates creation of a singleton `value` (e.g. a symbol, WeakMap, or
26
+ * error class) for `key` so that duplicate copies of this package loaded
27
+ * into the same process observe the same instance instead of each creating
28
+ * their own.
29
+ *
30
+ * In `TESTING` builds this stores/reads `value` from a cache namespaced to
31
+ * this package's name on `globalThis` (see the file-level comments above for
32
+ * why this is necessary). Outside of `TESTING`, only one copy of the package
33
+ * is expected to exist, so this is a no-op that always returns `value`
34
+ * unchanged.
35
+ *
36
+ * The return type lies about symbols being unique to work around the d.ts
37
+ * rollup issue described in `reactive/-private/symbols.ts`.
38
+ *
39
+ * @private
40
+ */
41
+ function getOrSetGlobal(key, value) {
42
+ if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
43
+ const existing = ModuleScopedCaches[key];
44
+ if (existing === void 0) return ModuleScopedCaches[key] = value;
45
+ else return existing;
46
+ } else return value;
47
+ }
48
+ /**
49
+ * Reads back the current value stored for `key` by {@link setTransient}, or
50
+ * `null` if nothing has been stored yet.
51
+ *
52
+ * Unlike {@link getOrSetGlobal}, this always reads through the same
53
+ * package-namespaced cache regardless of the `TESTING` flag, since this is
54
+ * used for genuinely mutable state (not just singleton values) that must
55
+ * stay in sync across any duplicate copies of this package.
56
+ *
57
+ * @private
58
+ */
59
+ function peekTransient(key) {
60
+ const globalKey = `(transient) ${key}`;
61
+ return ModuleScopedCaches[globalKey] ?? null;
62
+ }
63
+ /**
64
+ * Stores `value` for `key`, overwriting whatever was previously stored, so
65
+ * that it can later be read back via {@link peekTransient}.
66
+ *
67
+ * See {@link peekTransient} for details on when/why this cache is shared.
68
+ *
69
+ * @private
70
+ */
71
+ function setTransient(key, value) {
72
+ const globalKey = `(transient) ${key}`;
73
+ return ModuleScopedCaches[globalKey] = value;
74
+ }
75
+ /**
76
+ * Like {@link getOrSetGlobal}, but reads/writes a cache that is shared across
77
+ * *all* copies of WarpDrive on `globalThis`, regardless of package name.
78
+ *
79
+ * This is used for keys (e.g. request/promise caches) that must be
80
+ * coordinated even across "mirror" packages published under different
81
+ * names, rather than only across duplicate copies of the same package name.
82
+ *
83
+ * @private
84
+ */
85
+ function getOrSetUniversal(key, value) {
86
+ if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
87
+ const existing = UniversalCache[key];
88
+ if (existing === void 0) return UniversalCache[key] = value;
89
+ else return existing;
90
+ } else return value;
91
+ }
92
+ /**
93
+ * Like {@link peekTransient}, but reads from the package-name-independent
94
+ * cache used by {@link getOrSetUniversal}. Always reads through this shared
95
+ * cache regardless of the `TESTING` flag.
96
+ *
97
+ * @private
98
+ */
99
+ function peekUniversalTransient(key) {
100
+ const globalKey = `(transient) ${key}`;
101
+ return UniversalCache[globalKey] ?? null;
102
+ }
103
+ /**
104
+ * Like {@link setTransient}, but writes to the package-name-independent
105
+ * cache used by {@link getOrSetUniversal}, so it can later be read via
106
+ * {@link peekUniversalTransient}.
107
+ *
108
+ * @private
109
+ */
110
+ function setUniversalTransient(key, value) {
111
+ const globalKey = `(transient) ${key}`;
112
+ return UniversalCache[globalKey] = value;
113
+ }
114
+
115
+ //#endregion
116
+ export { getOrSetGlobal, getOrSetUniversal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient };
117
+ //# sourceMappingURL=-private.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-private.js","names":["getGlobalConfig","macroCondition","name","__WARP_DRIVE_PACKAGE_NAME__","version","__WARP_DRIVE_PACKAGE_VERSION__","GlobalRef","globalThis","UniversalCache","__warpDrive_universalCache","__version","GlobalSink","WarpDrive","env","DEBUG","Error","ModuleScopedCaches","__warpDrive_ModuleScopedCaches","TESTING","console","warn","__warpDrive_hasOtherCopy","getOrSetGlobal","key","value","existing","undefined","peekTransient","globalKey","setTransient","getOrSetUniversal","peekUniversalTransient","setUniversalTransient"],"sources":["../../src/types/-private.ts"],"sourcesContent":["// in testing mode, we utilize globals to ensure only one copy exists of\n// these maps, due to bugs in ember-auto-import\nimport { DEBUG, TESTING } from '@warp-drive/core/build-config/env';\n\n// Substituted at build time (see `tools/internal-config/tsdown/config.js`)\n// with this package's own `name`/`version` from its `package.json`. Reading\n// it via a static import instead would get inlined by tsdown as a synthetic\n// sourcemap source with empty `sourcesContent`, which points outside the\n// published package once the built chunk is re-bundled by a consumer.\ndeclare const __WARP_DRIVE_PACKAGE_NAME__: string;\ndeclare const __WARP_DRIVE_PACKAGE_VERSION__: string;\nconst name = __WARP_DRIVE_PACKAGE_NAME__;\nconst version = __WARP_DRIVE_PACKAGE_VERSION__;\n\ntype UniversalTransientKey =\n // @warp-drive/core/request\n 'REQ_ID';\n\ntype UniversalKey =\n | `(transient) ${UniversalTransientKey}`\n // @warp-drive/core/request\n | 'RequestMap'\n | 'PromiseCache'\n | 'RequestCache'\n // @warp-drive/core-types/request\n | 'SkipCache'\n | 'EnableHydration'\n // @warp-drive/core-types/runtime\n | 'WarpDriveRuntimeConfig';\n\ntype TransientKey =\n // @warp-drive/core/graph\n | 'transactionRef'\n // @warp-drive/core/store\n | 'configuredGenerationMethod'\n | 'configuredUpdateMethod'\n | 'configuredForgetMethod'\n | 'configuredResetMethod'\n | 'configuredKeyInfoMethod'\n | 'signalHooks';\n\ntype GlobalKey =\n | `(transient) ${TransientKey}`\n // @warp-drive/legacy/adapter\n | 'AdapterError'\n | 'InvalidError'\n | 'TimeoutError'\n | 'AbortError'\n | 'UnauthorizedError'\n | 'ForbiddenError'\n | 'NotFoundError'\n | 'ConflictError'\n | 'ServerError'\n // @warp-drive/core/store/reactivity\n | '#{}'\n | '#[]'\n | 'Signals'\n // @warp-drive/legacy LegacySupport\n | 'AvailableShims'\n // @warp-drive/core RecordArrayManager\n | 'FAKE_ARR'\n // @warp-drive/core ReactiveArray\n | '#source'\n | '#update'\n | '#notify'\n | 'IS_COLLECTION'\n // @warp-drive/core RequestCache\n | 'Touching'\n | 'RequestPromise'\n // @warp-drive/legacy/compat FetchManager\n | 'SaveOp'\n // @warp-drive/legacy Model\n | 'LEGACY_SUPPORT'\n | 'LegacySupport'\n // @warp-drive/core/graph\n | 'Graphs'\n // @warp-drive/core/request\n | 'IS_FROZEN'\n | 'IS_CACHE_HANDLER'\n // @warp-drive/utilities\n | 'CONFIG'\n // @warp-drive/core CacheKeyManager\n | 'DEBUG_MAP'\n | 'IDENTIFIERS'\n | 'DOCUMENTS'\n // @warp-drive/core InstanceCache\n | 'RecordCache'\n | 'StoreMap'\n // @warp-drive/core/types/symbols\n | 'Store'\n | '$type'\n | 'TransformName'\n | 'RequestSignature'\n // @warp-drive/core/types/request\n | 'IS_FUTURE'\n | 'DOC'\n // @warp-drive/core NotificationManager\n | 'UnscopedChannel'\n // @warp-drive/core/reactive\n | 'ManagedArrayMap'\n | 'ManagedObjectMap'\n | 'Support'\n | 'SOURCE'\n | 'Destroy'\n | 'Checkout'\n | 'Commit'\n | 'Context';\n\ntype ModuleScopedCaches = Record<GlobalKey, unknown>;\n\nconst GlobalRef = globalThis as unknown as Record<\n string,\n {\n __warpDrive_ModuleScopedCaches?: ModuleScopedCaches;\n __warpDrive_hasOtherCopy?: boolean;\n __version: string;\n }\n> & {\n __warpDrive_universalCache: Record<UniversalKey, unknown>;\n};\nconst UniversalCache = (GlobalRef.__warpDrive_universalCache =\n GlobalRef.__warpDrive_universalCache ?? ({} as Record<UniversalKey, unknown>));\n\n// in order to support mirror packages, we ensure that each\n// unique package name has its own global cache\nGlobalRef[name] = GlobalRef[name] ?? { __version: version };\nconst GlobalSink = GlobalRef[name];\n\nif (DEBUG) {\n if (GlobalSink.__version !== version) {\n throw new Error('Multiple versions of WarpDrive detected, the application will malfunction.');\n }\n}\n\nconst ModuleScopedCaches = GlobalSink.__warpDrive_ModuleScopedCaches ?? ({} as ModuleScopedCaches);\nif (TESTING) {\n if (!GlobalSink.__warpDrive_ModuleScopedCaches) {\n GlobalSink.__warpDrive_ModuleScopedCaches = ModuleScopedCaches;\n } else {\n // oxlint-disable-next-line no-console\n console.warn(`\nMultiple copies of WarpDrive have been detected. This may be due to a bug in ember-auto-import\n in which test assets get their own copy of some v2-addons. This can cause the application to\n malfunction as each copy will maintain its own separate state.`);\n }\n} else {\n if (GlobalSink.__warpDrive_hasOtherCopy) {\n throw new Error('Multiple copies of WarpDrive detected, the application will malfunction.');\n }\n GlobalSink.__warpDrive_hasOtherCopy = true;\n}\n\ntype UniqueSymbol<T extends string> = `___(unique) Symbol(${T})`;\ntype UniqueSymbolOr<T, K extends string> = T extends symbol ? UniqueSymbol<K> : T;\n\n/**\n * Coordinates creation of a singleton `value` (e.g. a symbol, WeakMap, or\n * error class) for `key` so that duplicate copies of this package loaded\n * into the same process observe the same instance instead of each creating\n * their own.\n *\n * In `TESTING` builds this stores/reads `value` from a cache namespaced to\n * this package's name on `globalThis` (see the file-level comments above for\n * why this is necessary). Outside of `TESTING`, only one copy of the package\n * is expected to exist, so this is a no-op that always returns `value`\n * unchanged.\n *\n * The return type lies about symbols being unique to work around the d.ts\n * rollup issue described in `reactive/-private/symbols.ts`.\n *\n * @private\n */\nexport function getOrSetGlobal<T, K extends GlobalKey>(key: K, value: T): UniqueSymbolOr<T, K> {\n if (TESTING) {\n const existing = ModuleScopedCaches[key];\n if (existing === undefined) {\n return (ModuleScopedCaches[key] = value) as UniqueSymbolOr<T, K>;\n } else {\n return existing as UniqueSymbolOr<T, K>;\n }\n } else {\n return value as UniqueSymbolOr<T, K>;\n }\n}\n\n/**\n * Reads back the current value stored for `key` by {@link setTransient}, or\n * `null` if nothing has been stored yet.\n *\n * Unlike {@link getOrSetGlobal}, this always reads through the same\n * package-namespaced cache regardless of the `TESTING` flag, since this is\n * used for genuinely mutable state (not just singleton values) that must\n * stay in sync across any duplicate copies of this package.\n *\n * @private\n */\nexport function peekTransient<T>(key: TransientKey): T | null {\n const globalKey: `(transient) ${TransientKey}` = `(transient) ${key}`;\n return (ModuleScopedCaches[globalKey] as T) ?? null;\n}\n\n/**\n * Stores `value` for `key`, overwriting whatever was previously stored, so\n * that it can later be read back via {@link peekTransient}.\n *\n * See {@link peekTransient} for details on when/why this cache is shared.\n *\n * @private\n */\nexport function setTransient<T>(key: TransientKey, value: T): T {\n const globalKey: `(transient) ${TransientKey}` = `(transient) ${key}`;\n return (ModuleScopedCaches[globalKey] = value);\n}\n\n/**\n * Like {@link getOrSetGlobal}, but reads/writes a cache that is shared across\n * *all* copies of WarpDrive on `globalThis`, regardless of package name.\n *\n * This is used for keys (e.g. request/promise caches) that must be\n * coordinated even across \"mirror\" packages published under different\n * names, rather than only across duplicate copies of the same package name.\n *\n * @private\n */\nexport function getOrSetUniversal<T, K extends UniversalKey>(key: K, value: T): UniqueSymbolOr<T, K> {\n if (TESTING) {\n const existing = UniversalCache[key];\n if (existing === undefined) {\n return (UniversalCache[key] = value) as UniqueSymbolOr<T, K>;\n } else {\n return existing as UniqueSymbolOr<T, K>;\n }\n } else {\n return value as UniqueSymbolOr<T, K>;\n }\n}\n\n/**\n * Like {@link peekTransient}, but reads from the package-name-independent\n * cache used by {@link getOrSetUniversal}. Always reads through this shared\n * cache regardless of the `TESTING` flag.\n *\n * @private\n */\nexport function peekUniversalTransient<T>(key: UniversalTransientKey): T | null {\n const globalKey: `(transient) ${UniversalTransientKey}` = `(transient) ${key}`;\n return (UniversalCache[globalKey] as T) ?? null;\n}\n\n/**\n * Like {@link setTransient}, but writes to the package-name-independent\n * cache used by {@link getOrSetUniversal}, so it can later be read via\n * {@link peekUniversalTransient}.\n *\n * @private\n */\nexport function setUniversalTransient<T>(key: UniversalTransientKey, value: T): T {\n const globalKey: `(transient) ${UniversalTransientKey}` = `(transient) ${key}`;\n return (UniversalCache[globalKey] = value);\n}\n"],"mappings":";;;AAWA,MAAME;AACN,MAAME;AAkGN,MAAME,YAAYC;AAUlB,MAAMC,iBAAkBF,UAAUG,6BAChCH,UAAUG,8BAA+B,CAAC;AAI5CH,UAAUJ,QAAQI,UAAUJ,SAAS,EAAEQ,WAAWN,QAAQ;AAC1D,MAAMO,aAAaL,UAAUJ;AAE7B,IAAAD,eAAAD,gBAAA,CAAA,CAAAY,UAAAC,IAAAC,KAAA,GACE;KAAIH,WAAWD,cAAcN,SAC3B,MAAM,IAAIW,MAAM,4EAA4E;AAC9F;AAGF,MAAMC,qBAAqBL,WAAWM,kCAAmC,CAAC;AAC1E,IAAAhB,eAAAD,gBAAA,CAAA,CAAAY,UAAAC,IAAAK,OAAA,GAAa;CACX,IAAI,CAACP,WAAWM,gCACdN,WAAWM,iCAAiCD;MAG5CG,QAAQC,KAAK;;;iEAGgD;AAEjE,OAAO;CACL,IAAIT,WAAWU,0BACb,MAAM,IAAIN,MAAM,0EAA0E;CAE5FJ,WAAWU,2BAA2B;AACxC;;;;;;;;;;;;;;;;;;AAsBA,SAAgBC,eAAuCC,KAAQC,OAAgC;CAC7F,IAAAvB,eAAAD,gBAAA,CAAA,CAAAY,UAAAC,IAAAK,OAAA,GAAa;EACX,MAAMO,WAAWT,mBAAmBO;EACpC,IAAIE,aAAaC,QACf,OAAQV,mBAAmBO,OAAOC;OAElC,OAAOC;CAEX,OACE,OAAOD;AAEX;;;;;;;;;;;;AAaA,SAAgBG,cAAiBJ,KAA6B;CAC5D,MAAMK,YAA2C,eAAeL;CAChE,OAAQP,mBAAmBY,cAAoB;AACjD;;;;;;;;;AAUA,SAAgBC,aAAgBN,KAAmBC,OAAa;CAC9D,MAAMI,YAA2C,eAAeL;CAChE,OAAQP,mBAAmBY,aAAaJ;AAC1C;;;;;;;;;;;AAYA,SAAgBM,kBAA6CP,KAAQC,OAAgC;CACnG,IAAAvB,eAAAD,gBAAA,CAAA,CAAAY,UAAAC,IAAAK,OAAA,GAAa;EACX,MAAMO,WAAWjB,eAAee;EAChC,IAAIE,aAAaC,QACf,OAAQlB,eAAee,OAAOC;OAE9B,OAAOC;CAEX,OACE,OAAOD;AAEX;;;;;;;;AASA,SAAgBO,uBAA0BR,KAAsC;CAC9E,MAAMK,YAAoD,eAAeL;CACzE,OAAQf,eAAeoB,cAAoB;AAC7C;;;;;;;;AASA,SAAgBI,sBAAyBT,KAA4BC,OAAa;CAChF,MAAMI,YAAoD,eAAeL;CACzE,OAAQf,eAAeoB,aAAaJ;AACtC"}
@@ -1,4 +1,4 @@
1
- import { n as getOrSetUniversal, t as getOrSetGlobal } from "../-private-vJakAjAP.js";
1
+ import { getOrSetGlobal, getOrSetUniversal } from "./-private.js";
2
2
 
3
3
  //#region src/types/request.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as getOrSetUniversal } from "../-private-vJakAjAP.js";
1
+ import { getOrSetUniversal } from "./-private.js";
2
2
 
3
3
  //#region src/types/runtime.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as getOrSetGlobal } from "../-private-vJakAjAP.js";
1
+ import { getOrSetGlobal } from "./-private.js";
2
2
 
3
3
  //#region src/types/symbols.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { a as setTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-qh-3RIJv.js";
2
- import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-C21stEc9.js";
1
+ import { getOrSetGlobal, peekTransient, setTransient } from "./types/-private.js";
2
+ import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-nAaeDlS9.js";
3
3
 
4
4
  //#region src/signals/reactivity/configure.ts
5
5
  const ARRAY_SIGNAL = getOrSetGlobal("#[]", Symbol("#[]"));
@@ -3516,4 +3516,4 @@ function getPromiseState(promise) {
3516
3516
 
3517
3517
  //#endregion
3518
3518
  export { ARRAY_SIGNAL as A, createInternalMemo as C, notifyInternalSignal as D, makeInitializer as E, setupSignals as M, waitFor as N, peekInternalSignal as O, willSyncFlushWatchers as P, consumeInternalSignal as S, getOrCreateInternalSignal as T, entangleSignal as _, getPaginationState as a, signal as b, getPaginationCache as c, getRequestState as d, createSignalDescriptor as f, entangleInitiallyStaleSignal as g, defineSignal as h, getPaginationLinks as i, OBJECT_SIGNAL as j, withSignalStore as k, DISPOSE as l, defineNonEnumerableSignal as m, createPaginationLinksSubscription as n, clearPaginationCache as o, defineGate as p, createPaginationSubscription as r, defaultPageHints as s, getPromiseState as t, createRequestSubscription as u, gate as v, createInternalSignal as w, Signals as x, memoized as y };
3519
- //# sourceMappingURL=-private-BVekQ7LS.js.map
3519
+ //# sourceMappingURL=-private-DrQgwtNS.js.map