diff --git a/README.md b/README.md index e61ed93..80681d9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,23 @@ End-to-end typesafe success, error & validation state control for Next.js 14 form actions. +## Features + +**Action Creator** + +- ✅ Provides `"invalid" | "success" | "failure"` response objects. +- ✅ Define generic payload for each of the response type. + +**Form Action builder** + +- ✅ tRPC-like builder API for `.input(zodSchema)` & context `.use(middleware)` +- ✅ Parses `formData` with [`zod-form-data`](https://www.npmjs.com/package/zod-form-data) + +**Stateful `
`** + +- ✅ `` component reads the action's response. +- ✅ Computes progress meta-state like `isInvalid`, `isSuccess` and more. + ## Install ``` diff --git a/package.json b/package.json index 4f4e478..c3581a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-form-action", - "version": "0.2.0", + "version": "0.3.0", "description": "State management helpers for the react form actions.", "repository": { "type": "git",