Skip to content

Add support for lazy importing middleware

Compare
Choose a tag to compare
@thetutlage thetutlage released this 13 Feb 05:31

This release attempts to improve the intellisense of Typescript now and also in the future. Moving forward, we will recommend registering middleware as follows:

Server.middleware.register([
  () => import('@ioc:Adonis/Core/BodyParserMiddleware'),
  () => import('App/Middleware/Auth')
])
  • feat: allow lazy imports when registering middleware b3e22a0
  • refactor: update code to use latest APIs of the IoC container ec1327e
  • chore: use cuid from poppinss 98ca254

v5.0.1...v5.1.0