Skip to content

Commit 94e2f3e

Browse files
committed
feat: remove deep requires
BREAKING CHANGE: Deep requiring specific algorithms of this library like require('uuid/v4'), which has been deprecated in uuid@7, is no longer supported. Instead use the named exports that this module exports. For ECMAScript Modules (ESM): ```javascript import { v4 as uuidv4 } from 'uuid'; uuidv4(); ``` For CommonJS: ```javascript const { v4: uuidv4 } = require('uuid'); uuidv4(); ``` No longer supported is this: ```javascript const uuidv4 = require('uuid/v4'); // <== NO LONGER SUPPORTED! uuidv4(); ```
1 parent 2d9f590 commit 94e2f3e

File tree

9 files changed

+14
-92
lines changed

9 files changed

+14
-92
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,13 @@ import { v4 as uuidv4 } from 'uuid';
363363
Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if
364364
you find one, please).
365365

366+
## Upgrading From uuid\@7
367+
368+
### Deep Requires No Longer Supported
369+
370+
Deep requires, [which have been deprecated in uuid\@7](#deep-requires-now-deprecated) are now no
371+
longer supported.
372+
366373
## Upgrading From uuid\@3
367374

368375
"_Wait... what happened to uuid\@4 - uuid\@6?!?_"

README_js.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ import { v4 as uuidv4 } from 'uuid';
353353
Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if
354354
you find one, please).
355355

356+
## Upgrading From uuid\@7
357+
358+
### Deep Requires No Longer Supported
359+
360+
Deep requires, [which have been deprecated in uuid\@7](#deep-requires-now-deprecated) are now no
361+
longer supported.
362+
356363
## Upgrading From uuid\@3
357364

358365
"_Wait... what happened to uuid\@4 - uuid\@6?!?_"

deprecate.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@
3434
"CONTRIBUTING.md",
3535
"LICENSE.md",
3636
"README.md",
37-
"deprecate.js",
3837
"dist",
39-
"v1.js",
40-
"v3.js",
41-
"v4.js",
42-
"v5.js",
4338
"wrapper.mjs"
4439
],
4540
"devDependencies": {

test/unit/deep-require-deprecation.test.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

v1.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

v3.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

v4.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

v5.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)