@hyperfrontend/versioning 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/ARCHITECTURE.md +593 -0
  2. package/CHANGELOG.md +35 -0
  3. package/FUNDING.md +141 -0
  4. package/LICENSE.md +21 -0
  5. package/README.md +195 -0
  6. package/SECURITY.md +82 -0
  7. package/changelog/compare/diff.d.ts +128 -0
  8. package/changelog/compare/diff.d.ts.map +1 -0
  9. package/changelog/compare/index.cjs.js +628 -0
  10. package/changelog/compare/index.cjs.js.map +1 -0
  11. package/changelog/compare/index.d.ts +4 -0
  12. package/changelog/compare/index.d.ts.map +1 -0
  13. package/changelog/compare/index.esm.js +612 -0
  14. package/changelog/compare/index.esm.js.map +1 -0
  15. package/changelog/compare/is-equal.d.ts +114 -0
  16. package/changelog/compare/is-equal.d.ts.map +1 -0
  17. package/changelog/index.cjs.js +6448 -0
  18. package/changelog/index.cjs.js.map +1 -0
  19. package/changelog/index.d.ts +6 -0
  20. package/changelog/index.d.ts.map +1 -0
  21. package/changelog/index.esm.js +6358 -0
  22. package/changelog/index.esm.js.map +1 -0
  23. package/changelog/models/changelog.d.ts +86 -0
  24. package/changelog/models/changelog.d.ts.map +1 -0
  25. package/changelog/models/commit-ref.d.ts +51 -0
  26. package/changelog/models/commit-ref.d.ts.map +1 -0
  27. package/changelog/models/entry.d.ts +84 -0
  28. package/changelog/models/entry.d.ts.map +1 -0
  29. package/changelog/models/index.cjs.js +2043 -0
  30. package/changelog/models/index.cjs.js.map +1 -0
  31. package/changelog/models/index.d.ts +11 -0
  32. package/changelog/models/index.d.ts.map +1 -0
  33. package/changelog/models/index.esm.js +2026 -0
  34. package/changelog/models/index.esm.js.map +1 -0
  35. package/changelog/models/schema.d.ts +68 -0
  36. package/changelog/models/schema.d.ts.map +1 -0
  37. package/changelog/models/section.d.ts +25 -0
  38. package/changelog/models/section.d.ts.map +1 -0
  39. package/changelog/operations/add-entry.d.ts +56 -0
  40. package/changelog/operations/add-entry.d.ts.map +1 -0
  41. package/changelog/operations/add-item.d.ts +18 -0
  42. package/changelog/operations/add-item.d.ts.map +1 -0
  43. package/changelog/operations/filter-by-predicate.d.ts +81 -0
  44. package/changelog/operations/filter-by-predicate.d.ts.map +1 -0
  45. package/changelog/operations/filter-by-range.d.ts +63 -0
  46. package/changelog/operations/filter-by-range.d.ts.map +1 -0
  47. package/changelog/operations/filter-entries.d.ts +9 -0
  48. package/changelog/operations/filter-entries.d.ts.map +1 -0
  49. package/changelog/operations/index.cjs.js +2455 -0
  50. package/changelog/operations/index.cjs.js.map +1 -0
  51. package/changelog/operations/index.d.ts +15 -0
  52. package/changelog/operations/index.d.ts.map +1 -0
  53. package/changelog/operations/index.esm.js +2411 -0
  54. package/changelog/operations/index.esm.js.map +1 -0
  55. package/changelog/operations/merge.d.ts +88 -0
  56. package/changelog/operations/merge.d.ts.map +1 -0
  57. package/changelog/operations/remove-entry.d.ts +45 -0
  58. package/changelog/operations/remove-entry.d.ts.map +1 -0
  59. package/changelog/operations/remove-section.d.ts +50 -0
  60. package/changelog/operations/remove-section.d.ts.map +1 -0
  61. package/changelog/operations/transform.d.ts +143 -0
  62. package/changelog/operations/transform.d.ts.map +1 -0
  63. package/changelog/parse/index.cjs.js +1282 -0
  64. package/changelog/parse/index.cjs.js.map +1 -0
  65. package/changelog/parse/index.d.ts +5 -0
  66. package/changelog/parse/index.d.ts.map +1 -0
  67. package/changelog/parse/index.esm.js +1275 -0
  68. package/changelog/parse/index.esm.js.map +1 -0
  69. package/changelog/parse/line.d.ts +48 -0
  70. package/changelog/parse/line.d.ts.map +1 -0
  71. package/changelog/parse/parser.d.ts +16 -0
  72. package/changelog/parse/parser.d.ts.map +1 -0
  73. package/changelog/parse/tokenizer.d.ts +49 -0
  74. package/changelog/parse/tokenizer.d.ts.map +1 -0
  75. package/changelog/serialize/index.cjs.js +574 -0
  76. package/changelog/serialize/index.cjs.js.map +1 -0
  77. package/changelog/serialize/index.d.ts +6 -0
  78. package/changelog/serialize/index.d.ts.map +1 -0
  79. package/changelog/serialize/index.esm.js +564 -0
  80. package/changelog/serialize/index.esm.js.map +1 -0
  81. package/changelog/serialize/templates.d.ts +81 -0
  82. package/changelog/serialize/templates.d.ts.map +1 -0
  83. package/changelog/serialize/to-json.d.ts +57 -0
  84. package/changelog/serialize/to-json.d.ts.map +1 -0
  85. package/changelog/serialize/to-string.d.ts +30 -0
  86. package/changelog/serialize/to-string.d.ts.map +1 -0
  87. package/commits/index.cjs.js +648 -0
  88. package/commits/index.cjs.js.map +1 -0
  89. package/commits/index.d.ts +3 -0
  90. package/commits/index.d.ts.map +1 -0
  91. package/commits/index.esm.js +629 -0
  92. package/commits/index.esm.js.map +1 -0
  93. package/commits/models/breaking.d.ts +39 -0
  94. package/commits/models/breaking.d.ts.map +1 -0
  95. package/commits/models/commit-type.d.ts +32 -0
  96. package/commits/models/commit-type.d.ts.map +1 -0
  97. package/commits/models/conventional.d.ts +49 -0
  98. package/commits/models/conventional.d.ts.map +1 -0
  99. package/commits/models/index.cjs.js +207 -0
  100. package/commits/models/index.cjs.js.map +1 -0
  101. package/commits/models/index.d.ts +7 -0
  102. package/commits/models/index.d.ts.map +1 -0
  103. package/commits/models/index.esm.js +193 -0
  104. package/commits/models/index.esm.js.map +1 -0
  105. package/commits/parse/body.d.ts +18 -0
  106. package/commits/parse/body.d.ts.map +1 -0
  107. package/commits/parse/footer.d.ts +16 -0
  108. package/commits/parse/footer.d.ts.map +1 -0
  109. package/commits/parse/header.d.ts +15 -0
  110. package/commits/parse/header.d.ts.map +1 -0
  111. package/commits/parse/index.cjs.js +505 -0
  112. package/commits/parse/index.cjs.js.map +1 -0
  113. package/commits/parse/index.d.ts +5 -0
  114. package/commits/parse/index.d.ts.map +1 -0
  115. package/commits/parse/index.esm.js +499 -0
  116. package/commits/parse/index.esm.js.map +1 -0
  117. package/commits/parse/message.d.ts +17 -0
  118. package/commits/parse/message.d.ts.map +1 -0
  119. package/commits/utils/replace-char.d.ts +19 -0
  120. package/commits/utils/replace-char.d.ts.map +1 -0
  121. package/flow/executor/execute.d.ts +72 -0
  122. package/flow/executor/execute.d.ts.map +1 -0
  123. package/flow/executor/index.cjs.js +4402 -0
  124. package/flow/executor/index.cjs.js.map +1 -0
  125. package/flow/executor/index.d.ts +3 -0
  126. package/flow/executor/index.d.ts.map +1 -0
  127. package/flow/executor/index.esm.js +4398 -0
  128. package/flow/executor/index.esm.js.map +1 -0
  129. package/flow/factory.d.ts +58 -0
  130. package/flow/factory.d.ts.map +1 -0
  131. package/flow/index.cjs.js +8506 -0
  132. package/flow/index.cjs.js.map +1 -0
  133. package/flow/index.d.ts +7 -0
  134. package/flow/index.d.ts.map +1 -0
  135. package/flow/index.esm.js +8451 -0
  136. package/flow/index.esm.js.map +1 -0
  137. package/flow/models/flow.d.ts +130 -0
  138. package/flow/models/flow.d.ts.map +1 -0
  139. package/flow/models/index.cjs.js +285 -0
  140. package/flow/models/index.cjs.js.map +1 -0
  141. package/flow/models/index.d.ts +7 -0
  142. package/flow/models/index.d.ts.map +1 -0
  143. package/flow/models/index.esm.js +268 -0
  144. package/flow/models/index.esm.js.map +1 -0
  145. package/flow/models/step.d.ts +108 -0
  146. package/flow/models/step.d.ts.map +1 -0
  147. package/flow/models/types.d.ts +150 -0
  148. package/flow/models/types.d.ts.map +1 -0
  149. package/flow/presets/conventional.d.ts +59 -0
  150. package/flow/presets/conventional.d.ts.map +1 -0
  151. package/flow/presets/independent.d.ts +61 -0
  152. package/flow/presets/independent.d.ts.map +1 -0
  153. package/flow/presets/index.cjs.js +3903 -0
  154. package/flow/presets/index.cjs.js.map +1 -0
  155. package/flow/presets/index.d.ts +4 -0
  156. package/flow/presets/index.d.ts.map +1 -0
  157. package/flow/presets/index.esm.js +3889 -0
  158. package/flow/presets/index.esm.js.map +1 -0
  159. package/flow/presets/synced.d.ts +65 -0
  160. package/flow/presets/synced.d.ts.map +1 -0
  161. package/flow/steps/analyze-commits.d.ts +19 -0
  162. package/flow/steps/analyze-commits.d.ts.map +1 -0
  163. package/flow/steps/calculate-bump.d.ts +27 -0
  164. package/flow/steps/calculate-bump.d.ts.map +1 -0
  165. package/flow/steps/create-commit.d.ts +16 -0
  166. package/flow/steps/create-commit.d.ts.map +1 -0
  167. package/flow/steps/create-tag.d.ts +22 -0
  168. package/flow/steps/create-tag.d.ts.map +1 -0
  169. package/flow/steps/fetch-registry.d.ts +19 -0
  170. package/flow/steps/fetch-registry.d.ts.map +1 -0
  171. package/flow/steps/generate-changelog.d.ts +25 -0
  172. package/flow/steps/generate-changelog.d.ts.map +1 -0
  173. package/flow/steps/index.cjs.js +3523 -0
  174. package/flow/steps/index.cjs.js.map +1 -0
  175. package/flow/steps/index.d.ts +8 -0
  176. package/flow/steps/index.d.ts.map +1 -0
  177. package/flow/steps/index.esm.js +3504 -0
  178. package/flow/steps/index.esm.js.map +1 -0
  179. package/flow/steps/update-packages.d.ts +25 -0
  180. package/flow/steps/update-packages.d.ts.map +1 -0
  181. package/flow/utils/interpolate.d.ts +11 -0
  182. package/flow/utils/interpolate.d.ts.map +1 -0
  183. package/git/factory.d.ts +233 -0
  184. package/git/factory.d.ts.map +1 -0
  185. package/git/index.cjs.js +2863 -0
  186. package/git/index.cjs.js.map +1 -0
  187. package/git/index.d.ts +5 -0
  188. package/git/index.d.ts.map +1 -0
  189. package/git/index.esm.js +2785 -0
  190. package/git/index.esm.js.map +1 -0
  191. package/git/models/commit.d.ts +129 -0
  192. package/git/models/commit.d.ts.map +1 -0
  193. package/git/models/index.cjs.js +755 -0
  194. package/git/models/index.cjs.js.map +1 -0
  195. package/git/models/index.d.ts +7 -0
  196. package/git/models/index.d.ts.map +1 -0
  197. package/git/models/index.esm.js +729 -0
  198. package/git/models/index.esm.js.map +1 -0
  199. package/git/models/ref.d.ts +120 -0
  200. package/git/models/ref.d.ts.map +1 -0
  201. package/git/models/tag.d.ts +141 -0
  202. package/git/models/tag.d.ts.map +1 -0
  203. package/git/operations/commit.d.ts +97 -0
  204. package/git/operations/commit.d.ts.map +1 -0
  205. package/git/operations/head-info.d.ts +29 -0
  206. package/git/operations/head-info.d.ts.map +1 -0
  207. package/git/operations/index.cjs.js +1954 -0
  208. package/git/operations/index.cjs.js.map +1 -0
  209. package/git/operations/index.d.ts +14 -0
  210. package/git/operations/index.d.ts.map +1 -0
  211. package/git/operations/index.esm.js +1903 -0
  212. package/git/operations/index.esm.js.map +1 -0
  213. package/git/operations/log.d.ts +104 -0
  214. package/git/operations/log.d.ts.map +1 -0
  215. package/git/operations/manage-tags.d.ts +60 -0
  216. package/git/operations/manage-tags.d.ts.map +1 -0
  217. package/git/operations/query-tags.d.ts +88 -0
  218. package/git/operations/query-tags.d.ts.map +1 -0
  219. package/git/operations/stage.d.ts +66 -0
  220. package/git/operations/stage.d.ts.map +1 -0
  221. package/git/operations/status.d.ts +173 -0
  222. package/git/operations/status.d.ts.map +1 -0
  223. package/index.cjs.js +16761 -0
  224. package/index.cjs.js.map +1 -0
  225. package/index.d.ts +102 -0
  226. package/index.d.ts.map +1 -0
  227. package/index.esm.js +16427 -0
  228. package/index.esm.js.map +1 -0
  229. package/package.json +200 -0
  230. package/registry/factory.d.ts +18 -0
  231. package/registry/factory.d.ts.map +1 -0
  232. package/registry/index.cjs.js +543 -0
  233. package/registry/index.cjs.js.map +1 -0
  234. package/registry/index.d.ts +5 -0
  235. package/registry/index.d.ts.map +1 -0
  236. package/registry/index.esm.js +535 -0
  237. package/registry/index.esm.js.map +1 -0
  238. package/registry/models/index.cjs.js +69 -0
  239. package/registry/models/index.cjs.js.map +1 -0
  240. package/registry/models/index.d.ts +6 -0
  241. package/registry/models/index.d.ts.map +1 -0
  242. package/registry/models/index.esm.js +66 -0
  243. package/registry/models/index.esm.js.map +1 -0
  244. package/registry/models/package-info.d.ts +55 -0
  245. package/registry/models/package-info.d.ts.map +1 -0
  246. package/registry/models/registry.d.ts +62 -0
  247. package/registry/models/registry.d.ts.map +1 -0
  248. package/registry/models/version-info.d.ts +67 -0
  249. package/registry/models/version-info.d.ts.map +1 -0
  250. package/registry/npm/cache.d.ts +50 -0
  251. package/registry/npm/cache.d.ts.map +1 -0
  252. package/registry/npm/client.d.ts +30 -0
  253. package/registry/npm/client.d.ts.map +1 -0
  254. package/registry/npm/index.cjs.js +456 -0
  255. package/registry/npm/index.cjs.js.map +1 -0
  256. package/registry/npm/index.d.ts +4 -0
  257. package/registry/npm/index.d.ts.map +1 -0
  258. package/registry/npm/index.esm.js +451 -0
  259. package/registry/npm/index.esm.js.map +1 -0
  260. package/semver/compare/compare.d.ts +100 -0
  261. package/semver/compare/compare.d.ts.map +1 -0
  262. package/semver/compare/index.cjs.js +386 -0
  263. package/semver/compare/index.cjs.js.map +1 -0
  264. package/semver/compare/index.d.ts +3 -0
  265. package/semver/compare/index.d.ts.map +1 -0
  266. package/semver/compare/index.esm.js +370 -0
  267. package/semver/compare/index.esm.js.map +1 -0
  268. package/semver/compare/sort.d.ts +36 -0
  269. package/semver/compare/sort.d.ts.map +1 -0
  270. package/semver/format/index.cjs.js +58 -0
  271. package/semver/format/index.cjs.js.map +1 -0
  272. package/semver/format/index.d.ts +2 -0
  273. package/semver/format/index.d.ts.map +1 -0
  274. package/semver/format/index.esm.js +53 -0
  275. package/semver/format/index.esm.js.map +1 -0
  276. package/semver/format/to-string.d.ts +31 -0
  277. package/semver/format/to-string.d.ts.map +1 -0
  278. package/semver/increment/bump.d.ts +37 -0
  279. package/semver/increment/bump.d.ts.map +1 -0
  280. package/semver/increment/index.cjs.js +223 -0
  281. package/semver/increment/index.cjs.js.map +1 -0
  282. package/semver/increment/index.d.ts +2 -0
  283. package/semver/increment/index.d.ts.map +1 -0
  284. package/semver/increment/index.esm.js +219 -0
  285. package/semver/increment/index.esm.js.map +1 -0
  286. package/semver/index.cjs.js +1499 -0
  287. package/semver/index.cjs.js.map +1 -0
  288. package/semver/index.d.ts +6 -0
  289. package/semver/index.d.ts.map +1 -0
  290. package/semver/index.esm.js +1458 -0
  291. package/semver/index.esm.js.map +1 -0
  292. package/semver/models/index.cjs.js +153 -0
  293. package/semver/models/index.cjs.js.map +1 -0
  294. package/semver/models/index.d.ts +5 -0
  295. package/semver/models/index.d.ts.map +1 -0
  296. package/semver/models/index.esm.js +139 -0
  297. package/semver/models/index.esm.js.map +1 -0
  298. package/semver/models/range.d.ts +83 -0
  299. package/semver/models/range.d.ts.map +1 -0
  300. package/semver/models/version.d.ts +78 -0
  301. package/semver/models/version.d.ts.map +1 -0
  302. package/semver/parse/index.cjs.js +799 -0
  303. package/semver/parse/index.cjs.js.map +1 -0
  304. package/semver/parse/index.d.ts +5 -0
  305. package/semver/parse/index.d.ts.map +1 -0
  306. package/semver/parse/index.esm.js +793 -0
  307. package/semver/parse/index.esm.js.map +1 -0
  308. package/semver/parse/range.d.ts +38 -0
  309. package/semver/parse/range.d.ts.map +1 -0
  310. package/semver/parse/version.d.ts +49 -0
  311. package/semver/parse/version.d.ts.map +1 -0
  312. package/workspace/discovery/changelog-path.d.ts +21 -0
  313. package/workspace/discovery/changelog-path.d.ts.map +1 -0
  314. package/workspace/discovery/dependencies.d.ts +145 -0
  315. package/workspace/discovery/dependencies.d.ts.map +1 -0
  316. package/workspace/discovery/discover-changelogs.d.ts +76 -0
  317. package/workspace/discovery/discover-changelogs.d.ts.map +1 -0
  318. package/workspace/discovery/index.cjs.js +2300 -0
  319. package/workspace/discovery/index.cjs.js.map +1 -0
  320. package/workspace/discovery/index.d.ts +13 -0
  321. package/workspace/discovery/index.d.ts.map +1 -0
  322. package/workspace/discovery/index.esm.js +2283 -0
  323. package/workspace/discovery/index.esm.js.map +1 -0
  324. package/workspace/discovery/packages.d.ts +83 -0
  325. package/workspace/discovery/packages.d.ts.map +1 -0
  326. package/workspace/index.cjs.js +4445 -0
  327. package/workspace/index.cjs.js.map +1 -0
  328. package/workspace/index.d.ts +52 -0
  329. package/workspace/index.d.ts.map +1 -0
  330. package/workspace/index.esm.js +4394 -0
  331. package/workspace/index.esm.js.map +1 -0
  332. package/workspace/models/index.cjs.js +284 -0
  333. package/workspace/models/index.cjs.js.map +1 -0
  334. package/workspace/models/index.d.ts +10 -0
  335. package/workspace/models/index.d.ts.map +1 -0
  336. package/workspace/models/index.esm.js +261 -0
  337. package/workspace/models/index.esm.js.map +1 -0
  338. package/workspace/models/project.d.ts +118 -0
  339. package/workspace/models/project.d.ts.map +1 -0
  340. package/workspace/models/workspace.d.ts +139 -0
  341. package/workspace/models/workspace.d.ts.map +1 -0
  342. package/workspace/operations/batch-update.d.ts +99 -0
  343. package/workspace/operations/batch-update.d.ts.map +1 -0
  344. package/workspace/operations/cascade-bump.d.ts +125 -0
  345. package/workspace/operations/cascade-bump.d.ts.map +1 -0
  346. package/workspace/operations/index.cjs.js +2675 -0
  347. package/workspace/operations/index.cjs.js.map +1 -0
  348. package/workspace/operations/index.d.ts +12 -0
  349. package/workspace/operations/index.d.ts.map +1 -0
  350. package/workspace/operations/index.esm.js +2663 -0
  351. package/workspace/operations/index.esm.js.map +1 -0
  352. package/workspace/operations/validate.d.ts +85 -0
  353. package/workspace/operations/validate.d.ts.map +1 -0
