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

Fix uuid import syntax to use mandatory module syntax #8114

Merged
merged 5 commits into from May 5, 2020

Conversation

actuallymentor
Copy link
Contributor

@actuallymentor actuallymentor commented May 1, 2020

Why

While uuid@6 prefers named imports uuid@8 requires it. Using this import gets rid of the Deep requiring like const uuidv4 = require('uuid/v4'); is deprecated as of uuid@7.x. message in v7 and makes the constants package compatible with uuid v8.x

How

Simple import syntax fix.

Test Plan

Run any web project with constants.

@ide ide changed the title Fix uuid imort syntax to use mandatory module syntax Fix uuid import syntax to use mandatory module syntax May 4, 2020
Copy link
Member

@ide ide left a comment

Choose a reason for hiding this comment

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

Please rebuild the JS and add it to your commit: https://github.com/expo/expo/blob/master/CONTRIBUTING.md#-before-submitting

@actuallymentor
Copy link
Contributor Author

I foolishly didn't read the guidelines. Read then just now and:

  • Added build files
  • Added changelog

If I missed anything let me know.

Copy link
Contributor

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

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

LGTM 💯

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
@ide ide merged commit cdbe704 into expo:master May 5, 2020
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.

None yet

3 participants