Deep requiring uuid/v4 is deprecated as of uuid@7.x.
cncolder opened this issue · comments
I'm submitting a...
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
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/blob/master/README.md#upgrading-from-v3x-of-this-module for more information.
Expected behavior
Minimal reproduction of the problem with instructions
typeorm/lib/common/typeorm.utils.ts
Line 12 in 49c7eff
What is the motivation / use case for changing the behavior?
Environment
@nestjs/typeorm: 6.3.3
For Tooling issues:
- Node version: XX
- Platform:
Others:
Fixed in 6.3.4