Releases: TypeStrong/typedoc
v0.23.5
Features
- The
DEBUG_SEARCH_WEIGHTSglobal variable can now be set onwindowto add search scoring information in the search results. - TypeDoc's icons are now available on
DefaultThemeRenderContext.iconsfor use/modification by themes.
v0.23.4
Bug Fixes
- TypeDoc no longer ignores project references if
--entryPointStrategy Packagesis set, #1976. - Boost computations are now done when creating the search index, resulting in a smaller
search.jsgenerated file.
Features
- The
--excludeoption will now be respected by--entryPointStrategy Packagesand can be used to exclude package directories, #1959. - TypeDoc now emits an
IndexEventon theRendererwhen preparing the search index, #1953. - Added new
--searchInCommentsoption to include comment text in the search index, #1553.
Turning this option on will increase the size of your search index, potentially by an order of magnitude.
v0.23.3
Bug Fixes
- Function properties in type space will no longer be interpreted as methods, #1637.
- TypeDoc will no longer crash if a comment contains an empty
@exampletag, #1967. - TypeDoc will now detect attempted inheritance from accessors and inherit from the getter or setter, #1968.
intentionallyNotExportedwill now properly respect qualified names, #1972.- Fixed missing namespace comments on
export * as NSdeclarations, #1973. - Fixed missing comments on
export const x = () => 123function variables, #1973. - Exported variable functions with properties will now be converted as a function+namespace instead of a variable+namespace, #1651.
- Validation warnings caused by missing documentation will now be formatted like other warnings which reference a declaration.
- TypeDoc will no longer warn if both the
getandsetsignatures of an accessor have a comment.
Features
- Added
--htmlLangoption to set thelangattribute in the generated HTML. Defaults toen, #1951. - Added
--basePathoption to override TypeDoc's detected root directory, #1924. - Added support for TypeDoc specific
:getterand:settermeaning keywords in declaration references. - Warnings caused by comment contents will now do a better job of including the location of the text that caused the warning.
v0.23.2
Bug Fixes
- Module comments will no longer be inappropriately attached to signatures, #1962.
- Projects with a single entry point will now parse
@modulecomments in the entry point, #1963. - Removed duplicate "in comment" warning when parsing comments, #1964.
- Reflections with a boost of
<= 0due tosearchCategoryBoostsorsearchGroupBoostswill be excluded from search.
v0.23.1
v0.23.0
Breaking Changes
- Node 12 is no longer officially supported as it has gone end of life as of 2022-04-30. It might still work, but may stop working at any time.
- Dropped support for TypeScript before 4.6.
{@link}tags in comments will now be resolved as declaration references similar to TSDoc's declaration references.
For most cases, this will just work. See the documentation for details on how link resolution works.- TypeDoc will now produce warnings for bracketed links (
[[ target ]]). Use{@link target}instead. The{@link}syntax will be recognized by TypeScript 4.3 and later and used to provide better intellisense. TypeDoc version 0.24.0 will remove support for[[ target ]]style links. extendsin typedoc.json is now resolved using NodeJS module resolution, so a local path must begin with./.- In the JSON output for
DeclarationReflections,getSignatureis no longer a one-tuple. - In the JSON output for
DeclarationReflections,setSignatureis no longer a one-tuple. - In the JSON output for
DeclarationReflections,typeParameterhas been renamed totypeParameters - The
searchGroupBoostsoption must now be given the rendered group name rather than reflection kind names, and can be given custom group names. @inheritDocnow follows the behavior specified by TSDoc when copying comments with a reference.- The
hideLegendoption has been removed as the default theme no longer contains a legend. - The
gaSiteoption has been removed since Google Analytics now infers the site automatically, updated Google Analytics script to latest version, #1846. - Comments on export declarations will only overrides comments for references and namespaces, #1901.
- The deprecated
listInvalidSymbolLinksoption has been removed. Usevalidation.invalidLinkinstead. - The deprecated
trueandfalsevalues have been removed from--emit, to migrate replacetruewith"both"andfalsewith"docs"(the default). - Links are no longer be resolved against a global list of all symbols. See the documentation for details on link resolution.
- The
validation.invalidLinkoption is now on by default. reflection.decorates,reflection.decorators, and their corresponding interfaces have been removed as no code in TypeDoc used them.- The shape of the
Commentclass has changed significantly to support multiple tag kinds. - Listeners to
Converter.EVENT_CREATE_TYPE_PARAMETERandConverter.EVENT_CREATE_DECLARATIONwill now never be passed ats.Nodeas their third argument. - Constant variables which are interpreted as functions will no longer have the
ReflectionFlag.Constflag set. reflection.defaultValueis no longer set for enum members. The same information is available onreflection.typewith more precision.- Removed deprecated
removeReaderByName,addDeclarationsandremoveDeclarationByNamemethods onOptions. - Removed
ProjectReflection.directory, it was unused by TypeDoc and not properly tested. - Removed
ProjectReflection.files, this was an internal cache that should not have been exposed, and shouldn't have existed in the first place, since removing it made TypeDoc faster. - Removed
ReflectionGroup.kindsince groups can now be created with the@grouptag. - Removed
ReflectionKind.Event, the@eventtag is now an alias for@group Events. Note: This changes the value ofReflectionKind.Referencefrom16777216to8388608. - Themes are now set on the document element rather than on body, #1706.
Features
-
TypeDoc now supports the
@grouptag to group reflections in a page. If no@grouptag is specified, reflections will be grouped according to their kind, #1652. -
TypeDoc will now search for
typedoc.js(on)in the.configfolder in the current working directory. -
Entry point strategies
ResolveandExpandmay now specify globs, #1926. -
typedoc.jsonnow supports comments liketsconfig.json. -
TypeDoc will now read the
blockTags,inlineTags, andmodifierTagsout oftsdoc.jsonin the same directory astsconfig.jsonif it exists.
It is recommended to add"extends": ["typedoc/tsdoc.json"], which defines TypeDoc specific tags to yourtsdoc.jsonif you create one. -
If an exported symbol has multiple declarations, TypeDoc will now check all appropriate declarations for comments, and warn if more than one declaration contains a comment, #1855.
-
Improved support for JSDoc style
@exampletags. If the tag content does not include a code block, TypeDoc now follows VSCode's behavior of treating the entire block as a code block, #135. -
TypeDoc will now render members marked with
@deprecatedwith a line through their name, #1381. -
Added new
commentStyleoption which can be used to control what comments TypeDoc will parse.Value Behavior JSDoc Use block comments starting with /**Block Use all block comments Line Use //commentsAll Use both block and line comments -
TypeDoc will now warn if part of a comment will be overwritten due to use of
@inheritDocinstead of silently dropping part of the comment. -
Added support for inline
@inheritDoctags, #1480. -
It is now possible to link directly to a specific overload, #1326.
-
The JSON output will now include URLs to the file on the remote repository if possible.
-
Added a new
visibilityFiltersoption which controls the available filters on a page. -
TypeDoc will now try to place block elements on a new line in HTML output, resulting in less overwhelming diffs when rebuilding docs, #1923.
-
Added
blockTags,inlineTags,modifierTagsto control which tags TypeDoc will allow when parsing comments.
If a tag not in in one of these options is encountered, TypeDoc will produce a warning and use context clues to determine how to parse the tag.
Bug Fixes
- Fixed off by one error in warnings for types referenced but not included in the documentation.
- TypeDoc will no longer render a
Type Parametersheading if there are no type parameters in some cases. - Improved source location detection for constructors.
- Improved comment discovery on destructured exported functions, #1770.
- Links which refer to members within a reference reflection will now correctly resolve to the referenced reflection's member, #1770.
- Correctly detect optional parameters in JavaScript projects using JSDoc, #1804.
- Fixed identical anchor links for reflections with the same name, #1845.
- TypeDoc will now automatically inherit documentation from classes
implementsby other interfaces/classes. - Fixed
@inheritDocon accessors, #1927. - JS exports defined as
exports.foo = ...will now be converted as variables rather than properties. searchCategoryBoostsare now correctly computed for all categories, #1960.- The
excludeNotDocumentedoption will no longer hide a module if it has a documentation comment, #1948. - Prevent
--excludeNotDocumentedfrom hiding properties of type literals (ainfunction fn(p: { a: string })), #1752. - Allow
ctsandmtsextensions in packages resolution mode, #1952. - Corrected schema generation for https://typedoc.org/schema.json
Thanks!
v0.22.18
v0.22.17
v0.22.16
Features
- Added support for TypeScript 4.7, #1935.
- Support enum-like objects with numeric literal values tagged with
@enum, #1918. - Enum member reflections will now have their
typeset to either aLiteralTypewith a string or numeric value or anIntrinsicTypewith typenumber, #1942.
UsingdefaultValueonEnumMemberreflections is now deprecated, and will be broken in 0.23.
Bug Fixes
- Fixed invalid type output in some uncommon edge cases, TypeDoc also now renders fewer superfluous parenthesis when creating types.
- TypeDoc is now more consistent about ordering with
enum-value-ascendingorenum-value-descendingsort strategies in mixed string/number enums.
Thanks!
v0.22.15
Features
- Classes which are
abstractand enums which areconstwill now be indicated in their rendered documentation, #1874. - Added a new option
compilerOptions, which can be used to override compiler options read fromtsconfig.json, #1891. - Added new render hooks:
content.begin,content.end,navigation.begin,navigation.end
Bug Fixes
- TypeDoc will now warn if a project name/version cannot be inferred from a package.json file rather than using
undefined, #1907.