Releases: glhd/laravel-addressing
Releases · glhd/laravel-addressing
3.3.0
3.2.0
3.1.0
3.0.0
The 3.0.0
release is mostly around dropping support for older versions of Laravel and PHP. The codebase has been updated with PHP 7.4-compatible type hints and a few files have been tweaked to support the latest Laravel 8 release. Other than that, the only feature change is that entity attributes can be accessed as properties or via getters. This is particularly useful if you want to use Laravel's collection methods like pluck()
/etc.
Changed
- Dropped support for older PHP and Laravel versions
- Switched to PHP 7.4 syntax (more usage of type hints)
- Switched to GitHub actions for CI
- Implemented Get a Changelog standard
Added
- Added support for accessing values as attributes (i.e.
$country->country_code
as well as$country->getCountryCode()
) - Added additional tests
Fixed
- Updated the collection methods to support Laravel's new
pop($count)
method signature
2.2.1
2.2.0
2.1.0
2.0.1
This should not cause breaking changes for most people, but we're tagging it as 2.0 because technically the behavior is different:
- The postal code and administrative area validators will now pass if provided an empty string in a country that does not require that address field. So, an empty postal code in the US will fail, but an empty postal code in Ireland will pass. This is more a bugfix than a breaking change, but it's a change of behavior regardless.
- The administrative area validator will now pass if we don't have a list of valid areas for the country
- Added Laravel 7 support