Skip to content

Remove client uuid dependency - #168

Merged
coder13 merged 1 commit into
masterfrom
upgrade-client-uuid
Jul 9, 2026
Merged

Remove client uuid dependency#168
coder13 merged 1 commit into
masterfrom
upgrade-client-uuid

Conversation

@coder13

@coder13 coder13 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove the direct client dependency on uuid@7
  • add a small browser UUID v4 helper for local chat/message IDs
  • cover the helper with a focused unit test

Why

The direct client uuid package had an audit finding. Updating to uuid@11.1.1 is not compatible with the current Webpack 4 client build because the package ships modern syntax that this toolchain does not transpile from node_modules. Since the client only used UUIDs for local temporary message IDs, a local helper removes the vulnerable direct dependency without increasing build-chain risk.

The server remains on uuid@11.1.1.

Validation

  • yarn lint
  • yarn test
  • yarn build
  • yarn cypress:run
  • yarn why uuid confirms there is no direct client uuid dependency; remaining old uuid copies are transitive through Webpack/Jest tooling

Replace the client's direct uuid package usage with a local browser UUID v4 helper for temporary chat/message IDs.

This avoids the vulnerable direct client dependency without pulling modern uuid package syntax into the old Webpack 4 build.
@coder13
coder13 merged commit bb339b5 into master Jul 9, 2026
6 checks passed
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