TecKnow / muster-tools

A package for assigning players to tables at multi-table, walk-in gaming events.
GNU General Public License v3.0
0 stars 0 forks source link

Fix UUID module deprecation warning #4

Closed TecKnow closed 4 years ago

TecKnow commented 4 years ago

The tests have started producing the following warning message:

(node:4928) DeprecationWarning: Deep requiring like const uuidv4 = require('uuid/v4'); is deprecated as of uuid@7.x. 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.

Investigate, document, and resolve this.

TecKnow commented 4 years ago

This deprecation warning was for a simple enhancement to increase compatibility with tree-shaking. The change makes imports from the UUID module resemble imports from other modules, using curly braces instead of a slash.

The relevant changes are made in commit 29816ffa4c60e567382ab676e4fff005d814de5f