Skip to content

[Deprecation]: faker.datatype.number is deprecated #1170

Done

Description

@alamenai

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Current

faker.datatype.number()

Expected

faker.number.int()

Reproduction

/

chart.js version

4.3.0

react-chartjs-2 version

5.2.0

Possible solution

No response

Activity

  1. dangreen commented on Nov 30, 2026

    @dangreen
    Collaborator

    Closing: this concerns versions that are no longer maintained (react-chartjs-2 before v5, Chart.js v2 and v3), and the code has changed a lot since. If it still happens with the latest react-chartjs-2 and Chart.js 4, please open a new issue with a reproduction.

    Fixed in #1360: the sandboxes use faker.number.int from @faker-js/faker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions