Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoid - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 2.1.8
* Improve React docs (by Nahum Zsilva).
## 2.1.7

@@ -5,0 +8,0 @@ * Reduce `index`, `async` and `non-secure` size (by @polemius).

4

package.json
{
"name": "nanoid",
"version": "2.1.7",
"version": "2.1.8",
"description": "A tiny (137 bytes), secure URL-friendly unique string ID generator",

@@ -31,4 +31,4 @@ "keywords": [

"config": "@logux/sharec-config",
"version": "0.5.3"
"version": "0.5.6"
}
}

@@ -179,9 +179,8 @@ # Nano ID

This is good code. `this.id` will be generated only once:
This is good code. `id` will be generated only once:
```jsx
id = nanoid()
render () {
return <Item key={this.id}>;
}
const Element = () => {
const [id] = React.useState(nanoid)
return <Item key={id}>
}

@@ -188,0 +187,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc