next-safe-form 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -132,10 +132,10 @@ return {
132
132
  ```tsx
133
133
  "use client";
134
134
 
135
- import { useActionForm } from "next-safe-form";
135
+ import { useSafeActionForm } from "next-safe-form";
136
136
 
137
137
  export default function LoginForm() {
138
- const { formAction, isPending, fieldsErrors, serverError } = useActionForm({
138
+ const { formAction, isPending, fieldsErrors, serverError } = useSafeActionForm({
139
139
  action: loginAction,
140
140
  initialValues: {
141
141
  email: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-safe-form",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Simplify React 19 Server Actions forms in Next.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",