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

Update uuid to v8 #7749

Merged
merged 1 commit into from May 7, 2020
Merged

Update uuid to v8 #7749

merged 1 commit into from May 7, 2020

Conversation

RDIL
Copy link
Contributor

@RDIL RDIL commented May 5, 2020

Signed-off-by: Reece Dunham me@rdil.rocks

What it does

Updates uuid from v3 to v8. In comparison, v8 uses more modern Javascript and cleaner code, so it should be easier to work with.

It also updates the types to the latest version.

I have confirmed there are no license changes, as outlined in this wiki page.

How to test

This contains no functional breaking changes. In application-manager, I had to fix the fact that a default export is no longer provided, but other than that it should have no visible changes. I also ran the Jest tests and ESLint, which both reported no errors.

Review checklist

Signed-off-by: Reece Dunham <me@rdil.rocks>
yarn.lock Show resolved Hide resolved
@akosyakov akosyakov added the dependencies pull requests that update a dependency file label May 6, 2020
@akosyakov akosyakov requested a review from kittaakos May 6, 2020 07:24
@RDIL
Copy link
Contributor Author

RDIL commented May 6, 2020

As long as electron-builder isn't using the default export (removed in v8), it will be fine.

@akosyakov
Copy link
Member

akosyakov commented May 6, 2020

As long as electron-builder isn't using the default export (removed in v8), it will be fine.

electron-builder does not use v8, it bundles all node modules and picks only one version for Electron. We are talking about breaking this line: https://github.com/eclipse-theia/theia/pull/7749/files#diff-e6697ec7c0f7ddbbfd9e8365baacf132R133 if electron-builder pick s v3 since it used by request and trash packages.

@akosyakov
Copy link
Member

What would be the real benefits of this PR for adopters and end users besides that build process can be broken?

@RDIL
Copy link
Contributor Author

RDIL commented May 6, 2020

Actually, even if it does pick v3 then the changed code you linked will still work. The changes for v8 is just removing the default export, so if apps don't use it, it will still work.

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

tested that debugging in both targets still working. looked at debugging since it makes use of uuid

Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM but please see comment.

@@ -130,7 +130,7 @@ if (process.env.LC_ALL) {
}
process.env.LC_NUMERIC = 'C';

const uuid = require('uuid');
Copy link
Member

@paul-marechal paul-marechal May 7, 2020

Choose a reason for hiding this comment

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

I don't think you need to change this, am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

UUID no longer has a default export as of v7 or v8

Copy link
Member

Choose a reason for hiding this comment

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

This is not making use of the default export, this is binding the exports object to the uuid name.

@akosyakov
Copy link
Member

@marechal-p please merge when you think it is good

@paul-marechal paul-marechal merged commit ac8efa2 into eclipse-theia:master May 7, 2020
@akosyakov akosyakov mentioned this pull request May 18, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants