Comparing version 6.2.7 to 6.2.8
@@ -20,3 +20,3 @@ "use strict"; | ||
exports.uuid = uuidv4; | ||
const isUuid = util_1.deprecate((value) => uuid_1.validate(value), 'isUuid() is deprecated. Use validate() from the uuid module instead.'); | ||
const isUuid = util_1.deprecate((value) => uuid_1.validate(value) && (uuid_1.version(value) === 4 || uuid_1.version(value) === 5), 'isUuid() is deprecated. Use validate() from the uuid module instead.'); | ||
exports.isUuid = isUuid; | ||
@@ -23,0 +23,0 @@ const empty = util_1.deprecate(() => uuid_1.NIL, 'empty() is deprecated. Use NIL from the uuid module instead.'); |
@@ -0,1 +1,8 @@ | ||
## [6.2.8](https://github.com/thenativeweb/uuidv4/compare/6.2.7...6.2.8) (2021-05-10) | ||
### Bug Fixes | ||
* bump hosted-git-info from 2.8.8 to 2.8.9 ([#336](https://github.com/thenativeweb/uuidv4/issues/336)) ([98ca567](https://github.com/thenativeweb/uuidv4/commit/98ca567369eda02e9914b01d024d073eada10208)) | ||
## [6.2.7](https://github.com/thenativeweb/uuidv4/compare/6.2.6...6.2.7) (2021-03-25) | ||
@@ -2,0 +9,0 @@ |
import { deprecate } from 'util'; | ||
import { NIL as nil, v4, v5, validate } from 'uuid'; | ||
import { NIL as nil, v4, v5, validate, version } from 'uuid'; | ||
@@ -22,3 +22,3 @@ const regex = { | ||
const isUuid = deprecate( | ||
(value: string): boolean => validate(value), | ||
(value: string): boolean => validate(value) && (version(value) === 4 || version(value) === 5), | ||
'isUuid() is deprecated. Use validate() from the uuid module instead.' | ||
@@ -25,0 +25,0 @@ ); |
{ | ||
"name": "uuidv4", | ||
"version": "6.2.7", | ||
"version": "6.2.8", | ||
"description": "uuidv4 creates v4 UUIDs.", | ||
@@ -34,4 +34,4 @@ "contributors": [ | ||
"devDependencies": { | ||
"assertthat": "5.2.6", | ||
"roboter": "11.6.31", | ||
"assertthat": "6.0.0", | ||
"roboter": "11.6.40", | ||
"semantic-release-configuration": "2.0.0" | ||
@@ -38,0 +38,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
15676