Update dependency uuid to v8
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
uuid | dependencies | major | ^8.1.0 | source | |
@types/uuid | devDependencies | major | 8.0.0 | source |
Release Notes
uuidjs/uuid
v8.1.0
Features
- improve v4 performance by reusing random number array (#435) (bf4af0d)
- optimize V8 performance of bytesToUuid (#434) (e156415)
Bug Fixes
- export package.json required by react-native and bundlers (#449) (be1c8fe), closes /github.com/ai/nanoevents/issues/44#issuecomment-602010343 #444
v8.0.0
⚠ BREAKING CHANGES
-
For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
-import uuid from 'uuid'; -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869' +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
-
Deep requiring specific algorithms of this library like
require('uuid/v4')
, which has been deprecated inuuid@7
, is no longer supported.Instead use the named exports that this module exports.
For ECMAScript Modules (ESM):
-import uuidv4 from 'uuid/v4'; +import { v4 as uuidv4 } from 'uuid'; uuidv4();
For CommonJS:
-const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); uuidv4();
Features
- native Node.js ES Modules (wrapper approach) (#423) (2d9f590), closes #245 #419 #342
- remove deep requires (#426) (daf72b8)
Bug Fixes
7.0.3 (2020-03-31)
Bug Fixes
7.0.2 (2020-03-04)
Bug Fixes
- make access to msCrypto consistent (#393) (8bf2a20)
- simplify link in deprecation warning (#391) (bb2c8e4)
- update links to match content in readme (#386) (44f2f86)
7.0.1 (2020-02-25)
Bug Fixes
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.