@bleedingdev/modern-js-utils 3.9.0-ultramodern.2 → 3.9.0-ultramodern.20

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 (362) hide show
  1. package/dist/cjs/cli/applyOptionsChain.js +1 -1
  2. package/dist/cjs/cli/get/config.js +1 -1
  3. package/dist/cjs/cli/require.js +13 -8
  4. package/dist/cjs/compiled.js +1 -9
  5. package/dist/cjs/universal/index.js +5 -25
  6. package/dist/compiled/browserslist/index.js +37 -35
  7. package/dist/compiled/chokidar/types/index.d.ts +1 -1
  8. package/dist/compiled/commander/index.js +2 -3
  9. package/dist/compiled/debug/index.js +1 -1
  10. package/dist/compiled/execa/index.js +8 -6
  11. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
  12. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
  13. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
  14. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
  15. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
  16. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
  17. package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
  18. package/dist/compiled/fs-extra/index.js +39 -35
  19. package/dist/compiled/glob/index.js +17 -15
  20. package/dist/compiled/inquirer/index.js +29 -25
  21. package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
  22. package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
  23. package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
  24. package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
  25. package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
  26. package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
  27. package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
  28. package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
  29. package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
  30. package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
  31. package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
  32. package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
  33. package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
  34. package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
  35. package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
  36. package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
  37. package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
  38. package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
  39. package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
  40. package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
  41. package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
  42. package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
  43. package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
  44. package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
  45. package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
  46. package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
  47. package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
  48. package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
  49. package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
  50. package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
  51. package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
  52. package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
  53. package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
  54. package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
  55. package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
  56. package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
  57. package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
  58. package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
  59. package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
  60. package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
  61. package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
  62. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
  63. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
  64. package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
  65. package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
  66. package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
  67. package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
  68. package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
  69. package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
  70. package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
  71. package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
  72. package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
  73. package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
  74. package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
  75. package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
  76. package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
  77. package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
  78. package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
  79. package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
  80. package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
  81. package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
  82. package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
  83. package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
  84. package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
  85. package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
  86. package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
  87. package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
  88. package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
  89. package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
  90. package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
  91. package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
  92. package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
  93. package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
  94. package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
  95. package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
  96. package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
  97. package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
  98. package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
  99. package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
  100. package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
  101. package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
  102. package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
  103. package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
  104. package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
  105. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
  106. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
  107. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
  108. package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
  109. package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
  110. package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
  111. package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
  112. package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
  113. package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
  114. package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
  115. package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
  116. package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
  117. package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
  118. package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
  119. package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
  120. package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
  121. package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
  122. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
  123. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  124. package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
  125. package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
  126. package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
  127. package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
  128. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
  129. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
  130. package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
  131. package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
  132. package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
  133. package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
  134. package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
  135. package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
  136. package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
  137. package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
  138. package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
  139. package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
  140. package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
  141. package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
  142. package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
  143. package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
  144. package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
  145. package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
  146. package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
  147. package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
  148. package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
  149. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
  150. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
  151. package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
  152. package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
  153. package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
  154. package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
  155. package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
  156. package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  157. package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
  158. package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
  159. package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
  160. package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
  161. package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
  162. package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
  163. package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
  164. package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
  165. package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
  166. package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
  167. package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
  168. package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
  169. package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
  170. package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
  171. package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
  172. package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
  173. package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
  174. package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
  175. package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
  176. package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
  177. package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
  178. package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
  179. package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
  180. package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
  181. package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
  182. package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
  183. package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
  184. package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
  185. package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
  186. package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
  187. package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
  188. package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
  189. package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
  190. package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
  191. package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
  192. package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
  193. package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
  194. package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
  195. package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
  196. package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
  197. package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
  198. package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
  199. package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
  200. package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
  201. package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
  202. package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
  203. package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
  204. package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
  205. package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
  206. package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
  207. package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
  208. package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
  209. package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
  210. package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
  211. package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
  212. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
  213. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
  214. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
  215. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
  216. package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
  217. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
  218. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
  219. package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
  220. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
  221. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  222. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
  223. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
  224. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
  225. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
  226. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
  227. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
  228. package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
  229. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
  230. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
  231. package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
  232. package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
  233. package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
  234. package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
  235. package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
  236. package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
  237. package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
  238. package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
  239. package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
  240. package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
  241. package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
  242. package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
  243. package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
  244. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
  245. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
  246. package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
  247. package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
  248. package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
  249. package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
  250. package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
  251. package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
  252. package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
  253. package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  254. package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
  255. package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
  256. package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
  257. package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
  258. package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
  259. package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
  260. package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
  261. package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
  262. package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
  263. package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
  264. package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
  265. package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
  266. package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
  267. package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
  268. package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
  269. package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
  270. package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
  271. package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
  272. package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
  273. package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
  274. package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
  275. package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
  276. package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
  277. package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
  278. package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
  279. package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
  280. package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
  281. package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
  282. package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
  283. package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
  284. package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
  285. package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
  286. package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
  287. package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
  288. package/dist/compiled/inquirer/types-license +21 -0
  289. package/dist/compiled/js-yaml/index.js +1 -2
  290. package/dist/compiled/js-yaml/index.mjs +1 -2
  291. package/dist/compiled/lodash/index.d.ts +1 -11
  292. package/dist/compiled/minimist/index.js +1 -2
  293. package/dist/compiled/ora/index.js +17 -15
  294. package/dist/compiled/semver/index.js +12 -13
  295. package/dist/compiled/signale/index.js +3 -3
  296. package/dist/compiled/upath/index.js +15 -11
  297. package/dist/compiled/upath/upath.d.ts +2 -2
  298. package/dist/compiled/webpack-chain/index.js +5 -3
  299. package/dist/esm/cli/applyOptionsChain.mjs +1 -1
  300. package/dist/esm/cli/get/config.mjs +1 -1
  301. package/dist/esm/cli/require.mjs +14 -6
  302. package/dist/esm/compiled.mjs +1 -10
  303. package/dist/esm/universal/index.mjs +0 -2
  304. package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
  305. package/dist/esm-node/cli/get/config.mjs +1 -1
  306. package/dist/esm-node/cli/require.mjs +14 -6
  307. package/dist/esm-node/compiled.mjs +1 -9
  308. package/dist/esm-node/universal/index.mjs +0 -2
  309. package/dist/types/cli/require.d.ts +0 -1
  310. package/dist/types/compiled.d.ts +6 -6
  311. package/dist/types/universal/index.d.ts +0 -2
  312. package/package.json +7 -6
  313. package/rslib.config.mts +2 -0
  314. package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
  315. package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
  316. package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
  317. package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
  318. package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
  319. package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
  320. package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
  321. package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
  322. package/dist/cjs/universal/surface-resolution/index.js +0 -69
  323. package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
  324. package/dist/cjs/universal/surface-resolution/types.js +0 -18
  325. package/dist/cjs/universal/surface-resolution/validation.js +0 -202
  326. package/dist/esm/rslib-runtime~1.mjs +0 -12
  327. package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
  328. package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
  329. package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
  330. package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
  331. package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
  332. package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
  333. package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
  334. package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
  335. package/dist/esm/universal/surface-resolution/index.mjs +0 -3
  336. package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
  337. package/dist/esm/universal/surface-resolution/types.mjs +0 -0
  338. package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
  339. package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
  340. package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
  341. package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
  342. package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
  343. package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
  344. package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
  345. package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
  346. package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
  347. package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
  348. package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
  349. package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
  350. package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
  351. package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
  352. package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
  353. package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
  354. package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
  355. package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
  356. package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
  357. package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
  358. package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
  359. package/dist/types/universal/surface-resolution/index.d.ts +0 -4
  360. package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
  361. package/dist/types/universal/surface-resolution/types.d.ts +0 -102
  362. package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
