Skip to content

fix: update uuid dependency to version 14.0.0 and refactor import in …#1336

Closed
amitsingh05667 wants to merge 1 commit into
masterfrom
SDK-8859
Closed

fix: update uuid dependency to version 14.0.0 and refactor import in …#1336
amitsingh05667 wants to merge 1 commit into
masterfrom
SDK-8859

Conversation

@amitsingh05667
Copy link
Copy Markdown
Member

upgrade uuid to v14

Why

uuid v14 dropped CommonJS (CJS) support - it's ESM-only. The previous static import was compiled by TypeScript to require("uuid") in the CJS build, which throws ERR_REQUIRE_ESM at runtime.

Changes

  • package.json - bumped uuid from ^11.1.0 to ^14.0.0
  • src/auth/client-authentication.ts - replaced static import with dynamic await import("uuid") inside the function, so the CJS build works correctly

Notes

  • Dynamic import is inside the if (clientAssertionSigningKey ...) block - uuid is only loaded when building a client assertion JWT
  • No functional behavior change

@amitsingh05667 amitsingh05667 requested a review from a team as a code owner May 4, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant