Skip to content

Releases: blomqma/next-rest-framework

v1.1.1

26 Sep 15:23
Compare
Choose a tag to compare
v1.1.1 Pre-release
Pre-release

Fixed

  • Fix Pages Route example code snippets in readme and docs pages.

v1.1.0

25 Sep 22:01
Compare
Choose a tag to compare
v1.1.0 Pre-release
Pre-release

1.1.0 - 2023-09-26

Fixed

  • Fix an error of the pages directory not being found when only using Pages Router.
  • Fix App Router catch-all route documentation in the readme.

Added

  • Add support for dark theme in the SwaggerUI.

v1.0.2

23 Sep 10:48
Compare
Choose a tag to compare
v1.0.2 Pre-release
Pre-release

Fixed

  • Fixed an idempotency issue in the OpenAPI paths generation where the ordering of the generated paths was inconsistent between executions.

Changed

  • Changed the OpenAPI spec generation to not make file system calls for API routes files when the config option apiRoutesPath is not defined.

v1.0.1

13 Sep 21:09
Compare
Choose a tag to compare
v1.0.1 Pre-release
Pre-release

Full details available in this PR: #49

Added

  • Add support for Next.js App Router

Removed

  • Remove support for global, route and method middlewares.
  • Remove support for HTTP TRACE.
  • Removed support for Node.js 16.

Changed

  • Running next-rest-framework generate is no longer encouraged to be run together with next build.

v0.8.0

27 May 19:27
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release

Removed

  • Drop support for Yup schemas in order to better support Zod that is the main object-schema validation library used with the framework.

Added

  • Add support for all applicable Zod schema types listed in their docs: https://zod.dev

v0.7.2

18 May 22:07
Compare
Choose a tag to compare
v0.7.2 Pre-release
Pre-release

Fixed

  • Fix path finding for windows environments, and add path parameters to OpenAPI spec.

v0.7.1

08 May 21:19
Compare
Choose a tag to compare
v0.7.1 Pre-release
Pre-release

Fixed

  • Fix miscellaneous bugs with Zod schemas, where intersection, nullable and enum types were not working with the OpenAPI spec generation.

v0.7.0

17 Apr 21:00
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Added

  • Add a binary script that can be used programmatically to generate the OpenAPI spec e.g. before running next build.

v0.6.0

11 Apr 19:51
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

0.6.0 - 2023-04-11

Added

  • Add SwaggerUI customization options for using custom title, description, logo and favicon.

Fixed

  • Fix bug that caused custom OpenAPI YAML file paths not working.
  • Fix documentation and examples that were using Zod number schemas for query parameter validation, resulting in an error when following the examples.

v0.5.1

28 Mar 17:41
Compare
Choose a tag to compare
v0.5.1 Pre-release
Pre-release

Fixed

  • Revert the addition of the localOpenApiSpec config option. Using a user-defined route resulted in the generated OpenAPI spec file not being included in the Vercel build artifacts, thus making it not work. This issue is fixed by using a static path for the spec file so it will be always called openapi.json and lies in the project root.