@@ -1,156 +0,0 @@
1
- import "node:module";
2
- import { formatSurfaceRef } from "./surface-ref.mjs";
3
- const SEGMENT_PATTERN = /^[A-Za-z0-9._-]+$/;
4
- function createDiscoveryError(code, ref, message, details) {
5
- const refString = 'string' == typeof ref ? ref : formatSurfaceRef(ref);
6
- return void 0 === details ? {
7
- code,
8
- ref: refString,
9
- message
10
- } : {
11
- code,
12
- ref: refString,
13
- message,
14
- details
15
- };
16
- }
17
- function isNonEmptyString(value) {
18
- return 'string' == typeof value && value.length > 0;
19
- }
20
- function isValidUnitId(unitId) {
21
- return unitId.split('/').every((segment)=>SEGMENT_PATTERN.test(segment));
22
- }
23
- function isRecord(value) {
24
- return 'object' == typeof value && null !== value && !Array.isArray(value);
25
- }
26
- const COMPATIBILITY_STATUSES = [
27
- 'compatible',
28
- 'incompatible',
29
- 'degraded'
30
- ];
31
- const SURFACE_KINDS = [
32
- 'component',
33
- 'route',
34
- 'api',
35
- 'backend'
36
- ];
37
- const LOCATION_PLATFORMS = [
38
- 'browser-mf-manifest',
39
- 'node-mf-manifest',
40
- 'http-api',
41
- 'cloudflare-service-binding'
42
- ];
43
- const LOCATION_REQUIRED_FIELDS = {
44
- 'browser-mf-manifest': [
45
- 'manifestUrl'
46
- ],
47
- 'node-mf-manifest': [
48
- 'manifestRef'
49
- ],
50
- 'http-api': [
51
- 'baseUrl',
52
- 'prefix'
53
- ],
54
- 'cloudflare-service-binding': [
55
- 'serviceBinding'
56
- ]
57
- };
58
- function validateLocation(location, path, seenPlatforms, push) {
59
- if (!isRecord(location)) return void push(path, 'must be an object');
60
- const platform = location.platform;
61
- if ('string' != typeof platform || !LOCATION_PLATFORMS.includes(platform)) return void push(`${path}.platform`, `must be one of ${LOCATION_PLATFORMS.join(', ')}`);
62
- if (seenPlatforms.has(platform)) push(`${path}.platform`, `duplicate platform ${platform} within one surface`);
63
- seenPlatforms.add(platform);
64
- for (const field of LOCATION_REQUIRED_FIELDS[platform] ?? [])if (!isNonEmptyString(location[field])) push(`${path}.${field}`, 'must be a non-empty string');
65
- if ('cloudflare-service-binding' === platform && void 0 !== location.dispatchNamespace && !isNonEmptyString(location.dispatchNamespace)) push(`${path}.dispatchNamespace`, 'must be a non-empty string when present');
66
- }
67
- function validateSurface(surface, path, seenSurfaceIds, push) {
68
- if (!isRecord(surface)) return void push(path, 'must be an object');
69
- if (isNonEmptyString(surface.surfaceId)) if (SEGMENT_PATTERN.test(surface.surfaceId)) if (seenSurfaceIds.has(surface.surfaceId)) push(`${path}.surfaceId`, 'must be unique within the record');
70
- else seenSurfaceIds.add(surface.surfaceId);
71
- else push(`${path}.surfaceId`, 'must match the SurfaceRef SurfaceId grammar');
72
- else push(`${path}.surfaceId`, 'must be a non-empty string');
73
- if ('string' != typeof surface.kind || !SURFACE_KINDS.includes(surface.kind)) push(`${path}.kind`, `must be one of ${SURFACE_KINDS.join(', ')}`);
74
- if (void 0 !== surface.servedMajor && (!Number.isSafeInteger(surface.servedMajor) || surface.servedMajor < 1)) push(`${path}.servedMajor`, 'must be a positive safe integer when present');
75
- if (!Array.isArray(surface.locations)) return void push(`${path}.locations`, 'must be an array of locations');
76
- if (0 === surface.locations.length) push(`${path}.locations`, 'must contain at least one location (no partial records)');
77
- const seenPlatforms = new Set();
78
- surface.locations.forEach((location, locationIndex)=>{
79
- validateLocation(location, `${path}.locations[${locationIndex}]`, seenPlatforms, push);
80
- });
81
- }
82
- function validateResolvedDeliveryUnit(unit) {
83
- const issues = [];
84
- const push = (path, message)=>{
85
- issues.push({
86
- path,
87
- message
88
- });
89
- };
90
- if (!isRecord(unit)) {
91
- push('', 'must be an object');
92
- return {
93
- ok: false,
94
- issues
95
- };
96
- }
97
- const raw = unit;
98
- if (isNonEmptyString(raw.unitId)) {
99
- if (!isValidUnitId(raw.unitId)) push('unitId', 'must match the SurfaceRef UnitId grammar');
100
- } else push('unitId', 'must be a non-empty string');
101
- if (!isNonEmptyString(raw.buildMarker)) push('buildMarker', 'must be a non-empty string');
102
- if (!isNonEmptyString(raw.sourceRevision)) push('sourceRevision', 'must be a non-empty string');
103
- if (!isNonEmptyString(raw.baselineCohortId)) push('baselineCohortId', 'must be a non-empty string');
104
- const compatibility = raw.compatibility;
105
- if (isRecord(compatibility)) {
106
- if ('string' != typeof compatibility.status || !COMPATIBILITY_STATUSES.includes(compatibility.status)) push('compatibility.status', `must be one of ${COMPATIBILITY_STATUSES.join(', ')}`);
107
- if (compatibility.baselineCohortId !== raw.baselineCohortId) push('compatibility.baselineCohortId', 'must equal the record-level baselineCohortId (one verdict per record)');
108
- if (void 0 !== compatibility.reason && !isNonEmptyString(compatibility.reason)) push('compatibility.reason', 'must be a non-empty string when present');
109
- } else push('compatibility', 'must be an object');
110
- if (!Array.isArray(raw.surfaces)) {
111
- push('surfaces', 'must be an array of surfaces');
112
- return {
113
- ok: false,
114
- issues
115
- };
116
- }
117
- if (0 === raw.surfaces.length) push('surfaces', 'must contain at least one surface');
118
- const seenSurfaceIds = new Set();
119
- raw.surfaces.forEach((surface, surfaceIndex)=>{
120
- validateSurface(surface, `surfaces[${surfaceIndex}]`, seenSurfaceIds, push);
121
- });
122
- return {
123
- ok: 0 === issues.length,
124
- issues
125
- };
126
- }
127
- function selectResolvedSurface(unit, ref) {
128
- if (unit.unitId !== ref.unitId) return {
129
- ok: false,
130
- error: createDiscoveryError('unknown-unit', ref, `Resolved record is for unit ${unit.unitId}, not ${ref.unitId}.`, {
131
- recordUnitId: unit.unitId
132
- })
133
- };
134
- const surface = unit.surfaces.find((candidate)=>candidate.surfaceId === ref.surfaceId);
135
- if (void 0 === surface) return {
136
- ok: false,
137
- error: createDiscoveryError('unknown-surface', ref, `Unit ${unit.unitId} (buildMarker ${unit.buildMarker}) does not publish surface ${ref.surfaceId}.`, {
138
- availableSurfaces: unit.surfaces.map((entry)=>entry.surfaceId)
139
- })
140
- };
141
- return {
142
- ok: true,
143
- surface
144
- };
145
- }
146
- function matchDeliveryUnitIdentity(expected, unit, ref) {
147
- if (expected.unitId === unit.unitId && expected.buildMarker === unit.buildMarker) return;
148
- return createDiscoveryError('identity-mismatch', ref, `Delivery-unit identity mismatch: expected ${expected.unitId}@${expected.buildMarker}, resolved ${unit.unitId}@${unit.buildMarker}.`, {
149
- expected,
150
- resolved: {
151
- unitId: unit.unitId,
152
- buildMarker: unit.buildMarker
153
- }
154
- });
155
- }
156
- export { createDiscoveryError, matchDeliveryUnitIdentity, selectResolvedSurface, validateResolvedDeliveryUnit };
@@ -1,9 +0,0 @@
1
- import type { BackendFederationContractValidationResult, DeliveryUnitRecord, UltramodernBuildArtifact } from './types.js';
2
- export declare const createUltramodernBuildArtifact: (record: DeliveryUnitRecord) => UltramodernBuildArtifact;
3
- export declare const validateUltramodernBuildArtifact: (value: unknown, path?: string) => BackendFederationContractValidationResult;
4
- export declare const isUltramodernBuildArtifact: (value: unknown) => value is UltramodernBuildArtifact;
5
- export declare const stampUltramodernBuildArtifactIdentity: (artifact: UltramodernBuildArtifact, identity: {
6
- buildMarker: string;
7
- sourceRevision: string;
8
- }) => UltramodernBuildArtifact;
9
- export declare const stampUltramodernBuildArtifactSourceRevision: (artifact: UltramodernBuildArtifact, sourceRevision: string) => UltramodernBuildArtifact;
@@ -1,14 +0,0 @@
1
- export declare const BACKEND_FEDERATION_EFFECT_EXPOSE = "./effect-api";
2
- export declare const BACKEND_FEDERATION_MANIFEST_FILE = "backend-mf-manifest.json";
3
- export declare const BACKEND_FEDERATION_REMOTE_ENTRY_FILE = "backendRemoteEntry.cjs";
4
- export declare const BACKEND_FEDERATION_CONTRACT_VERSION = "microvertical-server-effect-v1";
5
- export declare const BACKEND_FEDERATION_NODE_ADAPTER_VERSION = "backend-mf-effect-v1";
6
- export declare const DELIVERY_UNIT_SCHEMA_VERSION = 1;
7
- export declare const DELIVERY_UNIT_KIND = "microvertical-delivery-unit";
8
- export declare const DELIVERY_UNIT_DEPLOY_PROFILE = "cloudflare-ssr-mf-effect-v1";
9
- export declare const DELIVERY_UNIT_IDENTITY_FIELDS: readonly ['unitId', 'buildMarker', 'sourceRevision'];
10
- export type DeliveryUnitIdentityField = (typeof DELIVERY_UNIT_IDENTITY_FIELDS)[number];
11
- export declare const ULTRAMODERN_BUILD_ARTIFACT_FILE = "ultramodern-build.json";
12
- export declare const ULTRAMODERN_BUILD_ARTIFACT_PATH = "shared/ultramodern-build.json";
13
- export declare const ULTRAMODERN_BUILD_MODULE_FILE = "ultramodern-build.ts";
14
- export declare const ULTRAMODERN_BUILD_MODULE_PATH = "shared/ultramodern-build.ts";
@@ -1,9 +0,0 @@
1
- import type { DeliveryUnitIdentityField } from './constants.js';
2
- import type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, ValidateDeliveryUnitIdentityOptions } from './types.js';
3
- export declare const deliveryUnitIdentityFieldValue: (value: unknown, field: DeliveryUnitIdentityField, options?: Pick<ValidateDeliveryUnitIdentityOptions, 'allowBuildAlias'>) => string | undefined;
4
- export declare const validateDeliveryUnitIdentity: (value: unknown, options?: ValidateDeliveryUnitIdentityOptions) => BackendFederationContractValidationResult;
5
- export declare const validateDeliveryUnitContractBlock: (value: unknown, options?: ValidateDeliveryUnitIdentityOptions) => BackendFederationContractValidationResult;
6
- export declare const validateDeliveryUnitRecord: (value: unknown, options?: ValidateDeliveryUnitIdentityOptions) => BackendFederationContractValidationResult;
7
- export declare const validateDeliveryUnitBoundaryIdentity: (value: unknown, path: string) => BackendFederationContractValidationError[];
8
- export declare const deliveryUnitContractBlock: (record: DeliveryUnitRecord) => DeliveryUnitContractBlock;
9
- export declare const toDeliveryUnitIdentity: (value: unknown) => DeliveryUnitIdentity | undefined;
@@ -1,7 +0,0 @@
1
- export { createUltramodernBuildArtifact, isUltramodernBuildArtifact, stampUltramodernBuildArtifactIdentity, stampUltramodernBuildArtifactSourceRevision, validateUltramodernBuildArtifact, } from './build-artifact.js';
2
- export type { DeliveryUnitIdentityField } from './constants.js';
3
- export { BACKEND_FEDERATION_CONTRACT_VERSION, BACKEND_FEDERATION_EFFECT_EXPOSE, BACKEND_FEDERATION_MANIFEST_FILE, BACKEND_FEDERATION_NODE_ADAPTER_VERSION, BACKEND_FEDERATION_REMOTE_ENTRY_FILE, DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_IDENTITY_FIELDS, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION, ULTRAMODERN_BUILD_ARTIFACT_FILE, ULTRAMODERN_BUILD_ARTIFACT_PATH, ULTRAMODERN_BUILD_MODULE_FILE, ULTRAMODERN_BUILD_MODULE_PATH, } from './constants.js';
4
- export { deliveryUnitContractBlock, deliveryUnitIdentityFieldValue, toDeliveryUnitIdentity, validateDeliveryUnitContractBlock, validateDeliveryUnitIdentity, validateDeliveryUnitRecord, } from './delivery-unit.js';
5
- export { backendFederationExposeNames, backendFederationMetadata, backendFederationVersionBoundary, toBackendFederationExposeNames, validateBackendFederationManifest, validateBackendFederationMetadata, } from './metadata.js';
6
- export type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, UltramodernBuildArtifact, UltramodernBuildDeliveryUnit, UltramodernBuildSurface, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions, ValidateDeliveryUnitIdentityOptions, } from './types.js';
7
- export { formatBackendFederationValidationErrors, nonEmptyString, } from './validation-core.js';
@@ -1,7 +0,0 @@
1
- import type { BackendFederationContractValidationResult, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions } from './types.js';
2
- export declare const toBackendFederationExposeNames: (value: unknown) => string[];
3
- export declare const backendFederationExposeNames: (value: unknown) => string[];
4
- export declare const backendFederationMetadata: (value: unknown) => Record<string, unknown> | undefined;
5
- export declare const backendFederationVersionBoundary: (value: unknown) => Record<string, unknown> | undefined;
6
- export declare const validateBackendFederationMetadata: (value: unknown, options?: ValidateBackendFederationMetadataOptions) => BackendFederationContractValidationResult;
7
- export declare const validateBackendFederationManifest: (value: unknown, options?: ValidateBackendFederationManifestOptions) => BackendFederationContractValidationResult;
@@ -1,60 +0,0 @@
1
- import type { DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION } from './constants.js';
2
- export type DeliveryUnitIdentity = {
3
- unitId: string;
4
- buildMarker: string;
5
- sourceRevision: string;
6
- };
7
- export type DeliveryUnitRecord = DeliveryUnitIdentity & {
8
- schemaVersion: typeof DELIVERY_UNIT_SCHEMA_VERSION;
9
- kind: typeof DELIVERY_UNIT_KIND;
10
- appId: string;
11
- packageName: string;
12
- version: string;
13
- deployProfile: typeof DELIVERY_UNIT_DEPLOY_PROFILE;
14
- };
15
- export type DeliveryUnitContractBlock = Omit<DeliveryUnitRecord, 'appId' | 'deployProfile'>;
16
- export type UltramodernBuildDeliveryUnit = DeliveryUnitRecord & {
17
- build: string;
18
- };
19
- export type UltramodernBuildSurface = (UltramodernBuildDeliveryUnit & {
20
- surface: 'ui';
21
- }) | (UltramodernBuildDeliveryUnit & {
22
- surface: 'api';
23
- });
24
- export type UltramodernBuildArtifact = {
25
- schemaVersion: typeof DELIVERY_UNIT_SCHEMA_VERSION;
26
- kind: 'ultramodern-build-artifact';
27
- deliveryUnit: UltramodernBuildDeliveryUnit;
28
- surfaces: {
29
- ui: UltramodernBuildDeliveryUnit & {
30
- surface: 'ui';
31
- };
32
- api: UltramodernBuildDeliveryUnit & {
33
- surface: 'api';
34
- };
35
- };
36
- };
37
- export type BackendFederationContractValidationError = {
38
- path: string;
39
- message: string;
40
- };
41
- export type BackendFederationContractValidationResult = {
42
- ok: boolean;
43
- errors: BackendFederationContractValidationError[];
44
- };
45
- export type ValidateDeliveryUnitIdentityOptions = {
46
- path?: string;
47
- allowBuildAlias?: boolean;
48
- };
49
- export type ValidateBackendFederationMetadataOptions = {
50
- path?: string;
51
- expectedContractVersion?: string | false;
52
- expectedNodeAdapterVersion?: string | false;
53
- validateDeliveryUnit?: boolean;
54
- requireEffectExpose?: boolean;
55
- requireEffectRuntime?: boolean;
56
- requireVersionFields?: boolean;
57
- };
58
- export type ValidateBackendFederationManifestOptions = ValidateBackendFederationMetadataOptions & {
59
- requireBackendFederation?: boolean;
60
- };
@@ -1,8 +0,0 @@
1
- import type { BackendFederationContractValidationError, BackendFederationContractValidationResult } from './types.js';
2
- export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
3
- export declare const nonEmptyString: (value: unknown) => string | undefined;
4
- export declare const validationResult: (errors: BackendFederationContractValidationError[]) => BackendFederationContractValidationResult;
5
- export declare const addError: (errors: BackendFederationContractValidationError[], path: string, message: string) => void;
6
- export declare const recordField: (value: Record<string, unknown> | undefined, field: string) => Record<string, unknown> | undefined;
7
- export declare const formatBackendFederationValidationErrors: (errors: BackendFederationContractValidationError[]) => string;
8
- export declare const validateVersionField: (errors: BackendFederationContractValidationError[], record: Record<string, unknown>, field: 'contractVersion' | 'nodeAdapterVersion', expected: string | false, path: string, required: boolean) => void;
@@ -1,107 +0,0 @@
1
- import type { EnvironmentId, ResolvedSurfaceKind, SurfaceResolutionProvider } from './types.js';
2
- export type EnvRecord = Record<string, string | undefined>;
3
- /** Which platforms a surface publishes, plus their static (non-env) inputs. */
4
- export type EnvStaticSurfacePlatforms = {
5
- /** Publish a `browser-mf-manifest` location (env/public/cloudflare/localhost chain). */
6
- browserMfManifest?: boolean;
7
- /** Publish a `node-mf-manifest` location (backend manifest env / localhost chain). */
8
- nodeMfManifest?: boolean;
9
- /** Publish an `http-api` location; the base URL follows the public-URL chain. */
10
- httpApi?: {
11
- prefix: string;
12
- };
13
- /** Publish a `cloudflare-service-binding` location (statically provisioned). */
14
- cloudflareServiceBinding?: {
15
- serviceBinding: string;
16
- dispatchNamespace?: string;
17
- };
18
- };
19
- export type EnvStaticSurfaceConfig = {
20
- surfaceId: string;
21
- kind: ResolvedSurfaceKind;
22
- platforms: EnvStaticSurfacePlatforms;
23
- };
24
- /**
25
- * Static configuration for one delivery unit. Identity comes from the build
26
- * artifact (never from the environment); the environment only overrides
27
- * addresses through the documented env-var chains.
28
- */
29
- export type EnvStaticUnitConfig = {
30
- unitId: string;
31
- buildMarker: string;
32
- sourceRevision: string;
33
- baselineCohortId: string;
34
- /**
35
- * Env-var segment, e.g. `CHECKOUT` in `VERTICAL_CHECKOUT_MF_MANIFEST` /
36
- * `ULTRAMODERN_PUBLIC_URL_CHECKOUT` (`toEnvSegment(domain ?? id)`).
37
- */
38
- envSegment: string;
39
- /** Module-federation container name (used to strip `mfName@` env prefixes). */
40
- mfName: string;
41
- /** Localhost dev fallback port. Without it, env values are mandatory. */
42
- port?: number;
43
- /** Cloudflare worker name for the workers.dev fallback. */
44
- workerName?: string;
45
- /**
46
- * Externally published majors (ADR-0020), each with its own materialization.
47
- * A requested `@vN` resolves ONLY through the matching entry; a major that
48
- * is not configured here is the typed `major-not-published` error.
49
- */
50
- majors?: EnvStaticMajorConfig[];
51
- surfaces: EnvStaticSurfaceConfig[];
52
- };
53
- /**
54
- * Per-major materialization (ADR-0020): where the externally published major
55
- * `vN` of a unit lives. Address inputs are deliberately NOT inherited from the
56
- * unversioned unit — a versioned request must never be answered with
57
- * unversioned locations — so each major carries its own env segment (default
58
- * `${unit.envSegment}_V${major}`) and, optionally, its own localhost port /
59
- * worker name.
60
- */
61
- export type EnvStaticMajorConfig = {
62
- major: number;
63
- /** Env-var segment for this major. Default: `${unit.envSegment}_V${major}`. */
64
- envSegment?: string;
65
- /** Localhost dev fallback port for this major (local environments only). */
66
- port?: number;
67
- /** Cloudflare worker name for this major's workers.dev fallback. */
68
- workerName?: string;
69
- };
70
- /**
71
- * How the provider's stamped identity is to be interpreted. `static-trust`
72
- * (the only mode, and the default) means identity is asserted from static
73
- * config, not verified against the artifacts; the compatibility verdict then
74
- * carries `reason: 'static-identity-unverified'`.
75
- */
76
- export type EnvStaticIdentityVerification = 'static-trust';
77
- /** Environments in which localhost dev fallbacks are allowed by default. */
78
- export declare const DEFAULT_LOCAL_ENVIRONMENTS: readonly string[];
79
- export type EnvStaticProviderOptions = {
80
- units: EnvStaticUnitConfig[];
81
- /**
82
- * Environment record to read from. Universal module: `process.env` is never
83
- * read implicitly; pass it explicitly in Node hosts.
84
- */
85
- env?: EnvRecord;
86
- /**
87
- * Environments in which localhost dev fallbacks apply. Any environment NOT
88
- * listed here fails closed: missing explicit configuration is the typed
89
- * `provider-unavailable` error, never a localhost URL.
90
- * Default: `['development', 'local']`.
91
- */
92
- localEnvironments?: EnvironmentId[];
93
- /**
94
- * Identity-honesty mode (ADR-0019). Default `'static-trust'`: the verdict
95
- * is marked `static-identity-unverified` because this provider asserts
96
- * identity from static config without verifying the resolved artifacts.
97
- */
98
- identityVerification?: EnvStaticIdentityVerification;
99
- };
100
- export declare const ENV_STATIC_PROVIDER_NAME = "env-static";
101
- /**
102
- * Create the baseline env/static provider. Resolution is all-or-nothing per
103
- * RESOLUTION-0001: every declared platform location for every surface of the
104
- * unit assembles against the unit's single static identity, or the whole
105
- * resolution fails with one typed error.
106
- */
107
- export declare function createEnvStaticSurfaceResolutionProvider(options: EnvStaticProviderOptions): SurfaceResolutionProvider;
@@ -1,4 +0,0 @@
1
- export { createEnvStaticSurfaceResolutionProvider, DEFAULT_LOCAL_ENVIRONMENTS, ENV_STATIC_PROVIDER_NAME, type EnvRecord, type EnvStaticIdentityVerification, type EnvStaticMajorConfig, type EnvStaticProviderOptions, type EnvStaticSurfaceConfig, type EnvStaticSurfacePlatforms, type EnvStaticUnitConfig, } from './env-static-provider.js';
2
- export { formatSurfaceRef, type ParsedSurfaceRef, parseSurfaceRef, type SurfaceRefParseError, type SurfaceRefParseResult, validateSurfaceRef, } from './surface-ref.js';
3
- export type { CompatibilityStatus, CompatibilityVerdict, DiscoveryError, DiscoveryErrorCode, DiscoveryResult, EnvironmentId, ResolvedDeliveryUnit, ResolvedSurface, ResolvedSurfaceKind, ResolvedSurfaceLocation, ResolvedSurfaceLocationPlatform, SurfaceResolutionProvider, } from './types.js';
4
- export { createDiscoveryError, type ExpectedDeliveryUnitIdentity, matchDeliveryUnitIdentity, type ResolvedDeliveryUnitIssue, type ResolvedDeliveryUnitValidationResult, selectResolvedSurface, validateResolvedDeliveryUnit, } from './validation.js';
@@ -1,72 +0,0 @@
1
- /**
2
- * SurfaceRef grammar (MV-G25a).
3
- *
4
- * Mirrors the EBNF in `packages/toolkit/create/delivery-unit-schema-SPEC.md` §2
5
- * exactly:
6
- *
7
- * ```ebnf
8
- * SurfaceRef = UnitId , "#" , SurfaceId , [ "@" , Major ] ;
9
- * UnitId = Segment , { "/" , Segment } ;
10
- * SurfaceId = Segment ;
11
- * Segment = SegmentChar , { SegmentChar } ;
12
- * SegmentChar = letter | digit | "-" | "_" | "." ;
13
- * Major = "v" , nonzero , { digit } ;
14
- * ```
15
- *
16
- * Canonical form: `unitId#surfaceId` with optional `@vN` external-major suffix
17
- * (e.g. `acme/checkout#cart`, `acme/checkout#cart@v2`). Universal module:
18
- * dependency-free, runs in any JavaScript environment.
19
- */
20
- /**
21
- * Parsed form of a SurfaceRef. Canonical string form is `unitId#surfaceId`
22
- * with an optional `@vN` major suffix.
23
- */
24
- export type ParsedSurfaceRef = {
25
- unitId: string;
26
- surfaceId: string;
27
- /** External-major selector. Absent means "the coordinated-zone surface". */
28
- major?: number;
29
- };
30
- export type SurfaceRefParseError = {
31
- code: 'empty';
32
- } | {
33
- code: 'missing-surface-separator';
34
- } | {
35
- code: 'multiple-surface-separators';
36
- } | {
37
- code: 'empty-unit-id';
38
- } | {
39
- code: 'invalid-unit-id';
40
- segment: string;
41
- } | {
42
- code: 'empty-surface-id';
43
- } | {
44
- code: 'invalid-surface-id';
45
- } | {
46
- code: 'empty-major';
47
- } | {
48
- code: 'invalid-major';
49
- value: string;
50
- };
51
- export type SurfaceRefParseResult = {
52
- ok: true;
53
- ref: ParsedSurfaceRef;
54
- } | {
55
- ok: false;
56
- error: SurfaceRefParseError;
57
- };
58
- /**
59
- * Parse a canonical SurfaceRef string. Total function: every rejection is a
60
- * typed {@link SurfaceRefParseError}; never throws.
61
- */
62
- export declare function parseSurfaceRef(input: string): SurfaceRefParseResult;
63
- /**
64
- * Render a {@link ParsedSurfaceRef} back to its canonical string form.
65
- *
66
- * Direct inputs are checked against the same invariant as parsed references,
67
- * so this formatter cannot emit a string that {@link parseSurfaceRef} rejects.
68
- * Round-trip: `formatSurfaceRef(parseSurfaceRef(x).ref) === x` for valid `x`.
69
- */
70
- export declare function formatSurfaceRef(ref: ParsedSurfaceRef): string;
71
- /** The shared semantic invariant for parsed and directly formatted references. */
72
- export declare function validateSurfaceRef(ref: ParsedSurfaceRef): SurfaceRefParseError | undefined;
@@ -1,102 +0,0 @@
1
- /**
2
- * Surface-resolution record + provider SPI (MV-G25b/c).
3
- *
4
- * Contract: `docs/super-app-rfc-adr/RESOLUTION-0001-surface-discovery-record.md`.
5
- * Discovery answers a SurfaceRef with exactly ONE {@link ResolvedDeliveryUnit}
6
- * — never a bare URL, never a partial set of locations — or a typed
7
- * {@link DiscoveryError} (§2.4: discovery errors are expected states, not
8
- * exceptions).
9
- *
10
- * Atomicity invariant (ADR-0019): `buildMarker` / `sourceRevision` /
11
- * `baselineCohortId` live once on the record; a {@link ResolvedSurface}
12
- * carries no marker of its own, so mixing locations from two build markers is
13
- * structurally unrepresentable.
14
- */
15
- import type { DeliveryUnitIdentity } from '../backend-federation-contract/types.js';
16
- import type { ParsedSurfaceRef } from './surface-ref.js';
17
- export type ResolvedSurfaceLocationPlatform = 'browser-mf-manifest' | 'node-mf-manifest' | 'http-api' | 'cloudflare-service-binding';
18
- /**
19
- * One platform address for a surface, discriminated on `platform` so each
20
- * platform carries only the address shape its execution adapter can load.
21
- */
22
- export type ResolvedSurfaceLocation = {
23
- platform: 'browser-mf-manifest';
24
- manifestUrl: string;
25
- } | {
26
- /** Backend `backend-mf-manifest.json` URL or filesystem path. */
27
- platform: 'node-mf-manifest';
28
- manifestRef: string;
29
- } | {
30
- platform: 'http-api';
31
- baseUrl: string;
32
- prefix: string;
33
- } | {
34
- platform: 'cloudflare-service-binding';
35
- serviceBinding: string;
36
- dispatchNamespace?: string;
37
- };
38
- export type ResolvedSurfaceKind = 'component' | 'route' | 'api' | 'backend';
39
- /**
40
- * A resolved surface. It carries NO build marker of its own: the marker lives
41
- * once on the {@link ResolvedDeliveryUnit} (ADR-0019 structural atomicity).
42
- */
43
- export type ResolvedSurface = {
44
- surfaceId: string;
45
- kind: ResolvedSurfaceKind;
46
- locations: ResolvedSurfaceLocation[];
47
- /**
48
- * The external major (ADR-0020) this materialization serves. Present exactly
49
- * when the record answers a versioned SurfaceRef (`…@vN`): the locations are
50
- * the major-specific materialization, never the unversioned addresses.
51
- */
52
- servedMajor?: number;
53
- };
54
- export type CompatibilityStatus = 'compatible' | 'incompatible' | 'degraded';
55
- /** The resolver's verdict, not the consumer's guess (RESOLUTION-0001 §2.1). */
56
- export type CompatibilityVerdict = {
57
- status: CompatibilityStatus;
58
- /** Baseline cohort id the verdict was computed against. */
59
- baselineCohortId: string;
60
- reason?: string;
61
- };
62
- /**
63
- * Atomic resolution result: every platform location for the unit, resolved
64
- * together against ONE `buildMarker` / `sourceRevision`. There is no partial
65
- * variant; a resolver returns this whole record or a {@link DiscoveryError}.
66
- */
67
- export type ResolvedDeliveryUnit = DeliveryUnitIdentity & {
68
- baselineCohortId: string;
69
- surfaces: ResolvedSurface[];
70
- compatibility: CompatibilityVerdict;
71
- };
72
- export type DiscoveryErrorCode = 'unknown-unit' | 'unknown-surface' | 'major-not-published' | 'identity-mismatch' | 'stale-record' | 'provider-unavailable';
73
- export type DiscoveryError = {
74
- code: DiscoveryErrorCode;
75
- /** Canonical string form of the SurfaceRef being resolved. */
76
- ref: string;
77
- message: string;
78
- details?: Record<string, unknown>;
79
- };
80
- export type DiscoveryResult = {
81
- ok: true;
82
- unit: ResolvedDeliveryUnit;
83
- } | {
84
- ok: false;
85
- error: DiscoveryError;
86
- };
87
- /**
88
- * Environment identity. Providers are selected per environment, not per
89
- * surface: one environment resolves all surfaces of a unit through the same
90
- * provider chain.
91
- */
92
- export type EnvironmentId = string;
93
- export type SurfaceResolutionProvider = {
94
- /** Stable provider name (e.g. `env-static`), used in error details. */
95
- name: string;
96
- /**
97
- * Resolve a SurfaceRef in an environment to one complete record or one
98
- * typed error. Must never return a partial record and must never mix
99
- * locations from different build markers.
100
- */
101
- resolve(ref: ParsedSurfaceRef, env: EnvironmentId): DiscoveryResult | Promise<DiscoveryResult>;
102
- };
@@ -1,53 +0,0 @@
1
- /**
2
- * Identity / compatibility validation helpers for resolved delivery units
3
- * (MV-G25c). Runtime checks for records that crossed a serialization boundary;
4
- * within TypeScript the atomicity invariant is already structural.
5
- */
6
- import { type ParsedSurfaceRef } from './surface-ref.js';
7
- import type { DiscoveryError, DiscoveryErrorCode, ResolvedDeliveryUnit, ResolvedSurface } from './types.js';
8
- export type ResolvedDeliveryUnitIssue = {
9
- path: string;
10
- message: string;
11
- };
12
- export type ResolvedDeliveryUnitValidationResult = {
13
- ok: boolean;
14
- issues: ResolvedDeliveryUnitIssue[];
15
- };
16
- /** Build a typed {@link DiscoveryError} for a reference. */
17
- export declare function createDiscoveryError(code: DiscoveryErrorCode, ref: ParsedSurfaceRef | string, message: string, details?: Record<string, unknown>): DiscoveryError;
18
- /**
19
- * Validate the structural invariants of a {@link ResolvedDeliveryUnit}:
20
- * non-empty identity root, a well-formed compatibility verdict (valid status,
21
- * computed against the record-level baseline cohort), and per-surface
22
- * completeness (valid unique surface ids, valid kind, at least one location,
23
- * no duplicate platform entries, and every discriminant + required address
24
- * field per location platform). There is no partial-success shape: any issue
25
- * means the record is not a valid resolution.
26
- *
27
- * Total: never throws, even for records that crossed a serialization boundary
28
- * with missing or malformed nested objects — every defect is a typed issue.
29
- */
30
- export declare function validateResolvedDeliveryUnit(unit: ResolvedDeliveryUnit): ResolvedDeliveryUnitValidationResult;
31
- /**
32
- * Select the surface a {@link ParsedSurfaceRef} points at within one record.
33
- * `unknown-unit` when the record is for a different unit, `unknown-surface`
34
- * when the unit does not publish the surface.
35
- */
36
- export declare function selectResolvedSurface(unit: ResolvedDeliveryUnit, ref: ParsedSurfaceRef): {
37
- ok: true;
38
- surface: ResolvedSurface;
39
- } | {
40
- ok: false;
41
- error: DiscoveryError;
42
- };
43
- export type ExpectedDeliveryUnitIdentity = {
44
- unitId: string;
45
- buildMarker: string;
46
- };
47
- /**
48
- * Compare a consumer's expected delivery-unit identity against a resolved
49
- * record. Execution adapters must pass the record's `unitId` + `buildMarker`
50
- * through to identity validation (RESOLUTION-0001 §2.3); a mismatch is the
51
- * typed `identity-mismatch` discovery error.
52
- */
53
- export declare function matchDeliveryUnitIdentity(expected: ExpectedDeliveryUnitIdentity, unit: Pick<ResolvedDeliveryUnit, 'unitId' | 'buildMarker'>, ref: ParsedSurfaceRef | string): DiscoveryError | undefined;