Releases: TheEdoRan/next-safe-action
Releases · TheEdoRan/next-safe-action
v8.0.8
v8.0.7
v8.0.6
v8.0.5
v8.0.4
v8.0.3
v8.0.2
v8.0.1
v8.0.0
8.0.0 (2025-06-02)
⚠ BREAKING CHANGES
- hooks: Remove the deprecated execute on mount functionality, found in hooks.
- support Standard Schema, remove validation adapters (#324)
Features
- add
onNavigation
action & hook callback fornext/navigation
functions (#336) (919bb56), closes #325 - metadata: type check passing
metadata
to actions (231bc00) - support Standard Schema, remove validation adapters (#324) (8378848), closes #321
- validation-errors: add
overrideErrorMessage
function tothrowValidationErrors
(#346) (c280512)
Bug Fixes
- correct message for union validation errors (c3849b8), closes #349
- hooks: navigation callbacks execution (9a2d24b)
- hooks: thrown errors set
hasErrored
status and triggeronError
callback (df902d4) - middleware: set
success
to false for navigation events (bfda754) - types: correct validation error typing for arrays (cf4251e), closes #351
- types: make
VEList
aMaybeArray
for array values (21452e8)
Refactors
- hooks: add
navigationKind
optional arg toonSettled
callback (cd05f83) - hooks: add
transitioning
status, re-addisPending
shorthand status (8775f84) - hooks: deprecate
useStateAction
hook (0cca929) - hooks: readd
isPending
shorthand status property as deprecated (fbd3a67) - hooks: removal of
isPending
shorthand status property (89d0e70) - hooks: remove
executeOnMount
functionality (eeca22d) - make safe action result always defined (#338) (a517386)
- move standard schema stuff in a single file (e7d2772)
- much cleaner library code (#341) (1906ac6)
- remove bind args validation errors result and shaper function, throw them instead (#337) (3f6c70f)
- remove unneeded arg prop in
metadata
method (bf5dc6a) - rename
schema
method toinputSchema
, and deprecate it (#339) (fbf8101) - types: deprecate
InferUseStateActionHookReturn
(cc902d0)
Documentation
v8.0.0-beta.27
8.0.0-beta.27 (2025-05-28)
Refactors
- hooks: add
navigationKind
optional arg toonSettled
callback (cd05f83)