You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

next-rest-framework

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-rest-framework - npm Package Versions

1
57
9

1.2.4

Diff
b
blomqma
published 1.2.4 •

Changelog

Source

1.2.4 - 2023-10-09

Fixed

  • Fix query parameter validation on app router - now the search parameters are validated similarly to when using pages router.
  • Fix content type validation when no user-defined content type validation is set.
b
blomqma
published 1.2.3 •

Changelog

Source

1.2.3 - 2023-10-07

Fixed

  • Fix appDirPath handling when not using src directory.
b
blomqma
published 1.2.2 •

Changelog

Source

1.2.2 - 2023-10-01

Fixed

  • Fix miscellaneous issues with generating the OpenAPI spec from Zod schema, by using zod-to-json-schema.
b
blomqma
published 1.2.1 •

Changelog

Source

1.2.1 - 2023-09-30

Fixed

  • Fix request body validation with app router. The new validation clones the request object before validating it, allowing the request body to be further parsed by the API handler.
b
blomqma
published 1.2.0 •

Changelog

Source

1.2.0 - 2023-09-27

Added

  • Add option to allow/deny paths from Next REST Framework. This ensures better compability with other third-party server-side libraries and routes not using Next REST Framework.
  • Add logging for error cases when the app/pages directory is not found based on the config options.
  • Add logging for ignored paths based on the allow/deny lists.
b
blomqma
published 1.1.1 •

Changelog

Source

1.1.1 - 2023-09-26

Fixed

  • Fix pages router example code snippets in readme and docs pages.
b
blomqma
published 1.1.0 •

Changelog

Source

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.
b
blomqma
published 1.0.2 •

Changelog

Source

1.0.2 - 2023-09-23

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.
b
blomqma
published 1.0.1 •

Changelog

Source

1.0.1 - 2023-09-13

Full details available in this PR: https://github.com/blomqma/next-rest-framework/pull/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.
b
blomqma
published 0.8.0 •

Changelog

Source

0.8.0 - 2023-05-27

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