Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[0.26.0] - 2024-09-03
1aa49af ast: [BREAKING] Remove
JSXMemberExpressionObject::Identifier
variant (feat(ast)!: removeJSXMemberExpressionObject::Identifier
variant #5358) (Dunqing)01cc2ce semantic: [BREAKING] Add
ScopeTree:get_child_ids
API behind a runtime flag (feat(semantic)!: addScopeTree:get_child_ids
API behind a runtime flag #5403) (Boshen)b1d0075 napi/transform: [BREAKING] Align output API
sourceText
->code
with babel (feat(napi/transform)!: align output APIsourceText
->code
with babel #5398) (Boshen)32f7300 ast: [BREAKING] Add
JSXElementName::IdentifierReference
andJSXMemberExpressionObject::IdentifierReference
(feat(ast)!: addJSXElementName::IdentifierReference
andJSXMemberExpressionObject::IdentifierReference
#5223) (Dunqing)23e8456 traverse: [BREAKING]
TraverseCtx::ancestor
with level 0 = equivalent toparent
(fix(traverse)!:TraverseCtx::ancestor
with level 0 = equivalent toparent
#5294) (overlookmotel)582ce9e traverse: [BREAKING]
TraverseCtx::ancestor
returnAncestor::None
if out of bounds (refactor(traverse)!:TraverseCtx::ancestor
returnAncestor::None
if out of bounds #5286) (overlookmotel)234a24c ast: [BREAKING] Merge
UsingDeclaration
intoVariableDeclaration
(fix(ast)!: mergeUsingDeclaration
intoVariableDeclaration
#5270) (Kevin Deng 三咲智子)c100826 semantic: [BREAKING] Always create a scope for
for
statements (refactor(semantic)!: always create a scope forfor
statements #5110) (overlookmotel)d304d6f semantic: [BREAKING] Always create a scope for
CatchClause
(refactor(semantic)!: always create a scope forCatchClause
#5109) (overlookmotel)Features
Function::name()
(feat(ast): addFunction::name()
#5361) (DonIsaac)accessibility
field toAccessorProperty
(feat(ast): addaccessibility
field toAccessorProperty
#5290) (Dunqing)definite
flag toAccessorProperty
node (feat(ast,parser): adddefinite
flag toAccessorProperty
node #5182) (DonIsaac)TSTypeAnnotations
onAccessorProperty
(feat(ast,parser): parseTSTypeAnnotations
onAccessorProperty
#5179) (DonIsaac)AccessorProperty
(feat(codegen): print missing fields forAccessorProperty
#5291) (Dunqing)oxc/no-async-endpoint-handlers
(feat(linter): addoxc/no-async-endpoint-handlers
#5364) (DonIsaac)ScopeTree::delete_root_unresolved_reference
(feat(semantic): addScopeTree::delete_root_unresolved_reference
#5305) (overlookmotel)CompactStr::to_compact_string
method (feat(span): addCompactStr::to_compact_string
method #5385) (Boshen)Display
andError
forUnknownExtension
(feat(span/source-type): implDisplay
andError
forUnknownExtension
#5240) (DonIsaac)Targets::from_query
method (feat(transformer): supportTargets::from_query
method #5336) (Dunqing)Targets
public (feat(transformer): makeTargets
public #5335) (Dunqing)TransformOptions::from_preset_env
API (feat(transformer): supportTransformOptions::from_preset_env
API #5323) (Dunqing)object-spread
plugin (feat(transformer): addobject-spread
plugin #3133) (magic-akari)this
inside blocks doesn't match Babel (feat(transformer/arrow-functions): the output that usesthis
inside blocks doesn't match Babel #5188) (Dunqing)rewrite_import_extensions
option (feat(transformer/typescript): supportrewrite_import_extensions
option #5399) (Dunqing)Bug Fixes
TSParenthesizedType
with camelCase (fix(ast): serializeTSParenthesizedType
with camelCase #5199) (Kevin Deng 三咲智子)export @decorator declare abstract class Foo
correctly (fix(codegen): printexport @decorator declare abstract class Foo
correctly #5303) (Boshen)--minify
(Boshen)_
or$
asIdentifierReference
s (fix(parser): treat JSX element tags starting with_
or$
asIdentifierReference
s #5343) (overlookmotel)@flow
with recoverable errors as well" (fix(parser): Revert "check for@flow
with recoverable errors as well" #5297) (overlookmotel)@flow
with recoverable errors as well (Boshen)UpdateExpression
inArrowFunctionExpression
does not as read reference (fix(semantic): implicit returnUpdateExpression
inArrowFunctionExpression
does not as read reference #5161) (Dunqing).cjs
and.cts
files asModuleKind::Script
(fix(span/source-type): consider.cjs
and.cts
files asModuleKind::Script
#5239) (DonIsaac)ArrowfunctionExpression
's expression is true but has more than one body statement (fix(transformer):ArrowfunctionExpression
's expression is true but has more than one body statement #5366) (Dunqing)unused
binding is not in the correct scope (fix(transformer-optional-catch-binding): theunused
binding is not in the correct scope #5066) (Dunqing)unreachable
when<this.foo>
is inside an arrow function (fix(transformer/arrow-functions): reachesunreachable
when<this.foo>
is inside an arrow function #5356) (Dunqing)SymbolFlags::ArrowFunction
(fix(transformer/arrow-functions): removeSymbolFlags::ArrowFunction
#5190) (Dunqing)_this
(fix(transformer/arrow-functions): correct scope for_this
#5189) (Dunqing)AccessorProperty
(fix(transformer/typescript): remove accessibility fromAccessorProperty
#5292) (Dunqing)insert_scope_below
update child scopes records (fix(traverse):insert_scope_below
update child scopes records #5409) (overlookmotel)ChildScopeCollector
(fix(traverse): add missing visitors toChildScopeCollector
#5118) (overlookmotel)Performance
JSXIdentifier::is_reference
(perf(ast): optimizeJSXIdentifier::is_reference
#5344) (overlookmotel)Codegen::print_list
(perf(codegen): shortenCodegen::print_list
#5221) (overlookmotel)print_list
(perf(codegen): slightly fasterprint_list
#5192) (Boshen)Documentation
Targets::get_targets
(docs(transformer): add documentation forTargets::get_targets
#5337) (Dunqing)Refactor
AstBuilder::move_assignment_target
(refactor(ast): reduce allocations inAstBuilder::move_assignment_target
#5367) (overlookmotel)TSThisParameter
(refactor(ast): boxTSThisParameter
#5325) (overlookmotel)IdentifierReference::new_with_reference_id
(refactor(ast): renameIdentifierReference::new_with_reference_id
#5157) (overlookmotel)#[non_exhaustive]
attr fromAstBuilder
(refactor(ast): remove#[non_exhaustive]
attr fromAstBuilder
#5130) (overlookmotel)JSXIdentifier
conversion code into parser (refactor(parser): moveJSXIdentifier
conversion code into parser #5345) (overlookmotel)byte_search!
macro usage (refactor(parser): improve example forbyte_search!
macro usage #5234) (overlookmotel)build_module_record
to accept &Path instead of PathBuf (Boshen)SemanticData
toScoping
(refactor(semantic): transform checker: renameSemanticData
toScoping
#5261) (overlookmotel)ref
syntax (refactor(semantic): replaceref
syntax #5253) (overlookmotel)ScopeTree::child_ids
(refactor(semantic): removeScopeTree::child_ids
#5232) (Boshen)SourceType
factoriesconst
(refactor(span/source-type): makeSourceType
factoriesconst
#5241) (DonIsaac)object_rest_spread
mod (refactor(transformer/object-rest-spread): move plugin-relates files toobject_rest_spread
mod #5320) (Dunqing)CalculateSignatureKey
implementation from refresh (refactor(transformer/react): removeCalculateSignatureKey
implementation from refresh #5289) (Dunqing)Ancestor
an owned type (refactor(traverse): makeAncestor
an owned type #5269) (overlookmotel)ChildScopeCollector
(refactor(traverse): codegenChildScopeCollector
#5119) (overlookmotel)#[scope(if(...))]
attr (refactor(traverse): remove support for#[scope(if(...))]
attr #5114) (overlookmotel)ChildScopeCollector
(refactor(traverse): refactorChildScopeCollector
#5112) (overlookmotel)ChildScopeCollector
(refactor(traverse): remove unnecessary branch inChildScopeCollector
#5111) (overlookmotel)source_type
for parser, replace class options with plain object (refactor(wasm): addsource_type
for parser, replace class options with plain object #5217) (Kevin Deng 三咲智子)Testing
JSXIdentifierReference
-related tests (test(semantic): addJSXIdentifierReference
-related tests #5224) (Dunqing)