From 10b625d64b2be270e1e66978be96fd7c2958738b Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Thu, 18 Jul 2024 10:45:37 -0300 Subject: [PATCH 1/3] Fix malta geolocation rule --- CHANGELOG.md | 3 +++ react/country/MLT.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index faf56c2e..085a3095 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Malta geolocation rules. + ## [4.24.6] - 2024-07-15 ### Added diff --git a/react/country/MLT.js b/react/country/MLT.js index 25e34b43..cce06f4e 100644 --- a/react/country/MLT.js +++ b/react/country/MLT.js @@ -156,7 +156,7 @@ export default { postalCode: { valueIn: 'long_name', types: ['postal_code'], - required: false, + required: true, }, number: { From a5c00f165b6a5c902ae21a79d110fefef2a9745f Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Tue, 24 Sep 2024 08:07:25 -0300 Subject: [PATCH 2/3] Add new postal codes to DOM.js --- CHANGELOG.md | 3 +++ react/country/DOM.js | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b0b5bc1..95157205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added +- Two new postal codes to Dominican Republic (DOM) country file. + ## [4.25.2] - 2024-09-18 ### Added diff --git a/react/country/DOM.js b/react/country/DOM.js index b5523ae0..a356292a 100644 --- a/react/country/DOM.js +++ b/react/country/DOM.js @@ -1,6 +1,6 @@ import { TWO_LEVELS } from '../constants' -import { secondLevelPostalCodes } from '../transforms/postalCodes' import { getOneLevel, getTwoLevels } from '../transforms/addressFieldsOptions' +import { secondLevelPostalCodes } from '../transforms/postalCodes' // Based on sheet provided by Rodolfo Bússola: // https://docs.google.com/spreadsheets/d/1_uoFfVCg-E8lrGJ235ZkcqnK0cspyX53/edit?usp=sharing&ouid=113929948326320493678&rtpof=true&sd=true @@ -43,7 +43,8 @@ const countryData = { 'El Pino': '63400' }, 'Distrito Nacional': { - 'Santo Domingo De Guzmán': '10101' + 'Santo Domingo De Guzmán': '10101', + 'Santo Domingo Distrito Nacional': '10100' }, Duarte: { 'San Francisco de Macorís': '31000', @@ -69,7 +70,8 @@ const countryData = { Moca: '53011', 'Cayetano Germosén': '56100', 'Gaspar Hernández': '56200', - 'Jamao Al Norte': '56400' + 'Jamao Al Norte': '56400', + 'El Higuerito': '56000' }, 'Hato Mayor': { 'Hato Mayor': '25000', From 2a20d247fef56b7148543a7fdd542210bf1b3eae Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Tue, 24 Sep 2024 08:21:24 -0300 Subject: [PATCH 3/3] Revert unwanted change in a unrelated file --- react/country/MLT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/country/MLT.js b/react/country/MLT.js index cce06f4e..25e34b43 100644 --- a/react/country/MLT.js +++ b/react/country/MLT.js @@ -156,7 +156,7 @@ export default { postalCode: { valueIn: 'long_name', types: ['postal_code'], - required: true, + required: false, }, number: {