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

refactor(person)!: flatten jobs definitions #2505

Merged
merged 11 commits into from
Feb 27, 2024
7 changes: 7 additions & 0 deletions docs/guide/upgrading_v9/2505.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Jobs definitions reorganized

The locale definitions used by `faker.person.jobTitle()`, `faker.person.jobDescriptor()`, `faker.person.jobArea()` and `faker.person.jobType()` have been reorganized and are no longer nested under `definitions.person.title`. If you are using the public methods, no changes are required. You only need to change your code if you are accessing the raw definitions e.g. in `faker.helpers.fake()`.
matthewmayer marked this conversation as resolved.
Show resolved Hide resolved

| Before | After |
| - | - |
|`person.title.descriptor` | `person.job_descriptor` |
|`person.title.level` | `person.job_area` |
|`person.title.job` | `person.job_type` |
matthewmayer marked this conversation as resolved.
Show resolved Hide resolved

Loading