angel3_validate 10.0.0
angel3_validate: ^10.0.0 copied to clipboard
Cross-platform HTTP request body validator library based on `matcher`.
Change Log #
10.0.0 #
Breaking changes in 10.0.0 #
- Breaking: A nested
Validatorfilters its data, where keys it does not know were kept (a mass-assignment hole). With severalValidators on one key, the keys of each are kept - Breaking:
validateandvalidateQueryvalidate a request without anapp, where they let it through unvalidated; a validator with anAngelMatcherthen throws aStateError
Fixes in 10.0.0 #
- Null values: An
AngelMatcherorContextAwareMatcherdoes not matchnull, where it failed with aTypeError(a 500, or a 400 with the error as its message) asyncApplyValidator: Uses the validator'scustomErrorMessages, runs theAngelMatchers of nestedValidators, givesAngelMatchers the input as their context, ascheckdoes, where keys without rules were missing, and takes an optionalappvalidateEvent: Is generic, so it can be listened to on a typed service such asMapService; data that is not aMapis a 400 instead of a cast error- Docs: The README tells how to install and use the package, and how to migrate from 9.x
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.4.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.3.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
8.1.1 #
- Updated repository link
8.1.0 #
- Updated
lintsto 3.0.0
8.0.2 #
- Fixed incorrect mismatch message handling
8.0.1 #
- Fixed missing mismatch errors
8.0.0 #
- Require Dart >= 3.0
7.0.1 #
- Fixed linter warnings
7.0.0 #
- Require Dart >= 2.17
6.0.0 #
- Require Dart >= 2.16
5.0.0 #
- Skipped release
4.1.0 #
- Updated linter to
package:lints - Updated
build_runnerto major version 2.1.0 - Updated
build_web_compilersto major version 3.2.0
4.0.2 #
- Updated broken links in README
- All 7 unit test passed
4.0.1 #
- Updated README
4.0.0 #
- Migrated to support Dart >= 2.12 NNBD
3.0.0 #
- Migrated to work with Dart >= 2.12 Non NNBD
2.0.2 #
- Deduplicate error messages.
2.0.1+1 #
- Fix bug in the implementation of
maxLength.
2.0.1 #
- Patch for updated body parsing.
2.0.0 #
- Finish update for Angel 2.
2.0.0-alpha.1 #
- Update for Angel 2.
1.0.5-beta #
- Use
wrapMatcheron explicit values instead of throwing. - Add async matchers.
- Add context-aware matchers.
1.0.4 #
isNonEmptyStringtrims strings.ValidationExceptionextendsAngelHttpException.- Added
requireFieldandrequireFields.