# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## How do I make a good changelog? ### Guiding Principles - Changelogs are for humans, not machines. - There should be an entry for every single version. - The same types of changes should be grouped. - Versions and sections should be linkable. - The latest version comes first. - The release date of each version is displayed. - Mention whether you follow Semantic Versioning. ### Types of changes - Added for new features. - Changed for changes in existing functionality. - Deprecated for soon-to-be removed features. - Removed for now removed features. - Fixed for any bug fixes. - Security in case of vulnerabilities. ## [Unreleased] - Nil. --- ## [1.0.0] - 2024-05-30 - update neighborhood too_long error message, add MX, PH neighborhood labels [#182](https://github.com/Shopify/worldwide/pull/182) ## [0.15.0] - 2024-05-30 - Created npm package `@shopify/worldwide` (see [README.md](./lang/typescript/README.md)) [#167](https://github.com/Shopify/worldwide/pull/167) - Update additional_address_fields and introduce combined_address_format definitions, introduce Region#{field}_required? methods for street_name, street_number, and neighborhood [#177](https://github.com/Shopify/worldwide/pull/177) ## [0.14.0] - 2024-05-29 - Add support for a line2 address field [#173](https://github.com/Shopify/worldwide/pull/173) - Re-add city to UAE address form and disable city autofill [#175](https://github.com/Shopify/worldwide/pull/175) ## [0.13.0] - 2024-05-27 - Add Address#split_address1 and Address#split_address2 methods [#165](https://github.com/Shopify/worldwide/pull/165) - Add Address#concatenated_address1 and Address#concatenated_address2 methods [#158](https://github.com/Shopify/worldwide/pull/158) - Updated root translation keys for regional locales `bg-BG`, `hr-HR`, `lt-LT`, `ro-RO`, `sk-SK`, `sl-SI` to the base locale (e.g. `bg`) [#164](https://github.com/Shopify/worldwide/pull/164). - Remove city from UAE address form and enable city autofill [#159](https://github.com/Shopify/worldwide/pull/159) - Support additional fields in IL, update streetNumber and neighborhood requirement for BE, CL, ES, MX [#166](https://github.com/Shopify/worldwide/pull/166) --- ## [0.12.2] - 2024-05-21 - Add missing `address1` and `address1_with_unit` formatting keys for GB [#160](https://github.com/Shopify/worldwide/pull/160). ## [0.12.1] - 2024-05-17 - Use `>=` instead of `~>` for `activesupport` in `.gemspec` [#156](https://github.com/Shopify/worldwide/pull/156) ## [0.12.0] - 2024-05-15 - Add pry-byebug gem [#149](https://github.com/Shopify/worldwide/pull/149) - Introduce additional_address_fields to Region class and define them for BE, BR, CL, CO, ES, ID, MX, NL, PH, TR, VN [#148](https://github.com/Shopify/worldwide/pull/148) - Define format_extended attribute on 12 country regions [#150](https://github.com/Shopify/worldwide/pull/150) ## [0.11.1] - 2024-05-13 - Handle blank strings for Region, country_code parameter in Zip normalization [#138](https://github.com/Shopify/worldwide/pull/138) - Reposition zip in NF show: format to come after country, not before city. [#142](https://github.com/Shopify/worldwide/pull/142) - Allow building number on address2 for CH [#143](https://github.com/Shopify/worldwide/pull/143) - Attempt to fix stringio incompatibility with Ruby 3.3 (deployment error) [#145](https://github.com/Shopify/worldwide/pull/145) ## [0.11.0] - 2024-04-11 - Add country_prefix to phone [#133](https://github.com/Shopify/worldwide/pull/133) - Add autofill_city to region [#132](https://github.com/Shopify/worldwide/pull/132) - Re-introduce city from UAE address form and disable city autofill [#131](https://github.com/Shopify/worldwide/pull/131) - Add translations for regionalized zip_unknown_for_address, province_unknown_for_address [#125](https://github.com/Shopify/worldwide/pull/125), [#126](https://github.com/Shopify/worldwide/pull/126) - Remove city from UAE address form and enable city autofill [#127](https://github.com/Shopify/worldwide/pull/127) - Add logic for known-to-exist extant outcodes for GB [#136](https://github.com/Shopify/worldwide/pull/136) ## [0.10.3] - 2024-03-14 - Add regional language for zip_unknown_for_address, province_unknown_for_address. Remove error message for zip_unknown_for_street_and_city [#121](https://github.com/Shopify/worldwide/pull/121) - Fix broken CLDR `import`/`patch`/`generate` rake tasks [#119](https://github.com/Shopify/worldwide/pull/119) - Patch El Salvador department names, standardizing on not including "department of" [#120](https://github.com/Shopify/worldwide/pull/120) --- ## [0.10.2] - 2024-03-12 - Add translations for address line 1, 2 concern messages [#115](https://github.com/Shopify/worldwide/pull/115), [#116](https://github.com/Shopify/worldwide/pull/116) - Make new concern messages more generic for address line 1, 2 [#114](https://github.com/Shopify/worldwide/pull/114) - Add localized concern messages when field is unknown for address [#109](https://github.com/Shopify/worldwide/pull/109) --- ## [0.10.1] - 2024-02-27 - Return early if country_code is nil Zip::Normalize [#110](https://github.com/Shopify/worldwide/pull/110) ## [0.10.0] - 2024-02-13 - New UTC long timezone format [#103](https://github.com/shopify/worldwide/pull/103) - Configure FR to hide provinces from addresses [#101](https://github.com/Shopify/worldwide/pull/101) ## [0.9.0] - 2024-02-05 - Add Thai to the list of scripts identified by `Worldwide::Scripts.identify`. [#96](https://github.com/Shopify/worldwide/pull/96) - Add translations for address fields with invalid province errors. [#97](https://github.com/Shopify/worldwide/pull/97) ## [0.8.0] - 2024-02-02 - Add translations for address fields with mathematical symbols errors. [#92](https://github.com/Shopify/worldwide/pull/92) - Enable lookup of Region by alternate name. [#93](https://github.com/Shopify/worldwide/93) - Allow lookup of EU region using alternate code QUU. [#94](http://github.com/Shopify/worldwide/pull/94) ## [0.7.1] - 2024-02-01 - Patch in a name for CQ (Sark). [#84](https://github.com/Shopify/worldwide/pull/84) - Patch data related to region 830 (Channel Islands). [#85](https://github.com/Shopify/worldwide/pull/85) - Patch name of SZ (eSwatini) in Italian. [#86](https://github.com/Shopify/worldwide/pull/86) - Patch names of HK and MO in zh-TW and zh-Hant. [#87](https://github.com/Shopify/worldwide/pull/87) - Patch name of GB (United Kingdom) in Suomi. [#88](https://github.com/Shopify/worldwide/pull/88) ## [0.7.0] - 2024-01-31 - Support address field lookup when there is no country code. [#82](https://github.com/Shopify/worldwide/pull/82) ## [0.6.8] - 2024-01-31 - Prefer "SAR" over "SAR China" in Chinese-language names for regions `HK` and `MO`. [#79](https://github.com/Shopify/worldwide/pull/79). - Add Worldwide::Field.valid_key? method. [#80](https://github.com/Shopify/worldwide/pull/80) ## [0.6.7] - 2024-01-30 - Patch some territory names (BQ, NL, TF, TR) [#77](https://github.com/Shopify/worldwide/pull/77) ## [0.6.6] - 2024-01-25 - Allow building numbers on address2 field for Portugal addresses [#73](https://github.com/Shopify/worldwide/pull/73) ## [0.6.5] - 2024-01-24 - Allow building numbers on address2 field for Polish addresses [#71](https://github.com/Shopify/worldwide/pull/71) ## [0.6.4] - 2024-01-22 - Allow building number in address2 for BE [#70](https://github.com/Shopify/worldwide/pull/70) - Update Singapore GST in preparation for January 1 2024 increase [#68](https://github.com/Shopify/worldwide/pull/68) ## [0.6.3] - 2023-12-11 - Change HM, TF and GS `group_name` to respective continents based on M49. [#60](https://github.com/Shopify/worldwide/pull/60) ## [0.6.2] - 2023-12-11 - Zone lookup by Hash [#61](https://github.com/Shopify/worldwide/pull/61) ## [0.6.1] - 2023-12-11 - Allow building number in address2 for DK [#53](https://github.com/Shopify/worldwide/pull/53) - Avoid .present? and .blank? so we don't require Rails [#57](https://github.com/Shopify/worldwide/pull/57) - (bugfix) Zone lookup by name [#58](https://github.com/Shopify/worldwid/pull/58) ## [0.6.0] - 2023-12-08 - Add localized concern messages for address1 + 2 warnings and address may not exist message [#54](https://github.com/Shopify/worldwide/pull/54) - Change gem description [#51](https://github.com/Shopify/worldwide/pull/51) ## [0.5.1] - 2023-11-29 - Fix for building_number_required to default to false [#48] ## [0.5.0] - 2023-11-20 - Add support for `Region#associated_continent` to return the containing continent of the region [#43](https://github.com/Shopify/worldwide/pull/43) - Add more postal code prefixes for KR [#44](https://github.com/Shopify/worldwide/pull/44) - Add name alternates for the zones of South Korea [#45](https://github.com/Shopify/worldwide/pull/45) - Add support for Hangul and Arabic script detection, update Latn regexp [#46](https://github.com/Shopify/worldwide/pull/46) ## [0.4.1] - 2023-11-10 - Add support for deprecated timezone Australia/Canberra [#35](https://github.com/Shopify/worldwide/pull/35) - Add alternate codes for territories [#39](https://github.com/Shopify/worldwide/pull/39) - Allow building numbers on address2 field for Austrian addresses [#40](https://github.com/Shopify/worldwide/pull/40) - Add zone name alternates for Italy [#42](https://github.com/Shopify/worldwide/pull/35) ## [0.4.0] - 2023-11-08 - Add region name alternates [#32](https://github.com/Shopify/worldwide/pull/32) - Cache `Region#parent_name` [#33](https://github.com/Shopify/worldwide/pull/33) - Use hash tables to look up regions by code [#36](https://github.com/Shopify/worldwide/pull/36) ## [0.3.0] - 2023-11-03 - Add code alternates for Japan [#23](https://github.com/Shopify/worldwide/pull/23) - Add code alternates for Puerto Rico [#24](https://github.com/Shopify/worldwide/pull/24) - Record multiple parents per region [#27](https://github.com/Shopify/worldwide/pull/27) - Add region.building_number_may_be_in_address2 [#28](https://github.com/Shopify/worldwide/pull/28) - Lookup by parent-child ISO and CLDR codes for dual-status territories [#29](https://github.com/Shopify/worldwide/pull/29) - Handle ISO_CODE only zones lookup [#26](https://github.com/Shopify/worldwide/pull/26) ## [0.2.0] - 2023-11-01 - Add Region#group and Region#group_name [#15](https://github.com/Shopify/worldwide/pull/15) - Ensure Region#has_zip? returns a boolean for all regions [#17](https://github.com/Shopify/worldwide/pull/17) - Zip normalization bugfix when parent isocode is not set [#6](https://github.com/Shopify/worldwide/pull/6) - Update region parent when alternates are defined [#18](https://github.com/Shopify/worldwide/pull/18) - Add partial matching for Region#valid_zip? [#19](https://github.com/Shopify/worldwide/pull/19) ## [0.1.1] - 2023-10-27 - Fix issue with deploy to rubygems.org failing [0.1.0] - 2023-10-27 - Initial release of Worldwide