respect-validation/CHANGELOG.md

165 lines
5.7 KiB
Markdown
Raw Permalink Normal View History

# Changes in Respect\Validation 2.x
2023-02-17 07:12:57 +01:00
## 2.3
Versioning Changes:
- Dropped support for PHP 8.0 and below.
2023-02-17 07:12:57 +01:00
- Updated dev dependencies
Deprecations:
- Symfony façade validators are no longer supported and were
removed.
Fixes:
- `KeySet` now reports which extra keys are causing the rule to fail.
- Ensure empty strings are never a valid currency code
- Do not hide messages on EachException
- Dot not throw exception when validating an uninitialized property
Changes:
- You can no longer wrap `KeySet` in `Not`.
- `Phone` now uses `giggsey/libphonenumber-for-php`, this package needs
to be installed if you want to use this validator.
- `Phone` now supports the parameter `$countryCode` to validate phones
of a specific country.
## 2.2.4
2023-02-15 02:05:24 +01:00
Meta:
- CHANGELOG.md is being written once again to provide an overview
of active changes to the API and codebase.
2023-02-15 02:05:24 +01:00
Versioning Changes:
- Dropped PHP 7.3 support.
- Added support for PHP 8.0 and PHP 8.1. This will be the
last release with PHP 7.4 support. Support for PHP 8.2 is considered
experimental, local development should be done at 8.1.
2023-02-15 02:05:24 +01:00
Deprecations:
- Zend Framework façade validators are no longer supported and were
removed.
- Symfony façade validators are no longer suggested, and will be
removed in release 2.3.
2023-02-15 02:05:24 +01:00
- v::dateTime('z') is not supported anymore in PHP8, and should not be relied upon
Fixes:
- Updated bin/update-currency-codes to fetch XML from another source.
- Updated bin/update-iso-codes to new file format.
- Updated regionals (CountryCode.php, CurrencyCode.php, Tld.php) (2023-02-13).
- Added RuPay card validation (thanks @rakshit087)
- Fixed `v::decimal()` for float values (thanks @scruwi)
- Added `v::portugueseNif()` to validate _Número de Identificação Fiscal_ in Portugal (thanks @goncalo-andrade).
2023-02-13 23:09:30 +01:00
- Allow 5-digit and 6-digit postal codes for Cambodia (thanks @omega3000)
2023-02-13 23:21:42 +01:00
- `v::intval()` now handles negative values with trailing zeroes better (thanks @l-x)
2023-02-15 02:05:24 +01:00
## 2.2.x
Changelogs between 1.1.0 and 2.2.4 are available only through `git log` and GitHub Releases.
# Changes in Respect\Validation 1.x
2015-10-07 07:56:23 +02:00
All notable changes of the Respect\Validation releases are documented in this file.
2016-04-24 03:11:23 +02:00
## 1.1.0 - 2016-04-24
### Added
- Create "Fibonacci" rule (#637)
- Create "IdentityCard" rule (#632)
- Create "Image" rule (#621)
- Create "LanguageCode" rule (#597)
- Create "Pesel" rule (#616)
- Create "PhpLabel" rule (#652)
### Changed
- Allow the define brands for credit card validation (#661)
- Define names for the child of Not rule (#641)
- Ensure namespace separator on appended prefixes (#666)
- Length gets length of integers (#643)
- Set template for the only rule in the chain (#663)
- Throw an exception when age is not an integer (#667)
- Use "{less/greater} than or equal to" phrasing (#604)
2015-10-07 14:23:49 +02:00
## 1.0.0 - 2015-10-24
2015-10-07 07:56:23 +02:00
### Added
- Add "alpha-3" and "numeric" formats for "CountryCode" rule (#530)
2015-10-07 17:03:05 +02:00
- Add support for PHP 7 (#426)
2015-10-21 06:02:31 +02:00
- Create "BoolVal" rule (#583)
2015-10-16 21:46:08 +02:00
- Create "Bsn" rule (#450)
2015-10-07 07:56:23 +02:00
- Create "CallableType" rule (#397)
2015-10-17 22:08:25 +02:00
- Create "Countable" rule (#566)
2015-10-18 16:02:48 +02:00
- Create "CurrencyCode" rule (#567)
2015-10-07 07:56:23 +02:00
- Create "Extension" rule (#360)
- Create "Factor" rule (#405)
- Create "Finite" rule (#397)
2015-10-17 20:17:07 +02:00
- Create "FloatType" rule (#565)
2015-10-13 18:27:49 +02:00
- Create "Identical" rule (#442)
2015-10-23 03:45:56 +02:00
- Create "Imei" rule (#590)
2015-10-07 07:56:23 +02:00
- Create "Infinite" rule (#397)
2015-10-17 04:43:01 +02:00
- Create "IntType" rule (#451)
2015-10-17 21:55:00 +02:00
- Create "Iterable" rule (#570)
2015-10-05 21:20:04 +02:00
- Create "KeyNested" rule (#429)
2015-10-07 07:56:23 +02:00
- Create "KeySet" rule (#374)
2015-10-08 18:54:42 +02:00
- Create "KeyValue" rule (#441)
2015-10-07 07:56:23 +02:00
- Create "Mimetype" rule (#361)
2015-10-14 06:02:53 +02:00
- Create "NotBlank" rule (#443)
2015-10-15 15:31:45 +02:00
- Create "NotOptional" rule (#448)
2015-10-07 07:56:23 +02:00
- Create "Optional" rule (#423)
- Create "ResourceType" rule (#397)
2015-10-07 17:35:25 +02:00
- Create "ScalarVal" rule (#397)
2015-10-07 07:56:23 +02:00
- Create "Size" rule (#359)
- Create "SubdivisionCode" rule for 252 countries (#411)
- Create "VideoUrl" rule (#410)
- Create method `getMessages()` for nested exceptions (#406)
### Changed
- Add country code to the message of "PostalCode" exception rule (#413)
- Make "ArrayVal" validate only if the input can be used as an array (#574)
2015-10-14 08:24:30 +02:00
- Make "Between" rule inclusive (#445)
- Make "Max" rule inclusive (#445)
- Make "Min" rule inclusive (#445)
2015-10-07 07:56:23 +02:00
- New generic top-level domains (#368)
2015-10-07 17:55:42 +02:00
- On `AbstractRelated` (`Attribute`, `Call` and `Key`) define names for child rules (#365)
2015-10-07 07:56:23 +02:00
- On exceptions, convert `Array` to string (#387)
- On exceptions, convert `Exception` to string (#399)
- On exceptions, convert `Traversable` to string (#399)
- On exceptions, convert resources to string (#399)
- On exceptions, do not display parent message then rule has only one child (#407)
- On exceptions, improve `Object` conversion to string (#399)
- On exceptions, improve conversion of all values by using JSON (#399)
- On exceptions, nested messages are displayed in a Markdown list (#588)
- Rename exception class "AbstractGroupedException" to "GroupedValidationException" (#591)
- Rename exception class "AbstractNestedException" to "NestedValidationException" (#591)
2015-10-07 17:55:42 +02:00
- Rename rule "Arr" to "ArrayVal"
2015-10-07 17:03:05 +02:00
- Rename rule "Bool" to "BoolType" (#426)
- Rename rule "False" to "FalseVal" (#426)
- Rename rule "Float" to "FloatVal" (#426)
- Rename rule "Int" to "IntVal" (#426)
2015-10-07 17:55:42 +02:00
- Rename rule "NullValue" to "NullType"
- Rename rule "Object" to "ObjectType"
2015-10-07 17:03:05 +02:00
- Rename rule "String" to "StringType" (#426)
- Rename rule "True" to "TrueVal" (#426)
2015-10-07 16:38:24 +02:00
- Use `filter_var()` on "TrueVal" and "FalseVal" rules (#409)
2015-10-07 07:56:23 +02:00
### Removed
2015-10-19 15:48:15 +02:00
- Drop support for PHP 5.3 (#466)
- Remove `addOr()` shortcut (#444)
- Remove `NestedValidationExceptionInterface` interface (#591)
2015-10-19 15:48:15 +02:00
- Remove `not()` shortcut (#444)
2015-10-23 12:46:12 +02:00
- Remove `ValidationExceptionInterface` interface (#591)
2015-10-19 15:48:15 +02:00
- Remove identical checking from "Equals" rule (#442)
2015-10-07 07:56:23 +02:00
- Removed Deprecated Rules (#277)
- Validation rules do not accept an empty string by default (#422)