@cjser/es-joy__jsdoccomment 0.96.0-cjser.2
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.
- package/CHANGES.md +883 -0
- package/LICENSE-MIT.txt +20 -0
- package/README.md +250 -0
- package/dist/index.d.ts +421 -0
- package/dist-cjser/index.cjs +1224 -0
- package/package.json +144 -0
- package/src/commentHandler.js +48 -0
- package/src/commentParserToESTree.js +525 -0
- package/src/estreeToString.js +234 -0
- package/src/index.js +59 -0
- package/src/inlineTagEscapes.js +73 -0
- package/src/jsdoccomment.js +705 -0
- package/src/parseComment.js +190 -0
- package/src/parseInlineTags.js +114 -0
- package/src/toCamelCase.js +13 -0
package/CHANGES.md
ADDED
|
@@ -0,0 +1,883 @@
|
|
|
1
|
+
# CHANGES for `@es-joy/jsdoccomment`
|
|
2
|
+
|
|
3
|
+
## 0.96.0
|
|
4
|
+
|
|
5
|
+
- feat: update jsdoc-type-pratt-parser and devDeps.
|
|
6
|
+
|
|
7
|
+
## 0.95.1
|
|
8
|
+
|
|
9
|
+
- fix: update jsdoc-type-pratt-parser and devDeps.
|
|
10
|
+
|
|
11
|
+
## 0.95.0
|
|
12
|
+
|
|
13
|
+
- chore: update typescript-eslint/types, jtpp, devDeps.; switch to nodenext modules in ts
|
|
14
|
+
|
|
15
|
+
## 0.94.0
|
|
16
|
+
|
|
17
|
+
- chore: update jtpp, devDeps.
|
|
18
|
+
|
|
19
|
+
## 0.93.2
|
|
20
|
+
|
|
21
|
+
- fix: update jsdoc-type-pratt-parser
|
|
22
|
+
|
|
23
|
+
## 0.93.1
|
|
24
|
+
|
|
25
|
+
- docs: fix link
|
|
26
|
+
|
|
27
|
+
## 0.93.0
|
|
28
|
+
|
|
29
|
+
- chore: update comment-parser, typescript-eslint/types, devDeps.
|
|
30
|
+
|
|
31
|
+
## 0.92.0
|
|
32
|
+
|
|
33
|
+
BREAKING CHANGES:
|
|
34
|
+
|
|
35
|
+
- Drops CJS exports; should be able to use `require(esm)` with newly supported Node versions
|
|
36
|
+
- Requires Node ^22.22.2 || >=24.15.0
|
|
37
|
+
- chore: update jsdoc-type-pratt-parser, devDeps.
|
|
38
|
+
|
|
39
|
+
## 0.91.0
|
|
40
|
+
|
|
41
|
+
- chore: update `jsdoc-type-pratt-parser` and devDeps
|
|
42
|
+
|
|
43
|
+
## 0.90.0
|
|
44
|
+
|
|
45
|
+
- chore: update `jsdoc-type-pratt-parser` and devDeps
|
|
46
|
+
|
|
47
|
+
## 0.89.0
|
|
48
|
+
|
|
49
|
+
- fix: detect class constructor overload comments
|
|
50
|
+
- fix: honor `\}` and `\]` escapes in inline-tag labels (#26) (@morgan-coded)
|
|
51
|
+
- chore: update `@typescript-eslint/types` and devDeps.
|
|
52
|
+
|
|
53
|
+
## 0.88.0
|
|
54
|
+
|
|
55
|
+
- fix: detect class method overload comments (#22) (@morgan-coded)
|
|
56
|
+
- fix: detect overload comments in nested scopes (#23) (@morgan-coded)
|
|
57
|
+
|
|
58
|
+
## 0.87.0
|
|
59
|
+
|
|
60
|
+
- chore: update types/estree, typescript-eslint/types, comment-parser, devDeps.
|
|
61
|
+
|
|
62
|
+
## 0.86.0
|
|
63
|
+
|
|
64
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser, devDeps.
|
|
65
|
+
|
|
66
|
+
## 0.85.0
|
|
67
|
+
|
|
68
|
+
- chore: update typescript-eslint/types, comment-parser, devDeps.
|
|
69
|
+
|
|
70
|
+
## 0.84.0
|
|
71
|
+
|
|
72
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser, devDeps.
|
|
73
|
+
|
|
74
|
+
## 0.83.0
|
|
75
|
+
|
|
76
|
+
- chore: update comment-parser, devDeps.
|
|
77
|
+
|
|
78
|
+
## 0.82.0
|
|
79
|
+
|
|
80
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser, devDeps
|
|
81
|
+
|
|
82
|
+
## 0.81.0
|
|
83
|
+
|
|
84
|
+
- chore: update comment-parser, devDeps.
|
|
85
|
+
|
|
86
|
+
## 0.80.0
|
|
87
|
+
|
|
88
|
+
- fix: update `estreeToString` to handle name on subsequent line
|
|
89
|
+
- chore: update comment-parser, typescript-eslint/types, devDeps.
|
|
90
|
+
|
|
91
|
+
## 0.79.0
|
|
92
|
+
|
|
93
|
+
- feat: allow `skipInvokedExpressionsForCommentFinding` setting for
|
|
94
|
+
`getReducedASTNode`, `getJSDocComment`, `getNonJsdocComment`
|
|
95
|
+
- chore: require Node ^20.19.0 || ^22.13.0 || >=24
|
|
96
|
+
- chore: update `@typescript-eslint/types` and devDeps.
|
|
97
|
+
|
|
98
|
+
## 0.78.0
|
|
99
|
+
|
|
100
|
+
- chore: update typescript-eslint/types, devDeps.
|
|
101
|
+
|
|
102
|
+
## 0.77.0
|
|
103
|
+
|
|
104
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser, devDeps.
|
|
105
|
+
|
|
106
|
+
## 0.76.0
|
|
107
|
+
|
|
108
|
+
- chore: update jsdoc-type-pratt-parser, devDep.
|
|
109
|
+
|
|
110
|
+
## 0.75.0
|
|
111
|
+
|
|
112
|
+
- chore: update jsdoc-type-pratt-parser
|
|
113
|
+
|
|
114
|
+
## 0.74.0
|
|
115
|
+
|
|
116
|
+
- chore: update jsdoc-type-pratt-parser
|
|
117
|
+
|
|
118
|
+
## 0.73.0
|
|
119
|
+
|
|
120
|
+
- chore: update jsdoc-type-pratt-parser
|
|
121
|
+
|
|
122
|
+
## 0.72.0
|
|
123
|
+
|
|
124
|
+
- chore: update jsdoc-type-pratt-parser and devDep.
|
|
125
|
+
|
|
126
|
+
## 0.71.0
|
|
127
|
+
|
|
128
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser, devDeps.
|
|
129
|
+
|
|
130
|
+
## 0.70.1
|
|
131
|
+
|
|
132
|
+
- chore: update jsdoc-type-pratt-parser
|
|
133
|
+
|
|
134
|
+
## 0.70.0
|
|
135
|
+
|
|
136
|
+
- chore: update jsdoc-type-pratt-parser and devDep.
|
|
137
|
+
- feat(demo): syntax highlight JSDoc and JSON
|
|
138
|
+
|
|
139
|
+
## 0.69.0
|
|
140
|
+
|
|
141
|
+
- chore: update jsdoc-type-pratt-parser and devDep.
|
|
142
|
+
|
|
143
|
+
## 0.68.1
|
|
144
|
+
|
|
145
|
+
- fix(typescript): ensure options arguments are optional
|
|
146
|
+
|
|
147
|
+
## 0.68.0
|
|
148
|
+
|
|
149
|
+
- feat: allow provision of `jsdoc-type-pratt-parser` options to `commentHandler` and `estreeToString`
|
|
150
|
+
|
|
151
|
+
## 0.67.3
|
|
152
|
+
|
|
153
|
+
- chore: update jsdoc-type-pratt-parser and devDep.
|
|
154
|
+
|
|
155
|
+
## 0.67.2
|
|
156
|
+
|
|
157
|
+
- chore: update jsdoc-type-pratt-parser and devDep.
|
|
158
|
+
|
|
159
|
+
## 0.67.1
|
|
160
|
+
|
|
161
|
+
- chore: update jsdoc-type-pratt-parser
|
|
162
|
+
|
|
163
|
+
## 0.67.0
|
|
164
|
+
|
|
165
|
+
- chore: update jsdoc-type-pratt-parser
|
|
166
|
+
|
|
167
|
+
## 0.66.0
|
|
168
|
+
|
|
169
|
+
- chore: update jsdoc-type-pratt-parser
|
|
170
|
+
|
|
171
|
+
## 0.65.2
|
|
172
|
+
|
|
173
|
+
- chore: update jsdoc-type-pratt-parser
|
|
174
|
+
|
|
175
|
+
## 0.65.1
|
|
176
|
+
|
|
177
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.
|
|
178
|
+
|
|
179
|
+
## 0.65.0
|
|
180
|
+
|
|
181
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser and devDeps.
|
|
182
|
+
|
|
183
|
+
## 0.64.0
|
|
184
|
+
|
|
185
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.
|
|
186
|
+
|
|
187
|
+
## 0.63.0
|
|
188
|
+
|
|
189
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.
|
|
190
|
+
|
|
191
|
+
## 0.62.0
|
|
192
|
+
|
|
193
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.
|
|
194
|
+
|
|
195
|
+
## 0.61.0
|
|
196
|
+
|
|
197
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.
|
|
198
|
+
|
|
199
|
+
## 0.60.0
|
|
200
|
+
|
|
201
|
+
- feat(`commentParserToESTree`): default to typescript mode
|
|
202
|
+
- feat(`parseComment`): give more specific error when fails to parse
|
|
203
|
+
- feat: add demo
|
|
204
|
+
|
|
205
|
+
## 0.59.0
|
|
206
|
+
|
|
207
|
+
- chore: update @typescript-eslint/types and devDeps
|
|
208
|
+
|
|
209
|
+
## 0.58.0
|
|
210
|
+
|
|
211
|
+
- feat: update @typescript-eslint/types, jsdoc-type-pratt-parser and devDeps.
|
|
212
|
+
|
|
213
|
+
## 0.57.0
|
|
214
|
+
|
|
215
|
+
- feat: update jsdoc-type-pratt-parser and devDeps.
|
|
216
|
+
|
|
217
|
+
## 0.56.0
|
|
218
|
+
|
|
219
|
+
- feat: update jsdoc-type-pratt-parser and devDeps.
|
|
220
|
+
|
|
221
|
+
## 0.55.0
|
|
222
|
+
|
|
223
|
+
- chore: update typescript-eslint/types, jsdoc-type-pratt-parser and devDeps.
|
|
224
|
+
|
|
225
|
+
## 0.54.1
|
|
226
|
+
|
|
227
|
+
- fix: make optional overload checks include `ExportNamedDeclaration`s.
|
|
228
|
+
|
|
229
|
+
## 0.54.0
|
|
230
|
+
|
|
231
|
+
- feat: make overload checks optional
|
|
232
|
+
- chore: switch to Node 20 as Babel target and remove unneeded plugin
|
|
233
|
+
- chore: update devDeps.
|
|
234
|
+
|
|
235
|
+
## 0.53.0
|
|
236
|
+
|
|
237
|
+
- chore: upgrade typescript-eslint/types, jsdoc-type-pratt-parser, devDeps
|
|
238
|
+
|
|
239
|
+
## 0.52.0
|
|
240
|
+
|
|
241
|
+
BREAKING CHANGES:
|
|
242
|
+
|
|
243
|
+
- chore: require Node >= 20.11.0
|
|
244
|
+
|
|
245
|
+
## 0.51.1
|
|
246
|
+
|
|
247
|
+
- fix(`jsdoccomment`): ensure overloading check looks to identically named functions only
|
|
248
|
+
|
|
249
|
+
## 0.51.0
|
|
250
|
+
|
|
251
|
+
- fix(`jsdoccomment`): find overload comment
|
|
252
|
+
- chore: update types/estree, typescript-eslint/types, devDeps.
|
|
253
|
+
|
|
254
|
+
## 0.50.2
|
|
255
|
+
|
|
256
|
+
- fix: remove `@types/eslint` (#20)
|
|
257
|
+
|
|
258
|
+
Thanks:
|
|
259
|
+
|
|
260
|
+
- [@ocavue](https://github.com/ocavue)
|
|
261
|
+
|
|
262
|
+
## 0.50.1
|
|
263
|
+
|
|
264
|
+
- fix: for `TSFunctionType` part of `TSTypeAliasDeclaration` and export, return export
|
|
265
|
+
|
|
266
|
+
## 0.50.0
|
|
267
|
+
|
|
268
|
+
BREAKING CHANGES:
|
|
269
|
+
|
|
270
|
+
- Require Node 18+
|
|
271
|
+
- chore: add `.d.cts` file / add type dependencies (#19)
|
|
272
|
+
- test(ci): drop Node 16.x and add Node 22.x
|
|
273
|
+
|
|
274
|
+
Thanks:
|
|
275
|
+
|
|
276
|
+
- [@typhonrt](https://github.com/typhonrt)
|
|
277
|
+
|
|
278
|
+
## 0.49.0
|
|
279
|
+
|
|
280
|
+
- fix: avoid changing `name` for `@template`; should be able to recover
|
|
281
|
+
optional brackets and defaults in AST
|
|
282
|
+
|
|
283
|
+
## 0.48.0
|
|
284
|
+
|
|
285
|
+
- chore: bump jsdoc-type-pratt-parser and devDeps.
|
|
286
|
+
|
|
287
|
+
## 0.47.0
|
|
288
|
+
|
|
289
|
+
- fix(`parseComment`): assume closing bracket of name is final instead of
|
|
290
|
+
first one
|
|
291
|
+
- chore: flat config/ESLint 9; change browser targets; lint; update devDeps.
|
|
292
|
+
|
|
293
|
+
## 0.46.0
|
|
294
|
+
|
|
295
|
+
- chore: update esquery, drop bundling of types, update devDeps
|
|
296
|
+
|
|
297
|
+
## 0.45.0
|
|
298
|
+
|
|
299
|
+
- feat: get following comment (experimental)
|
|
300
|
+
|
|
301
|
+
## 0.44.0
|
|
302
|
+
|
|
303
|
+
- feat: add `getNonJsdocComment` for getting non-JSDoc comments above node
|
|
304
|
+
|
|
305
|
+
## 0.43.1
|
|
306
|
+
|
|
307
|
+
- fix: for `@template` name parsing, ensure (default-)bracketed name is not broken with internal spaces.
|
|
308
|
+
|
|
309
|
+
## 0.43.0
|
|
310
|
+
|
|
311
|
+
This release brings surgical round trip parsing to generated AST and reconstruction of JSDoc comment blocks via: `parseComment` ->
|
|
312
|
+
`commentParserToESTree` -> `estreeToString`.
|
|
313
|
+
|
|
314
|
+
- feat: new option `spacing` for `commentParserToESTree`; the default is `compact` removing empty description lines.
|
|
315
|
+
|
|
316
|
+
Set to `preserve` to retain empty description lines.
|
|
317
|
+
|
|
318
|
+
- feat: new properties in the `JsdocBlock` generated AST `delimiterLineBreak` and `preterminalLineBreak` that encode
|
|
319
|
+
|
|
320
|
+
any line break after the opening `delimiter` and before the closing `terminal` string. Values are either `\n` or an
|
|
321
|
+
empty string.
|
|
322
|
+
|
|
323
|
+
- chore: update devDeps / switch to Vitest.
|
|
324
|
+
- New [API documentation](https://es-joy.github.io/jsdoccomment/).
|
|
325
|
+
|
|
326
|
+
Thanks:
|
|
327
|
+
|
|
328
|
+
- [@typhonrt](https://github.com/typhonrt)
|
|
329
|
+
|
|
330
|
+
## 0.42.0
|
|
331
|
+
|
|
332
|
+
- feat: expand argument for `parseComment` to accept a comment token string ([@typhonrt](https://github.com/typhonrt))
|
|
333
|
+
- chore: update devDeps.
|
|
334
|
+
|
|
335
|
+
## 0.41.0
|
|
336
|
+
|
|
337
|
+
- feat: look above surrounding parenthesis tokens for comment blocks, even if on a higher line than the corresponding AST structure
|
|
338
|
+
- chore: update comment-parser and devDeps.
|
|
339
|
+
|
|
340
|
+
## 0.40.1
|
|
341
|
+
|
|
342
|
+
- chore(TS): fix path issue
|
|
343
|
+
|
|
344
|
+
## 0.40.0
|
|
345
|
+
|
|
346
|
+
- chore: update comment-parser and devDeps.
|
|
347
|
+
- chore(TS): switch to NodeNext
|
|
348
|
+
|
|
349
|
+
## 0.39.4
|
|
350
|
+
|
|
351
|
+
- fix: include type exports for full inlineTags (and line) property support on blocks and tags
|
|
352
|
+
|
|
353
|
+
## 0.39.3
|
|
354
|
+
|
|
355
|
+
- fix: add type details for Node range and settings
|
|
356
|
+
|
|
357
|
+
## 0.39.2
|
|
358
|
+
|
|
359
|
+
- fix: export additional typedefs from index.js
|
|
360
|
+
|
|
361
|
+
## 0.39.1
|
|
362
|
+
|
|
363
|
+
- fix: typing export
|
|
364
|
+
|
|
365
|
+
## 0.39.0
|
|
366
|
+
|
|
367
|
+
- feat: types for test files and emit declaration files
|
|
368
|
+
- fix(estreeToString): add `JsdodInlineTag` stringify support
|
|
369
|
+
- refactor: lint
|
|
370
|
+
- docs: add `JsdocInlineTag` to README
|
|
371
|
+
- chore: update devDeps.
|
|
372
|
+
|
|
373
|
+
## 0.38.0
|
|
374
|
+
|
|
375
|
+
- feat: add parsing inline tags (#12); fixes #11
|
|
376
|
+
|
|
377
|
+
## 0.37.1
|
|
378
|
+
|
|
379
|
+
- chore: support Node 20
|
|
380
|
+
- chore: update esquery, devDeps.
|
|
381
|
+
|
|
382
|
+
## 0.37.0
|
|
383
|
+
|
|
384
|
+
## 0.37.0-pre.0
|
|
385
|
+
|
|
386
|
+
- fix: update `jsdoc-type-pratt-parser` (supports bracket indexes)
|
|
387
|
+
|
|
388
|
+
## 0.36.1
|
|
389
|
+
|
|
390
|
+
- fix(`getReducedASTNode`): stop checking for comment blocks at return
|
|
391
|
+
statement
|
|
392
|
+
|
|
393
|
+
## 0.36.0
|
|
394
|
+
|
|
395
|
+
- feat: add `hasPreterminalTagDescription` property
|
|
396
|
+
- fix: avoid description line properties if tag is present
|
|
397
|
+
- fix: ensure description and description lines added to terminal multi-line tag
|
|
398
|
+
|
|
399
|
+
## 0.35.0
|
|
400
|
+
|
|
401
|
+
- feat: add `hasPreterminalDescription` property
|
|
402
|
+
- fix: allow newline even for 1st line (after 0th)
|
|
403
|
+
|
|
404
|
+
## 0.34.0
|
|
405
|
+
|
|
406
|
+
- feat: add `descriptionStartLine` and `descriptionEndLine` properties
|
|
407
|
+
- fix: avoid duplication with 0 line comments
|
|
408
|
+
- chore: update devDeps.
|
|
409
|
+
|
|
410
|
+
## 0.33.4
|
|
411
|
+
|
|
412
|
+
- chore: republish as npm seems to have missed the release
|
|
413
|
+
|
|
414
|
+
## 0.33.3
|
|
415
|
+
|
|
416
|
+
- fix: ensure multi-line `description` includes newline except for
|
|
417
|
+
initial line descriptions
|
|
418
|
+
|
|
419
|
+
## 0.33.2
|
|
420
|
+
|
|
421
|
+
- fix: avoid repetition within multi-line descriptions
|
|
422
|
+
|
|
423
|
+
## 0.33.1
|
|
424
|
+
|
|
425
|
+
- fix: add to default no types: `description`, `example`, `file`,
|
|
426
|
+
`fileoverview`, `license`, `overview`, `see`, `summary`
|
|
427
|
+
- fix: add to no names: `file`, `fileoverview,`overview`
|
|
428
|
+
|
|
429
|
+
## 0.33.0
|
|
430
|
+
|
|
431
|
+
- chore: add Node 19 to `engines` (@RodEsp)
|
|
432
|
+
- chore: update devDeps. and build file accordingly
|
|
433
|
+
|
|
434
|
+
## 0.32.0
|
|
435
|
+
|
|
436
|
+
- feat: have comment checking stop at assignment patterns (comments for
|
|
437
|
+
defaults should not rise to function itself)
|
|
438
|
+
- chore: bump devDeps.
|
|
439
|
+
|
|
440
|
+
## 0.31.0
|
|
441
|
+
|
|
442
|
+
- feat: support default values with `@template` per
|
|
443
|
+
<https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#template>
|
|
444
|
+
|
|
445
|
+
## 0.30.0
|
|
446
|
+
|
|
447
|
+
- chore: bump `jsdoc-type-pratt-parser` and devDeps.
|
|
448
|
+
|
|
449
|
+
## 0.29.0
|
|
450
|
+
|
|
451
|
+
- fix: update `engines` as per current `getJSDocComment` behavior
|
|
452
|
+
- chore: update devDeps.
|
|
453
|
+
|
|
454
|
+
## 0.28.1
|
|
455
|
+
|
|
456
|
+
- fix(`getReducedASTNode`): token checking
|
|
457
|
+
- build: add Node 18 support (@WikiRik)
|
|
458
|
+
|
|
459
|
+
## 0.28.0
|
|
460
|
+
|
|
461
|
+
- chore: bump `engines` to support Node 18
|
|
462
|
+
|
|
463
|
+
## 0.27.0
|
|
464
|
+
|
|
465
|
+
- chore: bump `jsdoc-type-pratt-parser` and devDeps.
|
|
466
|
+
|
|
467
|
+
## 0.26.1
|
|
468
|
+
|
|
469
|
+
- fix(`estreeToString`): ensure `typeLines` may be picked up
|
|
470
|
+
|
|
471
|
+
## 0.26.0
|
|
472
|
+
|
|
473
|
+
- feat(`getJSDocComment`): allow function to detect comments just preceding a
|
|
474
|
+
parenthesized expression (these have no special AST but their tokens
|
|
475
|
+
have to be overpassed)
|
|
476
|
+
|
|
477
|
+
## 0.25.0
|
|
478
|
+
|
|
479
|
+
- feat(`parseComment`): properly support whitespace
|
|
480
|
+
- fix(`estreeToString`): carriage return placement for ending of JSDoc block
|
|
481
|
+
- fix(`commentParserToESTree`): avoid adding initial space before a tag if on
|
|
482
|
+
a single line
|
|
483
|
+
- test: make tests more accurate to jsdoc semantically
|
|
484
|
+
|
|
485
|
+
## 0.24.0
|
|
486
|
+
|
|
487
|
+
- feat(`estreeToString`): support stringification of `parsedType` but with
|
|
488
|
+
a new `preferRawType` option allowing the old behavior of using `rawType`
|
|
489
|
+
|
|
490
|
+
## 0.23.6
|
|
491
|
+
|
|
492
|
+
- fix(`commentParserToESTree`): ensure `postType` added after multi-line type
|
|
493
|
+
- fix(`estreeToString`): ensure `JsdocTypeLine` stringified with `initial` and
|
|
494
|
+
that they are joined together with newlines
|
|
495
|
+
|
|
496
|
+
## 0.23.5
|
|
497
|
+
|
|
498
|
+
- fix(`commentParserToESTree`): avoid duplicating tag names
|
|
499
|
+
|
|
500
|
+
## 0.23.4
|
|
501
|
+
|
|
502
|
+
- fix(`estreeToString`): add `delimiter`, etc. if adding `JsdocDescriptionLine`
|
|
503
|
+
for `JsdocBlock`
|
|
504
|
+
- fix(`estreeToString`): add line break when tags are present (unless already
|
|
505
|
+
ending in newline)
|
|
506
|
+
|
|
507
|
+
## 0.23.3
|
|
508
|
+
|
|
509
|
+
- fix(`estreeToString`): handle multi-line block descriptions followed by
|
|
510
|
+
tags with line break
|
|
511
|
+
|
|
512
|
+
## 0.23.2
|
|
513
|
+
|
|
514
|
+
- fix: ensure JsdocBlock stringifier has any initial whitespace on end line
|
|
515
|
+
|
|
516
|
+
## 0.23.1
|
|
517
|
+
|
|
518
|
+
- docs(README): update
|
|
519
|
+
|
|
520
|
+
## 0.23.0
|
|
521
|
+
|
|
522
|
+
- BREAKING CHANGE(`commentParserToESTree`): rename `start` and `end` to
|
|
523
|
+
`initial` and `terminal` to avoid any conflicts with Acorn-style parsers
|
|
524
|
+
- feat: add `initial` and `terminal` on `JsdocBlock`
|
|
525
|
+
|
|
526
|
+
## 0.22.2
|
|
527
|
+
|
|
528
|
+
- fix: preserve type tokens
|
|
529
|
+
- perf: cache tokenizers
|
|
530
|
+
|
|
531
|
+
## 0.22.1
|
|
532
|
+
|
|
533
|
+
- fix: ensure `getJSDocComment` does not treat block comments as JSDoc unless
|
|
534
|
+
their first asterisk is followed by whitespace
|
|
535
|
+
|
|
536
|
+
## 0.22.0
|
|
537
|
+
|
|
538
|
+
- fix: update dep. `jsdoc-type-pratt-parser`
|
|
539
|
+
- chore: update `comment-parser` and simplify as possible
|
|
540
|
+
|
|
541
|
+
## 0.21.2
|
|
542
|
+
|
|
543
|
+
- fix: only throw if the raw type is not empty
|
|
544
|
+
|
|
545
|
+
## 0.21.1
|
|
546
|
+
|
|
547
|
+
- fix: provide clearer error message for `throwOnTypeParsingErrors`
|
|
548
|
+
|
|
549
|
+
## 0.21.0
|
|
550
|
+
|
|
551
|
+
- feat: add `throwOnTypeParsingErrors` to receive run-time type parsing errors
|
|
552
|
+
for `parsedType`
|
|
553
|
+
- chore: update jsdoc-type-pratt-parser and devDeps.; also lints
|
|
554
|
+
|
|
555
|
+
## 0.20.1
|
|
556
|
+
|
|
557
|
+
- fix: resume catching bad parsed type (at least until
|
|
558
|
+
`jsdoc-type-pratt-parser` may support all expected types)
|
|
559
|
+
|
|
560
|
+
## 0.20.0
|
|
561
|
+
|
|
562
|
+
- feat: add estree stringifer
|
|
563
|
+
- fix: properly supports `name`/`postName` for multi-line type
|
|
564
|
+
- fix: allow pratt parser to fail (unless empty)
|
|
565
|
+
- fix: don't add tag postDelimiter when on 0 description line
|
|
566
|
+
- fix: avoid adding extra line when only name and no succeeding description
|
|
567
|
+
- docs: clarify re: `kind`
|
|
568
|
+
- test: add `parsedType` with correct mode; add tests
|
|
569
|
+
- chore: updates jsdoc-type-pratt-parser
|
|
570
|
+
- chore: updates devDeps.
|
|
571
|
+
|
|
572
|
+
## 0.19.0
|
|
573
|
+
|
|
574
|
+
### User-impacting
|
|
575
|
+
|
|
576
|
+
- feat: treat `@kind` as having no name
|
|
577
|
+
|
|
578
|
+
### Dev-impacting
|
|
579
|
+
|
|
580
|
+
- docs: jsdoc
|
|
581
|
+
- test: begin checking `jsdoccomment`
|
|
582
|
+
- test: adds lcov reporter and open script for it
|
|
583
|
+
- chore: update devDeps.
|
|
584
|
+
|
|
585
|
+
## 0.18.0
|
|
586
|
+
|
|
587
|
+
### User-impacting
|
|
588
|
+
|
|
589
|
+
- feat: add non-visitable `endLine` property (so can detect line number
|
|
590
|
+
when no description present)
|
|
591
|
+
- feat: supply `indent` default for `parseComment`
|
|
592
|
+
- fix: ensure `postName` gets a space for `@template` with a description
|
|
593
|
+
- fix: converting JSDoc comment with tag on same line as end (e.g., single
|
|
594
|
+
line) to AST
|
|
595
|
+
- chore: update `jsdoc-type-pratt-parser`
|
|
596
|
+
|
|
597
|
+
### Dev-impacting
|
|
598
|
+
|
|
599
|
+
- docs: add jsdoc blocks internally
|
|
600
|
+
- chore: update devDeps.
|
|
601
|
+
- test: avoid need for `expect`
|
|
602
|
+
- test: complete coverage for `commentHandler`, `parseComment` tests
|
|
603
|
+
|
|
604
|
+
## 0.17.0
|
|
605
|
+
|
|
606
|
+
### User-impacting
|
|
607
|
+
|
|
608
|
+
- Enhancement: Re-export `jsdoc-type-pratt-parser`
|
|
609
|
+
- Update: `jsdoc-type-pratt-parser` to 2.2.1
|
|
610
|
+
|
|
611
|
+
### Dev-impacting
|
|
612
|
+
|
|
613
|
+
- npm: Update devDeps.
|
|
614
|
+
|
|
615
|
+
## 0.16.0
|
|
616
|
+
|
|
617
|
+
### User-impacting
|
|
618
|
+
|
|
619
|
+
- Update: `jsdoc-type-pratt-parser` to 2.2.0
|
|
620
|
+
|
|
621
|
+
### Dev-impacting
|
|
622
|
+
|
|
623
|
+
- npm: Update devDeps.
|
|
624
|
+
|
|
625
|
+
## 0.15.0
|
|
626
|
+
|
|
627
|
+
### User-impacting
|
|
628
|
+
|
|
629
|
+
- Update: `jsdoc-type-pratt-parser` to 2.1.0
|
|
630
|
+
|
|
631
|
+
### Dev-impacting
|
|
632
|
+
|
|
633
|
+
- npm: Update devDeps.
|
|
634
|
+
|
|
635
|
+
## 0.14.2
|
|
636
|
+
|
|
637
|
+
### User-impacting
|
|
638
|
+
|
|
639
|
+
- Fix: Find comments previous to parentheses (used commonly in TypeScript)
|
|
640
|
+
|
|
641
|
+
### Dev-impacting
|
|
642
|
+
|
|
643
|
+
- npm: Update devDeps.
|
|
644
|
+
|
|
645
|
+
## 0.14.1
|
|
646
|
+
|
|
647
|
+
### User-impacting
|
|
648
|
+
|
|
649
|
+
- Update: `jsdoc-type-pratt-parser` to 2.0.2
|
|
650
|
+
|
|
651
|
+
## 0.14.0
|
|
652
|
+
|
|
653
|
+
### User-impacting
|
|
654
|
+
|
|
655
|
+
- Update: `jsdoc-type-pratt-parser` to 2.0.1
|
|
656
|
+
|
|
657
|
+
### Dev-impacting
|
|
658
|
+
|
|
659
|
+
- npm: Update devDeps.
|
|
660
|
+
|
|
661
|
+
## 0.13.0
|
|
662
|
+
|
|
663
|
+
### User-impacting
|
|
664
|
+
|
|
665
|
+
- Update: `comment-parser` to 1.3.0
|
|
666
|
+
- Fix: Allow comment on `ExportDefaultDeclaration`
|
|
667
|
+
|
|
668
|
+
## 0.12.0
|
|
669
|
+
|
|
670
|
+
### User-impacting
|
|
671
|
+
|
|
672
|
+
- Update: `jsdoc-type-pratt-parser` to 2.0.0
|
|
673
|
+
- Enhancement: Support Node 17 (@timgates42)
|
|
674
|
+
- Docs: Typo (@timgates42)
|
|
675
|
+
|
|
676
|
+
### Dev-impacting
|
|
677
|
+
|
|
678
|
+
- Linting: As per latest ash-nazg
|
|
679
|
+
- npm: Update devDeps.
|
|
680
|
+
|
|
681
|
+
## 0.11.0
|
|
682
|
+
|
|
683
|
+
- Update: For `@typescript/eslint-parser@5`, add `PropertyDefinition`
|
|
684
|
+
|
|
685
|
+
## 0.10.8
|
|
686
|
+
|
|
687
|
+
### User-impacting
|
|
688
|
+
|
|
689
|
+
- npm: Liberalize `engines` as per `comment-parser` change
|
|
690
|
+
- npm: Bump `comment-parser`
|
|
691
|
+
|
|
692
|
+
### Dev-impacting
|
|
693
|
+
|
|
694
|
+
- Linting: As per latest ash-nazg
|
|
695
|
+
- npm: Update devDeps.
|
|
696
|
+
|
|
697
|
+
## 0.10.7
|
|
698
|
+
|
|
699
|
+
- npm: Update comment-parser with CJS fix and re-exports
|
|
700
|
+
- npm: Update devDeps.
|
|
701
|
+
|
|
702
|
+
## 0.10.6
|
|
703
|
+
|
|
704
|
+
- Fix: Ensure copying latest build of `comment-parser`'s ESM utils
|
|
705
|
+
|
|
706
|
+
## 0.10.5
|
|
707
|
+
|
|
708
|
+
- npm: Bump fixed `jsdoc-type-pratt-parser` and devDeps.
|
|
709
|
+
|
|
710
|
+
## 0.10.4
|
|
711
|
+
|
|
712
|
+
- Fix: Bundle `comment-parser` nested imports so that IDEs (like Atom)
|
|
713
|
+
bundling older Node versions can still work. Still mirroring the
|
|
714
|
+
stricter `comment-parser` `engines` for now, however.
|
|
715
|
+
|
|
716
|
+
## 0.10.3
|
|
717
|
+
|
|
718
|
+
- npm: Avoid exporting nested subpaths for sake of older Node versions
|
|
719
|
+
|
|
720
|
+
## 0.10.2
|
|
721
|
+
|
|
722
|
+
- npm: Specify exact supported range: `^12.20 || ^14.14.0 || ^16`
|
|
723
|
+
|
|
724
|
+
## 0.10.1
|
|
725
|
+
|
|
726
|
+
- npm: Apply patch version of `comment-parser`
|
|
727
|
+
|
|
728
|
+
## 0.10.0
|
|
729
|
+
|
|
730
|
+
- npm: Point to stable `comment-parser`
|
|
731
|
+
|
|
732
|
+
## 0.9.0-alpha.6
|
|
733
|
+
|
|
734
|
+
### User-impacting
|
|
735
|
+
|
|
736
|
+
- Update: For `comment-parser` update, add `lineEnd`
|
|
737
|
+
|
|
738
|
+
## 0.9.0-alpha.5
|
|
739
|
+
|
|
740
|
+
### User-impacting
|
|
741
|
+
|
|
742
|
+
- npm: Bump `comment-parser` (for true ESM)
|
|
743
|
+
- Update: Remove extensions for packages for native ESM in `comment-parser` fix
|
|
744
|
+
|
|
745
|
+
### Dev-impacting
|
|
746
|
+
|
|
747
|
+
- npm: Update devDeps.
|
|
748
|
+
|
|
749
|
+
## 0.9.0-alpha.4
|
|
750
|
+
|
|
751
|
+
- Docs: Update repo info in `package.json`
|
|
752
|
+
|
|
753
|
+
## 0.9.0-alpha.3
|
|
754
|
+
|
|
755
|
+
- Fix: Due to `comment-parser` still needing changes, revert for now to alpha.1
|
|
756
|
+
|
|
757
|
+
## 0.9.0-alpha.2
|
|
758
|
+
|
|
759
|
+
### User-impacting
|
|
760
|
+
|
|
761
|
+
- npm: Bump `comment-parser` (for true ESM)
|
|
762
|
+
- Update: Remove extensions for packages for native ESM in `comment-parser` fix
|
|
763
|
+
|
|
764
|
+
### Dev-impacting
|
|
765
|
+
|
|
766
|
+
- npm: Update devDeps.
|
|
767
|
+
|
|
768
|
+
## 0.9.0-alpha.1
|
|
769
|
+
|
|
770
|
+
### User-impacting
|
|
771
|
+
|
|
772
|
+
- Breaking change: Indicate minimum for `engines` as Node >= 12
|
|
773
|
+
- npm: Bump `comment-parser`
|
|
774
|
+
|
|
775
|
+
### Dev-impacting
|
|
776
|
+
|
|
777
|
+
- npm: Lint cjs files
|
|
778
|
+
- npm: Fix eslint script
|
|
779
|
+
- npm: Update devDeps.
|
|
780
|
+
|
|
781
|
+
## 0.8.0
|
|
782
|
+
|
|
783
|
+
### User-impacting
|
|
784
|
+
|
|
785
|
+
- npm: Update `jsdoc-type-pratt-parser` (prerelease to stable patch)
|
|
786
|
+
|
|
787
|
+
### Dev-impacting
|
|
788
|
+
|
|
789
|
+
- npm: Update devDeps.
|
|
790
|
+
|
|
791
|
+
## 0.8.0-alpha.2
|
|
792
|
+
|
|
793
|
+
- Fix: Avoid erring with missing `typeLines`
|
|
794
|
+
|
|
795
|
+
## 0.8.0-alpha.1
|
|
796
|
+
|
|
797
|
+
- Breaking change: Export globally as `JsdocComment`
|
|
798
|
+
- Breaking change: Change `JSDoc` prefixes of all node types to `Jsdoc`
|
|
799
|
+
- Breaking change: Drop `jsdoctypeparserToESTree`
|
|
800
|
+
- Breaking enhancement: Switch to `jsdoc-type-pratt-parser` (toward greater
|
|
801
|
+
TypeScript expressivity and compatibility/support with catharsis)
|
|
802
|
+
- Enhancement: Export `jsdocTypeVisitorKeys` (from `jsdoc-type-pratt-parser`)
|
|
803
|
+
|
|
804
|
+
## 0.7.2
|
|
805
|
+
|
|
806
|
+
- Fix: Add `@description` to `noNames`
|
|
807
|
+
|
|
808
|
+
## 0.7.1
|
|
809
|
+
|
|
810
|
+
- Fix: Add `@summary` to `noNames`
|
|
811
|
+
|
|
812
|
+
## 0.7.0
|
|
813
|
+
|
|
814
|
+
- Enhancement: Allow specifying `noNames` and `noTypes` on `parseComment`
|
|
815
|
+
to override (or add to) tags which should have no names or types.
|
|
816
|
+
- Enhancement: Export `hasSeeWithLink` utility and `defaultNoTypes` and
|
|
817
|
+
`defaultNoNames`.
|
|
818
|
+
|
|
819
|
+
## 0.6.0
|
|
820
|
+
|
|
821
|
+
- Change `comment-parser` `tag` AST to avoid initial `@`
|
|
822
|
+
|
|
823
|
+
## 0.5.1
|
|
824
|
+
|
|
825
|
+
- Fix: Avoid setting `variation` name (just the description) (including in
|
|
826
|
+
dist)
|
|
827
|
+
- npm: Add `prepublishOnly` script
|
|
828
|
+
|
|
829
|
+
## 0.5.0
|
|
830
|
+
|
|
831
|
+
- Fix: Avoid setting `variation` name (just the description)
|
|
832
|
+
|
|
833
|
+
## 0.4.4
|
|
834
|
+
|
|
835
|
+
- Fix: Avoid setting `name` and `description` for simple `@template SomeName`
|
|
836
|
+
|
|
837
|
+
## 0.4.3
|
|
838
|
+
|
|
839
|
+
- npm: Ignores Github file
|
|
840
|
+
|
|
841
|
+
## 0.4.2
|
|
842
|
+
|
|
843
|
+
- Fix: Ensure replacement of camel-casing (used in `jsdoctypeparser` nodes and
|
|
844
|
+
visitor keys is global. The practical effect is that
|
|
845
|
+
`JSDocTypeNamed_parameter` -> `JSDocTypeNamedParameter`,
|
|
846
|
+
`JSDocTypeRecord_entry` -> `JSDocTypeRecordEntry`
|
|
847
|
+
`JSDocTypeNot_nullable` -> `JSDocTypeNotNullable`
|
|
848
|
+
`JSDocTypeInner_member` -> `JSDocTypeInnerMember`
|
|
849
|
+
`JSDocTypeInstance_member` -> `JSDocTypeInstanceMember`
|
|
850
|
+
`JSDocTypeString_value` -> `JSDocTypeStringValue`
|
|
851
|
+
`JSDocTypeNumber_value` -> `JSDocTypeNumberValue`
|
|
852
|
+
`JSDocTypeFile_path` -> `JSDocTypeFilePath`
|
|
853
|
+
`JSDocTypeType_query` -> `JSDocTypeTypeQuery`
|
|
854
|
+
`JSDocTypeKey_query` -> `JSDocTypeKeyQuery`
|
|
855
|
+
- Fix: Add missing `JSDocTypeLine` to visitor keys
|
|
856
|
+
- Docs: Explain AST structure/differences
|
|
857
|
+
|
|
858
|
+
## 0.4.1
|
|
859
|
+
|
|
860
|
+
- Docs: Indicate available methods with brief summary on README
|
|
861
|
+
|
|
862
|
+
## 0.4.0
|
|
863
|
+
|
|
864
|
+
- Enhancement: Expose `parseComment` and `getTokenizers`.
|
|
865
|
+
|
|
866
|
+
## 0.3.0
|
|
867
|
+
|
|
868
|
+
- Enhancement: Expose `toCamelCase` as new method rather than within a
|
|
869
|
+
utility file.
|
|
870
|
+
|
|
871
|
+
## 0.2.0
|
|
872
|
+
|
|
873
|
+
- Enhancement: Exposes new methods: `commentHandler`,
|
|
874
|
+
`commentParserToESTree`, `jsdocVisitorKeys`, `jsdoctypeparserToESTree`,
|
|
875
|
+
`jsdocTypeVisitorKeys`,
|
|
876
|
+
|
|
877
|
+
## 0.1.1
|
|
878
|
+
|
|
879
|
+
- Build: Add Babel to work with earlier Node
|
|
880
|
+
|
|
881
|
+
## 0.1.0
|
|
882
|
+
|
|
883
|
+
- Initial version
|