Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Releases: ben-ryder/kangojs

kangojs v2.0.0-alpha.0

02 Jun 23:36
Compare
Choose a tag to compare
Pre-release

The first alpha release of v2.
This is a development pre-release and isn't stable. It includes a number of breaking changes which are marked with ⚠️.

💥 New Features

  • ⚠️ Added a dependency injection system. This means you should now let KangoJS handle your dependencies in controllers and services wherever possible.
  • Added a default logger to the core which will log key events from KangoJS. It's behavior can be changed by overriding the Logger dependency with .dependencyContainer.overrideDependency(Logger, MyCustomLogger).
  • Added some initial unit tests, currently only to the dependency container.

🛠️ Changes

  • ⚠️ new KangoJS() now takes the Express app as it's first parameter, the app isn't passed in .bootstrap() anymore.
  • You can now fetch the internal app and router via getApp() and getRouter()

🐛 Bug Fixes

n/a

📚 Documentation Updates

nothing yet, all documentation will be updated when functionality has been tested and experimented with some more

kangojs v1.2.1

12 Mar 11:31
Compare
Choose a tag to compare

Fixing route authRequired checking and making the auth middleware run before request validation.

🛠️ Changes

  • ⚠️ Moving auth middleware (authValidator) to be added to routes before request validation middelware. This changes KangoJS's behaviour so a user can be denied access to a route before their request is validated.

🐛 Bug Fixes

  • Fixed route authRequired not being checked correctly. It will now work as expected.

error-handler v0.2.4

12 Mar 11:52
Compare
Choose a tag to compare

Various bug fixes for error and response handling.

🐛 Bug Fixes

  • Adding all custom errors exepct SystemError to the safe errors list.
  • Ensuring that the logger passed in the useErrorHandlerMiddleware config is used by the error handler.
  • Stopping the response handler crashing if an error didn't appear in the error mappings.

error-handler v0.2.3

10 Mar 20:45
Compare
Choose a tag to compare

This version includes a number of small bug fixes along with fixing response error mapping.

🐛 Bug Fixes

  • Fixing response error mapping not working correctly.
  • Making sure AccessDeniedError and AccessForbiddenError both extend AccessError.
  • Fixing the needless extra object wrapping for useErrorHandlerMiddleware config. The config is now directly ErrorHandlerConfig.

error-handler v0.2.2

10 Mar 20:41
Compare
Choose a tag to compare

This release included old build files that it shouldn't have and therefore it's been removed from npm.
See v0.2.3 for this release

class-validation v1.1.1

10 Mar 20:50
Compare
Choose a tag to compare

This is a small bug fix release but is an incredibly critical vunerablity fix.

⚠️ All older version of this library don't pass the default class-validator options which means DTO object can contain invalid and unexpected data!

🐛 Bug Fixes

  • Fixed validation options not being passed to the validator function.

kangojs v1.2.0

10 Mar 11:03
Compare
Choose a tag to compare

Adding request URL parameter validation support.
See class-validation@1.1.0 for related release for adding class validation support.

💥 New Features

  • Added request URL parameter validation support via paramsShape for @Route decorators. This matches how current body & query validation works.

📚 Documentation Updates

  • Updated docs to add details on URL parameter validation

class-validation v1.1.0

10 Mar 10:59
Compare
Choose a tag to compare

Adding request URL parameter validation support to class-validation.
See kangojs@1.2.0 for related kangojs release.

💥 New Features

  • Added request URL paramater validation support with createParamsValidator.

📚 Documentation Updates

  • Updating readme to include details on URL parameter validation.

error-handler v0.2.1

10 Mar 10:52
Compare
Choose a tag to compare
error-handler v0.2.1 Pre-release
Pre-release

Making config for useErrorHandlerMiddleware optional to better match other packages.

🛠️ Changes

  • Making useErrorHandlerMiddleware config optional so you can just do useErrorHandlerMiddleware(app);.

error-handler v0.2.0

10 Mar 10:48
Compare
Choose a tag to compare
error-handler v0.2.0 Pre-release
Pre-release

Fixing the useErrorHandlerMiddleware interface to match other libraries.

🛠️ Changes

  • ⚠️ useErrorHandlerMiddleware now works by doing useErrorHandlerMiddleware(app, config) rather than how it did before. (#9)