box / box/box-ui-elements

Old version of UUID package throws console warning

Open
#2,753 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
551
Forks
351
Avg merge
5d 9h
Merged PRs (30d)
31

Description

Looks like box-ui-elements currently depends on `uuid` 3.3.2, but in an app that uses a more recent version (mine is 7.0.3) the following warning appears in the console:

```
Deep requiring like `const uuidv4 = require('uuid/v4');` is deprecated as of uuid@7.x.
```

with a link to https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more info.

Updating the version and the import [here](https://github.com/box/box-ui-elements/blob/master/src/elements/common/logger/Logger.js#L4) should resolve it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.