next-api-utils

Utilities for building maintainable backend APIs for the Next.js app router

APACHE-2.0 License

Downloads
270
Stars
2
Committers
3

Bot releases are visible (Hide)

next-api-utils - v1.1.0 Latest Release

Published by github-actions[bot] 8 months ago

1.1.0 (2024-02-21)

Features

  • treat /path?flag as being true in QueryBooleanSchema (22a22ac)
next-api-utils - v1.0.4

Published by github-actions[bot] 10 months ago

1.0.4 (2023-12-13)

Bug Fixes

  • handle parsing request bodies with malformed JSON (1d1addf)
next-api-utils - v1.0.3

Published by github-actions[bot] 11 months ago

1.0.3 (2023-11-14)

Bug Fixes

next-api-utils - v1.0.2

Published by github-actions[bot] about 1 year ago

1.0.2 (2023-09-22)

Bug Fixes

  • fix types of statusCode field in BaseValidationException (f1465d0)
next-api-utils - v1.0.1

Published by github-actions[bot] about 1 year ago

1.0.1 (2023-09-19)

Bug Fixes

  • fix issue related to bun-types being referenced (2837932)
next-api-utils - v1.0.0

Published by github-actions[bot] about 1 year ago

1.0.0 (2023-09-19)

Bug Fixes

  • fix error code in invalid body validation exception (c3f4f2d)
  • fix types for ExceptionWrapper#wrapRoute (c839f90)
  • make default type for ResponseBody in NextRouteHandler unknown (67bc7dd)
  • stop importing built-in Node.js modules with node: prefix (d1d0cb3)
  • upgrade yn dependency (1624cca)

Features

  • add default type parameter to BaseException (e275e4a)
  • add more API docs, improve code organization, and start implementing validateRequest (5c2688a)
  • continue implementing validateRequest (e8f9c3a)
  • expose /client and /server entrypoints to help with bundler issues (7e42740)
  • initial library implementation (66e7cd4)
  • stop requiring http module in BaseValidationException (fd85b58)
  • validate query parameters without relying on querystring node module (f3b1b29)
Package Rankings
Top 45.48% on Npmjs.org
Badges
Extracted from project README
Build Status