Changelog
3.5.2 (July 2017)
@hideconstructor
tag. (#1397)@alias
tag identifies an instance member (for example, @alias Foo#bar
), the alias is
now applied correctly. (#1385)@alias
tag is applied to a class that is within a module and is aliased to the module
name, the class's instance members are now documented correctly. (#1134)@param
tag uses the wrong delimiter to close the type expression (for
example, @param {Object)
). (#1221)@summary
tag. (#1149)Changelog
3.5.1 (July 2017)
Changelog
3.5.0 (July 2017)
JSDoc now uses the Babylon JavaScript parser, which means that JSDoc can parse any JavaScript or JSX file that is supported by the Babel compiler. For example, JSDoc can now parse JavaScript files that include all of the following language features:
+ [Decorators](https://github.com/tc39/proposal-decorators)
+ [Public and private class fields](https://github.com/tc39/proposal-class-fields)
+ [Asynchronous iterators](https://github.com/tc39/proposal-async-iteration)
+ [Dynamic `import()`](https://github.com/tc39/proposal-dynamic-import)
+ [Optional chaining](https://github.com/tc39/proposal-optional-chaining)
You can now use a JavaScript file to configure JSDoc. The JavaScript file must be a CommonJS module that exports a single configuration object. See the documentation for details and examples.
Fixed multiple issues with documenting ES2015 classes and modules. See "Bug fixes" for details.
JSDoc now requires Node.js 4.2.0 or later.
Note: Third-party templates may not support these new tags.
@async
tag to indicate that a
function is asynchronous (that is, that it was declared with the syntax async function foo() {}
).
In general, you do not need to use this tag, because JSDoc autodetects asynchronous functions.
(#1188)@generator
tag to indicate
that a function is a generator function. In general, you do not need to use this tag, because JSDoc
autodetects generator functions. (#1158)@hideconstructor
tag to
tell JSDoc to hide a class's constructor from the documentation. (#952)@package
tag to indicate that a
symbol is package-private. (#962)@yields
tag to document the
value that is yielded by a generator function. (#1388)async function foo() {}
), and JSDoc autodetects when a function is asynchronous. (#1188)jsdocCommentFound
and symbolFound
events, the event now includes a columnno
property indicating the column number on which the comment or symbol was found. (#1362)sourceType
configuration option to control how JavaScript files are
parsed. The default value is module
. Set the value to script
to suppress implied strict mode;
this setting will also prevent you from using ES2015 modules. (#1210)recurseDepth
configuration option to control how many levels deep JSDoc
will recursively search for files. The default value is 10. (#1340)plugins/
or templates/
directory, JSDoc can now
discover plugins and templates in other directories. (#1081, #1308)@author
tag does not have a value. (#1289)process.exit()
when exiting. (#1287)Changelog
3.4.2 (October 2016)
Changelog
3.4.1 (September 2016)
tags.allowUnknownTags
may now contain an array of tag names that
should be allowed. (#1159){@link chat."#channel"}
. (#1035)plugins/
or templates/
directory, JSDoc can now
discover plugins and templates in other directories. (#1081)<h2>
and <h3>
elements.
(#1108)silent
template that generates no output. This template makes it easier to
use JSDoc as a linter to check for syntax errors and unrecognized tags in documentation comments.
(#1160)Changelog
3.4.0 (November 2015)
app
and env
global variables are now deprecated. Avoid using the app
global. Use the
jsdoc/env
module instead of the env
global. (#812)const
declarations are now automatically treated as constants. (#555)publish
method. (#953)#
and .
(for example, Foo.prototype['this#is#bar']
).
(#888)this
(for example, this['bar']
)
now get the correct longname. (#890)this.bar
) is documented within a member of a prototype
(for example, Foo.prototype.setBar
), the instance member's longname is now set correctly. (#1011)@borrows
tag now works with symbol names that contain whitespace. (#818)markdown.idInHeadings
to true
. (#1032)templates.default.useLongnameInNav
to true
. (#986)Changelog
3.3.3 (September 2015)
prototype
are now handled correctly. (#891)Changelog
3.3.2 (June 2015)
JSDoc no longer crashes when parsing a large number of files, or a single object that has a large number of properties. (#976)