Skip to content

refactor(estree-ast-utils)!: remove dependency to VariableTracer#366

Merged
fraxken merged 1 commit intomasterfrom
utils-remove-tracer
Jun 30, 2025
Merged

refactor(estree-ast-utils)!: remove dependency to VariableTracer#366
fraxken merged 1 commit intomasterfrom
utils-remove-tracer

Conversation

@fraxken
Copy link
Member

@fraxken fraxken commented Jun 30, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2025

🦋 Changeset detected

Latest commit: 92fb263

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@nodesecure/estree-ast-utils Major
@nodesecure/tracer Major
@nodesecure/js-x-ray Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the AST utilities by removing the dependency on VariableTracer and replacing it with a unified DefaultOptions interface using an externalIdentifierLookup callback. Key changes include:

  • Replacing tracer-based lookups with an externalIdentifierLookup function in several utility functions.
  • Removing the VariableTracer dependency from estree-ast-utils and updating related tests.
  • Updating documentation and configuration files to reflect these refactors.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
workspaces/tracer/src/VariableTracer.ts Updated to use externalIdentifierLookup for processing call expressions and member expressions.
workspaces/js-x-ray/src/probes/isSyncIO.ts Simplified moduleName extraction with a local variable.
workspaces/estree-ast-utils/* Replaced tracer usage with DefaultOptions and externalIdentifierLookup throughout source and test files.
workspaces/estree-ast-utils/README.md Updated documentation to reflect the new API options and refactor changes.
eslint.config.mjs Added additional ignore patterns.
.changeset/legal-lands-crash.md Documented version bumps and dependency refactors.
Comments suppressed due to low confidence (1)

workspaces/estree-ast-utils/README.md:78

  • The documentation heading appears to be mislabelled; it presents 'extractLogicalExpression' in a section that seems intended for getCallExpressionIdentifier. Please verify the function each section describes and adjust the headings accordingly.
<summary>extractLogicalExpression(node: ESTree.Node): IterableIterator< { operator: string; node: ESTree.Expression; } ></summary>

@fraxken fraxken merged commit cf2b5eb into master Jun 30, 2025
6 checks passed
@fraxken fraxken deleted the utils-remove-tracer branch June 30, 2025 20:20
@github-actions github-actions bot mentioned this pull request Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants