Releases: ben-ryder/kangojs
kangojs v2.0.0-alpha.0
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()
andgetRouter()
🐛 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
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
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
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
andAccessForbiddenError
both extendAccessError
. - Fixing the needless extra object wrapping for
useErrorHandlerMiddleware
config. The config is now directlyErrorHandlerConfig
.
error-handler v0.2.2
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
This is a small bug fix release but is an incredibly critical vunerablity fix.
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
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
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
Making config for useErrorHandlerMiddleware
optional to better match other packages.
🛠️ Changes
- Making
useErrorHandlerMiddleware
config optional so you can just douseErrorHandlerMiddleware(app);
.
error-handler v0.2.0
Fixing the useErrorHandlerMiddleware
interface to match other libraries.
🛠️ Changes
⚠️ useErrorHandlerMiddleware
now works by doinguseErrorHandlerMiddleware(app, config)
rather than how it did before. (#9)