Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade uuid: 3.4.0 → 8.3.2 (major) #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Dec 15, 2020

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ uuid (3.4.0 → 8.3.2) · Repo · Changelog

Release Notes

8.3.2 (from changelog)

Bug Fixes

8.3.1 (from changelog)

Bug Fixes

8.3.0 (from changelog)

Features

8.2.0 (from changelog)

Features

Bug Fixes

  • prepare package exports for webpack 5 (#468) (8d6e6a5)

8.1.0 (from changelog)

Features

  • improve v4 performance by reusing random number array (#435) (bf4af0d)
  • optimize V8 performance of bytesToUuid (#434) (e156415)

Bug Fixes

8.0.0 (from changelog)

⚠ 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 in uuid@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

Bug Fixes

  • add CommonJS syntax example to README quickstart section (#417) (e0ec840)

7.0.3 (from changelog)

Bug Fixes

  • make deep require deprecation warning work in browsers (#409) (4b71107), closes #408

7.0.2 (from changelog)

Bug Fixes

7.0.1 (from changelog)

Bug Fixes

  • clean up esm builds for node and browser (#383) (59e6a49)
  • provide browser versions independent from module system (#380) (4344a22), closes #378

7.0.0 (from changelog)

⚠ BREAKING CHANGES

  • The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed.
  • Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants.
  • Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function.
  • Remove support for generating v3 and v5 UUIDs in Node.js<4.x
  • Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers.

Features

  • add UMD build to npm package (#357) (4e75adf), closes #345
  • add various es module and CommonJS examples (b238510)
  • ensure that docs are up-to-date in CI (ee5e77d)
  • hybrid CommonJS & ECMAScript modules build (a3f078f)
  • remove insecure fallback random number generator (3a5842b), closes #173
  • remove support for pre Node.js v4 Buffer API (#356) (b59b5c5)
  • rename repository to github:uuidjs/uuid (#351) (c37a518), closes #338

Bug Fixes

  • add deep-require proxies for local testing and adjust tests (#365) (7fedc79)
  • add note about removal of default export (#372) (12749b7), closes #370
  • deprecated deep requiring of the different algorithm versions (#361) (c0bdf15)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants