server-act 1.5.1 → 1.5.2

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 +1 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -127,7 +127,7 @@ import { useActionState } from "react";
127
127
  import { sayHelloAction } from "./action";
128
128
 
129
129
  export const ClientComponent = () => {
130
- const [state, dispatch] = useFormState(sayHelloAction, undefined);
130
+ const [state, dispatch] = useActionState(sayHelloAction, undefined);
131
131
 
132
132
  return (
133
133
  <form action={dispatch}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "server-act",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "homepage": "https://github.com/chungweileong94/server-act#readme",
5
5
  "author": "chungweileong94",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "typescript": ">=5.0.0",
52
52
  "valibot": "^1.0.0",
53
- "zod": "^3.24.0"
53
+ "zod": "^3.24.0 || ^4.0.0-beta.0"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "typescript": {
@@ -68,7 +68,7 @@
68
68
  "typescript": "^5.6.3",
69
69
  "valibot": "1.0.0-rc.0",
70
70
  "zod": "^3.24.2",
71
- "zod-form-data": "^2.0.2"
71
+ "zod-form-data": "^2.0.6"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "bunchee",