diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 441c223dd050b..c1841073c1add 100644 --- a/.github/workflows/prepare_release_crates.yml +++ b/.github/workflows/prepare_release_crates.yml @@ -7,10 +7,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -permissions: - pull-requests: write - contents: write - jobs: prepare_release: name: Prepare Release Crates diff --git a/.github/workflows/prepare_release_oxlint.yml b/.github/workflows/prepare_release_oxlint.yml index af53afe8ae9ac..13910c152c0f6 100644 --- a/.github/workflows/prepare_release_oxlint.yml +++ b/.github/workflows/prepare_release_oxlint.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - prepare-release-oxlint + - trigger-other-workflow concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,10 +13,48 @@ concurrency: permissions: pull-requests: write contents: write + actions: write jobs: - prepare_release: + prepare: name: Prepare Release Oxlint uses: ./.github/workflows/reusable_prepare_release.yml with: name: oxlint + + ecosystem-ci: + needs: prepare + name: Trigger Ecosystem CI + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@v1 + + - uses: peter-evans/create-or-update-comment@v4 + id: comment + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ needs.prepare.outputs.pull-request-number }} + body: Triggering Ecosystem CI https://github.com/oxc-project/oxlint-ecosystem-ci/actions/workflows/ecosystem-ci.yml + + - uses: benc-uk/workflow-dispatch@v1 + with: + repo: oxc-project/oxlint-ecosystem-ci + workflow: ecosystem-ci.yml + token: ${{ secrets.PAT }} + ref: main + inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "comment-id": "${{ steps.comment.outputs.comment-id }}" }' + + website: + needs: prepare + name: Update oxc.rs + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@v1 + + - uses: benc-uk/workflow-dispatch@v1 + with: + repo: oxc-project/website + workflow: oxc-project/oxc-project.github.io + token: ${{ secrets.PAT }} + ref: main + inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "version": ${{ needs.prepare.outputs.version }} }' diff --git a/.github/workflows/reusable_prepare_release.yml b/.github/workflows/reusable_prepare_release.yml index a8b1b2329e23c..a3ac682b10003 100644 --- a/.github/workflows/reusable_prepare_release.yml +++ b/.github/workflows/reusable_prepare_release.yml @@ -7,15 +7,28 @@ on: required: true type: string description: "The name defined in oxc_release.toml" + outputs: + pull-request-number: + value: ${{ jobs.run.outputs.pull-request-number }} + version: + value: ${{ jobs.run.outputs.version }} env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-D warnings" +permissions: + pull-requests: write + contents: write + actions: write + jobs: run: name: Prepare Release Crates runs-on: ubuntu-latest + outputs: + pull-request-number: ${{ steps.pr.outputs.pull-request-number }} + version: ${{ steps.version.outputs.VERSION }} steps: - uses: actions/checkout@v4 with: @@ -59,6 +72,7 @@ jobs: - run: cargo check - uses: peter-evans/create-pull-request@v6 + id: pr with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Release ${{ inputs.name }} diff --git a/Cargo.lock b/Cargo.lock index efa39cdc3b63e..ce59dd63828d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1449,7 +1449,7 @@ dependencies = [ [[package]] name = "oxc_linter" -version = "0.0.0" +version = "0.4.3" dependencies = [ "convert_case", "dashmap", @@ -1773,7 +1773,7 @@ dependencies = [ [[package]] name = "oxlint" -version = "0.0.0" +version = "0.4.3" dependencies = [ "bpaf", "glob", diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index 2ed7063584de5..0460bfe2578c4 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxlint" -version = "0.0.0" +version = "0.4.3" publish = false authors.workspace = true description.workspace = true diff --git a/crates/oxc_linter/CHANGELOG.md b/crates/oxc_linter/CHANGELOG.md index 79663da54d82b..e80690f5c79b9 100644 --- a/crates/oxc_linter/CHANGELOG.md +++ b/crates/oxc_linter/CHANGELOG.md @@ -4,6 +4,23 @@ 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.4.3] - 2024-06-06 + +### Features + +* linter: add fixer for no-useless-fallback-in-spread rule (#3544) +* linter: add fixer for no-single-promise-in-promise-methods (#3531) +* linter: eslint-plugin-jest/no-large-snapshot (#3436) +* linter: eslint/no-constructor-return (#3321) +* linter/jsdoc: Implement require-returns-type rule (#3458) +* linter/tree-shaking: support options (#3504) +* oxc_codegen: preserve annotate comment (#3465) + +### Bug Fixes + +* linter/eslint: fix `require-await` false positives in `ForOfStatement`. (#3457) +* parser: should parser error when function declaration has no name (#3461) + ## [0.4.2] - 2024-05-28 ### Features diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index 3e6a46bc6b69e..41e6c9e8b0c75 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_linter" -version = "0.0.0" +version = "0.4.3" publish = false authors.workspace = true description.workspace = true diff --git a/editors/vscode/package.json b/editors/vscode/package.json index cd2733237657f..535e3ba77e16e 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "oxc-vscode", "description": "oxc vscode extension", "license": "MIT", - "version": "0.4.2", + "version": "0.4.3", "icon": "icon.png", "publisher": "oxc", "displayName": "Oxc", @@ -130,4 +130,4 @@ "vsce": { "dependencies": false } -} +} \ No newline at end of file diff --git a/npm/oxlint/package.json b/npm/oxlint/package.json index 7c8375e670ea3..1e16ecf03802b 100644 --- a/npm/oxlint/package.json +++ b/npm/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "oxlint", - "version": "0.4.2", + "version": "0.4.3", "description": "Linter for the JavaScript Oxidation Compiler", "keywords": [], "author": "Boshen and oxc contributors", @@ -25,4 +25,4 @@ "configuration_schema.json", "README.md" ] -} +} \ No newline at end of file