v3.5.1
What's Changed
Bug Fixes
- Fix unhandled
Uncaught (in promise)in mermaid rendering —mermaid.init()was deprecated and its returned Promise was not awaited, and the asynchighlight()call fromuseEffectalso dropped its Promise. Switched tomermaid.run({ nodes })withawait+try/catch, and attached.catch()on theuseEffectcall site so failures are logged instead of becoming unhandled rejections by @linyows in #217 - Fix Storybook
Syntax error in textfor the Mermaid code block —mermaid.runreads each node'sinnerHTML(nottextContent) as the diagram source, so passing<pre>made it try to parse the wrapping<code>tags. The<code>element is now passed instead, andcodeRefis typed asHTMLElement(was the mismatchedHTMLPreElement) by @linyows in #217
Internal
- Enable biome
nursery/noFloatingPromisesrule onsrc/ui/componentsso unawaited Promises (forgottenawait, dropped Promises in effects) are caught at lint time. Verified the rule flags the original two floating-Promise sites by @linyows in #217 - Exclude
website/andexamples/from the rootbiome.json'sfiles.includesso type-aware project resolution no longer discovers nested root configs, allowing the sub-project biome configs to remain independent by @linyows in #217
Full Changelog: v3.5.0...v3.5.1