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