All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- 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.
- 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.
Nil.
- Set Malaysia and Singapore as tax_inclusive #323
- Update or correct example zips #324
- Correct zip regex patterns and make them Javascript-compatible #325
- Add zip requirement and tax inclusive methods to country regions #320
- Set Ireland (IE) zip as a required address field #321
- Speed up configure_i18n by precomputing paths and indexing descendants #316
- Update BV phone number prefix to 47 (Norway) #318
- Update Finland's (FI) tax rate #319
- Add street_number.missing_building_number messages #313
- Update translations #303
- Improve Worldwide::Config.configure_i18n performance #301
- Add
zip_prefixes
for Spain. #295 - Move expensive resource initialization into an explicit
eager_load!
namespace method #297
- Update BR address1_regex to remove lookbehinds #
- Update Address splitting methods to split on the first delimiter #291
- Configure regexp timeout in Worldwide#Phone #290
- Add address1_regex to regions #281
- Add address1_regex for BE, CL, MX, ES, IL #282
- Add address1_regex for DE #286
- Update legacy timezone mappings for Europe/Kiev #288
- Add alternate Arabic names for UAE zones #283
- add support for additional address fields streetName, streetNumber in DE #273
- set additional_field neighborhood as required in BR #279
- Update legacy timezone mappings for America/Indianapolis and Asia/Calcutta #267
- Nothing, released by mistake.
- Update NZ postcode prefixes #265
- Associates Kosovo with Southern Europe #216
- Update iana_to_rails_time_zone mappings for 11 tz's, add time zone data consistency tests#259
- Add consistency test for default and optional field labels #258
- Introduce example_address to the worldwide region, update country ymls #257
- Improve tests related to building number requiredness #249
- Update Dutch translations for street_number #236
- Move Units constants
SUPPORTED_HUMANIZATIONS
andMEASUREMENT_KEYS
toWorldwide.units.supported_humanizations
andWorldwide.units.measurement_keys
#240 - Allow house numbers on address2 for Japan #245
- Support multiple script-based address concatenation rules for each country #224
- Fixed a typo in list of supported scripts from
Latn
toLatin
- Make street number optional in CL #228
- Add translations for neighborhood error strings in AE, CR, KW, PA, PE, SA #220
- Add localized error strings for neighborhood in AE, CR, KW, PA, PE, SA #215
- Change delimiter from Non-Breaking Space to Word Joiner #221
Patch release containing many non-english translation updates
- Update translations for neighborhood too_long error message, add translations for localized neighborhood errors in MX, PH #191
- Generate concatenated address1/2 values when some additional field values are present #199
- update street_name and street_number too_long error message #203
- Additional field definitions in AE, CR, KW, PA, PE, SA, updated decorators for PH, VN #206
- All error messages now contain an
_instructional
and_informative
key. If theWorldwide::Field::error
method is called with acode
that does not end in either_instructional
or_informative
, theWorldwide::Field::error
method will append_instructional
to thecode
and returns this error message. #205
- Merge duplicate language definition on some region yaml files to restore missing languages;
NO
adds "en" and "nb",SA
adds "en", SG does not change #188 - updated format_extended for TW VN [#187]#187)
- Add IANA timezone to rails timezone mappings #194
- Add support for
_instructional
and_informative
error message types. Fields without an_instructional
error translation key, will fall back to their previous field's error message #140
- update neighborhood too_long error message, add MX, PH neighborhood labels #182
- Created npm package
@shopify/worldwide
(see README.md) #167 - Update additional_address_fields and introduce combined_address_format definitions, introduce Region#{field}_required? methods for street_name, street_number, and neighborhood #177
- Add support for a line2 address field #173
- Re-add city to UAE address form and disable city autofill #175
- Add Address#split_address1 and Address#split_address2 methods #165
- Add Address#concatenated_address1 and Address#concatenated_address2 methods #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. - Remove city from UAE address form and enable city autofill #159
- Support additional fields in IL, update streetNumber and neighborhood requirement for BE, CL, ES, MX #166
- Add missing
address1
andaddress1_with_unit
formatting keys for GB #160.
- Use
>=
instead of~>
foractivesupport
in.gemspec
#156
- Add pry-byebug gem #149
- Introduce additional_address_fields to Region class and define them for BE, BR, CL, CO, ES, ID, MX, NL, PH, TR, VN #148
- Define format_extended attribute on 12 country regions #150
- Handle blank strings for Region, country_code parameter in Zip normalization #138
- Reposition zip in NF show: format to come after country, not before city. #142
- Allow building number on address2 for CH #143
- Attempt to fix stringio incompatibility with Ruby 3.3 (deployment error) #145
- Add country_prefix to phone #133
- Add autofill_city to region #132
- Re-introduce city from UAE address form and disable city autofill #131
- Add translations for regionalized zip_unknown_for_address, province_unknown_for_address #125, #126
- Remove city from UAE address form and enable city autofill #127
- Add logic for known-to-exist extant outcodes for GB #136
- Add regional language for zip_unknown_for_address, province_unknown_for_address. Remove error message for zip_unknown_for_street_and_city #121
- Fix broken CLDR
import
/patch
/generate
rake tasks #119 - Patch El Salvador department names, standardizing on not including "department of" #120
- Add translations for address line 1, 2 concern messages #115, #116
- Make new concern messages more generic for address line 1, 2 #114
- Add localized concern messages when field is unknown for address #109
- Return early if country_code is nil Zip::Normalize #110
- Add Thai to the list of scripts identified by
Worldwide::Scripts.identify
. #96 - Add translations for address fields with invalid province errors. #97
- Add translations for address fields with mathematical symbols errors. #92
- Enable lookup of Region by alternate name. #93
- Allow lookup of EU region using alternate code QUU. #94
- Patch in a name for CQ (Sark). #84
- Patch data related to region 830 (Channel Islands). #85
- Patch name of SZ (eSwatini) in Italian. #86
- Patch names of HK and MO in zh-TW and zh-Hant. #87
- Patch name of GB (United Kingdom) in Suomi. #88
- Support address field lookup when there is no country code. #82
- Prefer "SAR" over "SAR China" in Chinese-language names for regions
HK
andMO
. #79. - Add Worldwide::Field.valid_key? method. #80
- Patch some territory names (BQ, NL, TF, TR) #77
- Allow building numbers on address2 field for Portugal addresses #73
- Allow building numbers on address2 field for Polish addresses #71
- Allow building number in address2 for BE #70
- Update Singapore GST in preparation for January 1 2024 increase #68
- Change HM, TF and GS
group_name
to respective continents based on M49. #60
- Zone lookup by Hash #61
- Allow building number in address2 for DK #53
- Avoid .present? and .blank? so we don't require Rails #57
- (bugfix) Zone lookup by name #58
- Add localized concern messages for address1 + 2 warnings and address may not exist message #54
- Change gem description #51
- Fix for building_number_required to default to false [#48]
- Add support for
Region#associated_continent
to return the containing continent of the region #43 - Add more postal code prefixes for KR #44
- Add name alternates for the zones of South Korea #45
- Add support for Hangul and Arabic script detection, update Latn regexp #46
- Add support for deprecated timezone Australia/Canberra #35
- Add alternate codes for territories #39
- Allow building numbers on address2 field for Austrian addresses #40
- Add zone name alternates for Italy #42
- Add region name alternates #32
- Cache
Region#parent_name
#33 - Use hash tables to look up regions by code #36
- Add code alternates for Japan #23
- Add code alternates for Puerto Rico #24
- Record multiple parents per region #27
- Add region.building_number_may_be_in_address2 #28
- Lookup by parent-child ISO and CLDR codes for dual-status territories #29
- Handle ISO_CODE only zones lookup #26
- Add Region#group and Region#group_name #15
- Ensure Region#has_zip? returns a boolean for all regions #17
- Zip normalization bugfix when parent isocode is not set #6
- Update region parent when alternates are defined #18
- Add partial matching for Region#valid_zip? #19
- Fix issue with deploy to rubygems.org failing
[0.1.0] - 2023-10-27
- Initial release of Worldwide