Skip to content

Comments

feat(ast)!: rename TSImportType argument field to source#16110

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-25-feat_ast_rename_tsimporttype_argument_field_to_source_
Nov 25, 2025
Merged

feat(ast)!: rename TSImportType argument field to source#16110
graphite-app[bot] merged 1 commit intomainfrom
11-25-feat_ast_rename_tsimporttype_argument_field_to_source_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 25, 2025

Rename argument field of TSImportType to source. This matches TS-ESTree and also aligns with ImportExpression.

@github-actions github-actions bot added A-ast Area - AST A-codegen Area - Code Generation A-formatter Area - Formatter labels Nov 25, 2025
@github-actions github-actions bot added the C-enhancement Category - New feature or request label Nov 25, 2025
Copy link
Member Author

overlookmotel commented Nov 25, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review November 25, 2025 14:06
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 25, 2025

CodSpeed Performance Report

Merging #16110 will not alter performance

Comparing 11-25-feat_ast_rename_tsimporttype_argument_field_to_source_ (1d13bfc) with main (91eb3f2)

Summary

✅ 42 untouched
⏩ 3 skipped1

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@overlookmotel
Copy link
Member Author

@Dunqing and @camc314 I've assigned you both - could whoever gets to it first please merge? (assuming you're OK with the change)

@graphite-app graphite-app bot changed the base branch from 11-25-fix_ast_estree_convert_tsimporttype_argument_field_to_literal_ to graphite-base/16110 November 25, 2025 14:11
@graphite-app graphite-app bot force-pushed the graphite-base/16110 branch from d4f2611 to 1d70bab Compare November 25, 2025 14:16
@graphite-app graphite-app bot force-pushed the 11-25-feat_ast_rename_tsimporttype_argument_field_to_source_ branch from 35d0ee4 to 6c45b06 Compare November 25, 2025 14:16
@github-actions github-actions bot added A-linter Area - Linter A-parser Area - Parser A-cli Area - CLI A-linter-plugins Area - Linter JS plugins labels Nov 25, 2025
@graphite-app graphite-app bot changed the base branch from graphite-base/16110 to main November 25, 2025 14:17
@graphite-app graphite-app bot force-pushed the 11-25-feat_ast_rename_tsimporttype_argument_field_to_source_ branch 2 times, most recently from 0fc3fd1 to 1d13bfc Compare November 25, 2025 14:24
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
Copy link
Contributor

camc314 commented Nov 25, 2025

Merge activity

Rename `argument` field of `TSImportType` to `source`. This matches TS-ESTree and also aligns with `ImportExpression`.
@graphite-app graphite-app bot force-pushed the 11-25-feat_ast_rename_tsimporttype_argument_field_to_source_ branch from 1d13bfc to 43156ae Compare November 25, 2025 14:47
@graphite-app graphite-app bot merged commit 43156ae into main Nov 25, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 11-25-feat_ast_rename_tsimporttype_argument_field_to_source_ branch November 25, 2025 14:53
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
leaysgur pushed a commit that referenced this pull request Nov 26, 2025
Rename `argument` field of `TSImportType` to `source`. This matches TS-ESTree and also aligns with `ImportExpression`.
overlookmotel pushed a commit that referenced this pull request Dec 1, 2025
### 💥 BREAKING CHANGES

