Skip to content

Commit

Permalink
ci: update prepare release crates; regenerate the changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 6, 2024
1 parent 747500a commit 509ed2b
Show file tree
Hide file tree
Showing 16 changed files with 628 additions and 608 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/prepare_release_crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,32 @@ jobs:
- name: Run
id: run
run: |
VERSION=`cargo release-oxc update --release crates`
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
{
echo 'OUTPUT<<EOF'
cargo release-oxc update --release crates
echo EOF
} >> $GITHUB_OUTPUT
- name: Save Version
id: version
run: |
{
echo 'VERSION<<EOF'
echo '${{ steps.run.outputs.OUTPUT }}' | tail -n 1
echo EOF
} >> $GITHUB_OUTPUT
- name: Save Changelog
id: changelog
run: |
{
echo 'CHANGELOG<<EOF'
echo '${{ steps.run.outputs.OUTPUT }}' | head -n -1
echo EOF
} >> $GITHUB_OUTPUT
# update `Cargo.lock`
- run: cargo ck
- run: cargo check

- uses: peter-evans/create-pull-request@v6
with:
Expand All @@ -46,7 +67,7 @@ jobs:
author: Boshen <[email protected]>
branch: release/crates
branch-suffix: timestamp
title: Release crates v${{ steps.run.outputs.VERSION }}
body: Automated Release
title: Release crates v${{ steps.version.outputs.VERSION }}
body: Automated Release \n ${{ steps.changelog.outputs.CHANGELOG }}
assignees: Boshen
reviewers: Boshen
9 changes: 4 additions & 5 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ body = """
{% for commit in commits | filter(attribute="breaking", value=true) %}
- **BREAKING** {{ commit.scope }}: {{ commit.message | trim }}
{% endfor -%}
{% for group, commits in commits | group_by(attribute="group") %}
{% for group, commits in commits | sort(attribute="group") | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits | filter(attribute="breaking", value=false) | filter(attribute="scope") | sort(attribute="scope") %}
* {{commit.scope}}: {{ commit.message | trim }}
{%- endfor -%}
{%- for commit in commits | filter(attribute="breaking", value=false) %}
{%- if commit.scope -%}
{% else -%}
{%- if not commit.scope -%}
- {{ commit.message | trim }} |
{%- endif -%}
{%- endfor %}
Expand All @@ -46,10 +45,10 @@ filter_unconventional = true
split_commits = false
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^doc", group = "<!-- 3 -->Documentation" },
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^doc", group = "<!-- 3 -->Documentation" },
{ message = "^refactor", group = "<!-- 4 -->Refactor" },
{ message = "^style", group = "<!-- 5 -->Styling" },
{ message = "^test", group = "<!-- 6 -->Testing" },
Expand All @@ -61,7 +60,7 @@ filter_commits = true
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
sort_commits = "newest"

# https://git-cliff.org/docs/configuration/bump
[bump]
Expand Down
8 changes: 4 additions & 4 deletions crates/oxc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

## [0.5.0] - 2024-01-12

### Refactor

* formatter,linter,codegen: remove oxc_formatter (#1968)

### Features

* playground: visualize symbol (#1886)

### Refactor

* formatter,linter,codegen: remove oxc_formatter (#1968)

## [0.4.0] - 2023-12-08

### Refactor
Expand Down
142 changes: 71 additions & 71 deletions crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,23 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

## [0.13.2] - 2024-06-03

### Refactor
### Features

* ast: update scope attrs (#3494)
* ast: move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488)
* ast: rename function params (#3487)
* ast: remove defunct hashing of `Span` (#3486)
* linter: add `oxc/no-const-enum` rule (#3435)

### Bug Fixes

* ast: UsingDeclaration is not a typescript syntax (#3482)

### Features
### Refactor

* linter: add `oxc/no-const-enum` rule (#3435)
* ast: update scope attrs (#3494)
* ast: move scope from `TSModuleBlock` to `TSModuleDeclaration` (#3488)
* ast: rename function params (#3487)
* ast: remove defunct hashing of `Span` (#3486)

## [0.13.1] - 2024-05-22

### Refactor

* ast: fix clippy lint on nightly (#3346)
* ast: store `ScopeId` in AST nodes (#3302)
* parser: improve expression parsing (#3352)

### Bug Fixes

* linter/react: `rules_of_hooks` add support for property hooks/components. (#3300)- fix some nightly warnings |
Expand All @@ -38,15 +32,13 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

* ast: inline all `ASTBuilder` methods (#3295)

## [0.13.0] - 2024-05-14
### Refactor

### Bug Fixes
* ast: fix clippy lint on nightly (#3346)
* ast: store `ScopeId` in AST nodes (#3302)
* parser: improve expression parsing (#3352)

* ast: do not include `trailing_comma` in JSON AST (#3073)
* parser: correctly parse cls.fn<C> = x (#3208)
* traverse: set `ScopeFlags::Function` bit for class methods (#3277)
* traverse: create scopes for functions (#3273)
* traverse: create scope for function nested in class method (#3234)
## [0.13.0] - 2024-05-14

### Features

Expand All @@ -59,6 +51,18 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* transformer/react: enable jsx plugin when development is true (#3141)
* traverse: add scope flags to `TraverseCtx` (#3229)

### Bug Fixes

* ast: do not include `trailing_comma` in JSON AST (#3073)
* parser: correctly parse cls.fn<C> = x (#3208)
* traverse: set `ScopeFlags::Function` bit for class methods (#3277)
* traverse: create scopes for functions (#3273)
* traverse: create scope for function nested in class method (#3234)

### Documentation

* ast: document enum inheritance (#3192)

### Refactor

* ast: order AST type fields in visitation order (#3228)
Expand All @@ -70,11 +74,11 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* syntax: move number related functions to number module (#3130)
* transform: fix doc comments for methods generated by `inherit_variants!` macro (#3195)

### Documentation
## [0.12.5] - 2024-04-22

* ast: document enum inheritance (#3192)
### Features

## [0.12.5] - 2024-04-22
* ast: add `CatchParameter` node (#3049)

### Performance

Expand All @@ -83,10 +87,6 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* ast: box `ImportDeclarationSpecifier` enum variants (#3061)
* ast: reduce indirection in AST types (#3051)

### Features

* ast: add `CatchParameter` node (#3049)

### Refactor

* ast: implement same traits on all fieldless enums (#3031)
Expand All @@ -104,14 +104,14 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

## [0.12.3] - 2024-04-11

### Refactor

* ast: clean up the ts type visit methods

### Features

* oxc_ast: add missing ast visits for types (#2938)

### Refactor

* ast: clean up the ts type visit methods

## [0.12.1] - 2024-04-03

### Bug Fixes
Expand Down Expand Up @@ -166,6 +166,13 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

- **BREAKING** ast: align TSImportType with ESTree (#2578)

### Features

* ast: serialize `BindingPattern` to estree (#2610)
* ast: serialize identifiers to ESTree (#2521)
* ast: add `AssignmentTargetRest` (#2601)
* ast: add "abstract" type to `MethodDefinition` and `PropertyDefinition` (#2536)

### Bug Fixes

* ast: temporary fix tsify not generating some typings (#2611)
Expand All @@ -181,23 +188,8 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* parser: parse empty method declaration as TSEmptyBodyFunctionExpression (#2574)
* semantic: incorrect scope for switch statement (#2513)

### Features

* ast: serialize `BindingPattern` to estree (#2610)
* ast: serialize identifiers to ESTree (#2521)
* ast: add `AssignmentTargetRest` (#2601)
* ast: add "abstract" type to `MethodDefinition` and `PropertyDefinition` (#2536)

## [0.8.0] - 2024-02-26

### Refactor

* ast: remove `TSEnumBody` (#2509)
* ast: s/TSThisKeyword/TSThisType to align with estree
* ast: s/NumberLiteral/NumericLiteral to align with estree
* ast: s/ArrowExpression/ArrowFunctionExpression to align estree
* ast: update TSImportType parameter to argument (#2429)

### Features

* ast: update arrow_expression to arrow_function_expression (#2496)
Expand All @@ -212,18 +204,26 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

* prettier: semi colon after class property (#2387)

## [0.7.0] - 2024-02-09
### Refactor

### Bug Fixes
* ast: remove `TSEnumBody` (#2509)
* ast: s/TSThisKeyword/TSThisType to align with estree
* ast: s/NumberLiteral/NumericLiteral to align with estree
* ast: s/ArrowExpression/ArrowFunctionExpression to align estree
* ast: update TSImportType parameter to argument (#2429)

* codegen: format new expession + import expression with the correct parentheses (#2346)
* linter: fix no_dupe_keys false postive on similar key names (#2291)
## [0.7.0] - 2024-02-09

### Features

* ast: enter AstKind::ExportDefaultDeclaration, AstKind::ExportNamedDeclaration and AstKind::ExportAllDeclaration (#2317)
* semantic: report parameter related errors for setter/getter (#2316)

### Bug Fixes

* codegen: format new expession + import expression with the correct parentheses (#2346)
* linter: fix no_dupe_keys false postive on similar key names (#2291)

### Refactor

* ast: fix BigInt memory leak by removing it (#2293)
Expand All @@ -249,6 +249,11 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* transformer/typescript: support transform namespace (#2075)
* transformer/typescript: remove type-related exports (#2056)

### Bug Fixes

* ast: AcessorProperty is missing decorators (#2176)
* parser: fix crash on TSTemplateLiteralType in function return position (#2089)

### Refactor

* ast: improve simple_assignment_target_identifier and simple_assignment_target_member_expression method (#2153)
Expand All @@ -259,17 +264,8 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* semantic: add binder for FormalParameters and RestElement, replacing the binder for FormalParameters (#2114)
* transformer/decorators: optimizing code with ast.private_field (#2249)

### Bug Fixes

* ast: AcessorProperty is missing decorators (#2176)
* parser: fix crash on TSTemplateLiteralType in function return position (#2089)

## [0.5.0] - 2024-01-12

### Bug Fixes

* ast: implement `GetSpan` for `JSXElement` (#1861)- default visitor should visit prop init at `visit_object_property` (#2000) |

### Features

* ast: visit TSModuleReference (#1998)
Expand All @@ -280,6 +276,10 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* prettier: print CallExpression arguments correctly (#1631)
* semantic: add ClassTable (#1793)

### Bug Fixes

* ast: implement `GetSpan` for `JSXElement` (#1861)- default visitor should visit prop init at `visit_object_property` (#2000) |

### Refactor

* ast: introduce `ThisParameter` (#1728)
Expand Down Expand Up @@ -309,17 +309,17 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe
* transform: TypeScript Enum (#1173)
* transformer: Start on `function_name` transform. (#1510)- eslint-plugin-unicorn (recommended) prefer-node-protocol (#1618) |

### Bug Fixes

* ast: remove debug_assertions from `debug_name`
* parser: Disallow ReservedWord in NamedExports (#1230)

### Refactor

* ast: VariableDeclarationKind::to_string -> as_str (#1321)
* prettier: clean up object::print_object_properties (#1573)
* rust: move to workspace lint table (#1444)

### Bug Fixes

* ast: remove debug_assertions from `debug_name`
* parser: Disallow ReservedWord in NamedExports (#1230)

## [0.3.0] - 2023-11-06

### Features
Expand Down Expand Up @@ -364,22 +364,22 @@ and this project does not adhere to [Semantic Versioning](https://semver.org/spe

## [0.2.0] - 2023-09-14

### Performance

* linter: reduce mallocs (#654)
* parser: lazily build trivia map instead of build in-place (#903)

### Features

* ast: Add to ChainExpression and ExpressionArrayElement to ASTKind (#785)
* ast: add `SymbolId` and `ReferenceId` (#755)
* ast: AstKind::debug_name() (#665)

### Refactor
### Performance

* ast: use `atom` for `Directive` and `Hashbang` (#701)- improve code coverage in various places (#721) |
* linter: reduce mallocs (#654)
* parser: lazily build trivia map instead of build in-place (#903)

### Documentation

* ast: document why Directive.directive is a raw string

### Refactor

* ast: use `atom` for `Directive` and `Hashbang` (#701)- improve code coverage in various places (#721) |

Loading

0 comments on commit 509ed2b

Please sign in to comment.