CSSLive2D
CSSLive2D copied to clipboard
Bump nanoid from 2.1.9 to 3.1.31
Bumps nanoid from 2.1.9 to 3.1.31.
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_modulesby 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/nanoidif you have it. Nano ID now have built-in types.npm uninstall @types/nanoidReact Native
For Expo you need to load the file by direct path:
... (truncated)
Changelog
Sourced from nanoid's changelog.
3.1.31
- Fixed collision vulnerability on object in
size(by Artyom Arutyunyan).3.1.30
- Reduced size for project with
brotlicompression (by Anton Khlynovskiy).3.1.29
- Reduced npm package size.
3.1.28
- Reduced npm package size.
3.1.27
- Cleaned
dependenciesfrom development tools.3.1.26
- Improved performance (by Eitan Har-Shoshanim).
- Reduced npm package size.
3.1.25
- Fixed
browserifysupport.3.1.24
- Fixed
browserifysupport (by Artur Paikin).3.1.23
- Fixed
esbuildsupport.3.1.22
- Added
defaultandbrowser.defaulttopackage.exports.3.1.21
- Reduced npm package size.
3.1.20
- Fix ES modules support.
3.1.19
- Reduced
customAlphabetsize (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
... (truncated)
Commits
07fdfa6Release 3.1.31 versione3b3942Update dependencies2b7bd93fix collision by proxy number (#328)3b56634Replace Parcel to Vite55a935aUpdate dependencies8b9a079Update dependencies725a241Fix Node.js 10 CId8712eeUpdate dependenciescd56aa9Clean up docs9661320Add documentation in Bahasa Indonesia (#326)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.