@visulima/jsdoc-open-api 3.0.0-alpha.3 → 3.0.0-alpha.31

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 (67) hide show
  1. package/CHANGELOG.md +318 -0
  2. package/LICENSE.md +35 -1
  3. package/README.md +44 -33
  4. package/bin/index.js +1 -1
  5. package/dist/cli/commander/index.cjs +1 -0
  6. package/dist/cli/commander/index.d.cts +1000 -0
  7. package/dist/cli/commander/index.d.mts +996 -3
  8. package/dist/cli/commander/index.d.ts +996 -3
  9. package/dist/cli/commander/index.mjs +1 -30
  10. package/dist/cli/index.cjs +1 -0
  11. package/dist/cli/index.d.cts +9 -0
  12. package/dist/cli/index.d.mts +5 -6
  13. package/dist/cli/index.d.ts +5 -6
  14. package/dist/cli/index.mjs +1 -4
  15. package/dist/index.cjs +1 -0
  16. package/dist/index.d.cts +266 -0
  17. package/dist/index.d.mts +200 -182
  18. package/dist/index.d.ts +200 -182
  19. package/dist/index.mjs +1 -85
  20. package/dist/packem_shared/DEFAULT_OPTIONS-C7o6qjwP.mjs +1 -0
  21. package/dist/packem_shared/DEFAULT_OPTIONS-CP1lNs-k.cjs +1 -0
  22. package/dist/packem_shared/SpecBuilder-C_KcIxW-.cjs +1 -0
  23. package/dist/packem_shared/SpecBuilder-Vbq42UbW.mjs +1 -0
  24. package/dist/packem_shared/SwaggerCompilerPlugin-Bd9L4Djt.cjs +1 -0
  25. package/dist/packem_shared/SwaggerCompilerPlugin-wRdVpHJS.mjs +1 -0
  26. package/dist/packem_shared/constants-CdEv9ZcD.mjs +1 -0
  27. package/dist/packem_shared/constants-DnbfJ7Id.cjs +1 -0
  28. package/dist/packem_shared/customizer-BXFVpImq.mjs +1 -0
  29. package/dist/packem_shared/customizer-Bo8QD_ti.cjs +1 -0
  30. package/dist/packem_shared/generateCommand-CEP0sWth.cjs +5 -0
  31. package/dist/packem_shared/generateCommand-CkcShFNr.mjs +5 -0
  32. package/dist/packem_shared/generateCommand-CmoN8jyY.cjs +1 -0
  33. package/dist/packem_shared/generateCommand-DEhmHbRZ.mjs +1 -0
  34. package/dist/packem_shared/initCommand-1O6IuWJv.mjs +1 -0
  35. package/dist/packem_shared/initCommand-C8s0kkim.cjs +1 -0
  36. package/dist/packem_shared/initCommand-Ca1hGdYS.mjs +35 -0
  37. package/dist/packem_shared/initCommand-DvNH61Z4.cjs +35 -0
  38. package/dist/packem_shared/jsDocumentCommentsToOpenApi-BEQrWgpQ.mjs +1 -0
  39. package/dist/packem_shared/jsDocumentCommentsToOpenApi-CMbdb0uR.cjs +1 -0
  40. package/dist/packem_shared/loadDefinition-7r9qpfuE.mjs +1 -0
  41. package/dist/packem_shared/loadDefinition-ah20Zy-G.cjs +1 -0
  42. package/dist/packem_shared/parseFile-CPb-Kglh.cjs +1 -0
  43. package/dist/packem_shared/parseFile-Wxs3O0wy.mjs +1 -0
  44. package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-BnPWbZoe.mjs +10 -0
  45. package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-rMEaS4lg.cjs +10 -0
  46. package/dist/packem_shared/validate-9Rwe2A3r.mjs +1 -0
  47. package/dist/packem_shared/validate-DLmCjOPl.cjs +1 -0
  48. package/dist/packem_shared/yamlLoc-DC_7PYVS.cjs +1 -0
  49. package/dist/packem_shared/yamlLoc-DPq-xUM4.mjs +1 -0
  50. package/package.json +43 -32
  51. package/dist/chunk-46IWFMQ2.mjs +0 -1205
  52. package/dist/chunk-46IWFMQ2.mjs.map +0 -1
  53. package/dist/chunk-KI63G47G.mjs +0 -142
  54. package/dist/chunk-KI63G47G.mjs.map +0 -1
  55. package/dist/chunk-QK4CXNUY.js +0 -149
  56. package/dist/chunk-QK4CXNUY.js.map +0 -1
  57. package/dist/chunk-WEX5DMNT.js +0 -1223
  58. package/dist/chunk-WEX5DMNT.js.map +0 -1
  59. package/dist/cli/commander/index.js +0 -33
  60. package/dist/cli/commander/index.js.map +0 -1
  61. package/dist/cli/commander/index.mjs.map +0 -1
  62. package/dist/cli/index.js +0 -17
  63. package/dist/cli/index.js.map +0 -1
  64. package/dist/cli/index.mjs.map +0 -1
  65. package/dist/index.js +0 -106
  66. package/dist/index.js.map +0 -1
  67. package/dist/index.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,321 @@
