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

@faker-js/faker@8 : deprecated functions #28

Open
2 of 3 tasks
douglasduteil opened this issue May 12, 2023 · 4 comments
Open
2 of 3 tasks

@faker-js/faker@8 : deprecated functions #28

douglasduteil opened this issue May 12, 2023 · 4 comments

Comments

@douglasduteil
Copy link
Contributor

douglasduteil commented May 12, 2023

Hi

A new major version of https://github.com/faker-js/faker/releases/tag/v8.0.0 is out and its comes with some deprecated functions.
Here is a snippet of the lengthy logs my console print from an auto mocked api :

📜

# [...]
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.name is deprecated since v8.0 and will be removed in v10.0. Please use faker.person instead.
[@faker-js/faker]: faker.name is deprecated since v8.0 and will be removed in v10.0. Please use faker.person instead.
[@faker-js/faker]: faker.name is deprecated since v8.0 and will be removed in v10.0. Please use faker.person instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.name is deprecated since v8.0 and will be removed in v10.0. Please use faker.person instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
[@faker-js/faker]: faker.datatype.number() is deprecated since v8.0 and will be removed in v9.0. Please use faker.number.int() instead.
# [...]


Checklist

  • replace faker.datatype.number with faker.number.int
  • replace faker.name with faker.person
  • add faker.setDefaultRefDate at the start of the template

We might want to use the example folder in the ci to test that it works with more cases.

@zoubingwu
Copy link
Owner

zoubingwu commented May 23, 2023

thanks to @chrisbarless, faker.number.int was introduced in #29 and published in 0.14.0

@chrisbarless
Copy link
Contributor

thanks to @chrisbarless, faker.number.int was introduced in #29 and published in 0.14.0

Note @zoubingwu that the merged #29 includes faker.name to faker.person

There are two commits, but I split the changes incorrectly. My apologies.

@daiki-takag1
Copy link

daiki-takag1 commented Jan 12, 2024

Hi,

I recently started using this library and noticed that some methods have been deprecated in faker-js version 8.0. In my environment, I received the following warning:

[@faker-js/faker]: faker.datatype.uuid() is deprecated since v8.0 and will be removed in v9.0. Please use faker.string.uuid() instead.

I'm looking forward to the updates. I appreciate all the work you are doing.

Thank you!

@wvffle
Copy link
Contributor

wvffle commented Feb 20, 2024

@daiki-takag1 I've created #47 to resolve this message

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

No branches or pull requests

5 participants