Repository navigation
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: truenow fails on option warnings, as the docs always said. A misspelled key, an unusablesiteUrlor an unreadablefooter/favicon/logo/custom file used to be reported while the build carried on. Understrictthe 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). @privateand@ignoresymbols 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--privateshows them again.- Leftover v4 options warn. A
theme_optsblock and v4 names such asbase_url,homepageTitleandsectionsnow warn with a hint, andtheme_optsfails astrictbuild. - 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## ⚠️ Warningis 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
basePathgot the prefix twice (/docs/docs/_assets/…, a 404). The base is now applied exactly once. The.mdcompanions andllms-full.txtalso gainbasePathon their links and images. (#377) - A class named
Indexlinked to the home page. Its page isindex/index.html, but links pointed at/index. Links to a page whose URL ends inindexnow 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 rootpublish.js.sectionsfrom 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. @examplecaptions 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,@defaultValuewins over the initializer and loses its stray backticks. - Members with an empty name (an ES
#privatemethod under JSDoc, a'': numberproperty 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 buildandextractstream 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/customJsFileentries 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 lintruns 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.ymlworkflow run that built it. - The Google Fonts check (when
fontsis set) usesnode:httpsinstead of the globalfetch, and still honours Node's env proxy settings. - No vulnerabilities were fixed in this release.
Full changelog: packages/clean-jsdoc-theme/CHANGELOG.md