aboutsummaryrefslogtreecommitdiff
path: root/docs/guide
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-03-18 09:49:27 +0100
committerGitHub <[email protected]>2024-03-18 08:49:27 +0000
commit6dee178558b87b73bba1395c11d2ffe3d156dad1 (patch)
treefa36e0dfe38c0c84fe9aec832293e69c82ec4f89 /docs/guide
parente624d0edddfbbb6a67f3a3abfec48ac37e70b976 (diff)
downloadfaker-6dee178558b87b73bba1395c11d2ffe3d156dad1.tar.xz
faker-6dee178558b87b73bba1395c11d2ffe3d156dad1.zip
refactor(location)!: remove v8 deprecated location methods (#2753)
Diffstat (limited to 'docs/guide')
-rw-r--r--docs/guide/upgrading_v9/2753.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/guide/upgrading_v9/2753.md b/docs/guide/upgrading_v9/2753.md
new file mode 100644
index 00000000..1886e8b9
--- /dev/null
+++ b/docs/guide/upgrading_v9/2753.md
@@ -0,0 +1,16 @@
+### Remove deprecated location methods
+
+Removed deprecated location methods
+
+| old | replacement |
+| ------------------------------------------------------------------ | ------------------------------------------------------------------ |
+| `faker.location.zipCodeByState` | `faker.location.zipCode({ state })` |
+| `faker.location.cityName` | `faker.location.city` |
+| `faker.location.streetName` | `faker.location.street` |
+| `faker.location.stateAbbr()` | `faker.location.state({ abbreviated: true })` |
+| `faker.location.latitude(max, min, precision)` | `faker.location.latitude({ max, min, precision })` |
+| `faker.location.longitude(max, min, precision)` | `faker.location.longitude({ max, min, precision })` |
+| `faker.location.direction(abbreviated)` | `faker.location.direction({ abbreviated })` |
+| `faker.location.cardinalDirection(abbreviated)` | `faker.location.cardinalDirection({ abbreviated })` |
+| `faker.location.ordinalDirection(abbreviated)` | `faker.location.ordinalDirection({ abbreviated })` |
+| `faker.location.nearbyGPSCoordinate(coordinate, radius, isMetric)` | `faker.location.nearbyGPSCoordinate({ origin, radius, isMetric })` |