The docmd 0.6.6 release is a massive architectural deployment fundamentally overhauling the core engine to prioritize raw compilation speed and minimal installation footprint by stripping out the heaviest dependencies in the open-source ecosystem in favor of bespoke, ultra-fast custom architectures.

✨ Highlights

The Great Dependency Shedding

Instead of relying on heavy legacy packages with cascading “waterfall” dependencies, docmd now utilizes native solutions and our own newly published lite-* libraries. This collapses the internal engine constraints from ~30 cascading external packages down to exactly 1 (yaml), dropping ~2.5MB of weight and making compilation up to 8.1x faster!

Core Packages Eliminated:

Legacy Package New Engine Waterfall Reduction Performance Gain Approx Weight Shed
highlight.js lite-hl No waterfall deps ~8.1x faster ~2MB
ejs lite-template 7 packages removed ~3.2x faster ~50KB
gray-matter lite-matter 9 packages removed Highly optimized ~100KB
chokidar native fs 14+ packages removed Native speed ~200KB
commander util.parseArgs No 3rd party deps Zero overhead ~60KB

📝 Complete Changelog

🛠️ Core Engine Patches

  • Zero-Config Root Index Fix: Resolved the pervasive 404 bug at the domain root. If an index.md is missing, the auto-router now successfully dictates the designated fallback homepage directly to the generator engine natively.
  • Native EJS Content Pages: .ejs files are now recognized as first-class content pages natively by the auto-router. They process frontmatter dynamically and render alongside standard Markdown files seamlessly.
  • Recursive Frontmatter Stripping: When utilizing <%- await include(...) %> inside complex nested components, docmd natively strips YAML frontmatter blocks from the sub-templates before rendering them, guaranteeing clean markdown compilation.

📦 The lite-* Public Releases

  • lite-template@0.1.2: Evolved into a genuinely standalone async alternative to EJS, natively resolving include() from the disk (or virtually via includer memory hooks).
  • lite-hl@0.1.2: Re-mapped to guarantee pixel-perfect legacy highlight.js CSS theme compatibility. Upgraded to support 60+ complex shell commands (grep, find, awk) and dynamic $VARIABLES.
  • lite-matter@0.1.1: Officially released as a robust standalone metadata extraction library capable of natively parsing YAML structures instantly without arbitrary parsing bottlenecks.
  • TypeScript & ESM Support: All lite packages have strict exports map resolution introduced to guarantee flawlessly typed ESM module ingestion across modern IDE architectures natively.

Migration Guide

No breaking changes. You can upgrade safely without altering any of your existing markdown content!