# What changed in recast

> 13 changes in recast 0.24 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-11-09. HTML: https://unstale.sh/npm/recast/

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

## recast 0.24

### Fixes and other changes

- Preserves dangling comments when reprinting containers. (0.24.3) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.3)
- Preserves multiline template values when reprinting changed blocks. (0.24.3) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.3)
- Source indentation no longer stacks before JSX closing tags. (0.24.2) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.2)
- Comments on object destructuring assignments are no longer parenthesized when printed. (0.24.2) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.2)
- Dangling if consequents are wrapped in braces when printing an outer else. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- The `ecmaVersion` option is now respected instead of hardcoding ES6. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Reprinting now keeps `type` and `typeof` on Flow import specifiers. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Reprinting now preserves changes to import aliases. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Reprinting elements now preserves significant JSX whitespace around expressions. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Nodes whose children share source ranges are now reprinted. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Reprinting parenthesizes `??` when combined with `||` or `&&`. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- TypeScript declarations for per-context trailing comma options are corrected. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
- Reprinting now parenthesizes update expressions in optional chains. (0.24.1) — [release notes](https://github.com/benjamn/recast/releases/tag/v0.24.1)
