Skip to content

[PLAT-8122] remove obsolete deps on uuid & is-plain-object#770

Merged
aeischeid merged 1 commit intomasterfrom
moreDepUpgradesFor1.0
May 6, 2026
Merged

[PLAT-8122] remove obsolete deps on uuid & is-plain-object#770
aeischeid merged 1 commit intomasterfrom
moreDepUpgradesFor1.0

Conversation

@aeischeid
Copy link
Copy Markdown
Contributor

@aeischeid aeischeid commented May 5, 2026

Summary

Cleanup of obsolete dependencies

Test Plan

Automated unit tests should cover this pretty well, but will also get incidental coverage in manual and integration testing for 1.0 release

Release Notes

Some packages that got type info from @types/uuid could just use : string if you just need to get the job done and don't care about strict enforcement, or use ${string}-${string}-${string}-${string}-${string} if you want a bit more

Possible Regressions

Shouldn't be

Dependencies

Build off of #763

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@aeischeid aeischeid marked this pull request as ready for review May 5, 2026 19:58
@aeischeid aeischeid requested a review from a team as a code owner May 5, 2026 19:58

export function create(): UUID {
return uuid();
return globalThis.crypto.randomUUID(); // synonomys with uuid.v4()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID

browser and node env support is solid, so compatibility shouldn't be an issue, but jsDom is an outlier, new versions of jest could help that, or vitest + happy-dom which is what newer versions of lerna guide towards

},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"is-plain-object": "^3.0.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to remove some dependencies!

@aeischeid aeischeid merged commit e2774c8 into master May 6, 2026
8 checks passed
@aeischeid aeischeid deleted the moreDepUpgradesFor1.0 branch May 6, 2026 18:47
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.

2 participants