Back to Explore

benjamn/recast

GitHub
1 watchersOpen source

Last release:

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

  • Maintenance status: The most recent upstream push and corresponding updates were on 2025-03-03, and there have been no documented updates since then, which suggests the project is quiet or in maintenance mode rather than actively evolving as of 2026-06-09.
  • Update cadence: Updates appear sporadic, with the latest three update entries spaced roughly weeks to months apart in early 2025, but the timeline then goes over a year without further updates.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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.

    Features
  • v0.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.

    Breaking
  • v0.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.