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

Upgrade to uuid version 8.0.0 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moberegger
Copy link
Contributor

@moberegger moberegger commented Apr 30, 2020

Older versions of uuid would show this warning:

DeprecationWarning: Deep requiring like `const uuidv4 = require('uuid/v4');` is deprecated as of [email protected]. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.

This was because this package used a require pattern that was now deprecated.

Version 8 was released and removed the ability to require in the format this package was using. const uuid = require('uuid/v4'); must become const { v4: uuid } = require('uuid');. See: https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md#-breaking-changes

This PR updates the peer dependency to use version 8, the latest uuid package, and updates to the new require pattern.

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.

1 participant