Skip to content

Commit

Permalink
Merge branch 'feat/vitest-no-import-node-test' of github.com:eryue022…
Browse files Browse the repository at this point in the history
…0/oxc into feat/vitest-no-import-node-test

* 'feat/vitest-no-import-node-test' of github.com:eryue0220/oxc:
  Release crates v0.22.0 (oxc-project#4434)
  feat(syntax): add boolean check methods for typescript-related symbol flags (oxc-project#4426)
  refactor(allocator): make `Box::new_in` code more explicit (oxc-project#4432)
  refactor(allocator): rename fn params for `Box::new_in` (oxc-project#4431)
  ci: pass secret to reusable workflow
  • Loading branch information
eryue0220 committed Jul 24, 2024
2 parents f9404e0 + 260f2ce commit 227d81c
Show file tree
Hide file tree
Showing 45 changed files with 265 additions and 65 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prepare_release_crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
uses: ./.github/workflows/reusable_prepare_release.yml
with:
name: crates
secrets:
OXC_BOT_PAT : ${{ secrets.OXC_BOT_PAT }}
2 changes: 2 additions & 0 deletions .github/workflows/prepare_release_oxlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: ./.github/workflows/reusable_prepare_release.yml
with:
name: oxlint
secrets:
OXC_BOT_PAT : ${{ secrets.OXC_BOT_PAT }}

ecosystem-ci:
needs: prepare
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: true
type: string
description: "The name defined in oxc_release.toml"
secrets:
OXC_BOT_PAT :
required: true
outputs:
pull-request-number:
value: ${{ jobs.run.outputs.pull-request-number }}
Expand Down
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 @@ -73,26 +73,26 @@ cargo_common_metadata = "allow" # TODO: fix this

[workspace.dependencies]
# publish = true
oxc = { version = "0.21.0", path = "crates/oxc" }
oxc_allocator = { version = "0.21.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.21.0", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.21.0", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.21.0", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.21.0", path = "crates/oxc_index" }
oxc_minifier = { version = "0.21.0", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.21.0", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.21.0", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.21.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.21.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.21.0", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.21.0", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.21.0", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.21.0", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.21.0", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.21.0", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.21.0", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.21.0", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.21.0", path = "napi/transform" }
oxc = { version = "0.22.0", path = "crates/oxc" }
oxc_allocator = { version = "0.22.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.22.0", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.22.0", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.22.0", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.22.0", path = "crates/oxc_index" }
oxc_minifier = { version = "0.22.0", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.22.0", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.22.0", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.22.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.22.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.22.0", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.22.0", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.22.0", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.22.0", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.22.0", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.22.0", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.22.0", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.22.0", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.22.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.21.0"
version = "0.22.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.22.0] - 2024-07-23

### Refactor

- 504daed allocator: Rename fn params for `Box::new_in` (#4431) (overlookmotel)

## [0.17.2] - 2024-07-08

### Features
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.21.0"
version = "0.22.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_allocator/src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ impl<'alloc, T> Box<'alloc, T> {
}

impl<'alloc, T> Box<'alloc, T> {
pub fn new_in(x: T, alloc: &Allocator) -> Self {
Self(alloc.alloc(x).into(), PhantomData)
pub fn new_in(value: T, allocator: &Allocator) -> Self {
Self(NonNull::from(allocator.alloc(value)), PhantomData)
}

/// Create a fake `Box` with a dangling pointer.
Expand Down
25 changes: 25 additions & 0 deletions crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ 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.22.0] - 2024-07-23

- f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing)

### Features

- d345b84 ast: Add `#[ast]` attribute to non-visited AST types. (#4309) (rzvxa)
- 3c0c709 linter: Add typescript-eslint/no-extraneous-class (#4357) (Jaden Rodriguez)
- 68efcd4 linter/react-perf: Handle new objects and arrays in prop assignment patterns (#4396) (DonIsaac)

### Bug Fixes

- aece1df ast: Visit `Program`s `hashbang` field first (#4368) (overlookmotel)

### Performance
- a207923 Replace some CompactStr usages with Cows (#4377) (DonIsaac)

### Refactor

- d213773 ast: Replace serde rename "lowercase" with "camelCase" (#4376) (overlookmotel)
- abfccbd ast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel)
- 5f1c7ec ast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa)
- 59aea73 ast: Scope is created only if CatchClause has param (#4346) (Dunqing)
- 7a3e925 ast_codegen: Better visit marker parsing. (#4371) (rzvxa)

## [0.21.0] - 2024-07-18

### 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.21.0"
version = "0.22.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
7 changes: 7 additions & 0 deletions crates/oxc_ast_macros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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.22.0] - 2024-07-23

### Refactor

- abfccbd ast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel)
- 5f1c7ec ast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa)

## [0.17.0] - 2024-07-05

### Features
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.21.0"
version = "0.22.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.21.0"
version = "0.22.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
8 changes: 8 additions & 0 deletions crates/oxc_codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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.22.0] - 2024-07-23

### Bug Fixes

- 44a10c4 codegen: Object shorthand with parens `({x: (x)})` -> `({ x })` (#4391) (Boshen)
- 3d88f20 codegen: Print shorthand for all `{ x }` variants (#4374) (Boshen)
- e624dff codegen,mangler: Do not print shorthand for `ObjectProperty` (#4350) (Boshen)

## [0.21.0] - 2024-07-18

### Features
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.21.0"
version = "0.22.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
Loading

0 comments on commit 227d81c

Please sign in to comment.