Skip to content

Commit

Permalink
Release 3.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Mar 26, 2020
1 parent b793276 commit 7b45b89
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,22 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 3.0
Migration guide: <https://github.com/ai/nanoid/releases/tag/3.0.0>
* Move to ES2016 syntax. You need to use Babel for IE 11.
* Move to named exports `import { nanoid } from 'nanoid'`.
* Move `import url from 'nanoid/url'` to `import { urlAlphabet } from 'nanoid'`.
* Replace `format()` to `customRandom()`.
* Replace `generate()` to `customAlphabet()`.
* Remove `async/format`.
* Remove React Native support for `nanoid/async`.
* Add `nanoid.js` to use directly in browser from CDN.
* Add TypeScript type definitions.
* Add ES modules support for bundlers, Node.js, and React Native.
* Fix React Native support.
* Reduce size.
* Improve docs (by Dair Aidarkhanov).

## 2.1.11
* Reduce size (by Anton Evzhakov).

Expand Down
8 changes: 6 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "nanoid",
"version": "2.1.11",
"version": "3.0.0",
"description": "A tiny (108 bytes), secure URL-friendly unique string ID generator",
"keywords": [
"uuid",
Expand Down Expand Up @@ -172,7 +172,11 @@
"webpack",
"CDN",
"XPS",
"jsDelivr"
"jsDelivr",
"bundlers",
"ES2016",
"github",
"ai"
]
},
"sharec": {
Expand Down

0 comments on commit 7b45b89

Please sign in to comment.