- 74cf572 ast: [**BREAKING**] Make `source` field of `TSImportType` a
`StringLiteral` (#16114) (copilot-swe-agent)
- 43156ae ast: [**BREAKING**] Rename `TSImportType` `argument` field to
`source` (#16110) (overlookmotel)
- 934d873 napi: [**BREAKING**] Drop `armv7-unknown-linux-musleabihf`
support (#16105) (Boshen)

### 🚀 Features

- 669afe0 ast: Add `Expression::is_jsx` method (#16154) (Dunqing)
- 17a8caa parser: Add diagnostic for JSX identifiers with hyphens
(#16133) (camchenry)
- 0549ae5 parser: Add diagnostic for expected ident after optional chain
(#16132) (camchenry)
- db839ae parser: Improve diagnostic for unexpected optional
declarations (#16131) (camchenry)
- bab4bc8 napi/parser: Add type annotations to parse-raw-worker test
(#15998) (camc314)

### 🐛 Bug Fixes

- 35ed36c traverse: Fix panic when truncating non-ASCII variable names
(#16265) (peter)
- 9149a26 linter/plugins, napi/parser: Deep freeze visitor keys (#16293)
(overlookmotel)
- 6b54dab minifier: Incorrect non-null object condition simplification
with `&&` and `||` (#16161) (sapphi-red)
- 9cc20a1 minifier: Avoid merging side effectful expressions to next
assignment statement if the side effect may change the left hand side
reference (#16165) (sapphi-red)
- 91eb3f2 ast/estree: Convert `TSImportType` `argument` field to
`Literal` (#16109) (overlookmotel)
- 1199cee parser: Reject invalid modifiers on parameter properties with
binding patterns (#16083) (camc314)
- f376325 traverse: Remove `console.log` from build script (#16049)
(overlookmotel)

### ⚡ Performance

- 82d784f lexer: Reduce bounds checks in `Lexer::get_string` (#16317)
(overlookmotel)
- cc2f352 span: Add `#[inline]` to `Atom` methods (#16311)
(overlookmotel)
- ffca070 span: Add `#[repr(transparent)]` to `Atom` (#16310)
(overlookmotel)
- 02bdf90 linter/plugins, napi/parser: Reuse arrays in visitor keys
(#16294) (overlookmotel)

### 📚 Documentation

- 891e0b4 parser: Add note about falling back to parse TSType in
TSImportType (#16119) (camc314)

Co-authored-by: Boshen <[email protected]>
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…roject#16110)

Rename `argument` field of `TSImportType` to `source`. This matches TS-ESTree and also aligns with `ImportExpression`.
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
### 💥 BREAKING CHANGES

- 74cf572 ast: [**BREAKING**] Make `source` field of `TSImportType` a
`StringLiteral` (oxc-project#16114) (copilot-swe-agent)
- 43156ae ast: [**BREAKING**] Rename `TSImportType` `argument` field to
`source` (oxc-project#16110) (overlookmotel)
- 934d873 napi: [**BREAKING**] Drop `armv7-unknown-linux-musleabihf`
support (oxc-project#16105) (Boshen)

### 🚀 Features

- 669afe0 ast: Add `Expression::is_jsx` method (oxc-project#16154) (Dunqing)
- 17a8caa parser: Add diagnostic for JSX identifiers with hyphens
(oxc-project#16133) (camchenry)
- 0549ae5 parser: Add diagnostic for expected ident after optional chain
(oxc-project#16132) (camchenry)
- db839ae parser: Improve diagnostic for unexpected optional
declarations (oxc-project#16131) (camchenry)
- bab4bc8 napi/parser: Add type annotations to parse-raw-worker test
(oxc-project#15998) (camc314)

### 🐛 Bug Fixes

- 35ed36c traverse: Fix panic when truncating non-ASCII variable names
(oxc-project#16265) (peter)
- 9149a26 linter/plugins, napi/parser: Deep freeze visitor keys (oxc-project#16293)
(overlookmotel)
- 6b54dab minifier: Incorrect non-null object condition simplification
with `&&` and `||` (oxc-project#16161) (sapphi-red)
- 9cc20a1 minifier: Avoid merging side effectful expressions to next
assignment statement if the side effect may change the left hand side
reference (oxc-project#16165) (sapphi-red)
- 91eb3f2 ast/estree: Convert `TSImportType` `argument` field to
`Literal` (oxc-project#16109) (overlookmotel)
- 1199cee parser: Reject invalid modifiers on parameter properties with
binding patterns (oxc-project#16083) (camc314)
- f376325 traverse: Remove `console.log` from build script (oxc-project#16049)
(overlookmotel)

### ⚡ Performance

- 82d784f lexer: Reduce bounds checks in `Lexer::get_string` (oxc-project#16317)
(overlookmotel)
- cc2f352 span: Add `#[inline]` to `Atom` methods (oxc-project#16311)
(overlookmotel)
- ffca070 span: Add `#[repr(transparent)]` to `Atom` (oxc-project#16310)
(overlookmotel)
- 02bdf90 linter/plugins, napi/parser: Reuse arrays in visitor keys
(oxc-project#16294) (overlookmotel)

### 📚 Documentation

- 891e0b4 parser: Add note about falling back to parse TSType in
TSImportType (oxc-project#16119) (camc314)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-cli Area - CLI A-codegen Area - Code Generation A-formatter Area - Formatter A-linter Area - Linter A-linter-plugins Area - Linter JS plugins A-parser Area - Parser C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants