Preview release rc-1.7

We released @adonisjs/[email protected] on June 21st, 2020 and it contains following additions, changes and bug fixes.

Upgrade using the following command

npm i @adonisjs/[email protected]
yarn add @adonisjs/[email protected]


  • Added support for micro templating to custom error messages. 9d08a27
  • Cast "on" and "off" values to a boolean. These strings are set by the input[type="checkbox"]. cd0a401
  • Added support for refs. Refs allows referencing dynamic values inside a cached schema. 88df5b5
  • Allow space, dash and underscore in the alpha rule. 207c4f1
  • Add distinct rule. 3d9422a

HTTP Server

  • Added support for chainable API to the response.redirect method. 3bca166
  • Fix method to set content-type when file is not found. e4fcc8d
  • Improve router to raise exception, when a route has duplicate params. 025d60f


  • Depreciate hash.hash in favor of hash.make. b5ac156
  • Add support for faking Hash implementation during tests. 75e2f5b

Breaking change

Earlier the argon2 and bcrypt drivers were relying on the following packages.

However, these packages are not actively maintained and had some security vulnerabilities. We have forked and published them as phc-bcrypt and phc-argon2. So make sure to remove old dependencies from your application in favor of the new ones.

On this page