Skip to content

Releases: mirumee/google-i18n-address

3.1.1

04 Sep 08:52
c839b72
Compare
Choose a tag to compare

This release does not change anything in the logic of the library - it's only about the changes in the pyproject.toml to properly indicate the license and use modern Hatch features.

3.1.1 is functionally the same as 3.1.0.

3.1.0

12 Jun 10:18
bf9e67e
Compare
Choose a tag to compare

Recently it was brought to our attention that releases of google-i18n-address are including extra files which cause issues for other projects.

3.1 release is functionally the same as 3.0, but it excludes those files.

3.0.0 - 3.11 support, package updates, PEP8 compliance, validation rules update

05 Jun 07:01
78d26cc
Compare
Choose a tag to compare

Backwards incompatible changes:

What's Changed

New Contributors

Full Changelog: 2.5.2...3.0.0

2.5.2 - Update validation rules for June 2022

28 Jun 09:12
95f489a
Compare
Choose a tag to compare

Updated address validation rules to the most recent version

Change how validation works for non-required fields

05 Apr 09:35
Compare
Choose a tag to compare

Previously for countries where we had a list of possible country area values the validator would mark an empty field as invalid even if it was not required. This version only checks field values against a list of valid choices if the values are non-empty.

Make ValidationRules a regular object, add country_code and split postal_code_examples

20 Nov 12:56
Compare
Choose a tag to compare

ValidationRules is no longer a namedtuple as indexing it using integer keys did not make a lot of sense. This will allow us to add new fields without breaking compatibility in future.

The ValidationRules instance now has a country_code field along with the previously available country_name.

⚠️ The ValidationRules.postal_code_examples is now a list instead of a string. This is a backwards-incompatible change and if your code relies on the examples it needs to be adapted.

Fix normalization of city areas and make validation rules useful for display purposes

15 Nov 15:36
Compare
Choose a tag to compare

Previous releases had a bug that caused city name to be used when normalizing a city area name.

Validation rules now return a unique list of choices for country_area_choices, city_choices and city_area_choices where previous version would return a list of all existing translations resulting in duplicate values where spelling was identical.

For example the province list for Canada will now result in the following country_area_choices:

[('AB', 'Alberta'),
 ('BC', 'British Columbia'),
 ('BC', 'Colombie-Britannique'),
 ('MB', 'Manitoba'),
 ('NB', 'New Brunswick'),
 ('NB', 'Nouveau-Brunswick'),
 ('NL', 'Newfoundland and Labrador'),
 ('NL', 'Terre-Neuve-et-Labrador'),
 ('NT', 'Northwest Territories'),
 ('NT', 'Territoires du Nord-Ouest'),
 ('NS', 'Nouvelle-Écosse'),
 ('NS', 'Nova Scotia'),
 ('NU', 'Nunavut'),
 ('ON', 'Ontario'),
 ('PE', 'Prince Edward Island'),
 ('PE', 'Île-du-Prince-Édouard'),
 ('QC', 'Quebec'),
 ('QC', 'Québec'),
 ('SK', 'Saskatchewan'),
 ('YT', 'Yukon')]

Introduce new API

24 Oct 15:06
Compare
Choose a tag to compare
  • address normalization,
  • address latinization

Ignore case sensitive in postal codes

27 Jun 09:05
Compare
Choose a tag to compare
  • Ignore case sensitive in postal codes,
  • fix encoding issue in python 3.5,
  • update validation data.

Fix city areas bug

04 Jan 19:26
Compare
Choose a tag to compare

Coverage 100% 🎊