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

Replace faker with a maintained version of the package #582

Open
ST-DDT opened this issue Jun 23, 2024 · 2 comments
Open

Replace faker with a maintained version of the package #582

ST-DDT opened this issue Jun 23, 2024 · 2 comments

Comments

@ST-DDT
Copy link

ST-DDT commented Jun 23, 2024

I noticed, that you are using the old version of faker, that is no longer maintained.


"@types/faker": "^5.1.6",

You might want to switch to the maintained package @faker-js/faker.

It has all the versions from the old package, but received numerous updates in the meantime (including built-in types).

Disclaimer: I'm a maintainer of @faker-js/faker.

@marcj
Copy link
Member

marcj commented Jun 27, 2024

@ST-DDT is the API the same?

@ST-DDT
Copy link
Author

ST-DDT commented Jun 27, 2024

In all versions prior to v6 yes.

faker@v<6 === @faker-js/faker@v<6

v6 should have almost no API breaking changes, but a lot of stuff has been moved around internally.

[email protected] == @faker-js/faker@v6 (+fixes +new methods +updated locale data)

Newer versions have a few breaking changes.

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

2 participants