Skip to content

Releases: blomqma/next-rest-framework

v6.0.5

24 Sep 18:12
4cb7ee5
Compare
Choose a tag to compare
v6.0.5 Pre-release
Pre-release

Changed

  • Silence generate errors for finding NRF config from docs routes.

v6.0.4

27 Aug 21:06
b027c20
Compare
Choose a tag to compare
v6.0.4 Pre-release
Pre-release

Fixed

  • Add support for CJS imports in generate.

v6.0.3

27 Aug 20:36
8807476
Compare
Choose a tag to compare
v6.0.3 Pre-release
Pre-release

Added

  • Add proper error handling for generating OpenAPI paths from routes & API routes.

v6.0.2

26 Aug 22:39
c09c6e3
Compare
Choose a tag to compare
v6.0.2 Pre-release
Pre-release

Fixed

  • Fix inferred request body type for RPC API routes.

Added

  • Add dynamically included JSON schemas for request body, query and path parameter validation errors when validation schemas for them exist.

v6.0.1

10 May 10:29
Compare
Choose a tag to compare
v6.0.1 Pre-release
Pre-release

Fixed

  • Fix dynamic server usage in app router docs endpoint by reading the headers from a cloned request object.

v6.0.0

04 May 09:27
Compare
Choose a tag to compare
v6.0.0 Pre-release
Pre-release

Fixed

  • Fix TS errors when using an async middleware.

Added

  • Export typings for TypedNextRequest, TypedNextApiRequest and TypedNextApiResponse so that they can be used for custom abstractions.

v6.0.0-beta.4

04 May 09:27
Compare
Choose a tag to compare
v6.0.0-beta.4 Pre-release
Pre-release

Fixed

  • Fix CLI commands causing ESBuild errors with third-party dependencies by parsing the OpenAPI specifications from the source code instead using tsx.

v6.0.0-beta.3

04 May 09:27
Compare
Choose a tag to compare
v6.0.0-beta.3 Pre-release
Pre-release

Added

  • Add support for validating path parameters separately from query parameters with pages router.

v6.0.0-beta.2

26 Mar 23:12
Compare
Choose a tag to compare
v6.0.0-beta.2 Pre-release
Pre-release

Added

  • Add support for validating path parameters with error responses for app router & using Zod-parsed path parameters.
  • Add 10s form parsing timeout for pages router.

Fixed

  • Fix req.json() returning JSON serialized Zod-parsed request body instead of raw Zod-parsed body.
  • Fix RPC route response serialization for form data (app router and pages router) and File/Blob responses (pages router).

v6.0.0-beta.1

24 Mar 13:38
Compare
Choose a tag to compare
v6.0.0-beta.1 Pre-release
Pre-release

This is a breaking change that improves handling form data requests for both app router and pages router routes and RPC routes.

Added

  • Add support for strongly typed form data.
  • Add support for overriding generated JSON schema with a custom JSON schema for request bodies, search params and response bodies.
  • Add support for (strongly typed) form data for RPC routes.

Changed

  • Rename response body schema in output objects from schema -> body for consistent naming conventions.

Fixed

  • Misc docs fixes.