Skip to content

Commit

Permalink
Merge branch 'main' into feat_linter_for_direction
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac authored Aug 1, 2024
2 parents 248327a + 70b8cfa commit 5e545ca
Show file tree
Hide file tree
Showing 38 changed files with 392 additions and 92 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,26 @@ doc_lazy_continuation = "allow" # FIXME

[workspace.dependencies]
# publish = true
oxc = { version = "0.22.1", path = "crates/oxc" }
oxc_allocator = { version = "0.22.1", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.22.1", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.22.1", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.22.1", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.22.1", path = "crates/oxc_index" }
oxc_minifier = { version = "0.22.1", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.22.1", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.22.1", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.22.1", path = "crates/oxc_semantic" }
oxc_span = { version = "0.22.1", path = "crates/oxc_span" }
oxc_syntax = { version = "0.22.1", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.22.1", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.22.1", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.22.1", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.22.1", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.22.1", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.22.1", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.22.1", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.22.1", path = "napi/transform" }
oxc = { version = "0.23.0", path = "crates/oxc" }
oxc_allocator = { version = "0.23.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.23.0", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.23.0", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.23.0", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.23.0", path = "crates/oxc_index" }
oxc_minifier = { version = "0.23.0", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.23.0", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.23.0", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.23.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.23.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.23.0", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.23.0", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.23.0", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.23.0", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.23.0", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.23.0", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.23.0", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.23.0", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.23.0", path = "napi/transform" }

# publish = false
oxc_macros = { path = "crates/oxc_macros" }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/oxc_allocator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.

## [0.23.0] - 2024-08-01

### Performance

- 4c6d19d allocator: Use capacity hint (#4584) (Luca Bruno)

## [0.22.0] - 2024-07-23

### Refactor
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_allocator"
version = "0.22.1"
version = "0.23.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
21 changes: 21 additions & 0 deletions crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.

## [0.23.0] - 2024-08-01

### Features

- 35654e6 codegen: Align operator precedence with esbuild (#4509) (Boshen)
- b952942 linter: Add eslint/no-unused-vars (⭐ attempt 3.2) (#4445) (DonIsaac)
- 85e8418 linter: Add react/jsx-curly-brace-presence (#3949) (Don Isaac)

### Bug Fixes

- d5c4b19 parser: Fix enum member parsing (#4543) (DonIsaac)

### Performance

- c9c38a1 parser: Support peeking over bytes (#4304) (lucab)

### Documentation

- 0914e47 ast: Add doc comments to literal nodes (#4551) (DonIsaac)
- c6a11be ast: Auto-generate doc comments for AstBuilder methods (#4471) (DonIsaac)

## [0.22.1] - 2024-07-27

### Features
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_ast"
version = "0.22.1"
version = "0.23.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_ast_macros"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_cfg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_cfg"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
23 changes: 23 additions & 0 deletions crates/oxc_codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.

## [0.23.0] - 2024-08-01

- 27fd062 sourcemap: [**BREAKING**] Avoid passing `Result`s (#4541) (overlookmotel)

### Features

- a558492 codegen: Implement `BinaryExpressionVisitor` (#4548) (Boshen)
- 7446e98 codegen: Align more esbuild implementations (#4510) (Boshen)
- 35654e6 codegen: Align operator precedence with esbuild (#4509) (Boshen)

### Bug Fixes

- b58ed80 codegen: Enable more test cases (#4585) (Boshen)
- 6a94e3f codegen: Fixes for esbuild test cases (#4503) (Boshen)
- d5c4b19 parser: Fix enum member parsing (#4543) (DonIsaac)

### Performance

- 7585e16 linter: Remove allocations for string comparisons (#4570) (DonIsaac)

### Refactor


## [0.22.0] - 2024-07-23

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_codegen"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_diagnostics"
version = "0.22.1"
version = "0.23.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_index"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/oxc_isolated_declarations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.

## [0.23.0] - 2024-08-01

### Bug Fixes

- d5c4b19 parser: Fix enum member parsing (#4543) (DonIsaac)

## [0.22.0] - 2024-07-23

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_isolated_declarations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_isolated_declarations"
version = "0.22.1"
version = "0.23.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/eslint/no_obj_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ fn resolve_global_binding<'a, 'b: 'a>(
Some(Expression::Identifier(parent_ident))
if parent_ident.name != ident.name =>
{
resolve_global_binding(parent_ident, decl_scope, ctx)
return resolve_global_binding(parent_ident, decl_scope, ctx)
}
// handles "let a = globalThis.JSON; let b = a; a();"
Some(parent_expr) if parent_expr.is_member_expression() => {
global_this_member(parent_expr.to_member_expression())
return global_this_member(parent_expr.to_member_expression())
}
_ => None,
}
Expand Down
Loading

0 comments on commit 5e545ca

Please sign in to comment.