Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

routing-controllers

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routing-controllers - npm Package Versions

1
8

0.7.3

Diff

Changelog

Source

0.7.3

Features
  • Support for returning Buffer and streams from action handler (controller's method) (ref [#285][#285])
  • Custom driver support (ref [#276][#276])
Fixes
  • Directly calling response bug (ref [#286][#286])
  • Missing parameter in @BodyParam error message (ref [#284][#284])
  • Sync and async auth checker bug (ref (ref [#283][#283])
  • Handling different content-type responses in JsonController (ref [#277][#277])
pleerock
published 0.7.2 •

Changelog

Source

0.7.2

Fixes
  • Using @Authorization decorator with Koa caused 404 responses (ref [#240][#240])
  • Allow throwing custom errors in authorizationChecker (ref [#233][#233])
  • check auth permissions before accepting files for upload (ref [#251][#251])
pleerock
published 0.7.1 •

pleerock
published 0.7.0 •

Changelog

Source

0.7.0 [BREAKING CHANGES]

  • some routing-controllers options has been changed and renamed
  • returned validation error value signature has changed
  • controllers and middlewares now can be specified in routing-controllers options
  • MiddlewareInterface was removed and instead ExpressMiddlewareInterface or KoaMiddlewareInterface should be used
  • ErrorMiddlewareInterface was renamed to ExpressErrorMiddlewareInterface
  • per-controller and per-action middlewares used in @UseBefore and @UseAfter now should not be marked with @Middleware decorator
  • @MiddlewareGlobalBefore() and @MiddlewareGlobalAfter() were removed and instead new signatures should be used: @Middleware({ type: "before" }) and @Middleware({ type: "after" })
  • named some decorator parameter names
  • added few new decorators to get all parameters like @QueryParams, @Params, @HeaderParams etc.
  • added @Authorized and @CurrentUser decorators
  • added new @Ctx decorator to use context with koa
  • @NullResultCode has been renamed to @OnNull, now supports error classes
  • @UndefinedResultCode has been renamed to @OnUndefined, now supports error classes
  • @EmptyResultCode has been removed. Use @OnUndefined decorator instead and return concrete types in your controllers.
  • added ability to create custom decorators
  • enabled validation by default
  • multiple bug fixes
  • codebase refactoring
  • removed JsonResponse and TextResponse decorators
pleerock
published 0.7.0-alpha.15 •

pleerock
published 0.7.0-alpha.14 •

pleerock
published 0.7.0-alpha.13 •

pleerock
published 0.7.0-alpha.12 •

pleerock
published 0.7.0-alpha.11 •

pleerock
published 0.7.0-alpha.10 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc