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

kangojs v2.0.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ben-ryder ben-ryder released this 02 Jun 23:36
· 56 commits to main since this 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