@warp-drive-mirror/core 5.9.0-alpha.28 → 5.9.0-alpha.29

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/{unpkg/dev-deprecated/-private-DaGaqz01.js → -private-BE2TEoS1.js} +2 -2
  2. package/dist/{-private-CLrxUPAb.js.map → -private-BE2TEoS1.js.map} +1 -1
  3. package/dist/{-private-C5eqeju3.js → -private-BWcvEOUK.js} +2 -2
  4. package/dist/{-private-C5eqeju3.js.map → -private-BWcvEOUK.js.map} +1 -1
  5. package/dist/{-private-DM-bllPS.js → -private-wAmEjJ6H.js} +3 -3
  6. package/dist/{-private-DM-bllPS.js.map → -private-wAmEjJ6H.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-Bb2yKwM-.js → request-BGM9tmka.js} +2 -2
  13. package/dist/{request-Bb2yKwM-.js.map → request-BGM9tmka.js.map} +1 -1
  14. package/dist/request.js +1 -1
  15. package/dist/signals/-leaked.js +1 -1
  16. package/dist/{src-D84KLiu1.js → src-GtFWQ20-.js} +5 -5
  17. package/dist/{src-D84KLiu1.js.map → src-GtFWQ20-.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-2VEwBRWp.js → -private-CDO4gBNw.js} +2 -2
  24. package/dist/unpkg/dev/{-private-2VEwBRWp.js.map → -private-CDO4gBNw.js.map} +1 -1
  25. package/dist/{-private-CLrxUPAb.js → unpkg/dev/-private-DwFviKQB.js} +2 -2
  26. package/dist/unpkg/dev/{-private-DaGaqz01.js.map → -private-DwFviKQB.js.map} +1 -1
  27. package/dist/unpkg/dev/{-private-BMzt-W-X.js → -private-TzvWmj0S.js} +3 -3
  28. package/dist/unpkg/{dev-deprecated/-private-BMzt-W-X.js.map → dev/-private-TzvWmj0S.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-DxUNopO0.js → request-DgrYK8nC.js} +2 -2
  35. package/dist/unpkg/dev/{request-DxUNopO0.js.map → request-DgrYK8nC.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-B8QSNef4.js → src-BS5jDiyG.js} +5 -5
  39. package/dist/unpkg/dev/{src-B8QSNef4.js.map → src-BS5jDiyG.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-2VEwBRWp.js → -private-CDO4gBNw.js} +2 -2
  46. package/dist/unpkg/dev-deprecated/{-private-2VEwBRWp.js.map → -private-CDO4gBNw.js.map} +1 -1
  47. package/dist/unpkg/{dev/-private-DaGaqz01.js → dev-deprecated/-private-DwFviKQB.js} +2 -2
  48. package/dist/unpkg/dev-deprecated/{-private-DaGaqz01.js.map → -private-DwFviKQB.js.map} +1 -1
  49. package/dist/unpkg/dev-deprecated/{-private-BMzt-W-X.js → -private-TzvWmj0S.js} +3 -3
  50. package/dist/unpkg/{dev/-private-BMzt-W-X.js.map → dev-deprecated/-private-TzvWmj0S.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-DxUNopO0.js → request-DgrYK8nC.js} +2 -2
  57. package/dist/unpkg/dev-deprecated/{request-DxUNopO0.js.map → request-DgrYK8nC.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-B7fOGmde.js → src-CnUOssto.js} +5 -5
  61. package/dist/unpkg/dev-deprecated/{src-B7fOGmde.js.map → src-CnUOssto.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-D4aYfYZq.js → prod/-private-7ReYs2U8.js} +2 -2
  68. package/dist/unpkg/prod/{-private-D4aYfYZq.js.map → -private-7ReYs2U8.js.map} +1 -1
  69. package/dist/unpkg/{prod-deprecated/-private-DHnXWc06.js → prod/-private-CBYRJOat.js} +3 -3
  70. package/dist/unpkg/prod/{-private-DHnXWc06.js.map → -private-CBYRJOat.js.map} +1 -1
  71. package/dist/unpkg/prod/-private-Df7Dhb3z.js +22 -0
  72. package/dist/unpkg/prod/{-private-CsR9oSoh.js.map → -private-Df7Dhb3z.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-nsGR8kkV.js → prod/request-Cr7Emjcj.js} +2 -2
  79. package/dist/unpkg/{prod-deprecated/request-nsGR8kkV.js.map → prod/request-Cr7Emjcj.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-DtJbD0QO.js → src-j9LQ2_lJ.js} +5 -5
  83. package/dist/unpkg/prod/{src-DtJbD0QO.js.map → src-j9LQ2_lJ.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-D4aYfYZq.js → prod-deprecated/-private-7ReYs2U8.js} +2 -2
  90. package/dist/unpkg/prod-deprecated/{-private-D4aYfYZq.js.map → -private-7ReYs2U8.js.map} +1 -1
  91. package/dist/unpkg/{prod/-private-DHnXWc06.js → prod-deprecated/-private-CBYRJOat.js} +3 -3
  92. package/dist/unpkg/prod-deprecated/{-private-DHnXWc06.js.map → -private-CBYRJOat.js.map} +1 -1
  93. package/dist/unpkg/prod-deprecated/{-private-CsR9oSoh.js → -private-Df7Dhb3z.js} +2 -2
  94. package/dist/unpkg/prod-deprecated/{-private-CsR9oSoh.js.map → -private-Df7Dhb3z.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-nsGR8kkV.js → prod-deprecated/request-Cr7Emjcj.js} +2 -2
  101. package/dist/unpkg/{prod/request-nsGR8kkV.js.map → prod-deprecated/request-Cr7Emjcj.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-AuhAl7M3.js → src-By58s2uB.js} +5 -5
  105. package/dist/unpkg/prod-deprecated/{src-AuhAl7M3.js.map → src-By58s2uB.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-CsR9oSoh.js +0 -22
@@ -1,4 +1,4 @@
1
- import { t as getOrSetGlobal } from "./-private-2VEwBRWp.js";
1
+ import { t as getOrSetGlobal } from "./-private-BWcvEOUK.js";
2
2
 
3
3
  //#region src/reactive/-private/symbols.ts
4
4
  const SOURCE = getOrSetGlobal("SOURCE", Symbol("#source"));
@@ -19,4 +19,4 @@ const Context = getOrSetGlobal("Context", Symbol("Context"));
19
19
 
20
20
  //#endregion
21
21
  export { SOURCE as a, Destroy as i, Commit as n, Context as r, Checkout as t };
22
- //# sourceMappingURL=-private-DaGaqz01.js.map
22
+ //# sourceMappingURL=-private-BE2TEoS1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"-private-CLrxUPAb.js","names":["getOrSetGlobal","SOURCE","Symbol","Destroy","dispose","for","Checkout","Commit","Context"],"sources":["../src/reactive/-private/symbols.ts"],"sourcesContent":["///////////////////\n///// WARNING /////\n///////////////////\n\nimport { getOrSetGlobal } from '../../types/-private';\n\n// Great, got your attention with that warning didn't we?\n// Good. Here's the deal: typescript treats symbols as unique types.\n// If by accident a module creating a symbol is processed more than\n// once, the symbol will be different in each processing. This will\n// cause a type error.\n// It could also cause a runtime error if the symbol is used innapropriately.\n// However, this case is extremely hard to hit and would require other things\n// to go wrong first.\n//\n// So, why do the warning? And why do we lie about the types of the symbols?\n//\n// Because we intentionally create multiple copies of them within the types\n// at build time. This is because we rollup our d.ts files in order to give\n// our consumers a better experience.\n//\n// However, no tool today supports rolling up d.ts files with multiple entry\n// points correctly. The tool we use currently (vite-plugin-dts) uses @microsoft/api-extractor\n// which creates a fully unique stand-alone types file per-entry-point. Thus\n// every entry point that uses one of these symbols somewhere will have accidentally\n// created a new symbol type.\n//\n// This cast allows us to rollup these types using this tool while not encountering\n// the unique symbol type issue.\n//\n// Note that none of these symbols are part of the public API, these are used for\n// debugging DX and as a safe way to provide an intimate contract on public objects.\n\nexport const SOURCE: '___(unique) Symbol(SOURCE)' = getOrSetGlobal('SOURCE', Symbol('#source'));\n\nexport const Destroy: '___(unique) Symbol(Destroy)' = getOrSetGlobal(\n 'Destroy',\n Symbol.dispose || Symbol.for('Dispose')\n);\n/**\n * Symbol for the method used to request a mutable copy of an otherwise\n * immutable {@link ReactiveResource}.\n *\n * @deprecated use the {@link checkout} utility function instead.\n */\nexport const Checkout: '___(unique) Symbol(Checkout)' = getOrSetGlobal('Checkout', Symbol('Checkout'));\nexport const Commit: '___(unique) Symbol(Commit)' = getOrSetGlobal('Commit', Symbol('Commit'));\n\n/**\n * Symbol used to stash the internal field/resource context (schema, store,\n * mutability, etc.) on a {@link ReactiveResource} or reactive field instance.\n */\nexport const Context: '___(unique) Symbol(Context)' = getOrSetGlobal('Context', Symbol('Context'));\n"],"mappings":";;;AAiCA,MAAaC,SAAuCD,eAAe,UAAUE,OAAO,SAAS,CAAC;AAE9F,MAAaC,UAAyCH,eACpD,WACAE,OAAOE,WAAWF,OAAOG,IAAI,SAAS,CACxC;;;;;;;AAOA,MAAaC,WAA2CN,eAAe,YAAYE,OAAO,UAAU,CAAC;AACrG,MAAaK,SAAuCP,eAAe,UAAUE,OAAO,QAAQ,CAAC;;;;;AAM7F,MAAaM,UAAyCR,eAAe,WAAWE,OAAO,SAAS,CAAC"}
1
+ {"version":3,"file":"-private-BE2TEoS1.js","names":["getOrSetGlobal","SOURCE","Symbol","Destroy","dispose","for","Checkout","Commit","Context"],"sources":["../src/reactive/-private/symbols.ts"],"sourcesContent":["///////////////////\n///// WARNING /////\n///////////////////\n\nimport { getOrSetGlobal } from '../../types/-private';\n\n// Great, got your attention with that warning didn't we?\n// Good. Here's the deal: typescript treats symbols as unique types.\n// If by accident a module creating a symbol is processed more than\n// once, the symbol will be different in each processing. This will\n// cause a type error.\n// It could also cause a runtime error if the symbol is used innapropriately.\n// However, this case is extremely hard to hit and would require other things\n// to go wrong first.\n//\n// So, why do the warning? And why do we lie about the types of the symbols?\n//\n// Because we intentionally create multiple copies of them within the types\n// at build time. This is because we rollup our d.ts files in order to give\n// our consumers a better experience.\n//\n// However, no tool today supports rolling up d.ts files with multiple entry\n// points correctly. The tool we use currently (vite-plugin-dts) uses @microsoft/api-extractor\n// which creates a fully unique stand-alone types file per-entry-point. Thus\n// every entry point that uses one of these symbols somewhere will have accidentally\n// created a new symbol type.\n//\n// This cast allows us to rollup these types using this tool while not encountering\n// the unique symbol type issue.\n//\n// Note that none of these symbols are part of the public API, these are used for\n// debugging DX and as a safe way to provide an intimate contract on public objects.\n\nexport const SOURCE: '___(unique) Symbol(SOURCE)' = getOrSetGlobal('SOURCE', Symbol('#source'));\n\nexport const Destroy: '___(unique) Symbol(Destroy)' = getOrSetGlobal(\n 'Destroy',\n Symbol.dispose || Symbol.for('Dispose')\n);\n/**\n * Symbol for the method used to request a mutable copy of an otherwise\n * immutable {@link ReactiveResource}.\n *\n * @deprecated use the {@link checkout} utility function instead.\n */\nexport const Checkout: '___(unique) Symbol(Checkout)' = getOrSetGlobal('Checkout', Symbol('Checkout'));\nexport const Commit: '___(unique) Symbol(Commit)' = getOrSetGlobal('Commit', Symbol('Commit'));\n\n/**\n * Symbol used to stash the internal field/resource context (schema, store,\n * mutability, etc.) on a {@link ReactiveResource} or reactive field instance.\n */\nexport const Context: '___(unique) Symbol(Context)' = getOrSetGlobal('Context', Symbol('Context'));\n"],"mappings":";;;AAiCA,MAAaC,SAAuCD,eAAe,UAAUE,OAAO,SAAS,CAAC;AAE9F,MAAaC,UAAyCH,eACpD,WACAE,OAAOE,WAAWF,OAAOG,IAAI,SAAS,CACxC;;;;;;;AAOA,MAAaC,WAA2CN,eAAe,YAAYE,OAAO,UAAU,CAAC;AACrG,MAAaK,SAAuCP,eAAe,UAAUE,OAAO,QAAQ,CAAC;;;;;AAM7F,MAAaM,UAAyCR,eAAe,WAAWE,OAAO,SAAS,CAAC"}
@@ -2,7 +2,7 @@ import { getGlobalConfig, macroCondition } from "@embroider/macros";
2
2
 
3
3
  //#region package.json
4
4
  var name = "@warp-drive-mirror/core";
5
- var version = "5.9.0-alpha.28";
5
+ var version = "5.9.0-alpha.29";
6
6
 
7
7
  //#endregion
8
8
  //#region src/types/-private.ts
@@ -117,4 +117,4 @@ function setUniversalTransient(key, value) {
117
117
 
118
118
  //#endregion
119
119
  export { setTransient as a, peekUniversalTransient as i, getOrSetUniversal as n, setUniversalTransient as o, peekTransient as r, getOrSetGlobal as t };
120
- //# sourceMappingURL=-private-C5eqeju3.js.map
120
+ //# sourceMappingURL=-private-BWcvEOUK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"-private-C5eqeju3.js","names":["name","version","getGlobalConfig","macroCondition","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":["../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-mirror/core/build-config/env';\n\nimport { name, version } from '../../package.json';\n\ntype UniversalTransientKey =\n // @warp-drive-mirror/core/request\n 'REQ_ID';\n\ntype UniversalKey =\n | `(transient) ${UniversalTransientKey}`\n // @warp-drive-mirror/core/request\n | 'RequestMap'\n | 'PromiseCache'\n | 'RequestCache'\n // @warp-drive-mirror/core-types/request\n | 'SkipCache'\n | 'EnableHydration'\n // @warp-drive-mirror/core-types/runtime\n | 'WarpDriveRuntimeConfig';\n\ntype TransientKey =\n // @warp-drive-mirror/core/graph\n | 'transactionRef'\n // @warp-drive-mirror/core/store\n | 'configuredGenerationMethod'\n | 'configuredUpdateMethod'\n | 'configuredForgetMethod'\n | 'configuredResetMethod'\n | 'configuredKeyInfoMethod'\n | 'signalHooks';\n\ntype GlobalKey =\n | `(transient) ${TransientKey}`\n // @warp-drive-mirror/legacy/adapter\n | 'AdapterError'\n | 'InvalidError'\n | 'TimeoutError'\n | 'AbortError'\n | 'UnauthorizedError'\n | 'ForbiddenError'\n | 'NotFoundError'\n | 'ConflictError'\n | 'ServerError'\n // @warp-drive-mirror/core/store/reactivity\n | '#{}'\n | '#[]'\n | 'Signals'\n // @warp-drive-mirror/legacy LegacySupport\n | 'AvailableShims'\n // @warp-drive-mirror/core RecordArrayManager\n | 'FAKE_ARR'\n // @warp-drive-mirror/core ReactiveArray\n | '#source'\n | '#update'\n | '#notify'\n | 'IS_COLLECTION'\n // @warp-drive-mirror/core RequestCache\n | 'Touching'\n | 'RequestPromise'\n // @warp-drive-mirror/legacy/compat FetchManager\n | 'SaveOp'\n // @warp-drive-mirror/legacy Model\n | 'LEGACY_SUPPORT'\n | 'LegacySupport'\n // @warp-drive-mirror/core/graph\n | 'Graphs'\n // @warp-drive-mirror/core/request\n | 'IS_FROZEN'\n | 'IS_CACHE_HANDLER'\n // @warp-drive-mirror/utilities\n | 'CONFIG'\n // @warp-drive-mirror/core CacheKeyManager\n | 'DEBUG_MAP'\n | 'IDENTIFIERS'\n | 'DOCUMENTS'\n // @warp-drive-mirror/core InstanceCache\n | 'RecordCache'\n | 'StoreMap'\n // @warp-drive-mirror/core/types/symbols\n | 'Store'\n | '$type'\n | 'TransformName'\n | 'RequestSignature'\n // @warp-drive-mirror/core/types/request\n | 'IS_FUTURE'\n | 'DOC'\n // @warp-drive-mirror/core NotificationManager\n | 'UnscopedChannel'\n // @warp-drive-mirror/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,MAAMI,YAAYC;AAUlB,MAAMC,iBAAkBF,UAAUG,6BAChCH,UAAUG,8BAA+B,CAAC;AAI5CH,UAAUJ,QAAQI,UAAUJ,SAAS,EAAEQ,WAAWP,QAAQ;AAC1D,MAAMQ,aAAaL,UAAUJ;AAE7B,IAAAG,eAAAD,gBAAA,CAAA,CAAAQ,UAAAC,IAAAC,KAAA,GACE;KAAIH,WAAWD,cAAcP,SAC3B,MAAM,IAAIY,MAAM,4EAA4E;AAC9F;AAGF,MAAMC,qBAAqBL,WAAWM,kCAAmC,CAAC;AAC1E,IAAAZ,eAAAD,gBAAA,CAAA,CAAAQ,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,IAAAnB,eAAAD,gBAAA,CAAA,CAAAQ,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,IAAAnB,eAAAD,gBAAA,CAAA,CAAAQ,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
+ {"version":3,"file":"-private-BWcvEOUK.js","names":["name","version","getGlobalConfig","macroCondition","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":["../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-mirror/core/build-config/env';\n\nimport { name, version } from '../../package.json';\n\ntype UniversalTransientKey =\n // @warp-drive-mirror/core/request\n 'REQ_ID';\n\ntype UniversalKey =\n | `(transient) ${UniversalTransientKey}`\n // @warp-drive-mirror/core/request\n | 'RequestMap'\n | 'PromiseCache'\n | 'RequestCache'\n // @warp-drive-mirror/core-types/request\n | 'SkipCache'\n | 'EnableHydration'\n // @warp-drive-mirror/core-types/runtime\n | 'WarpDriveRuntimeConfig';\n\ntype TransientKey =\n // @warp-drive-mirror/core/graph\n | 'transactionRef'\n // @warp-drive-mirror/core/store\n | 'configuredGenerationMethod'\n | 'configuredUpdateMethod'\n | 'configuredForgetMethod'\n | 'configuredResetMethod'\n | 'configuredKeyInfoMethod'\n | 'signalHooks';\n\ntype GlobalKey =\n | `(transient) ${TransientKey}`\n // @warp-drive-mirror/legacy/adapter\n | 'AdapterError'\n | 'InvalidError'\n | 'TimeoutError'\n | 'AbortError'\n | 'UnauthorizedError'\n | 'ForbiddenError'\n | 'NotFoundError'\n | 'ConflictError'\n | 'ServerError'\n // @warp-drive-mirror/core/store/reactivity\n | '#{}'\n | '#[]'\n | 'Signals'\n // @warp-drive-mirror/legacy LegacySupport\n | 'AvailableShims'\n // @warp-drive-mirror/core RecordArrayManager\n | 'FAKE_ARR'\n // @warp-drive-mirror/core ReactiveArray\n | '#source'\n | '#update'\n | '#notify'\n | 'IS_COLLECTION'\n // @warp-drive-mirror/core RequestCache\n | 'Touching'\n | 'RequestPromise'\n // @warp-drive-mirror/legacy/compat FetchManager\n | 'SaveOp'\n // @warp-drive-mirror/legacy Model\n | 'LEGACY_SUPPORT'\n | 'LegacySupport'\n // @warp-drive-mirror/core/graph\n | 'Graphs'\n // @warp-drive-mirror/core/request\n | 'IS_FROZEN'\n | 'IS_CACHE_HANDLER'\n // @warp-drive-mirror/utilities\n | 'CONFIG'\n // @warp-drive-mirror/core CacheKeyManager\n | 'DEBUG_MAP'\n | 'IDENTIFIERS'\n | 'DOCUMENTS'\n // @warp-drive-mirror/core InstanceCache\n | 'RecordCache'\n | 'StoreMap'\n // @warp-drive-mirror/core/types/symbols\n | 'Store'\n | '$type'\n | 'TransformName'\n | 'RequestSignature'\n // @warp-drive-mirror/core/types/request\n | 'IS_FUTURE'\n | 'DOC'\n // @warp-drive-mirror/core NotificationManager\n | 'UnscopedChannel'\n // @warp-drive-mirror/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,MAAMI,YAAYC;AAUlB,MAAMC,iBAAkBF,UAAUG,6BAChCH,UAAUG,8BAA+B,CAAC;AAI5CH,UAAUJ,QAAQI,UAAUJ,SAAS,EAAEQ,WAAWP,QAAQ;AAC1D,MAAMQ,aAAaL,UAAUJ;AAE7B,IAAAG,eAAAD,gBAAA,CAAA,CAAAQ,UAAAC,IAAAC,KAAA,GACE;KAAIH,WAAWD,cAAcP,SAC3B,MAAM,IAAIY,MAAM,4EAA4E;AAC9F;AAGF,MAAMC,qBAAqBL,WAAWM,kCAAmC,CAAC;AAC1E,IAAAZ,eAAAD,gBAAA,CAAA,CAAAQ,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,IAAAnB,eAAAD,gBAAA,CAAA,CAAAQ,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,IAAAnB,eAAAD,gBAAA,CAAA,CAAAQ,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,5 +1,5 @@
1
- import { a as setTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-C5eqeju3.js";
2
- import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-Bb2yKwM-.js";
1
+ import { a as setTransient, r as peekTransient, t as getOrSetGlobal } from "./-private-BWcvEOUK.js";
2
+ import { f as setPromiseResult, o as DOMError, u as getPromiseResult } from "./request-BGM9tmka.js";
3
3
  import { getGlobalConfig, macroCondition } from "@embroider/macros";
4
4
 
5
5
  //#region src/signals/reactivity/configure.ts
@@ -3527,4 +3527,4 @@ function getPromiseState(promise) {
3527
3527
 
3528
3528
  //#endregion
3529
3529
  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 };
3530
- //# sourceMappingURL=-private-DM-bllPS.js.map
3530
+ //# sourceMappingURL=-private-wAmEjJ6H.js.map