Skip to content

Replace uuid with crypto.randomUUID() #1377

Closed

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

Activity

  1. v-mahabaleshwars commented on Sep 24, 2025

    @v-mahabaleshwars
    Contributor

    Hi @trivikr,
    Thank you for creating this feature request. We will investigate it and provide feedback as soon as we have some updates.

  2. trivikr commented on Sep 24, 2025

    @trivikr
    ContributorAuthor

    I've posted a PR at #1378

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

    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