diff --git a/README.md b/README.md index 212f6283..a66d118e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ https://github.com/TheEdoRan/next-safe-action/assets/1337629/7ebc398e-6c7d-49b2- ## Documentation -**Explore the documentation for version 6 of the library on the [next-safe-action website](https://next-safe-action.dev).** ✨ +**Explore the documentation for version 7 of the library on the [next-safe-action website](https://next-safe-action.dev).** ✨ If you are looking for old versions documentation, check out: - the [README_v3](packages/next-safe-action/README_v3.md) file for version 3.x.x. @@ -55,6 +55,10 @@ Version 5.x.x of the library is required for Next.js >= 14 applications. Please Version 6.x.x of the library lets you use validation libraries other than Zod. Please check out the [v5 to v6 migration guide](https://next-safe-action.dev/docs/migration-from-v5-to-v6) on the website for more information. +--- + +Version 7.x.x of the library supports form actions and improves validation errors handling. Please check out the [v6 to v7 migration guide](https://next-safe-action.dev/docs/migration-from-v6-to-v7) on the website for more information. + ## Example You can find a basic working implementation of the library [here](packages/example-app). diff --git a/packages/next-safe-action/README.md b/packages/next-safe-action/README.md index 3eafe0fd..67c0ff94 100644 --- a/packages/next-safe-action/README.md +++ b/packages/next-safe-action/README.md @@ -2,7 +2,7 @@ ## Documentation -**Explore the documentation for version 6 of the library on [next-safe-action website](https://next-safe-action.dev).** ✨ +**Explore the documentation for version 7 of the library on [next-safe-action website](https://next-safe-action.dev).** ✨ ## Next.js >= 14 vs 13 @@ -28,4 +28,8 @@ Version 5.x.x of the library is required for Next.js >= 14 applications. Please --- -Version 6.x.x of the library lets you use validation libraries other than Zod. Please check out the [v5 to v6 migration guide](https://next-safe-action.dev/docs/migration-from-v5-to-v6) on the website for more information. \ No newline at end of file +Version 6.x.x of the library lets you use validation libraries other than Zod. Please check out the [v5 to v6 migration guide](https://next-safe-action.dev/docs/migration-from-v5-to-v6) on the website for more information. + +--- + +Version 7.x.x of the library supports form actions and improves validation errors handling. Please check out the [v6 to v7 migration guide](https://next-safe-action.dev/docs/migration-from-v6-to-v7) on the website for more information. \ No newline at end of file diff --git a/website/docs/contributing.md b/website/docs/contributing.md index ac6349f1..86dc0b73 100644 --- a/website/docs/contributing.md +++ b/website/docs/contributing.md @@ -1,5 +1,5 @@ --- -sidebar_position: 11 +sidebar_position: 12 description: Learn how to contribute to next-safe-action via GitHub. --- diff --git a/website/docs/getting-started.md b/website/docs/getting-started.md index 86de82c3..02fd15b7 100644 --- a/website/docs/getting-started.md +++ b/website/docs/getting-started.md @@ -1,12 +1,12 @@ --- sidebar_position: 2 -description: Getting started with next-safe-action version 5. +description: Getting started with next-safe-action version 7. --- # Getting started :::note -This is the documentation for the current version of the library (6.x.x). +This is the documentation for the current version of the library (7.x.x). ::: :::info Requirements @@ -38,7 +38,7 @@ npm i next-safe-action@v4 zod ## Usage :::note -If you're still using Next.js 13, you need to enable `serverActions` flag under the `experimental` object in next.config.js file. Find out more [here](/docs/migration-from-v4-to-v5). +If you're still using Next.js 13 with next-safe-action v4, you need to enable `serverActions` flag under the `experimental` object in next.config.js file. Find out more [here](/docs/migration-from-v4-to-v5). ::: ### 1. Instantiate a new client diff --git a/website/docs/migration-from-v6-to-v7.md b/website/docs/migration-from-v6-to-v7.md new file mode 100644 index 00000000..5ff7761d --- /dev/null +++ b/website/docs/migration-from-v6-to-v7.md @@ -0,0 +1,14 @@ +--- +sidebar_position: 11 +description: Learn how to migrate from next-safe-action version 6 to version 7. +--- + +# Migration from v6 to v7 + +## What's new? + +WIP + +## BREAKING CHANGES + +WIP \ No newline at end of file diff --git a/website/src/css/custom.css b/website/src/css/custom.css index e9266315..2e2d4712 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -29,7 +29,7 @@ body { } .navbar__brand::after { - content: "v6"; + content: "v7"; margin-left: 0.5rem; font-weight: 500; position: relative;