Skip to content

Commit

Permalink
Merge pull request #46 from TheEdoRan/alpha
Browse files Browse the repository at this point in the history
v6
  • Loading branch information
TheEdoRan authored Jan 2, 2024
2 parents 8c88de7 + 0b0066e commit b7c8985
Show file tree
Hide file tree
Showing 39 changed files with 6,091 additions and 4,667 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run lint -- --filter=next-safe-action
Expand All @@ -31,13 +31,13 @@ jobs:
runs-on: ubuntu-latest
needs: [CI]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run build -- --filter=next-safe-action
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn.lock
dist
.env*
*.pem
.npmrc
/.npmrc

npm-debug.log*
yarn-debug.log*
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<a href="https://github.com/TheEdoRan/next-safe-action"><h1>next-safe-action</h1></a>
</div>

> next-safe-action is a library that takes full advantage of the latest and greatest Next.js, React and TypeScript features, using Zod, to let you define typesafe Server Actions and execute them inside Client Components.
> next-safe-action is a library that takes full advantage of the latest and greatest Next.js, React and TypeScript features, using validation libraries of your choice, to let you define typesafe Server Actions and execute them inside Client Components.

## How does it work?

Expand All @@ -16,13 +17,13 @@ https://github.com/TheEdoRan/next-safe-action/assets/1337629/7ebc398e-6c7d-49b2-
- ✅ Pretty simple
- ✅ End-to-end type safety
- ✅ Context based clients (with middlewares)
- ✅ Input validation using Zod
- ✅ Input validation using multiple validation libraries
- ✅ Advanced server error handling
- ✅ Optimistic updates

## Documentation

**Explore the documentation for version 5 of the library on the [next-safe-action website](https://next-safe-action.dev).**
**Explore the documentation for version 6 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.
Expand Down Expand Up @@ -50,6 +51,10 @@ Version 4.x.x of the library introduced some breaking changes to the API. Please

Version 5.x.x of the library is required for Next.js >= 14 applications. Please check out the [v4 to v5 migration guide](https://next-safe-action.dev/docs/migration-from-v4-to-v5) on the website for more information.

---

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.

## Example

You can find a basic working implementation of the library [here](packages/example-app).
Expand Down
Loading

1 comment on commit b7c8985

@vercel
Copy link

@vercel vercel bot commented on b7c8985 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.