Comparing version 8.3.2-beta.0 to 8.3.2
@@ -5,2 +5,8 @@ # Changelog | ||
### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08) | ||
### Bug Fixes | ||
- lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536) | ||
### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04) | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "uuid", | ||
"version": "8.3.2-beta.0", | ||
"version": "8.3.2", | ||
"description": "RFC4122 (v1, v4, and v5) UUIDs", | ||
@@ -5,0 +5,0 @@ "commitlint": { |
@@ -299,2 +299,19 @@ <!-- | ||
Using `validate` and `version` together it is possible to do per-version validation, e.g. validate for only v4 UUIds. | ||
```javascript | ||
import { version as uuidVersion } from 'uuid'; | ||
import { validate as uuidValidate } from 'uuid'; | ||
function uuidValidateV4(uuid) { | ||
return uuidValidate(uuid) && uuidVersion(uuid) === 4; | ||
} | ||
const v1Uuid = 'd9428888-122b-11e1-b85c-61cd3cbb3210'; | ||
const v4Uuid = '109156be-c4fb-41ea-b1b4-efe1671c5836'; | ||
uuidValidateV4(v4Uuid); // ⇨ true | ||
uuidValidateV4(v1Uuid); // ⇨ false | ||
``` | ||
### uuid.version(str) | ||
@@ -301,0 +318,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
116098
1
505