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

Fix deprecated faker API methods #731

Merged
merged 6 commits into from
Jul 18, 2024
Merged

Conversation

simonwhatley
Copy link
Collaborator

@simonwhatley simonwhatley commented Jul 17, 2024

Faker has updated several of its API methods. This PR fixes the deprecation warnings.

Old New
faker.address faker.location
faker.datatype.number faker.number.int
faker.datatype.uuid faker.string.uuid
faker.random.alphaNumeric faker.string.alphanumeric
faker.random.boolean faker.datatype.boolean

Faker locales have also changed:

Old New
faker.locale = 'en_GB' const { fakerUK: faker } = require('@faker-js/faker')
faker.locale = 'fr' const { fakerFR: fakerFR } = require('@faker-js/faker')

@carlosmartinez carlosmartinez temporarily deployed to register-tt-pr-731 July 17, 2024 10:00 Inactive
@simonwhatley simonwhatley merged commit e19a34b into main Jul 18, 2024
1 check passed
@simonwhatley simonwhatley deleted the fix-faker-deprecated-methods branch July 18, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants