Skip to content

uuid v5() produces invalid/undefined results (segfault gone post-#5136, but still non-functional) #5197

@proggeramlug

Description

@proggeramlug

Perry: origin/main @ a1d9ce6 (v0.5.1174) · macOS arm64

Bug

uuid's v5() no longer segfaults (#5136 is fixed) but the package is still non-functional — it produces invalid/undefined results on both code paths:

  • native shim (uuid resolved from node_modules, not in compilePackages): v5(), validate(), version() all return undefined/0.
  • compiled real source (uuid in perry.compilePackages): version() throws TypeError: Invalid UUID — i.e. v5() produced a malformed id.

Repro

import { v5, validate, version } from 'uuid';
const ns = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
const id = v5('perry', ns);
console.log(id, validate(id), version(id));

Expected (Node)

6cb3836f-339d-52d8-acc6-8751229b61cf true 5

Actual (Perry)

shim:            undefined 0 undefined
compilePackages: TypeError: Invalid UUID

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparityNode.js compatibility / parity gaps

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions