Skip to content

Commit 3cd7a1c

Browse files
Remove middleware.ts file and update imports to use remix-hook-form/middleware directly
1 parent 7b3388a commit 3cd7a1c

5 files changed

Lines changed: 2 additions & 143 deletions

File tree

apps/docs/src/examples/middleware-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { RemixFormProvider, useRemixForm } from 'remix-hook-form';
44
import { zodResolver } from '@hookform/resolvers/zod';
55
import * as zod from 'zod';
66
import { TextField } from '@lambdacurry/forms/remix-hook-form';
7-
import { getValidatedFormData } from '@lambdacurry/forms/remix-hook-form/middleware';
7+
import { getValidatedFormData } from 'remix-hook-form/middleware';
88
import type { ActionFunctionArgs } from 'react-router';
99

1010
// Define schema and types

apps/docs/src/examples/root-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Example of setting up the middleware in root.tsx
2-
import { unstable_extractFormDataMiddleware } from '@lambdacurry/forms/remix-hook-form/middleware';
2+
import { unstable_extractFormDataMiddleware } from 'remix-hook-form/middleware';
33
import { Outlet } from 'react-router-dom';
44

55
// Export the middleware for React Router 7

packages/components/CHANGELOG.md

Lines changed: 0 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
### Patch Changes
66

77
- Updated remix-hook-form to v7.0.0 for React Router 7 compatibility
8-
- Added support for the new middleware functionality in remix-hook-form v7.0.0
98
- Added example files demonstrating middleware usage
109

1110
## 0.14.1
@@ -17,138 +16,3 @@
1716
## 0.13.4
1817

1918
### Patch Changes
20-
21-
- 381cd02: Another attempt at a fix, this should do it
22-
23-
## 0.13.3
24-
25-
### Patch Changes
26-
27-
- e0dde7d: Fixed the correct import paths
28-
29-
## 0.13.2
30-
31-
### Patch Changes
32-
33-
- 2910e45: First one wasn't correct, but this should fix the exports
34-
35-
## 0.13.1
36-
37-
### Patch Changes
38-
39-
- 459fa20: Added the correct export paths following the new structure
40-
41-
## 0.13.0
42-
43-
### Minor Changes
44-
45-
- 4cd12c7: Changed the way components are imported and named to better fit and look better, similar to hookform
46-
47-
## 0.12.6
48-
49-
### Patch Changes
50-
51-
- 88c5ee5: Fixed spacing for the checkbox label
52-
53-
## 0.12.5
54-
55-
### Patch Changes
56-
57-
- 23a31e7: Added classnames to style the checkbox and actually check in the checkbox component
58-
59-
## 0.12.4
60-
61-
### Patch Changes
62-
63-
- b668f74: Added the ability to pass in your own indicator to the radio group
64-
65-
## 0.12.3
66-
67-
### Patch Changes
68-
69-
- e863d1b: Added remix-hook-form as a peer dependency
70-
71-
## 0.12.2
72-
73-
### Patch Changes
74-
75-
- c39b177: Fixed versioning
76-
77-
## 0.12.1
78-
79-
### Patch Changes
80-
81-
- da26669: Updated remix-hook-form
82-
83-
## 0.10.0
84-
85-
### Minor Changes
86-
87-
- 19b0854: Added remix textarea story and fixes a react error
88-
89-
## 0.9.0
90-
91-
### Minor Changes
92-
93-
- 822f1cc: Updated the remix textarea to work correctly
94-
95-
## 0.8.0
96-
97-
### Minor Changes
98-
99-
- 21db17d: Added an export for the remix textarea
100-
101-
## 0.7.0
102-
103-
### Minor Changes
104-
105-
- b212565: Added a remix text area
106-
107-
## 0.6.0
108-
109-
### Minor Changes
110-
111-
- 7a02de0: Fixed Textarea by using relative import
112-
113-
## 0.5.0
114-
115-
### Minor Changes
116-
117-
- 9cba1b3: Updated export for Textarea
118-
119-
## 0.4.0
120-
121-
### Minor Changes
122-
123-
- 9150b21: Added ShadCn Textarea
124-
125-
## 0.3.0
126-
127-
### Minor Changes
128-
129-
- e8e0429: fix: Corrected file exports
130-
- a39e4b1: Removed component that is not needed
131-
132-
## 0.2.0
133-
134-
### Minor Changes
135-
136-
- fc92a34: Fixed import errors
137-
138-
## 0.1.0
139-
140-
### Minor Changes
141-
142-
- db7b88f: Made it easier to import components
143-
144-
## 0.0.2
145-
146-
### Patch Changes
147-
148-
- d3ab83e: Fixed errors and versioning differences
149-
150-
## 0.0.1
151-
152-
### Major Changes
153-
154-
- ad8069e: Initial Release

packages/components/src/remix-hook-form/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export * from './radio-group';
88
export * from './radio-group-item';
99
export * from './switch';
1010
export * from './textarea';
11-
export * from './middleware';
1211
export * from './data-table-router-form';
1312
export * from './data-table-router-parsers';
1413
export * from './data-table-router-toolbar';

packages/components/src/remix-hook-form/middleware.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)