From 8d8f3cfdf5c1065342749e90be0c647f019376c3 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 6 Oct 2024 15:39:47 +0800 Subject: [PATCH] ci: run test against more Node.js version --- .github/workflows/test.yml | 8 ++++++-- CHANGELOG.md | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8ef730..aa7cf0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,19 +6,23 @@ on: jobs: test: name: Lint & Test + strategy: + matrix: + node-version: [16, 18, 20, 22] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ matrix.node-version }} check-latest: true cache: 'npm' registry-url: 'https://registry.npmjs.org' - name: Install dependencies - run: npm install -g npm && npm install + run: npm install - name: Lint + if: matrix.node-version == 22 run: npm run lint - name: Test run: npm run test diff --git a/CHANGELOG.md b/CHANGELOG.md index 0516d59..16e960a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.12.0 + +- The minimum required version has been bumped from 12 to 16. +- Now when TypeScript 5 is detected in your projects will `rollup-plugin-swc3` enable decorators by default (with decorator version `2022-03`), otherwise it is depended by `experimentalDecorators` from `tsconfig.json` (and decorator version `2021-12` will be used). See [#65](https://github.com/SukkaW/rollup-plugin-swc/pull/65/) + ## 0.11.2 - New feature `viteMinify` to use swc's minification in Vite.