Update dependency next-safe-action to v7 #109
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.2.0
->^7.0.0
Release Notes
TheEdoRan/next-safe-action (next-safe-action)
v7.9.9
Compare Source
Refactors
v7.9.8
Compare Source
Documentation
v7.9.7
Compare Source
Refactors
v7.9.6
Compare Source
Bug Fixes
v7.9.5
Compare Source
Refactors
v7.9.4
Compare Source
Refactors
executeOnMount
(45e0f96)v7.9.3
Compare Source
Bug Fixes
SafeActionClient
type to make it portable (#267) (#269) (197ec51), closes #64v7.9.2
Compare Source
Refactors
v7.9.1
Compare Source
Refactors
fetchError
prop from hook return object (#262) (3d32f9d)v7.9.0
Compare Source
Features
handleServerError
(#257) (c900720)Description
v7.9.0 merges the functionality of
handleServerErrorLog
andhandleReturnedServerError
functions into a single optional initialization function calledhandleServerError
. This change has been made because having two functions for server error handling is unnecessary, you can easily manage both logging and returned error within a single function.Upgrade guide
Suppose you have this code using next-safe-action < 7.9.0:
With next-safe-action >= 7.9.0 it becomes:
So, minimal refactoring is required, and the action client creation is cleaner this way.
So, if you want for instance keep the default error message as the returned server error and just update the console logging, you can do it like this:
v7.8.2
Compare Source
Documentation
v7.8.1
Compare Source
Documentation
v7.8.0
Compare Source
Features
v7.7.1
Compare Source
Bug Fixes
MetadataSchema
inSafeActionClient
(2bf7fa1)v7.7.0
Compare Source
Features
createMiddleware
function stable (d9d326e)v7.6.4
Compare Source
Refactors
v7.6.3
Compare Source
Bug Fixes
v7.6.2
Compare Source
Bug Fixes
executeOnMount
when it's undefined (b2c02f0), closes #217v7.6.1
Compare Source
Bug Fixes
isTransitioning
andisPending
shorthand statuses to return object (#231) (6e23887), closes #227v7.6.0
Compare Source
Features
v7.5.0
Compare Source
Features
v7.4.3
Compare Source
Bug Fixes
onExecute
callback to handler inuseAction
(0ced081)v7.4.2
Compare Source
Performance improvements
setTimeout
instead offlushSync
to update state (8207452)v7.4.1
Compare Source
Build System
v7.4.0
Compare Source
Features
throwValidationErrors
andthrowServerError
util props (#208) (c9d02e0)v7.3.0
Compare Source
Features
executeOnMount
functionality (#207) (84f94fb), re #191v7.2.2
Compare Source
Build System
v7.2.1
Compare Source
Bug Fixes
useStateAction
from/hooks
path (079324d)v7.2.0
Compare Source
Features
v7.1.3
Compare Source
Refactors
handleReturnedServerError
andhandleServerErrorLog
(#184) (f8fe120), closes #177v7.1.2
Compare Source
Bug Fixes
reset
function touseCallback
(b3e78bb)v7.1.1
Compare Source
Build System
v7.1.0
Compare Source
Features
schema
method (dfd8ad3)v7.0.2
Compare Source
Refactors
ctx
andmetadata
props to action callbacks (#167) (e59e917)v7.0.1
Compare Source
Bug Fixes
useStateAction
hook from/stateful-hooks
path (#166) (7389fb9)v7.0.0
Compare Source
Features
/zod
path (#115) (20a2ef5)onSuccess
andonSettled
action callbacks (9b37224)action
method, withoutschema
call (3935e9f)schema
method (#102) (aa11577)executeAsync
fromuseAction
anduseOptimisticAction
hooks (#147) (e0f5c20), closes #137 #72 #94input
from hooks (#118) (17935ad), closes #116stateAction
method anduseStateAction
hook (#110) (d060132)flattenValidationErrors
function (#100) (9ae6764)Bug Fixes
use
method (054487c)useStateAction
execution flow (16e5693)Refactors
try/catch
block for middleware stack execution (f356709)useOptimisticAction
variable names (131f8bf)EMPTY_HOOK_RESULT
just from/hooks
path (74c0dc8)useOptimisticAction
(#134) (c38dbe1), closes #127clone
method (8dc2138)define
method toaction
(1617d22)ServerValidationError
class toActionServerValidationError
(54b0b52)buildValidationErrors
implementation, moveValidationErrors
type to index (5d3f258)PrettyMerge
type in utils file (f7eb50c)HookStateSafeActionFn
toHookSafeStateActionFn
(87b13b4)rootErrors
toformErrors
for flattened errors (218176d)Build System
Documentation
validationError
refs tovalidationErrors
(2e687cb)bindArgsParsedInputs
in "middlewareFn
return value" section (e4aacbc)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.