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.
3.38.0 - 2024-10-30
- El Salvador (SLV) locality list structure and fields. This breaks previously saved addresses.
3.37.3 - 2024-10-09
- Denmark (DNK) postal code rules.
3.37.2 - 2024-10-02
- Two new postal codes to Dominican Republic (DOM) country file.
3.37.1 - 2024-09-23
- Changed the rules for France (FRA) so the number field is shown to users.
3.37.0 - 2024-07-29
- implemented autoUpperCase rule for countries with alphanumeric postal codes, ensuring consistent uppercase formatting.
3.36.6 - 2024-07-23
- Malta geolocation rules.
- Fix the validations rules for Saudi Arabia.
- Enable autocomplete postal code from reference field for ARE [KI#312132].
3.36.2 - 2024-06-06
- Ecuador ZIP code regex validation to accept both 6-digit postal codes and the older 4-digit municipality codes used in the list of provinces.
- New city ('Guatemala Zona 25') in Guatemala.
3.36.1 - 2024-05-29
- Rules for Ireland.
3.36.0 - 2024-05-22
- Hungarian translations.
- Malta geolocation.
3.35.5 - 2024-05-09
- Malta postal code validation.
3.35.4 - 2024-05-06
- Malta postal code validation.
3.35.3 - 2024-04-26
3.35.2 - 2024-04-25
- Malta address rules
- Fix prop for state in GBR
3.35.1 - 2024-02-05
- Netherlands ('NLD') country rules to show number in address summary.
3.35.0 - 2024-01-25
- Hungary country rules and placeholder.
3.34.12 - 2023-12-06
- Belgium ('BEL') country rules.
- Netherlands ('NDL') country rules.
3.34.11 - 2023-10-18
- New Zealand geolocation to format neighborhood.
- Made Number field not required for NLD customers.
- Fields displayed for Netherlands customers, in order to better reflect the usual experience for shoppers in that country.
- New Zealand geolocation to include neighborhood.
- Ecuador postal code settings to be more granular and show the cities list during check-out.
3.34.6 - 2023-08-24
3.34.5 - 2023-08-24
- Virgin Islands (US) country rules.
- Postal code rules when using geolocation mode
- Change Uruguay geolocation city types order for accuracy.
- Fix missing
notApplicable
property innumber
field for geolocation mode
- Interop of external ESM imports in NPM build.
- Rules for Japan ('JPN')
- Street field using geolocation in New Zealand (NZL) file.
- Discard postal code rules when using geolocation mode in
AddressRules
.
- Placeholder addresses for several countries.
- Country index list.
- Dominican Republic (DOM) rules.
- Number field discarded in geolocation mode for FRA
- Number field discarded in geolocation mode for USA
- Number field as required in geolocation mode for USA
- Address being reviewed in the geolocation mode even for complete addresses.
- Rules for Puerto Rico ('PRI'). Same as USA, but with 'State' field pre-filled with 'PR'.
- Australia ('AUS') address fields rearranged using GAPI.
- Rules for Thailand ('THA').
- Australia ('AUS') postal code auto-fill API has been disabled to allow GAPI to perperly auto-fill.
- Filter optionsMap, valueOptions and options out from
AddressRules
geolocation validation.
- Australia ('AUS') postal code auto-fill enable.
Suburb
translation
- Build script not including JSON files.
- Geolocation implementation for Australia ('AUS').
- Add the number field as hidden in France config file.
- Indonesian translation.
- City "Villa Madero" to "Buenos Aires" province.
- English, Portuguese, Italian and Spanish translations.
- Greece country rules.
- Fixed city type being retrieved from GMaps API
- Replace usage of
splunkevents-js
withwindow.logSplunk
.
- Jamaica country rules.
- Invalidate whitespace-only required fields.
- Panama country rules.
- Address rules for SPAIN.
- Missing Guatemala, Costa Rica and Panama states and cities.
- Australia ('AUS'), Indonesia ('IDN') and New Zealand ('NZL') country rules.
- Added German complement to rules
- Logic for log of mismatched addresses.
- Regex for detecting "module not found" error.
- Relax validation of field options when validating an address value.
- Include valid option in combobox if postalCode is valid.
- Thai translation.
- Czech and Slovak translations.
- Saudi Arabia ('SAU') country rules.
NLD
andBEL
users not able to proceed to payment due to missingnumber
geolocation field.
- Singapore address rules,
complement field
as mandatory
address-form.field.suburb
string- US states
- Missing India's states and cities.
- South Africa neighborhood label.
- Invalid US states.
- Arabic translation.
- Arabic translation and Russia country rules for two-levels postal code.
- Support for ZAF locale
- Russia postal code country rules
- Arabic translation.
- Singapore address rules, hiding
city
andstate
fields.
- South Africa country rules for geolocation.
- Arabic translation.
- South Africa country rules.
- Add required flag to India's postal code field.
- Ecuador city
San Rafael
. - India's cities and states.
- Arabic translation.
- Address rules for Iraq.
- Address rules for Singapore.
- Address rules for Iraq.
- Russia country rules.
- Russia country rules.
- Russian translation.
- New cities to ECU country.
- Invalid address
field
name forIRQ
.
- Address rules for Iraq.
address-form.geolocation.example.RUS
to all language files.
- Use exponential backoff and limit retries on Splunk calls.
- Russian translation
- Update the cities order in CHL file
- Activate postal code API for Portugal
- Add "Mi Perú" city to PER country
- Update build script and update @babel/preset-typescript for transforms/address lib generation.
- Exports
geolocationAutoCompleteAddress
to VTEX IO apps.
- I18n Ar
- Adding new cities to BOL country
- Adding new cities to ECU country
- Add new cities to COL country
- I18n It
- Adress fields with null value being marked with
geolocationAutoCompleted
flag
- Forgotten URL for CEP in Brazil
- Address fields being overwritten with old information on geolocation.
- Add more cities to romanian zipcodes
- Change of address autocompleted by postal code.
- Address "General Gutierrez" mismatch for postal code based argentina stores.
- Add the county capital cities and their corresponding postal codes.
receiverName
not required for geolocation.number
fields required in geolocation but hidden in postal code.
- Remove duplicate city names and corresponding values from Romanian zipcodes list.
neighborhood
info to the address summary for the countryARG
.
- Now different address fields can have equal
types
property. - The precedence present on
types
property will be respected.
- Update Romanian zipcodes list
- Updated
isValidAddress
to accept geolocation rules definition.
geolocationAutoCompleted
flag being lost after the address is validated.
- Address "Santa Fe" mismatch for postal code based argentina stores.
- Add URL data to address mismatch log.
- Tests for geolocation address mismatch log.
- Address data is now indexable by Splunk.
- Cities and neighborhoods being wrongfully logged as address mismatches.
- Account name not being logged when used outside Checkout.
- Country from rules object is now differentiable from address country on logger.
- Raised exceptions from Splunk logger breaking the application.
- Maps unknown
state
values tostate
options forARG
country.
- Get Forgotten Postal Code Url for Brazil (Correios).
- Splunk log on address mismatch between Google Maps response and the option lists
- Add new two new cities to col file.
- Valid address with
valid: false
fields not correctly updated to havevalid: true
in all fields.
- Add a few cities to PER file.
- Fix 'Villa Hipodromo' naming in ARG file
- Ensure the
state
field is populate when user visitsaddresses
inside their account forRUS
.
CHL
rules when filling data with Google Maps.
postalCodeAutoCompleteAddress
ignoring providedaddressId
.
- Add RUS for RUSSIA.
- Applies a behavior where the postal code isnt required, adding them as ROU example.
- Change Escuintla Postal Codes in GTM file.
- Change regions in CHL file.
La Loma
city to COL file.
Fátima
city to ARG file.
- Address autocomplete for Argentina's capital.
- Rules for San Marino.
- Update
AddressContainer
to pass remaining arguments ofonChangeAddress
to prop.
- State/city selection on Venezuela because postalCode was not required when it should.
- Rules for India.
- Rules for Finland, Denmark, and Sweden removing the 'state' field as mandatory.
- Address rules for Unites Arabes Emirates.
- Italian address rules when using geolocation.
- State/city selection on Bolivia because postalCode was not required when it should.
- Fix "Rosario" (Santa Fé) city in Argentina to "Rosário".
- Eslint and prettier errors.
- I18n Cs.
- I18n It.
- Crowdin configuration file.
- Update Chile localities.
- Fix the abbreviation of 'Yukon' & 'Nunavut' provinces in Canada.
- Messages localization in romanian.
- Fix Guatemala postalCode's RegEx to allow 6-digit options.
- Update Guatemala localities.
- Google geolocation rules for Italia around the data that should be used as "state" and "city".
- Add bg, ca, da, de, el, fi, fr, it, ko, nl, pl, ro, ru, sk, sl, sv and uk translations.
- Make
receiverName
required while using geolocation input.
- Prop
className
toAddressForm
component.
- Google geolocation not working for ARG country.
- New Guatemala localities, splitting Mixco and Villa Nueva.
- Added support for newer versions of
react-intl
package.
- Endless postal code input loading icon.
- Italian messages translations.
- Revert validation of country code in address change handler.
- State/city selection on Romania because postalCode was not required when it should.
- Remove USA states as options for South Korea.
handleAddressChange
callingpostalCodeAutoCompleteAddress
even with anull
country code.
- Address rules for Italia.
- Argentina missing locality.
- Prop errorMessage of Styleguide's Input.
- Italian i18n.
postalCodeAutoCompleteAddress
reusing previous address info.
- Argentina missing localities.
- Russian translation.
- PRY missing localities.
- Address rules for Costa Rica.
- Sorting NIC and SLV alphabetically.
geolocationAutoCompleted
verification inhandleAddressChange()
to display number input when not written down in geolocation field.
- Autocomplete was removing other fields values when the request was finished.
- Address rules for El Salvador and Nicaragua.
- State/city selection on Guatemala because
postalCode
was not required when it should.
- Ecuador missing localities.
- Typos in some states/cities from Guatemala.
- Styleguide npm package verison.
- Default number geolocation setup.
- Dutch and Polish translations.
- Number geolocation autofill in URY addresses.
- Updated
AddressContainer
to validate address on update ifshouldHandleAddressChangeOnMount
is passed.
- Update Ecuador rules, including some parishes for Santa Elena province.
- Styleguide npm package verison.
- Others USA territories as state options.
- Input field do now show validation error message when focused.
- State/city selection on Chile because postalCode was not required when it should
- Flaky tests that would return empty string or null depending of computer/Node version
- Loading for scenarios when loading is passed as a prop to
StyleguideInput
.
- Postal Code autocomplete which should only call API if country is supported.
- Autocompleting address with a new address instead of just autocompleted fields which caused confusion merging different addresses.
Spinner
breaking the UI because ofundefined
prop being rendered.
- Unit tests;
- Missing locale messages.
StyleguideInput
to have an external loading property to show it in the right moment instead of when autocomplete is performed
- Number input throwing an error when geolocation address doesn't contain a number.
- Geolocation field rules not being considered on form validation.
- Geolocation number input not being required (should have a value or the not applicable value).
useGeolocation
prop forAddressRules
component.
- Styleguide input to show
InputButton
instead ofInput
with aButton
suffix.
- Peru neighborhood geolocation validation.
- Postal code autocompletion on paste.
- Update Ecuador rules, including some parishes for Pichincha province.
- Add German translations.
- Add address examples in geolocation mode for some countries
- Update Chile postal code for some regions.
- Missing validation message to
GeolocationNumberInput
- Update Chile postal-code for Puerto Montt (Region X).
- Spanish locale messages
- Removed unused depdendency (
regexpp
).
- Removed eslint-utils from dependencies--moved to devDependencies.
PER
rules to mapadministrative_area_level_3
andlocality
to geolocation rules
- Styleguide button to have submit behavior to
StyleguideInput
; - Ability to have a submit function for
PostalCodeGetter
; - Optional button to
PostalCodeGetter
.
- Styleguide input to have
onSubmit
function; README.md
to cover new behavior forPostalCodeGetter
.
locality
in CHL to be inneighborhood
- Keep valid fields valid if they are valid
- ROU geolocation placeholder translation.
- USA postal code regular expression to cover optional diplomatic pouch numbers
- postalCode API route host URL to consider if baseURI exists
- Aditional address fields to
getAddressByGeolocation
- New romanina localities
- Passing
rules
instead ofrules.geolocation
togeolocationAutoCompleteAddress
since it uses the root object in the function
- Fixes components not changing locale keys after locale change
- Country restrictions when geolocation autocomplete address
- Adding validation with properties with wrong object values
- Checkbox condition now checks if number is valid
- Checkbox now uses
checked
also
- Locale change for inputs
- Romanian and Catalan locale messages
- PostalCodeAPI rules for multiple countries
- Romanian locale messages
- Support for new
isDisposable
field
- Add Italian translation
- Remove neighborhood wrongful requirement
- Field number validation updated for rules that hide it in geolocation
- Getting already filled multiple levels postal code due to the API sets strings uppercase
- Updated link for forgotten postal code for MEX
- Added
focus
andreason
to shallow fields for components to update theses props
- Ecuador addresses
- Remapping regions
- Updated Chile regions
intl-equalizer
devDependency- Hook pre-push
- Locales with
not applicable
keys
- Geolocation logic input
getAddressByGeolocation
functionInputCheckbox
componentnotApplicable
flag to number field- Tests using geolocation addresses
- Tests cases with the new functions
- Geolocation Rules
- Implement GB postcode in GBR rules
Postcode
message for United Kingdom
- Fix
delimiterAfter
in summary
- Fix normalizing fields for third level validation
- Add new locations for Chile
- Fix postal code label for GBR
- Added countries to
countries.js
- Updated
locales
folder tomessages
folder
- Add
ROU
andGBR
validations
- Add
GeolocationInput
to inputs for io imports - Add
GoogleMapsContainer
andMap
to components for io imports
- Add VTEX IO fetching to
AddressRules
component
- Transpose library to VTEX IO scaffolding and configuration
- Add
Shapes
,helpers
,components
andinputs
exports to be imported by vtex io components
- Improve app performance
- Fix "Dont know postal code" in mobile
- Fix
geolocationAutoCompleteAddress
ofMap
component
- Add France validation rules
- Add support to new separator of multiple options of Postal Code service
- Add Romanian translation
- Fix
shouldComponentUpdate
ofMap
component
- Handle postal code response of multiple values (Fix vtex/omnishipping#826)
- Fix StyleguideInput maxLength prop
- Fix focus being called when ref was wrong
- Only show AddressSummary delimiters if previous or next field has value
- Exporting
injectAddressContext
from index - "I don't know my postal code" button text wrapping
- Triggering postal code autocompletion on submit
- Updated README to include
v2.0.0
changes
- [BREAKING] Both inputs moved to an
inputs
folder - [BREAKING] CustomInput renamed to StyleguideInput [#103]
- [BREAKING] AddressContainer now uses plain children instead of render prop
- AddressContainer now passes down
address
,onChangeAddress
andInput
via context to children (can be overriden in each component for backwards compatibility) - Map now does not require the
geoCoordinates
prop; it may use the coordinates from the injected address as default [#104]
- This Changelog
AddressSubmitter
component and tests