Back to Explore

syntax-tree/estree-util-attach-comments

GitHub
1 watchersOpen source

Last release:

estree-util-attach-comments is a utility for attaching comment nodes to the correct nodes in an ESTree syntax tree. It takes a tree plus an array of comments (with leading and trailing fields) and mutates the tree so tools like recast or Babel can print or process comments that would otherwise be separate.

Project status

  • Maintenance status: Not actively maintained as of 2026-06-09. The last upstream update was in 2023-07-31, with no evidence of ongoing updates after 3.0.0.
  • Update cadence: Updates appear sporadic, with multi-month to multi-year gaps between versions (not a steady recent cadence).

AI summary generated

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

Recent updates

  • 3.0.0

    Release 3.0.0 makes estree-util-attach-comments align with modern ESM packaging and Node.js support requirements. The exported `attachComments` function now returns `undefined` instead of returning the input tree, and the package is configured to use an `exports` entry for public access only.

    Breaking
  • 2.1.1

    Release 2.1.1 is presented as a documentation and refactor-only update, plus a tsconfig change. The published diff shows the implementation code moved into a new lib/index.js module with index.js turned into a re-export shim, alongside CI, build, and dev tooling updates.

    Breaking
  • 2.1.0

    Release 2.1.0 is primarily a dependency update. The release notes only mention an update to @types/estree, but the actual diff also changes CI Node LTS and bumps a couple of development tool dependencies.

  • 2.0.1

    Release 2.0.1 is largely a repo maintenance update: improved documentation, the TypeScript build is switched to `strict` mode, and project metadata was moved under the `syntax-tree` GitHub org. The shipped runtime code (not just docs/config) also changed in ways that are not described in the release notes.

  • 2.0.0

    Release 2.0.0 introduces ESM support and adds JSDoc-based typing. The code diff shows a full module system migration plus build and test tooling changes, including generation of TypeScript declaration files.

    BreakingFeatures
  • 1.0.0

    Release 1.0.0 is published, but the provided release notes contain no descriptive content beyond an emoji, so no specific developer-facing changes can be identified. Based on the available information, there are no documented new features, fixes, breaking changes, security updates, or migration instructions to evaluate for upgrade impact.