Skip to content

Replace uuid with crypto.randomUUID() #1377

@trivikr

Description

@trivikr

Description:

Replace uuid with crypto.randomUUID()

import {v4 as uuidv4} from 'uuid';

Justification:

crypto was added globally as follows:

  • v23.0.0 | No longer experimental.
  • v19.0.0 | No longer behind --experimental-global-webcrypto CLI flag.
  • v17.6.0, v16.15.0 |  Added in: v17.6.0, v16.15.0

Docs: https://nodejs.org/api/globals.html#crypto

Are you willing to submit a PR?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions