Repository navigation
refactor(flame): v2.0.0-alpha.1 — eval-free MDX hydration, package merges - #347
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Authoring contract — directives only, no authored JSX: `::` leaf
(youtube), `:::` item, `::::` wrapper, and the one inline exception
`:tooltip[label]{tip="…"}` (other single-colon text stays literal for
URL safety). Content compiles with format "md"; migrated legacy
components (Note→Callout, Files→TreeMdx) and dropped Release/Button/Kbd
plus the dead Release TOC parsing in core.
Tooltip: reduced to two props (text, tip); bubble auto-positions with
position:fixed (flips to the side with more room, clamps to the
viewport, edge-aligns with the trigger) and renders a chat-bubble with a
quadratic Bézier notched tail (computed geometry, sharp wide-to-point
taper).
Build perf — the build cache never hit because the prePass filled
mdxSources via Promise.all, so manifest key order (and the bundle hash)
changed every run; sorting the mdx-manifest keys makes the hash stable,
so no-change builds skip all pages and single-file edits rebuild one.
Dev server memoizes MDX compile by (path, mtime). Production hydration
is eval-free (static ESM modules; CSP without 'unsafe-eval'), and the
docs-root island now hydrates (empty-slug lookup fixed) — mermaid and
client components work on /docs.
Packages: docker builder image renamed to docubook/flame; CardMdx
follows the home Features card; flame README takes hero copy from
docu.json and syncs to the template.
Docs: formatting contract (triple vs quad fences, task lists, inline
tooltips), introduction positioning (build-time bridge, not a runtime;
markdown for humans and agents), v1-vs-v2 benchmark section with
measured times and sizes, home hero copy ("Compile markdown. Deploy
anything."), and a new OG image.
…sion Mermaid fullscreen (markdown): - Modern canvas UI: ESC badge top-right, zoom bar (− / % / +) bottom-center, percentage button resets to 100%; one-time help panel under the ESC badge with keyboard shortcuts, collapsible into a '?' icon - Block native browser gestures (double-tap/pinch/ctrl+wheel zoom) via non-passive wheel+touchstart listeners; touch-action none - Touch drag pan; keyboard shortcuts moved to a window listener so Esc and pan/zoom keys work regardless of focus TOC anchors (flame): - Observer offset now reads the CSS scroll-margin-top so the active highlight, URL hash, and click jumps agree on mobile and desktop - Manual scrollTo replaces scrollIntoView (iOS Safari ignores scroll-margin on window scroll); desktop formula accounts for the container's offset below the viewport top - Gate the desktop TOC observer to >=1024px (hidden island was hijacking the mobile hash); MobileBar TOC: direct activeId on click, scrollend listener, sub-pixel rounding - Reduce mobile anchor offset scroll-mt-54 -> scroll-mt-16 (was 216px over-clearance; bar is 53px)
This was referenced Aug 13, 2026
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Flame v2.0.0-alpha.1 — markdown-native authoring, eval-free hydration, and build performance.
2xagainstmain: +10,888 / −8,139 across 232 files.The v2 direction: content is markdown + directives (readable by humans and agents alike), compiled to flat static HTML. No runtime, no RSC path, no
'unsafe-eval'.Breaking changes
new Function(compiledSource)replaced by statically bundled ESM modules (mdxModules);'unsafe-eval'dropped from build, preview, and nginx CSPs@docubook/mdx-contentrenamed to@docubook/markdown— markdown components + directives; old name stays published and deprecated@docubook/mdx-remotemerged into@docubook/core— RSC path removed (content is local filesystem, not remote); renamed tomdx-compiler,MDXRemotePropsre-exported@docubook/runtmerged into flame — runtime adapters (bun/deno/node) now in.docu/node/runtime/@docubook/ui/reactrenamed to@docubook/ui-reactPackage changes
@docubook/core— majorremarkDirectiveToMdxplugin —::leaf /:::item /::::wrapper directives compile to MDX without authored JSXcontent.tsservice andcreateMdxContentServiceremoved; compile pipeline tightened (parse-once,TocItem-only types)@docubook/markdown— major (renamed from@docubook/mdx-content):tooltip[label]{tip="…"}(single-colon text stays literal for URL safety)(text, tip)with auto-positioning chat-bubbleclient.ts/server.tsentry split removed → singlecreateMdxComponentsregistry + per-file"use client"directives@docubook/flame— major'unsafe-eval'; docs-root island hydrates (empty-slug lookup fixed)@docubook/runtruntime adapters (bun/deno/node) merged in; docker builder image renameddocubook/flamescrollTofor iOS Safari; container-offset formula on desktop; sub-pixel rounding; mobile-bar collapse +scrollend); anchor offset reduced 216px → 64px mobile, 80px → 16px desktop@docubook/themes-colors— majorrelativeLuminance,contrastRatio,getContrastingForeground@docubook/ui-react— major@docubook/ui/react→@docubook/ui-react; dropdown + shared type tweaksMigration notes
@docubook/mdx-content@docubook/markdowninstead (deprecated alias kept)@docubook/mdx-remote@docubook/coremdx-compiler(no RSC path)@docubook/runt.docu/node/runtime/@docubook/ui/react@docubook/ui-react::,:::,::::,:tooltip[...])Testing