You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please try it out and report any issues in new issues:
npm install --save-dev typedoc@beta
The full release is planned for 2025-03-14.
This release includes a major refactor to support a typedoc/browser import suitable for use in frontend code which interacts with TypeDoc's JSON output and an updated search dialog which behaves better on mobile devices.
Default Theme Changes
@phoneticallySAARTHaK rebuilt TypeDoc's search dialog, resulting in an implementation which behaves much better on mobile devices and improved accessibility for screen readers.
Browser Entrypoint
TypeDoc's main entry point uses many node APIs during conversion making it unsuitable for usage in the browser. With this release, TypeDoc also provides typedoc/browser and typedoc/browser/(lang) entry points which can be used in a browser bundle which needs to parse TypeDoc's JSON output.
import{ConsoleLogger,Deserializer,FileRegistry,setTranslations,}from"typedoc/browser";// Similar paths are available for ja, ko, zhimporttranslationsfrom"typedoc/browser/en";// Before doing anything with TypeDoc, it should be configured with translationssetTranslations(translations);constprojectJson=awaitfetch("...").then(r=>r.json());constlogger=newConsoleLogger();constdeserializer=newDeserializer(logger);constproject=deserializer.reviveProject("API Docs",projectJson,{projectRoot: "/",registry: newFileRegistry(),});// Now we can use TypeDoc's models to more easily analyze the jsonconsole.log(project.getChildByName("SomeClass.property"));console.log(project.getChildByName("SomeClass.property").type.toString());
TypeDoc's --entryPointStrategy merge mode now requires JSON from at least version 0.28.0.
Removed jp translations from lang, to migrate switch to ja.
File name references in intentionallyNotExported now use a package name/package relative path instead of an absolute path for matching.
The source-order sort ordering now considers package names / package relative paths instead of using the absolute paths to a file.
API Breaking Changes
Path and PathArray parameter types now always contain normalized paths.
Introduced a Router which is used for URL creation. Reflection.url, Reflection.anchor, and Reflection.hasOwnDocument have been removed.
Deserializer.reviveProject(s) no longer accepts an option to add project documents.
Deserializer.reviveProjects now requires an alwaysCreateEntryPointModule option.
Comment.serializeDisplayParts no longer requires a serializer argument.
ReflectionSymbolId.fileName has been removed, TypeDoc now stores a combination of a package name and package relative path instead.
Removed DeclarationReflection.relevanceBoost attribute which was added for plugins, but never used.
i18n proxy is no longer passed to many functions, instead, reference i18n exported from the module directly.
ReflectionKind.singularString and ReflectionKind.pluralString now returns translated strings.
The methods on Internationalization to do this previously have been removed.
The HTML output structure for the search box has changed to support the new modal.
Features
Add support for TypeScript 5.8.x
The search modal in the HTML output has been rewritten to provide better mobile support
Introduced packagesRequiringDocumentation option for validation.notDocumented, TypeDoc will expect comments to be present for symbols in the specified packages.
Technically that one shouldn't need a breaking change notice as it was marked internal, but I agree, it deserves one and basically every non-trivial plugin uses it... it moved to Context
TypeDoc 0.28 is now in beta! 🎉
Please try it out and report any issues in new issues:
npm install --save-dev typedoc@beta
The full release is planned for 2025-03-14.
This release includes a major refactor to support a
typedoc/browser
import suitable for use in frontend code which interacts with TypeDoc's JSON output and an updated search dialog which behaves better on mobile devices.Default Theme Changes
@phoneticallySAARTHaK rebuilt TypeDoc's search dialog, resulting in an implementation which behaves much better on mobile devices and improved accessibility for screen readers.
Browser Entrypoint
TypeDoc's main entry point uses many node APIs during conversion making it unsuitable for usage in the browser. With this release, TypeDoc also provides
typedoc/browser
andtypedoc/browser/(lang)
entry points which can be used in a browser bundle which needs to parse TypeDoc's JSON output.Change Log
Breaking Changes
/
path separators, Unable to doc file located in a dir with[]
#2825.--entryPointStrategy merge
mode now requires JSON from at least version 0.28.0.jp
translations fromlang
, to migrate switch toja
.intentionallyNotExported
now use a package name/package relative path instead of an absolute path for matching.source-order
sort ordering now considers package names / package relative paths instead of using the absolute paths to a file.API Breaking Changes
Path
andPathArray
parameter types now always contain normalized paths.Router
which is used for URL creation.Reflection.url
,Reflection.anchor
, andReflection.hasOwnDocument
have been removed.Deserializer.reviveProject(s)
no longer accepts an option to add project documents.Deserializer.reviveProjects
now requires analwaysCreateEntryPointModule
option.Comment.serializeDisplayParts
no longer requires a serializer argument.ReflectionSymbolId.fileName
has been removed, TypeDoc now stores a combination of a package name and package relative path instead.DeclarationReflection.relevanceBoost
attribute which was added for plugins, but never used.i18n
proxy is no longer passed to many functions, instead, referencei18n
exported from the module directly.ReflectionKind.singularString
andReflectionKind.pluralString
now returns translated strings.The methods on
Internationalization
to do this previously have been removed.Features
--router
option which can be used to modify TypeDoc's output folderstructure. This can be extended with plugins, Support for custom output directory structure #2111.
@primaryExport
modifier tag to provide more fine grainedcontrol over export conversion order, Feature / Observation: Order matters in files processed regarding reflection generation for ambient namespace re-exports. #2856
packagesRequiringDocumentation
option forvalidation.notDocumented
, TypeDoc will expect comments to be present for symbols in the specified packages.typedoc/browser
entrypoint for parsing and using serialized JSON files, Runtime traversal utils for browser usage #2528.Bug Fixes
The text was updated successfully, but these errors were encountered: