@warp-drive/core 5.9.0-beta.3 → 5.9.0

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 (112) hide show
  1. package/dist/{-private-BL9zXgJB.js → -private-C4L-6BFr.js} +3 -3
  2. package/dist/{-private-BL9zXgJB.js.map → -private-C4L-6BFr.js.map} +1 -1
  3. package/dist/{-private-Cxa8cMBj.js → -private-DJ3g9bNk.js} +2 -2
  4. package/dist/{-private-Cxa8cMBj.js.map → -private-DJ3g9bNk.js.map} +1 -1
  5. package/dist/{-private-xK1KgxZJ.js → -private-r5p8QUr4.js} +2 -2
  6. package/dist/{-private-xK1KgxZJ.js.map → -private-r5p8QUr4.js.map} +1 -1
  7. package/dist/configure.js +1 -1
  8. package/dist/graph/-private.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/reactive/-private.js +1 -1
  11. package/dist/reactive.js +3 -3
  12. package/dist/{request-z2NByNx0.js → request-DZVW74wn.js} +2 -2
  13. package/dist/{request-z2NByNx0.js.map → request-DZVW74wn.js.map} +1 -1
  14. package/dist/request.js +1 -1
  15. package/dist/signals/-leaked.js +1 -1
  16. package/dist/{src-s5HHjglV.js → src-CsvKpo_j.js} +5 -5
  17. package/dist/{src-s5HHjglV.js.map → src-CsvKpo_j.js.map} +1 -1
  18. package/dist/store/-private.js +1 -1
  19. package/dist/types/-private.js +1 -1
  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-BGCYELwo.js → -private-CbWd-ZyQ.js} +2 -2
  24. package/dist/unpkg/{dev-deprecated/-private-BGCYELwo.js.map → dev/-private-CbWd-ZyQ.js.map} +1 -1
  25. package/dist/unpkg/dev/{-private-DhiS6yOR.js → -private-DKli7-dV.js} +2 -2
  26. package/dist/unpkg/dev/{-private-DhiS6yOR.js.map → -private-DKli7-dV.js.map} +1 -1
  27. package/dist/unpkg/dev/{-private-pNQae3qH.js → -private-FcLmzpRX.js} +3 -3
  28. package/dist/unpkg/{dev-deprecated/-private-pNQae3qH.js.map → dev/-private-FcLmzpRX.js.map} +1 -1
  29. package/dist/unpkg/dev/configure.js +1 -1
  30. package/dist/unpkg/dev/graph/-private.js +1 -1
  31. package/dist/unpkg/dev/index.js +1 -1
  32. package/dist/unpkg/dev/reactive/-private.js +1 -1
  33. package/dist/unpkg/dev/reactive.js +3 -3
  34. package/dist/unpkg/dev/{request-BbbzRou7.js → request-sIfZjSrT.js} +2 -2
  35. package/dist/unpkg/dev/{request-BbbzRou7.js.map → request-sIfZjSrT.js.map} +1 -1
  36. package/dist/unpkg/dev/request.js +1 -1
  37. package/dist/unpkg/dev/signals/-leaked.js +1 -1
  38. package/dist/unpkg/dev/{src-Cf7NXXR2.js → src-CIPYMS1G.js} +5 -5
  39. package/dist/unpkg/dev/{src-Cf7NXXR2.js.map → src-CIPYMS1G.js.map} +1 -1
  40. package/dist/unpkg/dev/store/-private.js +1 -1
  41. package/dist/unpkg/dev/types/-private.js +1 -1
  42. package/dist/unpkg/dev/types/request.js +1 -1
  43. package/dist/unpkg/dev/types/runtime.js +1 -1
  44. package/dist/unpkg/dev/types/symbols.js +1 -1
  45. package/dist/unpkg/dev-deprecated/{-private-BGCYELwo.js → -private-CbWd-ZyQ.js} +2 -2
  46. package/dist/unpkg/{prod/-private-8gd8hbwm.js.map → dev-deprecated/-private-CbWd-ZyQ.js.map} +1 -1
  47. package/dist/unpkg/dev-deprecated/{-private-DhiS6yOR.js → -private-DKli7-dV.js} +2 -2
  48. package/dist/unpkg/dev-deprecated/{-private-DhiS6yOR.js.map → -private-DKli7-dV.js.map} +1 -1
  49. package/dist/unpkg/dev-deprecated/{-private-pNQae3qH.js → -private-FcLmzpRX.js} +3 -3
  50. package/dist/unpkg/{dev/-private-pNQae3qH.js.map → dev-deprecated/-private-FcLmzpRX.js.map} +1 -1
  51. package/dist/unpkg/dev-deprecated/configure.js +1 -1
  52. package/dist/unpkg/dev-deprecated/graph/-private.js +1 -1
  53. package/dist/unpkg/dev-deprecated/index.js +1 -1
  54. package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
  55. package/dist/unpkg/dev-deprecated/reactive.js +3 -3
  56. package/dist/unpkg/dev-deprecated/{request-BbbzRou7.js → request-sIfZjSrT.js} +2 -2
  57. package/dist/unpkg/dev-deprecated/{request-BbbzRou7.js.map → request-sIfZjSrT.js.map} +1 -1
  58. package/dist/unpkg/dev-deprecated/request.js +1 -1
  59. package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
  60. package/dist/unpkg/dev-deprecated/{src-CSuFUXv4.js → src-BW5t6nJR.js} +5 -5
  61. package/dist/unpkg/dev-deprecated/{src-CSuFUXv4.js.map → src-BW5t6nJR.js.map} +1 -1
  62. package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
  63. package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
  64. package/dist/unpkg/dev-deprecated/types/request.js +1 -1
  65. package/dist/unpkg/dev-deprecated/types/runtime.js +1 -1
  66. package/dist/unpkg/dev-deprecated/types/symbols.js +1 -1
  67. package/dist/unpkg/{prod-deprecated/-private-B6aLbrgV.js → prod/-private-BPbQ_hud.js} +2 -2
  68. package/dist/unpkg/prod/{-private-B6aLbrgV.js.map → -private-BPbQ_hud.js.map} +1 -1
  69. package/dist/unpkg/{prod-deprecated/-private-ggVX_Iob.js → prod/-private-D4leSvXQ.js} +3 -3
  70. package/dist/unpkg/{prod-deprecated/-private-ggVX_Iob.js.map → prod/-private-D4leSvXQ.js.map} +1 -1
  71. package/dist/unpkg/prod/-private-DXAng78m.js +22 -0
  72. package/dist/unpkg/{prod-deprecated/-private-8gd8hbwm.js.map → prod/-private-DXAng78m.js.map} +1 -1
  73. package/dist/unpkg/prod/configure.js +1 -1
  74. package/dist/unpkg/prod/graph/-private.js +1 -1
  75. package/dist/unpkg/prod/index.js +1 -1
  76. package/dist/unpkg/prod/reactive/-private.js +1 -1
  77. package/dist/unpkg/prod/reactive.js +3 -3
  78. package/dist/unpkg/{prod-deprecated/request-BoeppjDj.js → prod/request-BkQ1-Ihx.js} +2 -2
  79. package/dist/unpkg/{prod-deprecated/request-BoeppjDj.js.map → prod/request-BkQ1-Ihx.js.map} +1 -1
  80. package/dist/unpkg/prod/request.js +1 -1
  81. package/dist/unpkg/prod/signals/-leaked.js +1 -1
  82. package/dist/unpkg/prod/{src-C0wuASrN.js → src-EVyOB2IR.js} +5 -5
  83. package/dist/unpkg/prod/{src-C0wuASrN.js.map → src-EVyOB2IR.js.map} +1 -1
  84. package/dist/unpkg/prod/store/-private.js +1 -1
  85. package/dist/unpkg/prod/types/-private.js +1 -1
  86. package/dist/unpkg/prod/types/request.js +1 -1
  87. package/dist/unpkg/prod/types/runtime.js +1 -1
  88. package/dist/unpkg/prod/types/symbols.js +1 -1
  89. package/dist/unpkg/{prod/-private-B6aLbrgV.js → prod-deprecated/-private-BPbQ_hud.js} +2 -2
  90. package/dist/unpkg/prod-deprecated/{-private-B6aLbrgV.js.map → -private-BPbQ_hud.js.map} +1 -1
  91. package/dist/unpkg/{prod/-private-ggVX_Iob.js → prod-deprecated/-private-D4leSvXQ.js} +3 -3
  92. package/dist/unpkg/{prod/-private-ggVX_Iob.js.map → prod-deprecated/-private-D4leSvXQ.js.map} +1 -1
  93. package/dist/unpkg/prod-deprecated/{-private-8gd8hbwm.js → -private-DXAng78m.js} +2 -2
  94. package/dist/unpkg/{dev/-private-BGCYELwo.js.map → prod-deprecated/-private-DXAng78m.js.map} +1 -1
  95. package/dist/unpkg/prod-deprecated/configure.js +1 -1
  96. package/dist/unpkg/prod-deprecated/graph/-private.js +1 -1
  97. package/dist/unpkg/prod-deprecated/index.js +1 -1
  98. package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
  99. package/dist/unpkg/prod-deprecated/reactive.js +3 -3
  100. package/dist/unpkg/{prod/request-BoeppjDj.js → prod-deprecated/request-BkQ1-Ihx.js} +2 -2
  101. package/dist/unpkg/{prod/request-BoeppjDj.js.map → prod-deprecated/request-BkQ1-Ihx.js.map} +1 -1
  102. package/dist/unpkg/prod-deprecated/request.js +1 -1
  103. package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -1
  104. package/dist/unpkg/prod-deprecated/{src-BXOgNqmz.js → src-Bankvkbq.js} +5 -5
  105. package/dist/unpkg/prod-deprecated/{src-BXOgNqmz.js.map → src-Bankvkbq.js.map} +1 -1
  106. package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
  107. package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
  108. package/dist/unpkg/prod-deprecated/types/request.js +1 -1
  109. package/dist/unpkg/prod-deprecated/types/runtime.js +1 -1
  110. package/dist/unpkg/prod-deprecated/types/symbols.js +1 -1
  111. package/package.json +3 -3
  112. package/dist/unpkg/prod/-private-8gd8hbwm.js +0 -22
