You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closures can now reference cross-package exported variables/constants (e.g. pkg.ExportedVar, pkg.ExportedConst, time.Hour) without a false "capturing a local variable" error — the extractor whitelists cross-package exported symbols and applies the correct import-alias replacement.
More robust IIFE inlining — buildIIFECall now parses the closure signature instead of string-cutting ClosureDef.
Generator error-handling chain fixed — formatParams / writeMainFunc now propagate errors correctly instead of swallowing them.
New closure-capture examples example/closure_capture_exported and example/closure_capture_timehour, plus regression tests.
Docs site left-nav (TOC) follows language switches in real time — applyLang now re-derives each TOC link label per the active language (in place, no node rebuild) and keeps the search placeholder in sync; fixes the in-page language switch leaving the left TOC stuck.
📝 Documentation
Corrected the -cache docs — they previously claimed -cache "skips extraction / type-checking"; type-checking (packages.Load) was never cached and still runs every time. Docs now say "skips extraction only (type-checking still runs every time)", noting that -cache is actually slower for the common "edit then digen ./..." flow and only pays off for large DI graphs or repeated read-only subcommands.