Skip to content

Commit 1682f84

Browse files
committed
Release version 2.0.0
1 parent 8d5621e commit 1682f84

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

CHANGELOG.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
# Yii Validator Change Log
22

3-
## 2.0.0 under development
3+
## 2.0.0 August 02, 2024
44

5-
- Chg #694: Rename `AtLeast` rule to `FilledAtLeast` and `OneOf` rule to `FilledOnlyOneOf` (@arogachev)
6-
- Enh #492: Add type to error messages related with incorrect input (@arogachev)
7-
- Enh #735: Make `Json::$message` a bit more clear (@arogachev)
8-
- Bug #736: Fix wrong value for `type` parameter for `Each::$incorrectInputKeyMessage` (@arogachev)
9-
- New #734: Add `InEnum` rule (@samdark)
10-
- New #630, #718: Include attribute name in error messages when it's present (@dood-, @arogachev)
115
- New #615: Add the `Each::PARAMETER_EACH_KEY` validation context parameter that available during `Each` rule handling
126
and containing the current key (@dood-)
13-
- Enh #648: Raise the minimum version of PHP to 8.1 (@pamparam83)
7+
- New #630, #718: Include attribute name in error messages when it's present (@dood-, @arogachev)
148
- New #633: Add PHP attribute that sets property label for usage in error messages (@dood-)
9+
- New #734: Add `InEnum` rule (@samdark)
10+
- Chg #583: Change "attribute" to "property" in class/trait/method/variable/placeholder names (@vjik)
11+
- Chg #613: Change type of `$escape` argument in `Error::getValuePath()` from `bool|string|null` to `string|null`
12+
(@arogachev)
1513
- Chg #623: List translated attributes in error message for `OneOf` and `AtLeast` rules (@arogachev)
1614
- Chg #624: Fix meaning of error message in `OneOf` rule (@arogachev)
1715
- Chg #625: Improve meaning and use pluralization in error message for `OneOf` and `AtLeast` rules (@arogachev)
1816
- Chg #626: Disallow `$min` greater than amount of `$attributes` in `AtLeast` configuration (@arogachev)
19-
- Bug #632: Fix property name usage in error messages of rules in `Nested` rule (@vjik)
20-
- Enh #636: Improve psalm annotations in `Result` class (@vjik)
21-
- Enh #637: Add German translation (@took)
2217
- Chg #634: Move `getName()` method from `RuleInterface` to `RuleWithOptionsInterface` (@arogachev)
2318
- Chg #634: Rename `RuleWithOptionsInterface` to `DumpedRuleInterface` (@arogachev)
2419
- Chg #634: Use FQCN as a name for built-in rules during export with `RulesDumper` (@arogachev)
2520
- Chg #634: Use FQCN as a name for rules not implementing `DumpedRuleInterface` during export with `RulesDumper`
26-
(@arogachev)
27-
- Enh #622: Use `json_validate()` built-in PHP function in `JsonHandler` if code is run with PHP 8.3 (@arogachev)
28-
- Enh #639: Simplify validation of JSON in `JsonHandler` using built-in PHP functions for PHP versions below 8.3
29-
(@arogachev)
30-
- Chg #679: Change type of `$rule` argument in `RuleHandlerInterface::validate()` from `object` to `RuleInterface`
3121
(@arogachev)
3222
- Chg #660: Change type of `$skipOnEmpty` argument in rules' constructors from `mixed` to `bool|callable|null`
3323
(@arogachev)
34-
- Chg #613: Change type of `$escape` argument in `Error::getValuePath()` from `bool|string|null` to `string|null`
24+
- Chg #679: Change type of `$rule` argument in `RuleHandlerInterface::validate()` from `object` to `RuleInterface`
3525
(@arogachev)
26+
- Chg #694: Rename `AtLeast` rule to `FilledAtLeast` and `OneOf` rule to `FilledOnlyOneOf` (@arogachev)
27+
- Enh #492: Add type to error messages related with incorrect input (@arogachev)
28+
- Enh #622: Use `json_validate()` built-in PHP function in `JsonHandler` if code is run with PHP 8.3 (@arogachev)
29+
- Enh #636: Improve psalm annotations in `Result` class (@vjik)
30+
- Enh #637: Add German translation (@took)
31+
- Enh #639: Simplify validation of JSON in `JsonHandler` using built-in PHP functions for PHP versions below 8.3
32+
(@arogachev)
33+
- Enh #648: Raise the minimum version of PHP to 8.1 (@pamparam83)
3634
- Enh #726: Refactor `Result::add()`: took `array_merge()` out of the `foreach` (@lav45)
37-
- Chg #583: Change "attribute" to "property" in class/trait/method/variable/placeholder names (@vjik)
3835
- Enh #733: Make parameter `$rules` in `RulesNormalizer::normalize()` optional (@vjik)
36+
- Enh #735: Make `Json::$message` a bit more clear (@arogachev)
37+
- Bug #632: Fix property name usage in error messages of rules in `Nested` rule (@vjik)
3938
- Bug #733: Rules provided by data object PHP attributes were not used in `RulesNormalizer::normalize()` (@vjik)
39+
- Bug #736: Fix wrong value for `type` parameter for `Each::$incorrectInputKeyMessage` (@arogachev)
4040

4141
## 1.4.1 June 11, 2024
4242

0 commit comments

Comments
 (0)