From 512e82a650c1c8be20f03e7c4603ba73d36730a0 Mon Sep 17 00:00:00 2001 From: unadlib Date: Wed, 11 Dec 2024 22:49:07 +0800 Subject: [PATCH] fix(react): update peerDependencies for react v19.0 --- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- package.json | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9427978..07652b6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -13,10 +13,10 @@ jobs: - uses: actions/checkout@v1 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 20.x - name: yarn install, yarn test:coverage run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 30f32cd..02eba65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,10 +14,10 @@ jobs: - uses: actions/checkout@v1 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 20.x - name: yarn install, yarn test:coverage run: | diff --git a/package.json b/package.json index 3e40bf8..aeb48b9 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ } }, "peerDependencies": { - "mutative": "^1.0" + "mutative": "^1.0", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0" } }