Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

matthewmayer
Copy link
Contributor

@matthewmayer matthewmayer commented Oct 10, 2024

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
Copy link

netlify bot commented Oct 10, 2024

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
Copy link

codecov bot commented Oct 10, 2024

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
Copy link
Member

ST-DDT commented Oct 10, 2024

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
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
23 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postcodes for Virginia are incorrect only has one correct post code and one incorrect one
3 participants