npm / eta
eta
What changed in eta 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking12 new APIs and options2 behavior and defaults1 tooling6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeta 415 changes
Breaking changes 1
Reverts eta/core to an ESM build, affecting how developers import and run it.
New APIs and options 9
Adds the block template helper.
Adds the asynchronous block template helper.
Adds the capture template helper.
Adds the asynchronous capture template helper.
Adds support for custom tag types.
Adds a require field for the core module, affecting how developers load it from package.json.
RuntimeErr now exposes error.cause.
Adds a prepare script to allow installation from Git.
Adds the outputFunctionName config property.
Tooling 1
A CJS build is generated, and build and type exports are updated.
Fixes and other changes 4
Compiled output now adds semicolons to prevent ASI issues with forEach and keep template statements consistent.
Exports use .mjs files instead of .js files, correcting the package entry points developers resolve when using Eta.
Merges the data dictionary when including templates.
Corrects the path used for type exports.
eta 37 changes
New APIs and options 3
An ESM browser build was added.
A functionHeader option was added.
Runtime errors were made more readable.
Behavior and default changes 2
The release includes changes to autoEscape; the notes do not specify the details.
The release includes changes to autoFilter; the notes do not specify the details.
Fixes and other changes 2
A fix was made to filepath caching.
The error message for an unclosed tag was fixed.