next-safe-form 1.0.7 → 1.0.9

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 +4 -3
  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: "",
@@ -216,4 +216,5 @@ MIT
216
216
 
217
217
  ## 👤 Author
218
218
 
219
- Built with ❤️ for Next.js developers
219
+ Built with ❤️ for Next.js developers by
220
+ [4develhoper](https://github.com/4develhoper)
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.9",
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",