diff --git a/.changeset/lazy-papayas-rule.md b/.changeset/lazy-papayas-rule.md deleted file mode 100644 index 4197ec8..0000000 --- a/.changeset/lazy-papayas-rule.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"safe-fn": patch ---- - -- 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()`) diff --git a/.changeset/spicy-pigs-deny.md b/.changeset/spicy-pigs-deny.md deleted file mode 100644 index cc0c9ef..0000000 --- a/.changeset/spicy-pigs-deny.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"safe-fn-react": minor ---- - -Add simple `useServerAction` hook, handling transitions etc diff --git a/packages/safe-fn-react/CHANGELOG.md b/packages/safe-fn-react/CHANGELOG.md new file mode 100644 index 0000000..418ed77 --- /dev/null +++ b/packages/safe-fn-react/CHANGELOG.md @@ -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 diff --git a/packages/safe-fn-react/package.json b/packages/safe-fn-react/package.json index ddf83d6..ff64f63 100644 --- a/packages/safe-fn-react/package.json +++ b/packages/safe-fn-react/package.json @@ -1,6 +1,6 @@ { "name": "safe-fn-react", - "version": "0.0.1", + "version": "0.1.0", "author": "janglad", "publishConfig": { "access": "public" diff --git a/packages/safe-fn/CHANGELOG.md b/packages/safe-fn/CHANGELOG.md index 054246c..4dfa80c 100644 --- a/packages/safe-fn/CHANGELOG.md +++ b/packages/safe-fn/CHANGELOG.md @@ -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 diff --git a/packages/safe-fn/package.json b/packages/safe-fn/package.json index 2597643..854e84f 100644 --- a/packages/safe-fn/package.json +++ b/packages/safe-fn/package.json @@ -1,6 +1,6 @@ { "name": "safe-fn", - "version": "0.1.1", + "version": "0.1.2", "description": "", "publishConfig": { "access": "public"