Skip to content

fix(location): update valid ZIP ranges for FL and VA#3167

Merged
ST-DDT merged 3 commits into
faker-js:nextfrom
matthewmayer:fix/fl-va-zips
Oct 12, 2024
Merged

fix(location): update valid ZIP ranges for FL and VA#3167
ST-DDT merged 3 commits into
faker-js:nextfrom
matthewmayer:fix/fl-va-zips

Conversation

@matthewmayer

@matthewmayer matthewmayer commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

fix #3165

Changes the VA zips to 22201-24599 (this is not every VA code, but shouldnt overlap with DC)

Changes the FL zips to "320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","341","342","344","346","347","349" plus a 2 digit ending

Not very elegant, but this ensures we don't generate 340... military ZIPs.

ref https://en.wikipedia.org/wiki/List_of_ZIP_Code_prefixes

@matthewmayer matthewmayer requested a review from a team as a code owner October 10, 2024 07:44
@netlify

netlify Bot commented Oct 10, 2024

Copy link
Copy Markdown

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit a237f41
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/670afb2472fce40009985648
😎 Deploy Preview https://deploy-preview-3167.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@matthewmayer matthewmayer changed the title fix(location): ZIPs for FL and VA fix(location): Update valid ZIP ranges for FL and VA Oct 10, 2024
@codecov

codecov Bot commented Oct 10, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (4056ab0) to head (a237f41).
Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3167   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files        2798     2798           
  Lines      227793   227793           
  Branches      959      957    -2     
=======================================
+ Hits       227726   227732    +6     
+ Misses         67       61    -6     
Files with missing lines Coverage Δ
src/locales/en_US/location/postcode_by_state.ts 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

@matthewmayer matthewmayer self-assigned this Oct 10, 2024
@matthewmayer matthewmayer added c: bug Something isn't working m: location Something is referring to the location module p: 1-normal Nothing urgent labels Oct 10, 2024
@matthewmayer matthewmayer added this to the v9.x milestone Oct 10, 2024
@ST-DDT

ST-DDT commented Oct 10, 2024

Copy link
Copy Markdown
Member

FL and VA don't throw any errors anymore, but what about these:

Mismatch detected: Generated 72643 for AR but located in MO
Mismatch detected: Generated 83414 for ID but located in WY
Mismatch detected: Generated 96799 for HI but located in AS
@ST-DDT ST-DDT requested review from a team October 10, 2024 21:27
@ST-DDT ST-DDT changed the title fix(location): Update valid ZIP ranges for FL and VA fix(location): update valid ZIP ranges for FL and VA Oct 10, 2024
@matthewmayer

Copy link
Copy Markdown
Contributor Author

FL and VA don't throw any errors anymore, but what about these:

Mismatch detected: Generated 72643 for AR but located in MO
Mismatch detected: Generated 83414 for ID but located in WY
Mismatch detected: Generated 96799 for HI but located in AS

see #3169 these seem to be various one-off weirdnesses, can probably address later

@ST-DDT ST-DDT enabled auto-merge (squash) October 12, 2024 22:41
@ST-DDT ST-DDT merged commit e271d4a into faker-js:next Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: bug Something isn't working m: location Something is referring to the location module p: 1-normal Nothing urgent

3 participants