WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3d63a88

Browse files
authored
Merge pull request #160 from forge-42/update_peer_dep
Update peer dep to support new types
2 parents 7ff58e6 + f8d06ae commit 3d63a88

File tree

6 files changed

+86
-10
lines changed

6 files changed

+86
-10
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/validate.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: 🚀 Validation Pipeline
2+
concurrency:
3+
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
actions: write
13+
contents: read
14+
# Required to put a comment into the pull-request
15+
pull-requests: write
16+
jobs:
17+
# lint:
18+
# name: ⬣ Biome lint
19+
# runs-on: ubuntu-latest
20+
# steps:
21+
# - name: ⬇️ Checkout repo
22+
# uses: actions/checkout@v4
23+
# - name: Setup Biome
24+
# uses: biomejs/setup-biome@v2
25+
# - name: Run Biome
26+
# run: biome ci .
27+
28+
typecheck:
29+
name: 🔎 Type check
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: 🛑 Cancel Previous Runs
33+
uses: styfle/[email protected]
34+
- name: ⬇️ Checkout repo
35+
uses: actions/checkout@v4
36+
- name: ⎔ Setup node
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
- name: 📥 Download deps
41+
uses: bahmutov/npm-install@v1
42+
with:
43+
useLockFile: false
44+
- name: 🔎 Type check
45+
run: npm run typecheck
46+
47+
vitest:
48+
name: ⚡ Unit Tests
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: 🛑 Cancel Previous Runs
52+
uses: styfle/[email protected]
53+
- name: ⬇️ Checkout repo
54+
uses: actions/checkout@v4
55+
- name: ⎔ Setup node
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: 20
59+
- name: 📥 Download deps
60+
uses: bahmutov/npm-install@v1
61+
with:
62+
useLockFile: false
63+
- name: Install dotenv cli
64+
run: npm install -g dotenv-cli
65+
- name: ⚡ Run vitest
66+
run: npm run test
67+
# - name: "Report Coverage"
68+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
69+
# if: always()
70+
# uses: davelosert/vitest-coverage-report-action@v2
71+

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "remix-hook-form",
3-
"version": "6.1.3",
3+
"version": "6.2.0",
44
"description": "Utility wrapper around react-hook-form for use with react-router v7+",
55
"type": "module",
66
"main": "./dist/index.cjs",
@@ -37,7 +37,7 @@
3737
"vite": "npm run build --watch -m development",
3838
"prepublishOnly": "npm run build",
3939
"test": "vitest run",
40-
"tsc": "tsc",
40+
"typecheck": "tsc",
4141
"validate": "npm run lint && npm run tsc && npm run test",
4242
"lint": "eslint \"src/**/*.+(ts|tsx)\"",
4343
"lint:fix": "npm run lint -- --fix",
@@ -55,6 +55,9 @@
5555
"react-router v7",
5656
"react-hook-form",
5757
"hooks",
58+
"remix",
59+
"remix react-hook-form",
60+
"react-router react-hook-form",
5861
"forms"
5962
],
6063
"author": "Alem Tuzlak",
@@ -66,7 +69,7 @@
6669
"peerDependencies": {
6770
"react": "^18.2.0 || ^19.0.0",
6871
"react-dom": "^18.2.0 || ^19.0.0",
69-
"react-hook-form": "^7.51.0",
72+
"react-hook-form": "^7.55.0",
7073
"react-router": ">=7.0.0"
7174
},
7275
"readme": "https://github.com/forge42dev/remix-hook-form#readme",

test-apps/react-router/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"react-router": "^7.0.1",
18+
"react-hook-form": "7.55.0",
1819
"remix-hook-form": "*"
1920
},
2021
"devDependencies": {

0 commit comments

Comments
 (0)