From e3b31f9ccfa577f0325331ee9d83d80bae8ee56d Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Sat, 30 Aug 2025 19:14:19 +0700 Subject: [PATCH] feat: support react 19 --- .github/workflows/unit-tests.yml | 8 ++++++-- package.json | 4 ++-- pnpm-lock.yaml | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 27acb17b..1b491d80 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -30,11 +30,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - react-version: [16, 17] - testing-library-version: [12] include: + - react-version: 16 + testing-library-version: 12 + - react-version: 17 + testing-library-version: 12 - react-version: 18 testing-library-version: 16 + - react-version: 19 + testing-library-version: 16 steps: - name: Checkout uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 diff --git a/package.json b/package.json index 3c8af6e6..f27217ae 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,8 @@ "prismjs": "1.30.0" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0" + "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@babel/core": "7.28.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28764a1d..dce8a95b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,10 +30,10 @@ importers: specifier: 1.30.0 version: 1.30.0 react: - specifier: ^16.14.0 || ^17.0.0 || ^18.0.0 + specifier: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 version: 16.14.0 react-dom: - specifier: ^16.14.0 || ^17.0.0 || ^18.0.0 + specifier: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 version: 16.14.0(react@16.14.0) devDependencies: '@babel/core':