1
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.31](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.30...@visulima/jsdoc-open-api@3.0.0-alpha.31) (2026-06-19)
2
+
3
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.30](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.29...@visulima/jsdoc-open-api@3.0.0-alpha.30) (2026-06-13)
4
+
5
+ ### Features
6
+
7
+ * **jsdoc-open-api:** harden merge, fix error paths, add yaml/stdout/watch output ([abd6a1a](https://github.com/visulima/visulima/commit/abd6a1ae6be8060515f8a61a1469b8ae652bf58a))
8
+
9
+ ### Bug Fixes
10
+
11
+ * **jsdoc-open-api:** use String.raw for mime-type backslash literal ([e55977d](https://github.com/visulima/visulima/commit/e55977d804ec2cb26b077f51bd2ce9cc6677d5ac))
12
+
13
+ ### Tests
14
+
15
+ * **jsdoc-open-api:** assert each file is parsed once ([b285496](https://github.com/visulima/visulima/commit/b28549623e984cc65a8c645a149406c546461e93))
16
+
17
+ ### Build System
18
+
19
+ * regenerate bundled-license manifests and types ordering ([af26588](https://github.com/visulima/visulima/commit/af26588d75aaa937fd4862800560bd4070a4878c))
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.32
25
+
26
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.29](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.28...@visulima/jsdoc-open-api@3.0.0-alpha.29) (2026-06-04)
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.31
32
+
33
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.28](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.27...@visulima/jsdoc-open-api@3.0.0-alpha.28) (2026-06-04)
34
+
35
+ ### Bug Fixes
36
+
37
+ * **jsdoc-open-api:** 3 bug fixes ([1336b87](https://github.com/visulima/visulima/commit/1336b870964f2645505efbf2720218ddb5aaa18d))
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.30
43
+
44
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.27](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.26...@visulima/jsdoc-open-api@3.0.0-alpha.27) (2026-06-02)
45
+
46
+ ### Miscellaneous Chores
47
+
48
+ * apply eslint + prettier autofixes across packages ([c1bb784](https://github.com/visulima/visulima/commit/c1bb7848a0d93d0dfe2960c77e3cda22239c79a0))
49
+
50
+ ### Tests
51
+
52
+ * improve coverage across packages ([91bd6d3](https://github.com/visulima/visulima/commit/91bd6d3b61736e3c8bd1fc59b0b5955f76a5d323))
53
+ * **jsdoc-open-api:** cover cli commands, webpack plugin errors, loaders, and swagger merge paths ([22cff56](https://github.com/visulima/visulima/commit/22cff56740cc473cad3ad45ab3749cfff8ff36d8))
54
+
55
+
56
+ ### Dependencies
57
+
58
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.29
59
+
60
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.26](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.25...@visulima/jsdoc-open-api@3.0.0-alpha.26) (2026-05-27)
61
+
62
+ ### Bug Fixes
63
+
64
+ * **storage-client:** percent-encode user fields in defaultFingerprint ([7c78a0f](https://github.com/visulima/visulima/commit/7c78a0f9512e2a673b941d80839e9f1e86b7b5d0))
65
+
66
+ ### Miscellaneous Chores
67
+
68
+ * sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
69
+
70
+
71
+ ### Dependencies
72
+
73
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.28
74
+
75
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.25](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.24...@visulima/jsdoc-open-api@3.0.0-alpha.25) (2026-05-26)
76
+
77
+ ### Miscellaneous Chores
78
+
79
+ * **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
80
+ * **repo:** apply eslint --fix and prettier --fix across packages ([#650](https://github.com/visulima/visulima/issues/650)) ([2e26a84](https://github.com/visulima/visulima/commit/2e26a84774f218f21345e9a8ecd68236b6542743)), closes [#620](https://github.com/visulima/visulima/issues/620)
81
+ * **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
82
+
83
+ ### Tests
84
+
85
+ * **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
86
+ * **repo:** cover bin entry points in dist integration suite ([7479ef1](https://github.com/visulima/visulima/commit/7479ef113cf5ccef25692619082afb1b6a0eecab))
87
+
88
+
89
+ ### Dependencies
90
+
91
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.26
92
+
93
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.24](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.23...@visulima/jsdoc-open-api@3.0.0-alpha.24) (2026-05-20)
94
+
95
+
96
+ ### Dependencies
97
+
98
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.25
99
+
100
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.23](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.22...@visulima/jsdoc-open-api@3.0.0-alpha.23) (2026-05-19)
101
+
102
+
103
+ ### Dependencies
104
+
105
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.24
106
+
107
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.22](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.21...@visulima/jsdoc-open-api@3.0.0-alpha.22) (2026-05-16)
108
+
109
+
110
+ ### Dependencies
111
+
112
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.23
113
+
114
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.21](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.20...@visulima/jsdoc-open-api@3.0.0-alpha.21) (2026-05-14)
115
+
116
+ ### Miscellaneous Chores
117
+
118
+ * **jsdoc-open-api:** apply formatter sweep ([6852218](https://github.com/visulima/visulima/commit/6852218fe4d8099771d12499cba090d73034b3c3))
119
+
120
+
121
+ ### Dependencies
122
+
123
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.22
124
+
125
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.20](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.19...@visulima/jsdoc-open-api@3.0.0-alpha.20) (2026-05-11)
126
+
127
+
128
+ ### Dependencies
129
+
130
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.21
131
+
132
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.19](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.18...@visulima/jsdoc-open-api@3.0.0-alpha.19) (2026-05-11)
133
+
134
+
135
+ ### Dependencies
136
+
137
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.20
138
+
139
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.18](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.17...@visulima/jsdoc-open-api@3.0.0-alpha.18) (2026-05-10)
140
+
141
+
142
+ ### Dependencies
143
+
144
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.19
145
+
146
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.17](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.16...@visulima/jsdoc-open-api@3.0.0-alpha.17) (2026-05-10)
147
+
148
+
149
+ ### Dependencies
150
+
151
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.18
152
+
153
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.16](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.15...@visulima/jsdoc-open-api@3.0.0-alpha.16) (2026-05-07)
154
+
155
+
156
+ ### Dependencies
157
+
158
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.17
159
+
160
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.14...@visulima/jsdoc-open-api@3.0.0-alpha.15) (2026-05-07)
161
+
162
+
163
+ ### Dependencies
164
+
165
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.16
166
+
167
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.13...@visulima/jsdoc-open-api@3.0.0-alpha.14) (2026-05-06)
168
+
169
+
170
+ ### Dependencies
171
+
172
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.15
173
+
174
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.12...@visulima/jsdoc-open-api@3.0.0-alpha.13) (2026-05-06)
175
+
176
+ ### Miscellaneous Chores
177
+
178
+ * **jsdoc-open-api:** apply prettier and eslint quote-style auto-fix ([2e9b8d0](https://github.com/visulima/visulima/commit/2e9b8d0cdccaa94f22627e5e5f11153c71b689bd))
179
+ * **jsdoc-open-api:** housekeeping cleanup ([de52abe](https://github.com/visulima/visulima/commit/de52abea6d81abc06a8afc14c70ea2a5aabcd30e))
180
+
181
+
182
+ ### Dependencies
183
+
184
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.14
185
+
186
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.12](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.11...@visulima/jsdoc-open-api@3.0.0-alpha.12) (2026-05-04)
187
+
188
+ ### Miscellaneous Chores
189
+
190
+ * **jsdoc-open-api:** upgrade packem to 2.0.0-alpha.76 ([a3b3549](https://github.com/visulima/visulima/commit/a3b3549a68e22970a39904d2d654b65c6047d7cf))
191
+ * re-sort workspace package.json files via vis sort-package-json ([f625696](https://github.com/visulima/visulima/commit/f625696cfac974325774b3243e1a83c3d23acbd7))
192
+
193
+
194
+ ### Dependencies
195
+
196
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.13
197
+
198
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.10...@visulima/jsdoc-open-api@3.0.0-alpha.11) (2026-04-22)
199
+
200
+ ### Bug Fixes
201
+
202
+ * Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
203
+
204
+
205
+ ### Dependencies
206
+
207
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.12
208
+
209
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.9...@visulima/jsdoc-open-api@3.0.0-alpha.10) (2026-04-21)
210
+
211
+ ### Miscellaneous Chores
212
+
213
+ * jsr.json update and lock file ([73fce38](https://github.com/visulima/visulima/commit/73fce38c7cb4603f3fffb88609b1b18e2feb4937))
214
+
215
+
216
+ ### Dependencies
217
+
218
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.11
219
+
220
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.8...@visulima/jsdoc-open-api@3.0.0-alpha.9) (2026-04-21)
221
+
222
+ ### Miscellaneous Chores
223
+
224
+ * update the jsr.json ([864ab7e](https://github.com/visulima/visulima/commit/864ab7e71c4b5ae82f64792d1ae8debfea2c539b))
225
+
226
+
227
+ ### Dependencies
228
+
229
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.10
230
+
231
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.7...@visulima/jsdoc-open-api@3.0.0-alpha.8) (2026-04-21)
232
+
233
+ ### Bug Fixes
234
+
235
+ * **api:** resolve eslint and type-safety issues across api packages ([3601491](https://github.com/visulima/visulima/commit/3601491261de56b5cfad87c97daafd458e4ee3b6))
236
+ * **jsdoc-open-api:** drop redundant String() conversion in init-command ([1b2384e](https://github.com/visulima/visulima/commit/1b2384e917687beaf464e18e24595c7d4214c94e))
237
+ * **jsdoc-open-api:** relax type overrides for parser code, preserve JSON roundtrip for undefined stripping ([be896e2](https://github.com/visulima/visulima/commit/be896e2e724396bcb74fbbd3161d29213a9984d6))
238
+
239
+ ### Miscellaneous Chores
240
+
241
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
242
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
243
+ * **jsdoc-open-api:** apply formatter updates ([57231bd](https://github.com/visulima/visulima/commit/57231bd235fa16768802306aa6e906a4558c579c))
244
+ * **jsdoc-open-api:** apply pending lint and source updates ([0669fd3](https://github.com/visulima/visulima/commit/0669fd3d46ad0787ef6709cc8cad67b7ff7495f7))
245
+ * **jsdoc-open-api:** enforce curly braces and apply lint fixes ([606641f](https://github.com/visulima/visulima/commit/606641f7a29eaa5707ae27c57ed02a91adf950b5))
246
+
247
+
248
+ ### Dependencies
249
+
250
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.9
251
+
252
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.6...@visulima/jsdoc-open-api@3.0.0-alpha.7) (2026-04-08)
253
+
254
+ ### Miscellaneous Chores
255
+
256
+ * **jsdoc-open-api:** add tsconfig.eslint.json for type-aware linting ([dd9a888](https://github.com/visulima/visulima/commit/dd9a88810a864e5ef8ee9a1cdf3cf742a4549cb3))
257
+ * **jsdoc-open-api:** apply prettier formatting ([25dae1b](https://github.com/visulima/visulima/commit/25dae1bd4d911921c1926c0212751cf4179087aa))
258
+ * **jsdoc-open-api:** migrate .prettierrc.cjs to prettier.config.js ([cbe2931](https://github.com/visulima/visulima/commit/cbe2931b52a65fcb2e86960acdc31c8ebc3c9c74))
259
+
260
+
261
+ ### Dependencies
262
+
263
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.7
264
+
265
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.5...@visulima/jsdoc-open-api@3.0.0-alpha.6) (2026-03-26)
266
+
267
+ ### Features
268
+
269
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
270
+
271
+ ### Miscellaneous Chores
272
+
273
+ * update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
274
+
275
+
276
+ ### Dependencies
277
+
278
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.6
279
+
280
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.4...@visulima/jsdoc-open-api@3.0.0-alpha.5) (2026-03-26)
281
+
282
+ ### Bug Fixes
283
+
284
+ * **jsdoc-open-api:** use workspace:* for internal [@visulima](https://github.com/visulima) deps ([4f97e12](https://github.com/visulima/visulima/commit/4f97e125a8f84a5e8b9691b72e2f9c56c5d3a69b))
285
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
286
+
287
+ ### Documentation
288
+
289
+ * **cerebro,prisma-dmmf-transformer,jsdoc-open-api:** add comprehensive Fumadocs documentation ([891b308](https://github.com/visulima/visulima/commit/891b308a34bca2765a4a97ea450648d20d90e0cf))
290
+
291
+ ### Miscellaneous Chores
292
+
293
+ * **api:** remove empty peerDependencies and optionalDependencies ([85142fa](https://github.com/visulima/visulima/commit/85142fa76729c238a59ac48265b5e33e31183abb))
294
+ * **api:** update dependencies ([f3b6f7c](https://github.com/visulima/visulima/commit/f3b6f7c956e8ae2c0da67773b3790f159c07de29))
295
+ * **jsdoc-open-api:** migrate deps to pnpm catalogs ([9a673ca](https://github.com/visulima/visulima/commit/9a673ca0d8235d0ff28a6fe9b150cf2ee37e78a4))
296
+ * **jsdoc-open-api:** update dependencies ([5a1248f](https://github.com/visulima/visulima/commit/5a1248f8fa408fc81bb07a5bf9ce8430b89c1f57))
297
+ * **jsdoc-open-api:** update dependencies ([f5d2a31](https://github.com/visulima/visulima/commit/f5d2a31a8fd163c321915a779c661b758b3e6f73))
298
+ * **jsdoc-open-api:** update tests, docs, and source formatting ([9526ec8](https://github.com/visulima/visulima/commit/9526ec8ebb3e0e506d50b2f6035faf0cbcaca205))
299
+ * sorting package.json ([430ed68](https://github.com/visulima/visulima/commit/430ed683d3e38e4c5c5530f787ca832f083b17e4))
300
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
301
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
302
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
303
+
304
+ ### Code Refactoring
305
+
306
+ * **jsdoc-open-api:** replace read-pkg-up with @visulima/fs and migrate to packem ([be668e4](https://github.com/visulima/visulima/commit/be668e4dc21a3394bcdb22aecf416f9c27e08e0d))
307
+
308
+
309
+ ### Dependencies
310
+
311
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.5
312
+
313
+ ## @visulima/jsdoc-open-api [3.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.3...@visulima/jsdoc-open-api@3.0.0-alpha.4) (2026-01-17)
314
+
315
+ ### Bug Fixes
316
+
317
+ * **jsdoc-open-api:** combine name and description for path-based YAML parsing ([68e7d23](https://github.com/visulima/visulima/commit/68e7d2395ab97de3221892afe03da27688df7569))
318
+
1
319
  ## @visulima/jsdoc-open-api [3.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/jsdoc-open-api@3.0.0-alpha.2...@visulima/jsdoc-open-api@3.0.0-alpha.3) (2025-12-27)
2
320
 
3
321
  ### Bug Fixes
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -24,4 +24,38 @@ SOFTWARE.
24
24
  <!-- /DEPENDENCIES -->
25
25
 
26
26
  <!-- TYPE_DEPENDENCIES -->
27
+
28
+ # Licenses of bundled types
29
+ The published @visulima/jsdoc-open-api artifact additionally contains code with the following licenses:
30
+ MIT
31
+
32
+ # Bundled types:
33
+ ## commander
34
+ License: MIT
35
+ By: TJ Holowaychuk
36
+ Repository: git+https://github.com/tj/commander.js.git
37
+
38
+ > (The MIT License)
39
+ >
40
+ > Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
41
+ >
42
+ > Permission is hereby granted, free of charge, to any person obtaining
43
+ > a copy of this software and associated documentation files (the
44
+ > 'Software'), to deal in the Software without restriction, including
45
+ > without limitation the rights to use, copy, modify, merge, publish,
46
+ > distribute, sublicense, and/or sell copies of the Software, and to
47
+ > permit persons to whom the Software is furnished to do so, subject to
48
+ > the following conditions:
49
+ >
50
+ > The above copyright notice and this permission notice shall be
51
+ > included in all copies or substantial portions of the Software.
52
+ >
53
+ > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
54
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
55
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
56
+ > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
57
+ > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
58
+ > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
59
+ > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60
+
27
61
  <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -134,11 +134,23 @@ jsdoc-open-api generate src/routes/**/*.js src/controllers/
134
134
  # Specify output file
135
135
  jsdoc-open-api generate -o ./public/swagger.json src/
136
136
 
137
+ # Emit YAML instead of JSON (format is inferred from the extension)
138
+ jsdoc-open-api generate -o ./openapi.yaml src/
139
+
140
+ # Write the spec to stdout (useful for piping into other tools)
141
+ jsdoc-open-api generate -o - src/
142
+
143
+ # Seed info/servers/components from a standalone base-definition file
144
+ jsdoc-open-api generate -d ./definition.yaml src/
145
+
146
+ # Re-generate automatically whenever a watched path changes
147
+ jsdoc-open-api generate --watch src/
148
+
137
149
  # Use verbose output
138
150
  jsdoc-open-api generate -v src/
139
151
 
140
152
  # Use very verbose output for debugging
141
- jsdoc-open-api generate -d src/
153
+ jsdoc-open-api generate --very-verbose src/
142
154
  ```
143
155
 
144
156
  ### `generate` Command Options:
@@ -149,54 +161,53 @@ jsdoc-open-api generate [options] [path ...]
149
161
 
150
162
  - `[path ...]` : Paths to files or directories to parse (optional, uses configuration if not provided).
151
163
  - `-c, --config [.openapirc.js]` : Specify the configuration file path. Defaults to `.openapirc.js`.
152
- - `-o, --output [swaggerSpec.json]` : Specify the output file for the OpenAPI specification. Defaults to `swaggerSpec.json`.
164
+ - `-d, --definition [definition.yaml]` : Base OpenAPI definition file (YAML or JSON) used to seed `info`/`servers`/`components`. The config's `swaggerDefinition` takes precedence over the file.
165
+ - `-o, --output [swaggerSpec.json]` : Specify the output file for the OpenAPI specification. Defaults to `swagger.json`. Use a `.yaml`/`.yml` extension to emit YAML, or `-` to write to stdout.
166
+ - `-w, --watch` : Re-generate the specification whenever one of the watched paths changes (press Ctrl+C to exit).
153
167
  - `-v, --verbose` : Enable verbose output during generation.
154
- - `-d, --very-verbose` : Enable _very_ verbose output for detailed debugging.
168
+ - `--very-verbose` : Enable _very_ verbose output for detailed debugging.
155
169
 
156
170
  ---
157
171
 
158
172
  ## Programmatic Usage
159
173
 
160
- You can integrate the generation process directly into your Node.js scripts.
174
+ You can assemble a specification directly in your Node.js scripts. The package
175
+ exposes the building blocks rather than a single all-in-one function:
176
+
177
+ - `SpecBuilder` — merges per-file results into a single OpenAPI document.
178
+ - `parseFile` / `parseFileMulti` — read a file and run one (or several) comment translators over it. `parseFileMulti` reads + parses the comments only once when you need both dialects.
179
+ - `jsDocumentCommentsToOpenApi` / `swaggerJsDocumentCommentsToOpenApi` — the two JSDoc dialect translators.
180
+ - `validate` — validate the assembled document with `@apidevtools/swagger-parser` (the same check the CLI runs).
181
+ - `loadDefinition` — load a standalone base-definition file (YAML or JSON).
161
182
 
162
183
  ```javascript
163
184
  import path from "node:path";
164
185
  import { fileURLToPath } from "node:url";
165
- import jsdocOpenApi from "@visulima/jsdoc-open-api"; // Adjust import based on your module system (require vs import)
166
186
 
167
- const __filename = fileURLToPath(import.meta.url);
168
- const __dirname = path.dirname(__filename);
187
+ import { SpecBuilder, parseFileMulti, jsDocumentCommentsToOpenApi, swaggerJsDocumentCommentsToOpenApi, validate } from "@visulima/jsdoc-open-api";
169
188
 
170
- const options = {
171
- definition: {
172
- openapi: "3.0.0",
173
- info: {
174
- title: "My Programmatic API",
175
- version: "1.0.0",
176
- description: "API documentation generated programmatically",
177
- },
178
- // Add other base OpenAPI definition properties here
189
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
190
+
191
+ const spec = new SpecBuilder({
192
+ openapi: "3.0.0",
193
+ info: {
194
+ title: "My Programmatic API",
195
+ version: "1.0.0",
196
+ description: "API documentation generated programmatically",
179
197
  },
180
- // Glob patterns pointing to your source files with JSDoc comments
181
- sources: [path.join(__dirname, "src/routes/**/*.js")],
182
- // Optional: Specify output path (defaults to 'swaggerSpec.json' in current dir)
183
- // output: path.join(__dirname, 'public/api-docs.json'),
184
- // Optional: Enable verbose logging
185
- // verbose: true,
186
- };
198
+ });
199
+
200
+ const translators = [jsDocumentCommentsToOpenApi, swaggerJsDocumentCommentsToOpenApi];
187
201
 
188
- async function generateDocs() {
189
- try {
190
- const specification = await jsdocOpenApi(options);
191
- console.log("OpenAPI specification generated successfully:");
192
- // The specification object is returned, and also written to the output file if specified.
193
- // console.log(JSON.stringify(specification, null, 2));
194
- } catch (error) {
195
- console.error("Error generating OpenAPI specification:", error);
196
- }
202
+ // Feed each source file through both dialects (single read + single comment parse).
203
+ for (const file of [path.join(__dirname, "src/routes/users.js")]) {
204
+ spec.addData(parseFileMulti(file, translators).map((entry) => entry.spec));
197
205
  }
198
206
 
199
- generateDocs();
207
+ // Re-use the exact validation the CLI performs.
208
+ await validate(structuredClone(spec));
209
+
210
+ console.log(JSON.stringify(spec, null, 2));
200
211
  ```
201
212
 
202
213
  ---
package/bin/index.js CHANGED
@@ -4,7 +4,7 @@ const { exit } = require("node:process");
4
4
  // eslint-disable-next-line import/no-extraneous-dependencies
5
5
  const { Command } = require("commander");
6
6
 
7
- const { generateCommand, initCommand } = require("../dist/cli/commander");
7
+ const { generateCommand, initCommand } = require("../dist/cli/commander/index.cjs");
8
8
 
9
9
  // eslint-disable-next-line no-underscore-dangle
10
10
  const package_ = require("../package.json");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../packem_shared/generateCommand-CmoN8jyY.cjs"),t=require("../../packem_shared/initCommand-C8s0kkim.cjs");exports.generateCommand=e;exports.initCommand=t;