Releases: raptor-js/kernel
Releases · raptor-js/kernel
v0.22.0
v0.21.0
Changes
- Added new
hostnameconfiguration option to Kernel, allowing you to specific a different hostname from localhost, such as0.0.0.0when working within a docker container. - Return the
Responseinstance immediately if found within the middleware stack.
No changes required for existing applications in this release.
v0.20.1
v0.20.0
Changes
- Moved from recursive middleware chain execution to iterative, which improves performance as systems scale. This performance improvement helps Raptor to become the fastest of all tested middleware frameworks in Deno (other runtimes should reflect the same performance statistics).
- Improve config-driven support for overriding the
ServerManagerandResponseManager, as well as support for adding and configuring response processors.
v0.19.0
v0.18.0
Changes
- Kernel options have now been moved to a configuration object, this is aligned with the rest of the Raptor ecosystem now moving to a consistent, configurable instantiation of core classes.
Upgrading from 0.17.x to 0.18.0
The only real change required is to change the definition of port from the serve method to the new Config object, which is passed optionally to the Kernel constructor.
Example
const app = new Kernel({ port: 8000 });
app.serve();v0.17.1
v0.17.0
v0.16.1
v0.16.0
In this release
- Improve the extending of the response manager and processors. Developers now need to implement the
ResponseProcessorinterface. Thetypemethod is no longer required, as thetypeargument of theregistermethod is now used for registering processors for a specific response body type. - The response manager is now easily swappable and extendable, allowing an easy way to change how the base response management works. This is helpful if you want to add a completely new response body type to the stack (for more advanced use cases).
- A server manager service has been added and is also swappable and extendable by developers. This allows existing runtimes to be changed and new server/runtimes to be supported, if needed.
- All tests have been moved from the legacy
testsfolder and now sit next to the associated file. A significant number of tests have also been added to the system, making the overall framework far more robust and tested.
Applications that have overridden or extended the response processing system will need to be updated to support the new mechanics with v0.16.0.