Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): move to uuid@8 #312

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

sstone1
Copy link
Contributor

@sstone1 sstone1 commented Aug 12, 2021

Currently installing the concerto-core module results in the following warning:

npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

This is because it depends on [email protected]. This change moves to [email protected].

Unfortunately the way the uuid module is written means that it is no longer possible to stub. To get the affected tests working again, I have added a new Factory.newId function that can be stubbed instead.

Signed-off-by: Simon Stone [email protected]

Signed-off-by: Simon Stone <[email protected]>
Copy link
Member

@jeromesimeon jeromesimeon left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Are you aware of any change in behavior between those two versions of uuid that we should be aware of or concerned about? [Since we mock the calls in test, not sure what we actually test there]

@jeromesimeon jeromesimeon self-requested a review August 12, 2021 14:12
Copy link
Member

@jeromesimeon jeromesimeon left a comment

Choose a reason for hiding this comment

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

Looks great. Could you please add the corresponding method in the typescript interface as well?

export class Factory {

@sstone1
Copy link
Contributor Author

sstone1 commented Aug 12, 2021

Looks great. Could you please add the corresponding method in the typescript interface as well?

export class Factory {

@jeromesimeon I did! https://github.com/accordproject/concerto/pull/312/files#diff-e8048dc5a91e53453da6b9fc03e13c5a41d61435bc2e24fb3d05691999118b6cR219

I'm not aware of any differences in behaviour between the two versions, other than "more randomness".

@jeromesimeon
Copy link
Member

Looks great. Could you please add the corresponding method in the typescript interface as well?

export class Factory {

@jeromesimeon I did! https://github.com/accordproject/concerto/pull/312/files#diff-e8048dc5a91e53453da6b9fc03e13c5a41d61435bc2e24fb3d05691999118b6cR219

I'm not aware of any differences in behaviour between the two versions, other than "more randomness".

duh 🤦 😀

this is going in!

@jeromesimeon jeromesimeon self-requested a review August 12, 2021 14:24
Copy link
Member

@jeromesimeon jeromesimeon left a comment

Choose a reason for hiding this comment

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

💯

@jeromesimeon jeromesimeon merged commit 89052cb into accordproject:master Aug 12, 2021
@sstone1 sstone1 deleted the move-to-uuid@8 branch August 12, 2021 14:25
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