-
-
Notifications
You must be signed in to change notification settings - Fork 920
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
refactor(location)!: rename definition street to street_pattern #2051
Conversation
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2051 +/- ##
=======================================
Coverage ? 99.61%
=======================================
Files ? 2536
Lines ? 242236
Branches ? 1298
=======================================
Hits ? 241307
Misses ? 902
Partials ? 27 |
We decided yes, just to have this at the top in the changelog
Still unsure how to name this
No response yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I checked correctly the following locales have street_name
s, but no pattern using it.
- az
- es_MX
- he
- ka_GE
- ko
- lv
- nb_NO
- ro
- ru
- sv
- uk
I will create a new issue for this: #2062
why is this marked as breaking in the PR desc? |
Because it breaks your code if you use |
Won't {{location.street}} grab the method not the definitions? |
I expect yes |
please review or test what you need
Looks ok but shouldn't be marked breaking if it isn't. |
On https://next.fakerjs.dev/guide/upgrading.html#faker-address-changed-to-faker-location perhaps the row for streetName should be updated to reflect that if you are upgrading from faker.address.streetName then you should migrate straight to faker.location.street instead of faker.location.streetName? |
Should we split this PR into two? |
Would be a welcome change but not required since we already reviewed it IMO |
The migration guide needs updating anyway so it doesnt really matter IMO. |
#2071 should be merged first, so this can be rebased |
close #2020