Skip to content

Commit

Permalink
docs: add upgrading guide
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Nov 12, 2022
1 parent e15875f commit 452f76f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/guide/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Not the version you are looking for?

## Other deprecated methods replaced

| Old method | New method |
| ------------------------------- | ------------------------------------------------------------------ |
| `faker.unique` | `faker.helpers.unique` |
| `faker.fake` | `faker.helpers.fake` |
| `faker.commerce.color` | `faker.color.human` |
| `faker.company.companyName` | `faker.company.name` |
| `faker.phone.phoneNumber` | `faker.phone.number` |
| `faker.phone.phoneNumberFormat` | No direct replacement, `faker.phone.number` has a format parameter |
| `faker.phone.phoneFormats` | No direct replacement, `faker.phone.number` has a format parameter |
| Old method | New method |
| ------------------------------- | ----------------------------------------------------------------- |
| `faker.unique` | `faker.helpers.unique` |
| `faker.fake` | `faker.helpers.fake` |
| `faker.commerce.color` | `faker.color.human` |
| `faker.company.companyName` | `faker.company.name` |
| `faker.phone.phoneNumber` | `faker.phone.number` |
| `faker.phone.phoneNumberFormat` | No direct replacement, see documentation for `faker.phone.number` |
| `faker.phone.phoneFormats` | No direct replacement, see documentation for `faker.phone.number` |

## faker.name changed to faker.person

Expand Down

0 comments on commit 452f76f

Please sign in to comment.