Skip to content

v5.3.0

Latest

Choose a tag to compare

@ankitskvmdam ankitskvmdam released this 15 Nov 09:21
· 52 commits to master since this release
bf4defc

Upgrading: check these first

5.3.0 is a minor release. Most of it is fixes, but several of them change behavior an existing build may depend on:

  • strict: true now fails on option warnings, as the docs always said. A misspelled key, an unusable siteUrl or an unreadable footer/favicon/logo/custom file used to be reported while the build carried on. Under strict the build now stops before writing anything. Content warnings such as an unbalanced backtick are not affected.
  • A failed JSDoc build exits 1. JSDoc 4 printed a thrown theme error as Unhandled rejection … and still exited 0, so CI couldn't see the failure.
  • Node 22 or newer. All packages declare engines.node: ">=22" (Node 20 reached end-of-life in April 2026).
  • @private and @ignore symbols no longer get pages. Private typedefs, classes, namespaces, modules, interfaces and mixins used to get a page and a sidebar entry. Everything inside a private container is hidden too. JSDoc's --private shows them again.
  • Leftover v4 options warn. A theme_opts block and v4 names such as base_url, homepageTitle and sections now warn with a hint, and theme_opts fails a strict build.
  • Some heading anchors changed. Headings made only of punctuation or emoji get a fallback anchor (#section--1f680). Emoji presentation characters are dropped from anchors, so ## ⚠️ Warning is now #warning. Every anchor that already had a letter or digit (and no such characters) is unchanged.
  • Angle-bracketed words in prose are kept. Promise<User> and <T> used to vanish from descriptions. Stray closing tags such as </content> that the old behavior hid now show, so check your pages for them.

Highlights

🐛 Fixes for reported bugs

  • Images under TypeDoc with basePath got the prefix twice (/docs/docs/_assets/…, a 404). The base is now applied exactly once. The .md companions and llms-full.txt also gain basePath on their links and images. (#377)
  • A class named Index linked to the home page. Its page is index/index.html, but links pointed at /index. Links to a page whose URL ends in index now carry a trailing slash, in the sidebar, type links, search, prev/next cards and the language switcher. (#333)
  • "template": "node_modules/clean-jsdoc-theme" works, the path v4 configs and the migration guide use. The package ships a root publish.js.
  • sections from v4 (["Classes", "Global"]) no longer drops the globals from the sidebar. (#285)

📝 Pages that used to be skipped now render

  • HTML comments (<!-- … -->) in a README, tutorial or doc comment made the whole page fail, which on the README left the site with no home page. Comments are now hidden, as a browser would hide them. Comments inside code are kept.
  • @example captions holding raw HTML such as <?php … ?> or <br> no longer skip the page.
  • A literal tag with braces (<Foo bar="{x}">) no longer fails the page.

Patch Changes

  • Parameter defaults show as written. [name=""] displayed as "\"\"". Defaults now render verbatim, and a {@link} default renders as a link. On TypeDoc, @defaultValue wins over the initializer and loses its stray backticks.
  • Members with an empty name (an ES #private method under JSDoc, a '': number property under TypeDoc) no longer render as a blank heading.
  • The table of contents links to the anchor the page renders for formatted headings (## **Bold** title), footnotes and <br>. A TypeDoc member named ' ' no longer aborts the build.
  • Slug clashes: when two doc pages or two tutorials share a URL, the page that was built keeps its sidebar link, and a skipped tutorial is now reported.
  • Build logs: the home page is labelled (home page) in failed-page and content-warning reports, and a skipped doc page is named by title and file.
  • clean-jsdoc build and extract stream the JSDoc/TypeDoc process's stderr, so the reason for a failure is no longer hidden. Each option warning prints once, at the end of the build.
  • TypeDoc: JSDoc-only options in cleanJsdocTheme (colors, customCss, readme, tutorials, …) warn that TypeDoc ignores them, instead of failing a strict build as unknown keys.
  • customCssFile/customJsFile entries that aren't local paths (a URL, a v4 { href, integrity } object) warn and are skipped.
  • Search: the index text matches the rendered page. Character references are decoded once, escape backslashes are dropped, and inline code such as Array<Map<string, T>> keeps its text.
  • Windows: a build that failed right after the Google Fonts check no longer aborts Node with a libuv assertion (exit 127).
  • npm: clearer descriptions and keywords. The TypeDoc package gains typedocplugin, which typedoc.org's plugin list reads.

For contributors

  • Regression tests for user-reported bugs. A new suite runs real JSDoc 4.0.5 with the theme as its template. It covers #347, #333, #332, #299, #285, #303 and the PR #354/#356 fixes, plus manifest, TypeDoc-plugin, mobile-drawer and custom-JS-order tests (#342, #334, #303, #299). Each was checked to fail with its fix reverted.
  • Performance tests assert linear scaling instead of wall-clock bounds, which fixes the flaky CI runs (#355).
  • pnpm lint runs in CI.
  • Releases publish through npm trusted publishing (OIDC) instead of a stored token.

Security

  • Releases now publish through npm trusted publishing (OIDC). There is no long-lived npm token in the repository any more. Each package carries a provenance attestation tying it to this repository and the release.yml workflow run that built it.
  • The Google Fonts check (when fonts is set) uses node:https instead of the global fetch, and still honours Node's env proxy settings.
  • No vulnerabilities were fixed in this release.

Full changelog: packages/clean-jsdoc-theme/CHANGELOG.md