Skip to content

Releases: TheEdoRan/next-safe-action

v8.0.8

15 Jul 10:43
64e85db
Compare
Choose a tag to compare

8.0.8 (2025-07-15)

Bug Fixes

  • hooks: prevent stale state access in callbacks (#377) (64e85db)

v8.0.7

26 Jun 11:03
c21b57d
Compare
Choose a tag to compare

8.0.7 (2025-06-26)

Bug Fixes

  • types: infer correct hook return types (c21b57d), closes #375

v8.0.6

25 Jun 22:47
3bd9c2c
Compare
Choose a tag to compare

8.0.6 (2025-06-25)

Bug Fixes

  • incorrect multiple calls of handleServerError with thrown errors (3bd9c2c), closes #370

v8.0.5

25 Jun 22:10
c0dcae0
Compare
Choose a tag to compare

8.0.5 (2025-06-25)

Bug Fixes

  • hooks: incorrect optional data in onSuccess callback (c0dcae0), closes #366

v8.0.4

20 Jun 12:18
608b8d1
Compare
Choose a tag to compare

8.0.4 (2025-06-20)

Documentation

  • readme: fix wrong stable version number (608b8d1)

v8.0.3

16 Jun 20:49
39078a2
Compare
Choose a tag to compare

8.0.3 (2025-06-16)

Bug Fixes

  • export missing ActionBindArgsValidationError class (39078a2)

v8.0.2

06 Jun 21:26
61dd482
Compare
Choose a tag to compare

8.0.2 (2025-06-06)

Bug Fixes

  • types: InferSafeActionFnResult is now working again (61dd482), closes #364

v8.0.1

03 Jun 17:56
d132dc7
Compare
Choose a tag to compare

8.0.1 (2025-06-03)

Documentation

v8.0.0

02 Jun 20:24
e21c47e
Compare
Choose a tag to compare

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 for next/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 to throwValidationErrors (#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 trigger onError callback (df902d4)
  • middleware: set success to false for navigation events (bfda754)
  • types: correct validation error typing for arrays (cf4251e), closes #351
  • types: make VEList a MaybeArray for array values (21452e8)

Refactors

  • hooks: add navigationKind optional arg to onSettled callback (cd05f83)
  • hooks: add transitioning status, re-add isPending 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 to inputSchema, and deprecate it (#339) (fbf8101)
  • types: deprecate InferUseStateActionHookReturn (cc902d0)

Documentation

  • hooks: update internal comment (2af5619)
  • readme: update for v8 (d3ff580)
  • readme: update install command (56032dc)
  • readme: update readme (6f441d1)
  • update jsdoc comments (44f8c25)

v8.0.0-beta.27

28 May 23:38
4091d8c
Compare
Choose a tag to compare
v8.0.0-beta.27 Pre-release
Pre-release

8.0.0-beta.27 (2025-05-28)

Refactors

  • hooks: add navigationKind optional arg to onSettled callback (cd05f83)