Maintained replacement for ESLint's deprecated SourceCode#getJSDocComment along with other jsdoc utilities
Last release 3 days ago
24 Aug 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 151 of 152 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
163 releases · first in 2021
Release timeline
163 releases since 2021Releases
- 0.50.219 May 2025
- 0.50.114 May 2025
Release notes2 sources agree
Open source →- fix: for
TSFunctionTypepart ofTSTypeAliasDeclarationand export, return export
- fix: for
- 0.50.025 Oct 2024
Release notes2 sources agree
Open source →BREAKING CHANGES:
- Require Node 18+
- chore: add
.d.ctsfile / add type dependencies (#19) - test(ci): drop Node 16.x and add Node 22.x
Thanks:
- 0.49.014 Oct 2024
Release notes2 sources agree
Open source →- fix: avoid changing
namefor@template; should be able to recover optional brackets and defaults in AST
- fix: avoid changing
- 0.48.013 Aug 2024
- 0.47.013 Aug 2024
Release notes2 sources agree
Open source →- fix(
parseComment): assume closing bracket of name is final instead of first one - chore: flat config/ESLint 9; change browser targets; lint; update devDeps.
- fix(
- 0.46.010 Jul 2024
Release notes2 sources agree
Open source →- chore: update esquery, drop bundling of types, update devDeps
- 0.45.09 Jul 2024
- 0.44.05 Jul 2024
Release notes2 sources agree
Open source →- feat: add
getNonJsdocCommentfor getting non-JSDoc comments above node
- feat: add
- 0.43.129 May 2024
Release notes2 sources agree
Open source →- fix: for
@templatename parsing, ensure (default-)bracketed name is not broken with internal spaces.
- fix: for
- 0.43.020 Mar 2024
Release notes2 sources agree
Open source →This release brings surgical round trip parsing to generated AST and reconstruction of JSDoc comment blocks via:
parseComment->commentParserToESTree->estreeToString.- feat: new option
spacingforcommentParserToESTree; the default iscompactremoving empty description lines.
Set to
preserveto retain empty description lines.- feat: new properties in the
JsdocBlockgenerated ASTdelimiterLineBreakandpreterminalLineBreakthat encode
any line break after the opening
delimiterand before the closingterminalstring. Values are either\nor an empty string.- chore: update devDeps / switch to Vitest.
- New API documentation.
Thanks:
- feat: new option
- 0.42.05 Feb 2024
Release notes2 sources agree
Open source →- feat: expand argument for
parseCommentto accept a comment token string (@typhonrt) - chore: update devDeps.
- feat: expand argument for
- 0.41.010 Nov 2023
Release notes2 sources agree
Open source →- feat: look above surrounding parenthesis tokens for comment blocks, even if on a higher line than the corresponding AST structure
- chore: update comment-parser and devDeps.
- 0.40.14 Aug 2023
- 0.40.04 Aug 2023
Release notes2 sources agree
Open source →- chore: update comment-parser and devDeps.
- chore(TS): switch to NodeNext
- 0.39.415 May 2023
Release notes2 sources agree
Open source →- fix: include type exports for full inlineTags (and line) property support on blocks and tags
- 0.39.312 May 2023
- 0.39.212 May 2023
- 0.39.111 May 2023
- 0.39.011 May 2023
Release notes2 sources agree
Open source →- feat: types for test files and emit declaration files
- fix(estreeToString): add
JsdodInlineTagstringify support - refactor: lint
- docs: add
JsdocInlineTagto README - chore: update devDeps.
- 0.38.05 May 2023
- 0.37.118 Apr 2023
- 0.37.015 Mar 2023
Nothing published for this version
- 0.37.0-pre.014 Mar 2023pre-release
Release notes2 sources agree
Open source →- fix: update
jsdoc-type-pratt-parser(supports bracket indexes)
- fix: update
- 0.36.124 Nov 2022
Release notes2 sources agree
Open source →- fix(
getReducedASTNode): stop checking for comment blocks at return statement
- fix(
- 0.36.02 Nov 2022
Release notes2 sources agree
Open source →- feat: add
hasPreterminalTagDescriptionproperty - fix: avoid description line properties if tag is present
- fix: ensure description and description lines added to terminal multi-line tag
- feat: add
- 0.35.02 Nov 2022
Release notes2 sources agree
Open source →- feat: add
hasPreterminalDescriptionproperty - fix: allow newline even for 1st line (after 0th)
- feat: add
- 0.34.02 Nov 2022
Release notes2 sources agree
Open source →- feat: add
descriptionStartLineanddescriptionEndLineproperties - fix: avoid duplication with 0 line comments
- chore: update devDeps.
- feat: add
- 0.33.425 Oct 2022
- 0.33.325 Oct 2022
Release notes2 sources agree
Open source →- fix: ensure multi-line
descriptionincludes newline except for initial line descriptions
- fix: ensure multi-line
- 0.33.225 Oct 2022
- 0.33.125 Oct 2022
Release notes2 sources agree
Open source →- fix: add to default no types:
description,example,file,fileoverview,license,overview,see,summary - fix: add to no names:
file,fileoverview,overview`
- fix: add to default no types:
- 0.33.018 Oct 2022
Release notes2 sources agree
Open source →- chore: add Node 19 to
engines(@RodEsp) - chore: update devDeps. and build file accordingly
- chore: add Node 19 to
- 0.32.04 Oct 2022
Release notes2 sources agree
Open source →- feat: have comment checking stop at assignment patterns (comments for defaults should not rise to function itself)
- chore: bump devDeps.
- 0.31.024 May 2022
Release notes2 sources agree
Open source →- feat: support default values with
@templateper https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#template
- feat: support default values with
- 0.30.019 May 2022
- 0.29.024 Apr 2022
Release notes2 sources agree
Open source →- fix: update
enginesas per currentgetJSDocCommentbehavior - chore: update devDeps.
- fix: update
- 0.28.124 Apr 2022
Release notes2 sources agree
Open source →- fix(
getReducedASTNode): token checking - build: add Node 18 support (@WikiRik)
- fix(
- 0.28.020 Apr 2022
- 0.27.019 Apr 2022
- 0.26.119 Apr 2022
- 0.26.019 Apr 2022
Release notes2 sources agree
Open source →- feat(
getJSDocComment): allow function to detect comments just preceding a parenthesized expression (these have no special AST but their tokens have to be overpassed)
- feat(
- 0.25.018 Apr 2022
Release notes2 sources agree
Open source →- feat(
parseComment): properly support whitespace - fix(
estreeToString): carriage return placement for ending of JSDoc block - fix(
commentParserToESTree): avoid adding initial space before a tag if on a single line - test: make tests more accurate to jsdoc semantically
- feat(
- 0.24.018 Apr 2022
Release notes2 sources agree
Open source →- feat(
estreeToString): support stringification ofparsedTypebut with a newpreferRawTypeoption allowing the old behavior of usingrawType
- feat(
- 0.23.618 Apr 2022
Release notes2 sources agree
Open source →- fix(
commentParserToESTree): ensurepostTypeadded after multi-line type - fix(
estreeToString): ensureJsdocTypeLinestringified withinitialand that they are joined together with newlines
- fix(
- 0.23.517 Apr 2022
- 0.23.417 Apr 2022
Release notes2 sources agree
Open source →- fix(
estreeToString): adddelimiter, etc. if addingJsdocDescriptionLineforJsdocBlock - fix(
estreeToString): add line break when tags are present (unless already ending in newline)
- fix(
- 0.23.317 Apr 2022
Release notes2 sources agree
Open source →- fix(
estreeToString): handle multi-line block descriptions followed by tags with line break
- fix(
- 0.23.217 Apr 2022
Release notes2 sources agree
Open source →- fix: ensure JsdocBlock stringifier has any initial whitespace on end line
- 0.23.117 Apr 2022
- 0.23.017 Apr 2022
Release notes2 sources agree
Open source →- BREAKING CHANGE(
commentParserToESTree): renamestartandendtoinitialandterminalto avoid any conflicts with Acorn-style parsers - feat: add
initialandterminalonJsdocBlock
- BREAKING CHANGE(
- 0.22.216 Apr 2022
- 0.22.119 Mar 2022
Release notes2 sources agree
Open source →- fix: ensure
getJSDocCommentdoes not treat block comments as JSDoc unless their first asterisk is followed by whitespace
- fix: ensure
- 0.22.019 Mar 2022
Release notes2 sources agree
Open source →- fix: update dep.
jsdoc-type-pratt-parser - chore: update
comment-parserand simplify as possible
- fix: update dep.
- 0.21.213 Mar 2022
- 0.21.113 Mar 2022
Release notes2 sources agree
Open source →- fix: provide clearer error message for
throwOnTypeParsingErrors
- fix: provide clearer error message for
- 0.21.013 Mar 2022
Release notes2 sources agree
Open source →- feat: add
throwOnTypeParsingErrorsto receive run-time type parsing errors forparsedType - chore: update jsdoc-type-pratt-parser and devDeps.; also lints
- feat: add
- 0.20.118 Feb 2022
Release notes2 sources agree
Open source →- fix: resume catching bad parsed type (at least until
jsdoc-type-pratt-parsermay support all expected types)
- fix: resume catching bad parsed type (at least until
- 0.20.016 Feb 2022
Release notes2 sources agree
Open source →- feat: add estree stringifer
- fix: properly supports
name/postNamefor multi-line type - fix: allow pratt parser to fail (unless empty)
- fix: don't add tag postDelimiter when on 0 description line
- fix: avoid adding extra line when only name and no succeeding description
- docs: clarify re:
kind - test: add
parsedTypewith correct mode; add tests - chore: updates jsdoc-type-pratt-parser
- chore: updates devDeps.
- 0.19.09 Feb 2022
Release notes2 sources agree
Open source →User-impacting
- feat: treat
@kindas having no name
Dev-impacting
- docs: jsdoc
- test: begin checking
jsdoccomment - test: adds lcov reporter and open script for it
- chore: update devDeps.
- feat: treat