# What changed in eta

> 22 changes in eta 3 to 4 from its official release notes, upgrade guides and advisories: 1 breaking, 12 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/eta/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## eta 4

### Breaking changes

- Reverts eta/core to an ESM build, affecting how developers import and run it. (4.4.1) — [release notes](https://github.com/bgub/eta/releases/tag/v4.4.1)

### New APIs and options

- Adds the block template helper. (4.6.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.6.0)
- Adds the asynchronous block template helper. (4.6.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.6.0)
- Adds the capture template helper. (4.6.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.6.0)
- Adds the asynchronous capture template helper. (4.6.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.6.0)
- Adds support for custom tag types. (4.6.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.6.0)
- Adds a require field for the core module, affecting how developers load it from package.json. (4.5.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.5.0)
- RuntimeErr now exposes error.cause. (4.3.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.3.0)
- Adds a prepare script to allow installation from Git. (4.2.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.2.0)
- Adds the outputFunctionName config property. (4.1.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.1.0)

### Tooling

- A CJS build is generated, and build and type exports are updated. (4.3.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.3.0)

### Fixes and other changes

- Compiled output now adds semicolons to prevent ASI issues with forEach and keep template statements consistent. (4.5.1) — [release notes](https://github.com/bgub/eta/releases/tag/v4.5.1)
- Exports use .mjs files instead of .js files, correcting the package entry points developers resolve when using Eta. (4.3.1) — [release notes](https://github.com/bgub/eta/releases/tag/v4.3.1)
- Merges the data dictionary when including templates. (4.2.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.2.0)
- Corrects the path used for type exports. (4.2.0) — [release notes](https://github.com/bgub/eta/releases/tag/v4.2.0)

## eta 3

### New APIs and options

- An ESM browser build was added. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)
- A functionHeader option was added. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)
- Runtime errors were made more readable. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)

### Behavior and default changes

- The release includes changes to autoEscape; the notes do not specify the details. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)
- The release includes changes to autoFilter; the notes do not specify the details. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)

### Fixes and other changes

- A fix was made to filepath caching. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)
- The error message for an unclosed tag was fixed. (3.0.0) — [release notes](https://github.com/bgub/eta/releases/tag/v3.0.0)
