unstale

npm / recast

recast

What changed in recast 0.24, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-09.

13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.11 on npm

recast 0.2413 changes

Fixes and other changes 13

  • Preserves dangling comments when reprinting containers.

    0.24.3release notes

  • Preserves multiline template values when reprinting changed blocks.

    0.24.3release notes

  • Source indentation no longer stacks before JSX closing tags.

    0.24.2release notes

  • Comments on object destructuring assignments are no longer parenthesized when printed.

    0.24.2release notes

  • Dangling if consequents are wrapped in braces when printing an outer else.

    0.24.1release notes

  • The ecmaVersion option is now respected instead of hardcoding ES6.

    0.24.1release notes

  • Reprinting now keeps type and typeof on Flow import specifiers.

    0.24.1release notes

  • Reprinting now preserves changes to import aliases.

    0.24.1release notes

  • Reprinting elements now preserves significant JSX whitespace around expressions.

    0.24.1release notes

  • Nodes whose children share source ranges are now reprinted.

    0.24.1release notes

  • Reprinting parenthesizes ?? when combined with || or &&.

    0.24.1release notes

  • TypeScript declarations for per-context trailing comma options are corrected.

    0.24.1release notes

  • Reprinting now parenthesizes update expressions in optional chains.

    0.24.1release notes