# Address Module Changelog

## 2.8.0
##### 2023-04-08

- Added the languages table/model and its seeder (created ISO 639-1 languages)

## 2.7.1
##### 2023-03-31

- Fixed possible null access on garbled zone members in the db

## 2.7.0
##### 2023-03-12

- Added missing methods to the `Zone` interface (have been present in the implementation from v2.5)
- Added the `getMemberCountryIds()` and the `getMemberProvinceIds()` methods to the Zone class/interface
- Added the `ofType()` scope to the ZoneMember model
- Added `ZoneMember::getName()` both to the model and to the interface
- Changed the internal coding style to PSR-12 + Vanilo style 

## 2.6.0
##### 2023-03-10

- Added the `Zones::get()` method (to query zones without matching with country/province/address)

## 2.5.1
##### 2023-03-09

- Fixed the Zones query giving all results when passing an address with a province to it
- Fixed the old name of "Macedonia, the former Yugo..." by renaming it to "North Macedonia"

## 2.5.0
##### 2023-02-27

- Added zones with scopes (shipping, billing, etc) and members (province, country)
- Added `country`, `province` and `zone` models to the Relation morphMap
- Added the `Zones` query class (eg. `Zones::withShippingScope()->theCountryBelongsTo('CA')`)
- Added the provinces and territories of Canada seeder (English and French variants are separately available)

## 2.4.0
##### 2023-02-16

- Added Laravel 10 support

## 2.3.0
##### 2022-11-24

- Added PHP 8.2 support
- Dropped Laravel 8 support
- Changed minimum Laravel version to 9.2
- Allowing Doctrine DBAL v3

## 2.2.2
##### 2022-11-07

- Fixed UK to be non-EU in the Country Seeder

## 2.2.1
##### 2022-05-22

- Removed theatrical warnings from the streamline provinces' migrations down method

## 2.2.0
##### 2022-03-10

- Added Enum v4 support
- Dropped PHP 7.3 & 7.4 support
- Dropped Laravel 6 & 7 support

## 2.1.2
##### 2022-02-28

- Added PHP 8.1 and Laravel 9 support
- Fixed some model annotations
- Replaced Travis CI with GitHub Actions

## 2.1.1
##### 2021-11-05

- Fixed SQLite incompatibility in downwards migration

## 2.1.0
##### 2020-12-07

- Added PHP 8 support

## 2.0.0
##### 2020-10-11

- BC: Address, Country and Person interfaces have been extended
- BC: Enums have been upgraded to v3
- Dropped Laravel 5 support
- Dropped PHP 7.2 support

## 1.3.0
##### 2020-09-12

- Added Laravel 8 support

## 1.2.1
##### 2020-09-09

- Excluded doctrine/dbal `v2.10.3` that breaks the streamline_provinces migration on SQLite.

## 1.2.0
##### 2020-03-14

- Added Laravel 7 support
- Dropped PHP 7.1 support

## 1.1.0
##### 2019-11-23

- Added Laravel 6 support
- Removed Laravel 5.4 support
- India seeder has been updated according to Jammu and Kashmir Reorganisation act
- Minimum required Concord version is 1.4+

## 1.0.1
##### 2019-08-17

- Migration fix (for downwards direction with MySQL)

## 1.0

## 1.0.0
##### 2019-08-11

- Added parents/children to Provinces
- Changed `province.type` field in the DB it's plain varchar, no longer enum (The `type` field on the PHP model class is still `ProvinceType` enum)
- Added indices to province tables for integrity and speed
- Added India states seeder
- Added Indonesia provinces seeder
- Improved Belgium and Hungary seeders
- The `Province` interface has been extended with new methods
- Dropped PHP 7.0 support
- Added PHP 7.3 support
- Added Laravel 5.8 support
- CI against MySQL and Postgres
- Laravel 5.4 CI has been dropped (still works with Laravel 5.4 at the time of the release)
- Documentation improved


## 0.9

## 0.9.7
##### 2018-10-21

- Changelog has started
- Added Belgium, Germany, Hungary and Netherlands country subdivisions seeders.
- Proven to work with PHP 7.0 - 7.2, Laravel 5.4 - 5.7
