🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
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

1345
9

6.0.0-beta.2

Diff
blomqma
published 6.0.0-beta.2 •

Changelog

Source

6.0.0-beta.2 - 2024-03-27

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).
blomqma
published 6.0.0-beta.1 •

Changelog

Source

6.0.0-beta.1 - 2024-03-24

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

Changelog

Source

5.1.12 - 2024-03-23

Fixed

  • Fix CLI not finding config when using pages router and src folder.
blomqma
published 5.1.11 •

Changelog

Source

5.1.11 - 2024-02-28

Fixed

  • Fix node_modules being resolved by ESBuild when running the CLI commands with npm/npx.
blomqma
published 5.1.10 •

Changelog

Source

5.1.10 - 2024-02-27

Fixed

  • Fix external dependency resolution causing the CLI commands not working for some users.
blomqma
published 5.1.9 •

Changelog

Source

5.1.9 - 2024-02-26

Fixed

  • Fix OpenAPI spec generation for query parameters.
blomqma
published 5.1.8 •

Changelog

Source

5.1.8 - 2024-02-26

Fixed

  • Fix RPC route returning an error when using a middleware with no input.
  • Fix typings for asynchronous routeOperation/apiRouteOperation middlewares.
blomqma
published 5.1.7 •

Changelog

Source

5.1.7 - 2024-02-25

Fixed

  • Fix custom HTTP responses from middleware functions not working with app router endpoints.
blomqma
published 5.1.6 •

Changelog

Source

5.1.6 - 2024-02-24

Fixed

  • Fix request body being parsed as ReadableStream instead of JSON when used in app router RPC endpoints.
blomqma
published 5.1.5 •

Changelog

Source

5.1.5 - 2024-02-24

Removed

  • Remove additional console logs from the CLI commands.