@@ -0,0 +1,543 @@
1
+ 'use strict';
2
+
3
+ var node_child_process = require('node:child_process');
4
+
5
+ /**
6
+ * Creates a new PackageInfo object.
7
+ *
8
+ * @param options - Configuration for the package info
9
+ * @param options.name - e.g., 'lodash' or '@scope/pkg'
10
+ * @param options.latestVersion - The most recently published semver string
11
+ * @param options.versions - All published semver strings in chronological order
12
+ * @param options.description - Brief summary of package functionality
13
+ * @param options.license - SPDX license identifier
14
+ * @param options.repository - URL to source code repository
15
+ * @param options.homepage - URL to project homepage or documentation site
16
+ * @param options.maintainers - List of maintainers with name and email
17
+ * @param options.keywords - Search terms for npm registry discovery
18
+ * @param options.lastModified - Time of last modification
19
+ * @returns A new PackageInfo object
20
+ */
21
+ function createPackageInfo(options) {
22
+ return {
23
+ name: options.name,
24
+ description: options.description,
25
+ latestVersion: options.latestVersion,
26
+ versions: options.versions,
27
+ license: options.license,
28
+ repository: options.repository,
29
+ homepage: options.homepage,
30
+ maintainers: options.maintainers ?? [],
31
+ keywords: options.keywords,
32
+ lastModified: options.lastModified,
33
+ };
34
+ }
35
+
36
+ /**
37
+ * Creates a new VersionInfo object.
38
+ *
39
+ * @param options - Configuration for the release info
40
+ * @param options.version - e.g., '1.2.3' or '2.0.0-beta.1'
41
+ * @param options.publishedAt - ISO 8601 timestamp of publication
42
+ * @param options.tarball - URL to the package tarball
43
+ * @param options.integrity - Subresource integrity hash
44
+ * @param options.dependencies - Production dependencies map
45
+ * @param options.devDependencies - Development dependencies map
46
+ * @param options.peerDependencies - Peer dependencies map
47
+ * @param options.optionalDependencies - Optional dependencies map
48
+ * @param options.engines - Node/npm engine requirements
49
+ * @param options.nodeVersion - Node.js version used during publish
50
+ * @param options.npmVersion - npm version used during publish
51
+ * @returns A new VersionInfo object
52
+ */
53
+ function createVersionInfo(options) {
54
+ return {
55
+ version: options.version,
56
+ publishedAt: options.publishedAt,
57
+ tarball: options.tarball,
58
+ integrity: options.integrity,
59
+ dependencies: options.dependencies,
60
+ devDependencies: options.devDependencies,
61
+ peerDependencies: options.peerDependencies,
62
+ optionalDependencies: options.optionalDependencies,
63
+ engines: options.engines,
64
+ nodeVersion: options.nodeVersion,
65
+ npmVersion: options.npmVersion,
66
+ };
67
+ }
68
+
69
+ /**
70
+ * Safe copies of Array built-in static methods.
71
+ *
72
+ * These references are captured at module initialization time to protect against
73
+ * prototype pollution attacks. Import only what you need for tree-shaking.
74
+ *
75
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/array
76
+ */
77
+ // Capture references at module initialization time
78
+ const _Array = globalThis.Array;
79
+ /**
80
+ * (Safe copy) Determines whether the passed value is an Array.
81
+ */
82
+ const isArray = _Array.isArray;
83
+
84
+ /**
85
+ * Safe copies of Date built-in via factory function and static methods.
86
+ *
87
+ * Since constructors cannot be safely captured via Object.assign, this module
88
+ * provides a factory function that uses Reflect.construct internally.
89
+ *
90
+ * These references are captured at module initialization time to protect against
91
+ * prototype pollution attacks. Import only what you need for tree-shaking.
92
+ *
93
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/date
94
+ */
95
+ // Capture references at module initialization time
96
+ const _Date = globalThis.Date;
97
+ const _Reflect$2 = globalThis.Reflect;
98
+ function createDate(...args) {
99
+ return _Reflect$2.construct(_Date, args);
100
+ }
101
+ /**
102
+ * (Safe copy) Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
103
+ */
104
+ const dateNow = _Date.now;
105
+
106
+ /**
107
+ * Safe copies of Error built-ins via factory functions.
108
+ *
109
+ * Since constructors cannot be safely captured via Object.assign, this module
110
+ * provides factory functions that use Reflect.construct internally.
111
+ *
112
+ * These references are captured at module initialization time to protect against
113
+ * prototype pollution attacks. Import only what you need for tree-shaking.
114
+ *
115
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/error
116
+ */
117
+ // Capture references at module initialization time
118
+ const _Error = globalThis.Error;
119
+ const _Reflect$1 = globalThis.Reflect;
120
+ /**
121
+ * (Safe copy) Creates a new Error using the captured Error constructor.
122
+ * Use this instead of `new Error()`.
123
+ *
124
+ * @param message - Optional error message.
125
+ * @param options - Optional error options.
126
+ * @returns A new Error instance.
127
+ */
128
+ const createError = (message, options) => _Reflect$1.construct(_Error, [message, options]);
129
+
130
+ /**
131
+ * Safe copies of JSON built-in methods.
132
+ *
133
+ * These references are captured at module initialization time to protect against
134
+ * prototype pollution attacks. Import only what you need for tree-shaking.
135
+ *
136
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/json
137
+ */
138
+ // Capture references at module initialization time
139
+ const _JSON = globalThis.JSON;
140
+ /**
141
+ * (Safe copy) Converts a JavaScript Object Notation (JSON) string into an object.
142
+ */
143
+ const parse = _JSON.parse;
144
+
145
+ /**
146
+ * Safe copies of Map built-in via factory function.
147
+ *
148
+ * Since constructors cannot be safely captured via Object.assign, this module
149
+ * provides a factory function that uses Reflect.construct internally.
150
+ *
151
+ * These references are captured at module initialization time to protect against
152
+ * prototype pollution attacks. Import only what you need for tree-shaking.
153
+ *
154
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/map
155
+ */
156
+ // Capture references at module initialization time
157
+ const _Map = globalThis.Map;
158
+ const _Reflect = globalThis.Reflect;
159
+ /**
160
+ * (Safe copy) Creates a new Map using the captured Map constructor.
161
+ * Use this instead of `new Map()`.
162
+ *
163
+ * @param iterable - Optional iterable of key-value pairs.
164
+ * @returns A new Map instance.
165
+ */
166
+ const createMap = (iterable) => _Reflect.construct(_Map, iterable ? [iterable] : []);
167
+
168
+ /**
169
+ * Creates a new cache instance.
170
+ *
171
+ * @param ttl - Time-to-live in milliseconds (default: 60000 = 1 minute)
172
+ * @returns A new Cache instance
173
+ */
174
+ function createCache(ttl = 60000) {
175
+ const entries = createMap();
176
+ return {
177
+ get(key) {
178
+ const entry = entries.get(key);
179
+ if (!entry)
180
+ return undefined;
181
+ const now = dateNow();
182
+ if (now - entry.timestamp > ttl) {
183
+ entries.delete(key);
184
+ return undefined;
185
+ }
186
+ return entry.data;
187
+ },
188
+ set(key, value) {
189
+ entries.set(key, { data: value, timestamp: dateNow() });
190
+ },
191
+ delete(key) {
192
+ entries.delete(key);
193
+ },
194
+ clear() {
195
+ entries.clear();
196
+ },
197
+ size() {
198
+ return entries.size;
199
+ },
200
+ };
201
+ }
202
+
203
+ /**
204
+ * Creates an npm registry client.
205
+ *
206
+ * @param config - Registry configuration
207
+ * @returns A Registry implementation for npm
208
+ *
209
+ * @example
210
+ * const registry = createNpmRegistry()
211
+ * const version = await registry.getLatestVersion('@hyperfrontend/utils')
212
+ */
213
+ function createNpmRegistry(config = {}) {
214
+ const state = {
215
+ config: {
216
+ url: config.url ?? 'https://registry.npmjs.org',
217
+ timeout: config.timeout ?? 10000,
218
+ cacheTtl: config.cacheTtl ?? 60000,
219
+ authToken: config.authToken,
220
+ },
221
+ cache: createCache(config.cacheTtl ?? 60000),
222
+ };
223
+ return {
224
+ name: 'npm',
225
+ url: state.config.url,
226
+ getLatestVersion: (packageName) => getLatestVersion(state, packageName),
227
+ isVersionPublished: (packageName, version) => isVersionPublished(state, packageName, version),
228
+ getPackageInfo: (packageName) => getPackageInfo(state, packageName),
229
+ getVersionInfo: (packageName, version) => getVersionInfo(state, packageName, version),
230
+ listVersions: (packageName) => listVersions(state, packageName),
231
+ };
232
+ }
233
+ /**
234
+ * Gets the latest published version of a package.
235
+ *
236
+ * @param state - Internal registry client state
237
+ * @param packageName - Name of the package to query
238
+ * @returns The latest version string, or null if not found
239
+ */
240
+ async function getLatestVersion(state, packageName) {
241
+ const cacheKey = `latest:${packageName}`;
242
+ const cached = state.cache.get(cacheKey);
243
+ if (cached !== undefined)
244
+ return cached;
245
+ try {
246
+ const safeName = escapePackageName(packageName);
247
+ const result = node_child_process.execSync(`npm view ${safeName} version`, {
248
+ encoding: 'utf-8',
249
+ timeout: state.config.timeout,
250
+ stdio: ['pipe', 'pipe', 'pipe'],
251
+ }).trim();
252
+ const version = result || null;
253
+ state.cache.set(cacheKey, version);
254
+ return version;
255
+ }
256
+ catch {
257
+ state.cache.set(cacheKey, null);
258
+ return null;
259
+ }
260
+ }
261
+ /**
262
+ * Checks if a specific version is published.
263
+ *
264
+ * @param state - Internal registry client state
265
+ * @param packageName - Name of the package to check
266
+ * @param version - Semver version string to verify
267
+ * @returns True if the version is published
268
+ */
269
+ async function isVersionPublished(state, packageName, version) {
270
+ const cacheKey = `published:${packageName}@${version}`;
271
+ const cached = state.cache.get(cacheKey);
272
+ if (cached !== undefined)
273
+ return cached;
274
+ try {
275
+ const safeName = escapePackageName(packageName);
276
+ const safeVersion = escapeVersion(version);
277
+ const result = node_child_process.execSync(`npm view ${safeName}@${safeVersion} version`, {
278
+ encoding: 'utf-8',
279
+ timeout: state.config.timeout,
280
+ stdio: ['pipe', 'pipe', 'pipe'],
281
+ }).trim();
282
+ const published = result === version;
283
+ state.cache.set(cacheKey, published);
284
+ return published;
285
+ }
286
+ catch {
287
+ state.cache.set(cacheKey, false);
288
+ return false;
289
+ }
290
+ }
291
+ /**
292
+ * Gets full package information.
293
+ *
294
+ * @param state - Internal registry client state
295
+ * @param packageName - Name of the package to query
296
+ * @returns Package info, or null if not found
297
+ */
298
+ async function getPackageInfo(state, packageName) {
299
+ const cacheKey = `info:${packageName}`;
300
+ const cached = state.cache.get(cacheKey);
301
+ if (cached !== undefined)
302
+ return cached;
303
+ try {
304
+ const safeName = escapePackageName(packageName);
305
+ const result = node_child_process.execSync(`npm view ${safeName} --json`, {
306
+ encoding: 'utf-8',
307
+ timeout: state.config.timeout,
308
+ stdio: ['pipe', 'pipe', 'pipe'],
309
+ maxBuffer: 10 * 1024 * 1024, // 10MB
310
+ });
311
+ const data = parse(result);
312
+ const info = {
313
+ name: data.name,
314
+ description: data.description,
315
+ latestVersion: data.version,
316
+ versions: isArray(data.versions) ? data.versions : [data.version],
317
+ license: data.license,
318
+ repository: extractRepoUrl(data.repository),
319
+ homepage: data.homepage,
320
+ maintainers: (data.maintainers ?? []).map((m) => {
321
+ if (typeof m === 'string') {
322
+ return { name: m };
323
+ }
324
+ return { name: m.name ?? '', email: m.email };
325
+ }),
326
+ keywords: data.keywords,
327
+ lastModified: data.time?.modified,
328
+ };
329
+ state.cache.set(cacheKey, info);
330
+ return info;
331
+ }
332
+ catch {
333
+ state.cache.set(cacheKey, null);
334
+ return null;
335
+ }
336
+ }
337
+ /**
338
+ * Gets version-specific information.
339
+ *
340
+ * @param state - Internal registry client state
341
+ * @param packageName - Name of the package to query
342
+ * @param version - Semver version string to look up
343
+ * @returns Version info, or null if not found
344
+ */
345
+ async function getVersionInfo(state, packageName, version) {
346
+ const cacheKey = `versionInfo:${packageName}@${version}`;
347
+ const cached = state.cache.get(cacheKey);
348
+ if (cached !== undefined)
349
+ return cached;
350
+ try {
351
+ const safeName = escapePackageName(packageName);
352
+ const safeVersion = escapeVersion(version);
353
+ const result = node_child_process.execSync(`npm view ${safeName}@${safeVersion} --json`, {
354
+ encoding: 'utf-8',
355
+ timeout: state.config.timeout,
356
+ stdio: ['pipe', 'pipe', 'pipe'],
357
+ maxBuffer: 5 * 1024 * 1024, // 5MB
358
+ });
359
+ const data = parse(result);
360
+ const info = {
361
+ version: data.version,
362
+ publishedAt: data.time ?? createDate().toISOString(),
363
+ tarball: data.dist?.tarball ?? '',
364
+ integrity: data.dist?.integrity,
365
+ dependencies: data.dependencies,
366
+ devDependencies: data.devDependencies,
367
+ peerDependencies: data.peerDependencies,
368
+ optionalDependencies: data.optionalDependencies,
369
+ engines: data.engines,
370
+ nodeVersion: data._nodeVersion,
371
+ npmVersion: data._npmVersion,
372
+ };
373
+ state.cache.set(cacheKey, info);
374
+ return info;
375
+ }
376
+ catch {
377
+ state.cache.set(cacheKey, null);
378
+ return null;
379
+ }
380
+ }
381
+ /**
382
+ * Lists all published versions.
383
+ *
384
+ * @param state - Internal registry client state
385
+ * @param packageName - Name of the package to query
386
+ * @returns Array of version strings
387
+ */
388
+ async function listVersions(state, packageName) {
389
+ const cacheKey = `versions:${packageName}`;
390
+ const cached = state.cache.get(cacheKey);
391
+ if (cached !== undefined)
392
+ return cached;
393
+ try {
394
+ const safeName = escapePackageName(packageName);
395
+ const result = node_child_process.execSync(`npm view ${safeName} versions --json`, {
396
+ encoding: 'utf-8',
397
+ timeout: state.config.timeout,
398
+ stdio: ['pipe', 'pipe', 'pipe'],
399
+ });
400
+ const versions = parse(result);
401
+ const versionList = isArray(versions) ? versions : [versions];
402
+ state.cache.set(cacheKey, versionList);
403
+ return versionList;
404
+ }
405
+ catch {
406
+ state.cache.set(cacheKey, []);
407
+ return [];
408
+ }
409
+ }
410
+ // ============================================================================
411
+ // Security helpers - character-by-character validation (no regex)
412
+ // ============================================================================
413
+ /**
414
+ * Maximum allowed package name length (npm limit).
415
+ */
416
+ const MAX_PACKAGE_NAME_LENGTH = 214;
417
+ /**
418
+ * Escapes a package name for safe use in shell commands.
419
+ * Uses character-by-character validation to prevent injection.
420
+ *
421
+ * @param name - Package name to escape
422
+ * @returns Safe package name
423
+ * @throws {Error} If package name contains invalid characters
424
+ */
425
+ function escapePackageName(name) {
426
+ if (!name || typeof name !== 'string') {
427
+ throw createError('Package name is required');
428
+ }
429
+ if (name.length > MAX_PACKAGE_NAME_LENGTH) {
430
+ throw createError(`Package name exceeds maximum length of ${MAX_PACKAGE_NAME_LENGTH}`);
431
+ }
432
+ const safe = [];
433
+ for (let i = 0; i < name.length; i++) {
434
+ const code = name.charCodeAt(i);
435
+ // Allow: a-z, A-Z, 0-9, @, /, -, _, .
436
+ if ((code >= 97 && code <= 122) || // a-z
437
+ (code >= 65 && code <= 90) || // A-Z
438
+ (code >= 48 && code <= 57) || // 0-9
439
+ code === 64 || // @
440
+ code === 47 || // /
441
+ code === 45 || // -
442
+ code === 95 || // _
443
+ code === 46 // .
444
+ ) {
445
+ safe.push(name[i]);
446
+ }
447
+ else {
448
+ throw createError(`Invalid character in package name at position ${i}: "${name[i]}"`);
449
+ }
450
+ }
451
+ return safe.join('');
452
+ }
453
+ /**
454
+ * Maximum allowed version string length.
455
+ */
456
+ const MAX_VERSION_LENGTH = 256;
457
+ /**
458
+ * Escapes a version string for safe use in shell commands.
459
+ *
460
+ * @param version - Version string to escape
461
+ * @returns Safe version string
462
+ * @throws {Error} If version contains invalid characters
463
+ */
464
+ function escapeVersion(version) {
465
+ if (!version || typeof version !== 'string') {
466
+ throw createError('Version is required');
467
+ }
468
+ if (version.length > MAX_VERSION_LENGTH) {
469
+ throw createError(`Version exceeds maximum length of ${MAX_VERSION_LENGTH}`);
470
+ }
471
+ const safe = [];
472
+ for (let i = 0; i < version.length; i++) {
473
+ const code = version.charCodeAt(i);
474
+ // Allow: 0-9, ., -, +, a-z, A-Z
475
+ if ((code >= 48 && code <= 57) || // 0-9
476
+ (code >= 97 && code <= 122) || // a-z
477
+ (code >= 65 && code <= 90) || // A-Z
478
+ code === 46 || // .
479
+ code === 45 || // -
480
+ code === 43 // +
481
+ ) {
482
+ safe.push(version[i]);
483
+ }
484
+ else {
485
+ throw createError(`Invalid character in version at position ${i}: "${version[i]}"`);
486
+ }
487
+ }
488
+ return safe.join('');
489
+ }
490
+ /**
491
+ * Extracts repository URL from npm package repository field.
492
+ *
493
+ * @param repository - Repository field from package.json (string or object)
494
+ * @returns Repository URL, or undefined if not found
495
+ */
496
+ function extractRepoUrl(repository) {
497
+ if (typeof repository === 'string')
498
+ return repository;
499
+ if (repository && typeof repository === 'object') {
500
+ const repo = repository;
501
+ if (repo.url) {
502
+ // Clean up git+ prefix and .git suffix
503
+ let url = repo.url;
504
+ if (url.startsWith('git+')) {
505
+ url = url.slice(4);
506
+ }
507
+ if (url.endsWith('.git')) {
508
+ url = url.slice(0, -4);
509
+ }
510
+ return url;
511
+ }
512
+ }
513
+ return undefined;
514
+ }
515
+
516
+ /**
517
+ * Creates a registry client.
518
+ *
519
+ * @param type - Type of registry to create
520
+ * @param config - Registry configuration
521
+ * @returns A Registry instance
522
+ *
523
+ * @example
524
+ * const registry = createRegistry('npm')
525
+ * const version = await registry.getLatestVersion('lodash')
526
+ */
527
+ function createRegistry(type = 'npm', config = {}) {
528
+ switch (type) {
529
+ case 'npm':
530
+ return createNpmRegistry(config);
531
+ default:
532
+ throw createError(`Unknown registry type: ${type}`);
533
+ }
534
+ }
535
+
536
+ exports.createCache = createCache;
537
+ exports.createNpmRegistry = createNpmRegistry;
538
+ exports.createPackageInfo = createPackageInfo;
539
+ exports.createRegistry = createRegistry;
540
+ exports.createVersionInfo = createVersionInfo;
541
+ exports.escapePackageName = escapePackageName;
542
+ exports.escapeVersion = escapeVersion;
543
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../libs/versioning/src/registry/models/package-info.ts","../../../../../../../../libs/versioning/src/registry/models/version-info.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/array/index.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/date/index.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/json/index.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/map/index.ts","../../../../../../../../libs/versioning/src/registry/npm/cache.ts","../../../../../../../../libs/versioning/src/registry/npm/client.ts","../../../../../../../../libs/versioning/src/registry/factory.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["_Reflect","execSync"],"mappings":";;;;AAqCA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,iBAAiB,CAAC,OAWjC,EAAA;IACC,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAC1B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;QACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,YAAY,EAAE,OAAO,CAAC,YAAY;KACnC;AACH;;AC5BA;;;;;;;;;;;;;;;;AAgBG;AACG,SAAU,iBAAiB,CAAC,OAYjC,EAAA;IACC,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;QAC1C,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC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EAAM,OAAO,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,CAAC;QACrF;IACF;AAEA,IAAA,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACtB;AAEA;;;;;AAKG;AACH,SAAS,cAAc,CAAC,UAAmB,EAAA;IACzC,IAAI,OAAO,UAAU,KAAK,QAAQ;AAAE,QAAA,OAAO,UAAU;AAErD,IAAA,IAAI,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAChD,MAAM,IAAI,GAAoC,UAAU;AACxD,QAAA,IAAI,IAAI,CAAC,GAAG,EAAE;;AAEZ,YAAA,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG;AAClB,YAAA,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;AAC1B,gBAAA,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YACpB;AACA,YAAA,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;gBACxB,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;YACxB;AACA,YAAA,OAAO,GAAG;QACZ;IACF;AAEA,IAAA,OAAO,SAAS;AAClB;;AC7VA;;;;;;;;;;AAUG;SACa,cAAc,CAAC,OAAqB,KAAK,EAAE,SAAyB,EAAE,EAAA;IACpF,QAAQ,IAAI;AACV,QAAA,KAAK,KAAK;AACR,YAAA,OAAO,iBAAiB,CAAC,MAAM,CAAC;AAClC,QAAA;AACE,YAAA,MAAM,WAAW,CAAC,CAAA,uBAAA,EAA0B,IAAI,CAAA,CAAE,CAAC;;AAEzD;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ export type { RegistryType } from './factory';
2
+ export * from './models';
3
+ export * from './npm';
4
+ export { createRegistry } from './factory';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/versioning/src/registry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA"}