Skip to content

Drop external uuid dependency in favor of native functionality #4929

@vhscom

Description

@vhscom

Describe the problem

The default demo currently uses a dev dependency for generating random v4 UUIDs inside the hooks file which has been available natively in Node and the Web Crypto API for some time now. In Node crypto.randomUUID() it has been available since v14.17.0. The Web Cryptography API, which appears to support web workers as well, uses the same method name.

Describe the proposed solution

Dropping this dependency now that support for Node 14 has ended seems like a good time to cut the baggage.

Alternatives considered

Leave the dependency in place. It's slower than native methods but probably not noticeable in the demo.

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions