Skip to content

Releases: adonisjs/validator

v13 Major Release

28 Jan 12:03
Compare
Choose a tag to compare

Please see the following the following releases to learn more about breaking changes and additions :

Important

This validator is now legacy and has been ported to facilitate migration to AdonisJS 6. We now recommend migrating to VineJS and also using it for new projects.

Docs : https://v6-migration.adonisjs.com/guides/validator-introduction

Commits

  • Merge branch 'develop' ab3c110
  • chore: publish under latest tag 8ec7567
  • Merge pull request #180 from adonisjs/next f0fbb2e
  • chore: update readme fe08b54
  • fix: remove duplicate code 03754d1
  • style: lint 05a47a2
  • Merge branch 'develop' into next abcfef0
  • feat: BigInt support 81aa868
  • style: lint aaeb7ff
  • fix: request module augmentation with validate 423a15f
  • fix: type errors coming from validatorJs 5c89c2e
  • chore: update dependencies 2fb440f
  • style: lint files 1017157
  • chore(release): 12.6.0 5b3356f
  • feat(validation/bigint): allow to cast a number to bigint 233d206
  • fix(validation/bigint): cast bigint like string to bigint 792dcd2
  • feat: add bigint type validation d51a7d3
  • fix: correct tests e15605d
  • chore: bump version c24981f
  • chore: update dependencies f910de0
  • chore: update dependencies 4f7333f
  • fix: handle infinite values and fail validation d1b41ae

v13.0.2-3...v13.0.2

New Contributors

Full Changelog: v12.4.2...v13.0.2

Add BigInt support

16 Nov 15:09
5b3356f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 12.5.0...v12.6.0

Fail for infinite value and update dependencies

24 Aug 08:18
e15605d
Compare
Choose a tag to compare

What's Changed

  • Ensure fail validation for number casted to Infinity by @RomainLanz in #168

Full Changelog: v12.4.2...12.5.0

Making validator usable as a standalone package

04 Jul 11:28
Compare
Choose a tag to compare

With this release, we pull @adonisjs/validator out of the core and do not recommend it for v6 apps. v6 apps should use VineJS.

However, existing apps migrating to v6 can install this package and continue using it.

Commits.

  • chore: publish providers folder ee4eaf2
  • feat: make adonisjs/validator to be usable directly 7a53283
  • chore: add engines to package.json file 1411721
  • chore: do not publish source files 5eed18d
  • chore: use @adonisjs/tooling presets for tooling config a0b2318
  • chore: upgrade japa to v3 4c34266
  • chore: update dependencies 623d90a

Full Changelog: v13.0.2-2...v13.0.2-3

Update dependencies

14 Apr 14:26
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: update dependencies a0beabb

Full Changelog: v13.0.2-1...v13.0.2-2

Upgrade to TypeScript 5

27 Mar 06:12
Compare
Choose a tag to compare
Pre-release
  • chore: publish source and generate delcaration map 32fe3c4
  • docs: update License file 198061d
  • chore: update dependencies 33daa47
  • chore: update dependencies 60f93a0

Full Changelog: v13.0.2-0...v13.0.2-1

Update dependencies

04 Mar 03:26
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: update dependencies 1d9031d

Full Changelog: v13.0.1-0...v13.0.2-0

Update dependencies

03 Mar 04:25
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: update dependencies 588ac12
  • chore: update dependencies ad7fa4f

Full Changelog: v13.0.0-0...v13.0.1-0

Prepping for v6

14 Feb 07:10
Compare
Choose a tag to compare
Prepping for v6 Pre-release
Pre-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

Bug fix - Mutating value inside rules now recomputes value existence variable

26 Jan 19:28
Compare
Choose a tag to compare
  • fix: mutating a value should recompute the existence of the value eb321b5
  • chore: update dependencies a1a69bc

v12.4.1...v12.4.2