Skip to content

Releases: kudashevs/accept-language

v3.4.0

08 Apr 14:10
Compare
Choose a tag to compare
  • Increase the minimum supported orchestra/testbench version
  • Add a phpstan/phpstan dev dependency
  • Add a Github Action with PHPStan analysis tool
  • Add a new retrieve_accepted_languages log event
  • Add a validation for the default_language option
  • Add a new InvalidOptionValue exception for this validation
  • Change the project folders structure
  • Change Normalizers simplify the usage
  • Fix DefaultLanguage wrong fallback option name
  • Update PHPDoc types
  • Update README.md
  • Some improvements

Note: this release changes the default behavior for the situation when the process method has not been called.
Now the public methods will return empty values rather than throwing an error.

Full Changelog: v3.3.0...v3.4.0

v3.3.0

17 Mar 08:58
Compare
Choose a tag to compare
  • Add support for PHP 8.3
  • Add support for PHPUnit 11
  • Update README.md
  • Some improvements

Full Changelog: v3.2.0...v3.3.0

v3.2.0

28 Aug 20:51
Compare
Choose a tag to compare
  • Fix an issue with boolean configuration values in the Laravel service provider
  • Add a fallback language for the default_language option
  • Add new log events to make logging more convenient
  • Add a new LogPresenterInterface abstraction
  • Add a log_level option and related functionality (closes #4)
  • Add a log_only option and related functionality (closes #3)
  • Update and add new options to the Laravel configuration file
  • Update some test suites to cover more test cases
  • Update composer.json bump the PHPUnit version
  • Update README.md
  • Some improvements

Note: this release adds some new options, please update your Laravel config file (optional)

Full Changelog: v3.1.1...v3.2.0

v3.1.1

29 Apr 11:33
Compare
Choose a tag to compare
  • Fix the default log option type in the Laravel service provider
  • Some insignificant improvements

v3.1.0

07 Apr 14:30
Compare
Choose a tag to compare
  • Add logging functionality (#1)
  • Add a new LogProvider abstraction
  • Add a new useLogger public method
  • Add a Laravel configuration file
  • Add support for Laravel 10
  • Add a psr/log dependency
  • Update the Laravel service provider
  • Massive update of README.md
  • Some improvements

This release introduces a Laravel configuration file with various configuration settings.
For the Laravel users, it is recommended to publish the configuration file after update.

v3.0.1

17 Dec 22:08
Compare
Choose a tag to compare
  • Fix the AcceptLanguage Laravel auto-discovery alias
  • Add acceptance tests
  • Refactor some abstractions
  • Refactor the structure of tests
  • Some improvements

v3.0.0

11 Nov 16:02
Compare
Choose a tag to compare
  • Increase the minimum supported PHP version to 7.4
  • Add support for PHP 8.2 version
  • Add new process and getHeader public methods
  • Add new use_extlang_subtag, use_script_subtag, use_region_subtag options
  • Add a new exact_match_only option for the restrictive matching
  • Add support for variant, extension, and private-use subtags
  • Update the accepted_languages option to accept different separators
  • Update the matching algorithm to retrieve language tag derivatives
  • Update the Laravel service provider
  • Update README.md
  • Massive refactoring (introduce Factories, Normalizers, Value Objects)

v2.0.0

11 Mar 00:18
Compare
Choose a tag to compare
  • Increase the minimum PHP version to 7.3
  • Refactor AcceptLanguageServiceProvider
  • Update README.md
  • Some improvements

v1.9.0

15 Jan 12:43
Compare
Choose a tag to compare
  • Add a TagNormalizer abstraction
  • Add a separator option to the LanguageTagNormalizer
  • Update README.md usage and options sections
  • Massive refactoring

v1.8.2

14 Jan 12:29
Compare
Choose a tag to compare
  • Fix a bug in the parseHeaderValue method
  • Add CHANGELOG.md file
  • Update .gitattributes with new exclusions
  • Some improvement