This repository was archived by the owner on Nov 9, 2023. It is now read-only.
5.2.0
Added
- Promise signatures for
engine.handle(#55)- So, in addition to
engine.handle(request, callback), you can do e.g.await engine.handle(request).
- So, in addition to
Changed
- Remove
asyncandpromise-to-callbackdependencies- These dependencies were used internally for middleware flow control.
They have been replaced with Promises and nativeasync/await, which means that some operations are no longer eagerly executed.
This change may affect consumers that depend on the eager execution of middleware during request processing, outside of middleware functions and request handlers.- In general, it is a bad practice to work with state that depends on middleware execution, while the middleware are executing.
- These dependencies were used internally for middleware flow control.