Preview release rc-1.5
Table of contents
We released @adonisjs/[email protected]
on April 29th, 2020 and it contains following additions, changes and bug fixes.
Upgrade using the following command
npm
npm i @adonisjs/[email protected]
Validator
- addition: New
regex
rule added PR#81 - addition: New
uuid
rule added PR#80 - addition: New
confirmed
rule added 176d6bc - improvement: The validator returns error messages as JSON, when the form was submitted as an Ajax request. aa99e00
- breaking: Making validator API consistent and less verbose. Please read the release notes of
@adonisjs/validator
HTTP Server
security: We have improved the cookies security in this release. Now, the values of two cookies cannot be swapped with each other. Check release notes
addition: Added
ctx.routeKey
property. It is the unique reference to theroute + http method
. Can be used as a cache key for caching compiled validator schema.improvement: The
makeUrl
andmakeSignedUrl
now can accept theparams
as top level objects. Earlier they were nested and makes the syntax verbose.// earlier Route.makeUrl('/users/:id', { params: { id: 1 }, }) // now Route.makeUrl('/users/:id', { id: 1 })
Encryption
- security: The encryption module has received a re-write (without breaking changes) and addresses some of security concerns like JSON poisoning. Check release notes