Skip to content

Commit ff63524

Browse files
authored
#48: Widen peer dependencies (#49)
Testing to see how we can widen the dependencies and also add CI to verify it keeps working
2 parents bc1fe8d + 294beeb commit ff63524

File tree

4 files changed

+460
-710
lines changed

4 files changed

+460
-710
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,35 @@ on:
88
branches: ["main"]
99

1010
jobs:
11+
back-compat-react-17:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
29+
- name: Install
30+
run: |
31+
npm ci --ignore-scripts
32+
npm i -D -E @testing-library/react@12 @types/react@17
33+
34+
- name: Build
35+
run: npm run build --if-present
36+
37+
- name: Test
38+
run: npm test
39+
1140
build:
1241
runs-on: ubuntu-latest
1342

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Widened React peer dependency range to include ^17
1011
- Changed license to MIT
1112

1213
## [1.0.0] - 2023-01-15

0 commit comments

Comments
 (0)