• v2.0.0 4c0a9bfa09

    v2.0.0 Stable

    tonymottaz released this 2026-04-15 16:01:00 +00:00 | 31 commits to main since this release

    Signed by tonymottaz
    GPG key ID: B6D30EE464115F5F

    Major updates

    • Simplification of file naming conventions
    • Better HMR
    • Switch Markdown rendering to markdown-it
    • View bundled documentation with grackle docs command

    Breaking changes

    • Handlers can only use a single template file now, and the template file name must be _template.<ext> where <ext> is a supported template file extension. There is no more content negotiation -- it must render HTML only. To render other content types, do it manually in your handler: response.send(200, yourContent, yourContentType).
    • No more concept of "static templates" using the $ file name prefix. Instead, static files may go through a postprocessing pipeline to be transformed. Currently, there are two built-in pipelines for Vento and Markdown files. In the future you can configure more.
    • NODE_ENV is no longer used to enable HMR. Instead, use the new --dev-hmr CLI option.

    New features

    • Markdown: GitHub alert syntax supported (bring your own CSS)
    • Markdown: Syntax highlighting supported (bring your own CSS)
    • CLI: new docs command to serve bundled documentation
    • CLI: new --dev-hmr option on the server command to enable HMR
    • Static file route matching includes the filename

    Fixes

    • HMR works better now
    • Route matching prioritization is more correct
    Downloads