Skip to content

Prepping for v6

Pre-release
Pre-release
Compare
Choose a tag to compare
@thetutlage thetutlage released this 14 Feb 07:10
· 39 commits to develop since this release

Breaking changes

  • The package is pure ESM and cannot be imported inside CJS projects
  • Removed @ioc imports in favor of standard imports. You can re-write the validator import as follows.
    -  import { schema, validator, rules } from '@ioc:Adonis/Core/Validator'
    +  import { schema, validator, rules } from '@adonisjs/core/validator'

That's all! There are no other breaking changes

Side notes

We have some plans to drastically improve the validator, but given how widespread the validator is used in every AdonisJS project, we are not planning to have any breaking changes in v6.

Post v6, we will publish an alternate package with the new API and the performance improvements. So that you can incrementally move from existing validator to the new one.

Commits

  • docs: update readme 369a744
  • refactor: update benchmarks code df96c6b
  • test: improve testing ac6f140
  • style: update license docblock 5cb3365
  • chore: add missing peer dependencies 681d4d1
  • chore: update dependencies 34f0837
  • refactor: first phase of cleanup for v6 5d3b734

Full Changelog: v12.4.2...v13.0.0-0