Skip to content

Bump nanoid from 2.0.1 to 3.1.30#107

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/nanoid-3.1.30
Closed

Bump nanoid from 2.0.1 to 3.1.30#107
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/nanoid-3.1.30

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 14, 2021

Bumps nanoid from 2.0.1 to 3.1.30.

Release notes

Sourced from nanoid's releases.

3.0 Migration Guide

Nano ID 3.0 is the biggest release in the project history. Unfortunately, you will need to change the code of your application. But the changes are very small in most cases. In return, you will have better performance, smaller size, ES modules and TypeScript support.

Known Issues

  • Only Create React App 4.0 supports dual ESM/CJS modules.

Simple Case

In simple cases, you just need to change default import to named import.

- import nanoid from 'nanoid'
+ import { nanoid } from 'nanoid'
nanoid() //=> "sSAi9F8yakJZPxOCr_WFb"
nanoid(5) //=> "ISe9l"

If you support IE, you need to transpile node_modules by Babel.

Non-secure and asynchronous Nano ID need only import changes as well.

- import nanoid from 'nanoid/non-secure'
+ import { nanoid } from 'nanoid/non-secure'
nanoid() //=> "sSAi9F8yakJZPxOCr_WFb"

- import nanoid from 'nanoid/async'
+ import { nanoid } from 'nanoid/async'
nanoid().then(id => {
id //=> "sSAi9F8yakJZPxOCr_WFb"
})

TypeScript

Remove @types/nanoid if you have it. Nano ID now have built-in types.

npm uninstall @types/nanoid

React Native

For Expo you need to load the file by direct path:

... (truncated)

Changelog

Sourced from nanoid's changelog.

3.1.30

  • Reduced size for project with brotli compression (by Anton Khlynovskiy).

3.1.29

  • Reduced npm package size.

3.1.28

  • Reduced npm package size.

3.1.27

  • Cleaned dependencies from development tools.

3.1.26

  • Improved performance (by Eitan Har-Shoshanim).
  • Reduced npm package size.

3.1.25

  • Fixed browserify support.

3.1.24

  • Fixed browserify support (by Artur Paikin).

3.1.23

  • Fixed esbuild support.

3.1.22

  • Added default and browser.default to package.exports.

3.1.21

  • Reduced npm package size.

3.1.20

  • Fix ES modules support.

3.1.19

  • Reduced customAlphabet size (by Enrico Scherlies).

3.1.18

  • Fixed package.exports.

3.1.17

  • Added files without process.

3.1.16

  • Speeded up Nano ID 4 times (by Peter Boyer).

3.1.15

  • Fixed package.types path.

3.1.14

... (truncated)

Commits
  • fd1b0dc Release 3.1.30 version
  • d3920db Update dependencies
  • 971cbca Combine Brotli metrics
  • 75237a6 feat: Re-optimize alphabet for Brotli (only chars unused by gzip backrefs) (#...
  • c5a715d Update Size Limit
  • 658a746 Update dependencies
  • 8a5db27 Update size limit
  • 8aa1be7 feat: Re-optimize the alphabet for gzip after size-limit update (#309)
  • e71e632 Update size with new Size Limit
  • 464bc82 Add @​lukeed/uuid to benchmark and fix uid length
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nanoid](https://github.com/ai/nanoid) from 2.0.1 to 3.1.30.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@2.0.1...3.1.30)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 14, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 14, 2021

The following labels could not be found: javascript.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 12, 2022

Superseded by #112.

@dependabot dependabot bot closed this Jan 12, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/nanoid-3.1.30 branch January 12, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants