Recast is a JavaScript syntax tree transformer, with a nondestructive pretty-printer that reprints modified code while preserving existing formatting where possible. It also generates automatic source maps to map between original and transformed code, making it useful for safe code transformations and debugging.
Project status
- The project appears to be evolving, with evidence of recent repository activity (an upstream push on 2026-08-21) and at least ongoing work on the pretty-printer and TypeScript support.
- The update cadence is hard to confirm from the provided data, because the last documented packaged update in the feed is v0.23.11 on 2025-03-03, which is over 1 year before today (2026-09-10), despite the later upstream push.
AI summary generated
Recent updates
v0.23.11
v0.23.11 makes a targeted update to the pretty-printer for TypeScript tagged template expressions. Specifically, it adds support for printing generic type parameters that appear on TaggedTemplateExpression nodes, and the change is backed by a new TypeScript test case.
Featuresv0.23.10
v0.23.10 contains internal changes around pretty-printing of Babel JSX in parenthesized return statements, plus various TypeScript typing cleanups in the Lines implementation. Release notes were not provided, so this release's behavior changes and API typing impacts are not described.
Breakingv0.23.9
Release v0.23.9 was published on 2024-06-01, but the publisher did not provide any release notes or change details. As a result, there is no documented information here about new features, fixes, breaking changes, or dependency updates.
v0.21.1
Release v0.21.1 focuses on formatter correctness fixes, including parenthesis insertion, string escaping edge cases (U+2028, U+2029), and missing-parens issues. It also includes several dependency bumps (Babel preset-env, esprima types, and tooling libraries).
v0.7.0
Release v0.7.0 switches the default JavaScript parser to use the NPM package `esprima-fb`. This change may affect how source code is parsed, which can influence downstream behavior that depends on the produced AST.