Skip to content

v3.5.1

Choose a tag to compare

@linyows linyows released this 27 Apr 03:25
· 32 commits to main since this release
e465911

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 async highlight() call from useEffect also dropped its Promise. Switched to mermaid.run({ nodes }) with await + try/catch, and attached .catch() on the useEffect call site so failures are logged instead of becoming unhandled rejections by @linyows in #217
  • Fix Storybook Syntax error in text for the Mermaid code block — mermaid.run reads each node's innerHTML (not textContent) as the diagram source, so passing <pre> made it try to parse the wrapping <code> tags. The <code> element is now passed instead, and codeRef is typed as HTMLElement (was the mismatched HTMLPreElement) by @linyows in #217

Internal

  • Enable biome nursery/noFloatingPromises rule on src/ui/components so unawaited Promises (forgotten await, 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/ and examples/ from the root biome.json's files.includes so 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