Releases: poppinss/validator-lite
Releases · poppinss/validator-lite
ESM only
Breaking changes
- The package is now ESM-only
- The types are no longer exported from the main entrypoint. Instead, they are exported from the
/types
submodule. - Slight changes in the wording of error messages (Might be a breaking change, if some part of your codebase relies on exact error message string)
Code Refactoring
- remove validator package and use internal helpers for validation (164fa9b)
Features
What's Changed
- Add optionalWhen variant by @RomainLanz in #4
New Contributors
- @RomainLanz made their first contribution in #4
Full Changelog: v1.0.3...v2.0.0
Remove poppinss/utils
Fix schema.enum method types
Commits
- chore: add poppinss and myself as authors cd33935
- docs(README): fix npm badge url fbcd5f8
- refactor: make husky files executable 6395e1f
- docs(README): fix badge url for github workflow 4be30da
- chore: update dependencies a56989b
- refactor: fix enum return types and assert for types within tests cc10cb8
What's Changed
- fix enum return types and assert for types within tests by @thetutlage in #1
New Contributors
- @thetutlage made their first contribution in #1
Full Changelog: v1.0.1...v1.0.2
Fix wrong `main` entry point
Initial release
@poppins/validator-lite
was extracted from @adonisjs/env
for the primary purpose of re-using it in @julr/vite-plugin-validate-env
See readme for more details.
Full Changelog: https://github.com/poppinss/validator-lite/commits/v1.0.0