@@ -1,3 +1,3 @@
1
- import { A as coerceId, C as isResourceKey, F as setRecordIdentifier, I as storeFor, L as assertPrivateCapabilities, M as StoreMap, N as _clearCaches, P as recordIdentifierFor, S as isRequestKey, _ as Store, b as RecordArrayManager, f as log, g as CacheHandler, h as constructResource, j as ensureStringId, k as normalizeModelName, m as createLegacyManyArray, p as logGroup, v as assertPrivateStore, x as fastPush, y as isPrivateStore } from "../src-C0wuASrN.js";
1
+ import { A as coerceId, C as isResourceKey, F as setRecordIdentifier, I as storeFor, L as assertPrivateCapabilities, M as StoreMap, N as _clearCaches, P as recordIdentifierFor, S as isRequestKey, _ as Store, b as RecordArrayManager, f as log, g as CacheHandler, h as constructResource, j as ensureStringId, k as normalizeModelName, m as createLegacyManyArray, p as logGroup, v as assertPrivateStore, x as fastPush, y as isPrivateStore } from "../src-EVyOB2IR.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,3 +1,3 @@
1
- import { a as setTransient, i as peekUniversalTransient, n as getOrSetUniversal, o as setUniversalTransient, r as peekTransient, t as getOrSetGlobal } from "../-private-B6aLbrgV.js";
1
+ import { a as setTransient, i as peekUniversalTransient, n as getOrSetUniversal, o as setUniversalTransient, r as peekTransient, t as getOrSetGlobal } from "../-private-BPbQ_hud.js";
2
2
 
