Skip to content

Commit

Permalink
Merge pull request #9 from janglad/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
janglad authored Aug 16, 2024
2 parents 7bada84 + 89fc066 commit 82cb49e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
10 changes: 0 additions & 10 deletions .changeset/lazy-papayas-rule.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spicy-pigs-deny.md

This file was deleted.

12 changes: 12 additions & 0 deletions packages/safe-fn-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# safe-fn-react

## 0.1.0

### Minor Changes

- 170ba35: Add simple `useServerAction` hook, handling transitions etc

### Patch Changes

- Updated dependencies [3572d25]
- safe-fn@0.1.2
2 changes: 1 addition & 1 deletion packages/safe-fn-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-fn-react",
"version": "0.0.1",
"version": "0.1.0",
"author": "janglad",
"publishConfig": {
"access": "public"
Expand Down
11 changes: 11 additions & 0 deletions packages/safe-fn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @safe-fn/safe-fn

## 0.1.2

### Patch Changes

- 3572d25: - Add new types to infer result, ok/err data from action
- Fix bug in not exporting `ok()`/`err()` properly
- Add `createAction()` and add `AnyCompleteSafeFn` to easily use as server action
- Add types for inferring result and argument for completeSafeFns
- Fix `Result` type union by typing `data` and `cause` as `undefined` instead of `never`
- Don't catch framework errors (currently only filtering Next `redirect()` and `notFound()`)

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/safe-fn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-fn",
"version": "0.1.1",
"version": "0.1.2",
"description": "",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 82cb49e

Please sign in to comment.