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

Bump uuid and only require uuid/v4 #39

Merged
merged 2 commits into from
Nov 29, 2016
Merged

Bump uuid and only require uuid/v4 #39

merged 2 commits into from
Nov 29, 2016

Conversation

lgeiger
Copy link
Member

@lgeiger lgeiger commented Nov 29, 2016

This will make the version consistent with jmp and help with webpack in the future.

@rgbkrk rgbkrk merged commit baccd88 into master Nov 29, 2016
@lgeiger lgeiger deleted the bump-uuid branch November 29, 2016 19:10
const path = require('path');

const chalk = require('chalk');
const identity = uuid.v4();
const identity = uuid();
Copy link
Member

Choose a reason for hiding this comment

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

The only thing I'm not too pleased with in this PR is the inconsistency of using uuid() vs. v4(). I'm leaning towards const uuidv4 = require('uuid/v4');

Copy link
Member Author

Choose a reason for hiding this comment

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

How would you do this with ES6 imports?
Right now import v4 from 'uuid/v4'; works or should I use require?

Copy link
Member

Choose a reason for hiding this comment

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

When it's the default import you can use

import uuidv4 from 'uuid/v4';

@lgeiger lgeiger restored the bump-uuid branch November 29, 2016 21:15
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

2 participants