5.18.2
Release notes for 5.18.2.
Released: 2026-09-06
Bug Fixes
A site with
designTokenPanel: false(including the default) now builds without the optional@takazudo/zdtppeer installed.chrome/derivestatically imported the Design Token Panel bootstrap, which imported@takazudo/, so esbuild resolved that edge while bundling — before any runtime check of the setting could make it unreachable. A consumer that honored the publishedzdtp/ constants peerDependenciesMetaoptional: trueand omitted zdtp failed withCould not resolve "@takazudo/, and neither marking the package external nor anzdtp/ constants" addAliasregistration could route around it. The values the bootstrap needed are now vendored in-package, with a conformance test asserting them against the real@takazudo/so the copies cannot drift, and a build-level test that installs a consumer without zdtp and proves the panel-disabled graph no longer reaches it. The affected published range is 5.18.0–5.18.1; 5.17.2 was the last good release. (29b52ac5b, f6e293352)zdtp/ constants gen-z-indexaccepts single-quotedname,kind, andpurposevalues. It previously matched only double-quoted ones, so a single-quoted entry was skipped without comment and silently left out of the generated scale. (64f5a8be4)gen-z-indexnow fails loudly on apurposeorkindvalue it cannot read, instead of continuing and emitting a scale that quietly omits the unreadable entry. (0175bb5f6)