Ecto
← Back to Changelog

v5.1.2

Release

[email protected] — 2026-10-26

Fixes render-hook cache behavior and ships dependency and security updates.

Bug Fixes

  • patch undici, zod, sharp, brace-expansion, and source-map-js (#429)

  • Finish render hooks for cache hits and hook errors (#447)

    The async and sync caches store engine output taken after the before-hook and before the after-hook. afterRender / afterRenderSync run on every call, including a cache hit. throwOnHookError: true rejects render and throws from renderSync.

    import { Ecto, EctoEvents } from "ecto";
    
    const ecto = new Ecto({ cache: true, throwOnHookError: true });
    ecto.onHook(EctoEvents.afterRender, (renderResult) => {
      renderResult.result = renderResult.result.trim();
    });
    

Documentation

  • add Drydock review badge (#427)

Internal

  • pin handlebars and undici to patched releases (#428)
  • remove handlebars override (#430)
  • update undici@7 override to 8.12.2 (#431)
  • remove undici@8 override (#432)
  • sync defense-in-depth files from agentic (#433)
  • upgrade code quality dependencies (#434)
  • upgrade TypeScript and build tooling (#435)
  • upgrade pnpm to 12.14.0 (#436)
  • upgrade GitHub Actions (#437)
  • upgrade Dev Container image to 5.2.3-24-trixie (#438)
  • upgrade docula to 3.0.1 (#439)
  • upgrade wrangler to 4.151.2 (#440)
  • remove sharp override (#441)
  • upgrade @jaredwray/fumanchu to 4.7.4 (#442)
  • upgrade hookified to 3.0.4 (#443)
  • upgrade liquidjs to 10.30.0 (#444)
  • upgrade ejs to 7.0.2 (#445)
  • upgrade docula to 3.0.2 (#446)

Contributors

  • @jaredwray (OWNER)

Full List of Changes

  • docs: add Drydock review badge by @jaredwray in #427
  • chore: pin handlebars and undici to patched releases by @jaredwray in #428
  • fix: security - patch undici, zod, sharp, brace-expansion, and source-map-js by @jaredwray in #429
  • mono - chore: remove handlebars override by @jaredwray in #430
  • mono - chore: update undici override by @jaredwray in #431
  • mono - chore: remove undici@8 override by @jaredwray in #432
  • mono - chore: sync defense-in-depth files from agentic by @jaredwray in #433
  • mono - chore: upgrade code quality dependencies by @jaredwray in #434
  • mono - chore: upgrade TypeScript and build tooling by @jaredwray in #435
  • mono - chore: upgrade pnpm by @jaredwray in #436
  • mono - chore: upgrade GitHub Actions by @jaredwray in #437
  • mono - chore: upgrade Dev Container images by @jaredwray in #438
  • mono - chore: upgrade docula by @jaredwray in #439
  • mono - chore: upgrade wrangler by @jaredwray in #440
  • mono - chore: remove sharp override by @jaredwray in #441
  • mono - chore: upgrade @jaredwray/fumanchu by @jaredwray in #442
  • mono - chore: upgrade hookified by @jaredwray in #443
  • mono - chore: upgrade liquidjs by @jaredwray in #444
  • mono - chore: upgrade ejs by @jaredwray in #445
  • mono - chore: upgrade docula by @jaredwray in #446
  • Finish render hooks for cache hits and hook errors by @jaredwray in #447

Full diff: https://github.com/jaredwray/ecto/compare/v5.1.1...v5.1.2