Releases: willdurand/Negotiation
3.1.0 (2022-01-30)
This new release should be fully compatible with PHP 8.1.
What's Changed
- Added: add missed fallback to generic language (in
LanguageNegotiator
) by @rtm-ctrlz in #113 - Fixed: invalid PHPDocs return comment by @michalbundyra in #112
- Fixed: incompatibilities with some null values for PHP 8.1 by @W0rma in #114
- Fixed: switch from travis to github actions by @willdurand in #116
New Contributors
- @michalbundyra made their first contribution in #112
- @rtm-ctrlz made their first contribution in #113
- @W0rma made their first contribution in #114
Full Changelog:
See 3.0.0...3.1.0
3.0.0 (2020-11-26)
👋 Hi! It's been a long time.
This new major version is very similar to the 2.x
version. In fact, the only main benefit is to support PHP 8, which required some changes that might be considered backward incompatible (see #106).
Upgrade should be safe and it's recommended. This library has been very stable over the years so we didn't change a lot of things between the versions 2 and 3. Have fun!
3.0.0-alpha3 (2017-05-14)
2.3.1 (2017-05-14)
3.0.0-alpha2 (2017-05-04)
- Added: handle wildcard "+" segments (cf. #92)
2.3.0 (2017-05-04)
- Added: handle wildcard "+" segments (cf. #92)
3.0.0-alpha1 (2017-03-04)
This is the very first alpha
release of the next major version of this library. This version works almost like the current major version (v2) but fixes a sort of regression for some users that could not be merged into the v2 (cf. version 2.2.1).
💬 Everyone is encouraged to migrate to the v3.
- Added: Implement
getOrderedElements()
(cf. #90) - Added: a third optional (boolean) parameter is now available in the
getBest($header, array $priorities, $strict = false)
method. This parameter allows to throw exceptions if theAccept
header is incorrect (default behavior is to silently ignore this case, cf. release 2.0.3).
2.2.1 (2016-10-14)
I revert the code introduced in version 2.2.0 about 2 hours after having released it because the code changed the public API, and therefore introduced a BC break. This version fixes the issue and I am going to publish a new major version for the code previously introduced in 2.2.0.
Please use this version and not 2.2.0
2.2.0 (2016-10-14)
Added: a third optional (boolean) parameter is now available in the getBest($header, array $priorities, $strict = false)
method. This parameter allows to throw exceptions if the Accept
header is incorrect (default behavior is to silently ignore this case, cf. release 2.0.3).
2.1.0 (2016-09-21)
- Added: support for quality-of-source factor (cf. #77)