3
3
  export { getOrSetGlobal, getOrSetUniversal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient };
@@ -1,4 +1,4 @@
1
- import { n as getOrSetUniversal, t as getOrSetGlobal } from "../-private-B6aLbrgV.js";
1
+ import { n as getOrSetUniversal, t as getOrSetGlobal } from "../-private-BPbQ_hud.js";
2
2
 
3
3
  //#region src/types/request.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as getOrSetUniversal } from "../-private-B6aLbrgV.js";
1
+ import { n as getOrSetUniversal } from "../-private-BPbQ_hud.js";
2
2
 
3
3
  //#region src/types/runtime.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as getOrSetGlobal } from "../-private-B6aLbrgV.js";
1
+ import { t as getOrSetGlobal } from "../-private-BPbQ_hud.js";
2
2
 
3
3
  //#region src/types/symbols.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@warp-drive/core";
3
- var version = "5.9.0-beta.3";
3
+ var version = "5.9.0";
4
4
 
5
5
  //#endregion
6
6
  //#region src/types/-private.ts
@@ -96,4 +96,4 @@ function setUniversalTransient(key, value) {
96
96
 
97
97
  //#endregion
98
98
  export { setTransient as a, peekUniversalTransient as i, getOrSetUniversal as n, setUniversalTransient as o, peekTransient as r, getOrSetGlobal as t };
99
- //# sourceMappingURL=-private-B6aLbrgV.js.map
99
+ //# sourceMappingURL=-private-BPbQ_hud.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"-private-B6aLbrgV.js","names":["name","version","GlobalRef","globalThis","UniversalCache","__warpDrive_universalCache","__version","GlobalSink","ModuleScopedCaches","__warpDrive_ModuleScopedCaches","__warpDrive_hasOtherCopy","Error","getOrSetGlobal","key","value","peekTransient","globalKey","setTransient","getOrSetUniversal","peekUniversalTransient","setUniversalTransient"],"sources":["../../../package.json","../../../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\nimport { name, version } from '../../package.json';\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":";;;;;;ACsGA,MAAME,YAAYC;AAUlB,MAAMC,iBAAkBF,UAAUG,6BAChCH,UAAUG,8BAA+B,CAAC;AAI5CH,UAAUF,QAAQE,UAAUF,SAAS,EAAEM,WAAWL,QAAQ;AAC1D,MAAMM,aAAaL,UAAUF;AAQ7B,MAAMQ,qBAAqBD,WAAWE,kCAAmC,CAAC;AAYxE,IAAIF,WAAWG,0BACb,MAAM,IAAIC,MAAM,0EAA0E;AAE5FJ,WAAWG,2BAA2B;;;;;;;;;;;;;;;;;;AAuBxC,SAAgBE,eAAuCC,KAAQC,OAAgC;CAS3F,OAAOA;AAEX;;;;;;;;;;;;AAaA,SAAgBC,cAAiBF,KAA6B;CAC5D,MAAMG,YAA2C,eAAeH;CAChE,OAAQL,mBAAmBQ,cAAoB;AACjD;;;;;;;;;AAUA,SAAgBC,aAAgBJ,KAAmBC,OAAa;CAC9D,MAAME,YAA2C,eAAeH;CAChE,OAAQL,mBAAmBQ,aAAaF;AAC1C;;;;;;;;;;;AAYA,SAAgBI,kBAA6CL,KAAQC,OAAgC;CASjG,OAAOA;AAEX;;;;;;;;AASA,SAAgBK,uBAA0BN,KAAsC;CAC9E,MAAMG,YAAoD,eAAeH;CACzE,OAAQT,eAAeY,cAAoB;AAC7C;;;;;;;;AASA,SAAgBI,sBAAyBP,KAA4BC,OAAa;CAChF,MAAME,YAAoD,eAAeH;CACzE,OAAQT,eAAeY,aAAaF;AACtC"}
1
+ {"version":3,"file":"-private-BPbQ_hud.js","names":["name","version","GlobalRef","globalThis","UniversalCache","__warpDrive_universalCache","__version","GlobalSink","ModuleScopedCaches","__warpDrive_ModuleScopedCaches","__warpDrive_hasOtherCopy","Error","getOrSetGlobal","key","value","peekTransient","globalKey","setTransient","getOrSetUniversal","peekUniversalTransient","setUniversalTransient"],"sources":["../../../package.json","../../../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\nimport { name, version } from '../../package.json';\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":";;;;;;ACsGA,MAAME,YAAYC;AAUlB,MAAMC,iBAAkBF,UAAUG,6BAChCH,UAAUG,8BAA+B,CAAC;AAI5CH,UAAUF,QAAQE,UAAUF,SAAS,EAAEM,WAAWL,QAAQ;AAC1D,MAAMM,aAAaL,UAAUF;AAQ7B,MAAMQ,qBAAqBD,WAAWE,kCAAmC,CAAC;AAYxE,IAAIF,WAAWG,0BACb,MAAM,IAAIC,MAAM,0EAA0E;AAE5FJ,WAAWG,2BAA2B;;;;;;;;;;;;;;;;;;AAuBxC,SAAgBE,eAAuCC,KAAQC,OAAgC;CAS3F,OAAOA;AAEX;;;;;;;;;;;;AAaA,SAAgBC,cAAiBF,KAA6B;CAC5D,MAAMG,YAA2C,eAAeH;CAChE,OAAQL,mBAAmBQ,cAAoB;AACjD;;;;;;;;;AAUA,SAAgBC,aAAgBJ,KAAmBC,OAAa;CAC9D,MAAME,YAA2C,eAAeH;CAChE,OAAQL,mBAAmBQ,aAAaF;AAC1C;;;;;;;;;;;AAYA,SAAgBI,kBAA6CL,KAAQC,OAAgC;CASjG,OAAOA;AAEX;;;;;;;;AASA,SAAgBK,uBAA0BN,KAAsC;CAC9E,MAAMG,YAAoD,eAAeH;CACzE,OAAQT,eAAeY,cAAoB;AAC7C;;;;;;;;AASA,SAAgBI,sBAAyBP,KAA4BC,OAAa;CAChF,MAAME,YAAoD,eAAeH;CACzE,OAAQT,eAAeY,aAAaF;AACtC"}
@@ -1,5 +1,5 @@
1
- import { a as setTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-B6aLbrgV.js";
2
- import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-BoeppjDj.js";
1
+ import { a as setTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-BPbQ_hud.js";
2
+ import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-BkQ1-Ihx.js";
3
3
 
4
4
  //#region src/signals/reactivity/configure.ts
5
5
  const ARRAY_SIGNAL = getOrSetGlobal("#[]", Symbol("#[]"));
@@ -3291,4 +3291,4 @@ function getPromiseState(promise) {
3291
3291
 
3292
3292
  //#endregion
3293
3293
  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 };
3294
- //# sourceMappingURL=-private-ggVX_Iob.js.map
3294
+ //# sourceMappingURL=-private-D4leSvXQ.js.map