short-uuid
Advanced tools
Comparing version 4.2.2 to 5.0.0
@@ -5,2 +5,12 @@ # Change Log | ||
## [5.0.0] - 2024-04-29 | ||
### MAJOR CHANGES | ||
- đ 5.0.0 drops support for Node 10 and 12 | ||
- âšī¸ 5.x will be quickly succeeded by 6.0 which will drop Node 14.x and 16.x support | ||
### Changed | ||
- UUID version to 9.0.1 | ||
- Dropped support for Node prior to 14.x | ||
- Updated GitHub Actions to test Node 14.x-22.x | ||
## [4.2.2] - 2022-10-18 | ||
@@ -7,0 +17,0 @@ ### Changed |
{ | ||
"name": "short-uuid", | ||
"version": "4.2.2", | ||
"version": "5.0.0", | ||
"description": "Create and translate standard UUIDs with shorter formats.", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"any-base": "^1.1.0", | ||
"uuid": "^8.3.2" | ||
"uuid": "^9.0.1" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -9,14 +9,7 @@ # short-uuid | ||
## v4.2.2 | ||
## v5.0.0 | ||
### Major Changes in 4.0.0 | ||
### Major Changes in 5.0.0 | ||
- đ 5.0.0 drops support for Node 10 and 12. | ||
- đ short-uuid will now throw an error when provided an alphabet with duplicate characters. Duplicate characters will cause translation errors. | ||
- âšī¸ 4.0.0 is written in modern ECMAScript. It uses features through ES9/ES2018. | ||
- âšī¸ By default, short-uuid will pad shortened IDs to a consistent length. | ||
- Padding does not affect translation, and the values are compatible with previous releases. | ||
- Padding can be disabled with the option `consistentLength: false` when instantiating a translator. This is consistent with previous versions. | ||
- âšī¸ 4.x does not include a pre-built version for browsers. If needed, 3.1.1 is compatible, but does not pad to a consistent length. | ||
### Quick Start | ||
@@ -66,2 +59,3 @@ | ||
// The maximum length a translated uuid will be with its alphabet. | ||
// if consistentLength is set (on by default), so ids will be this length. | ||
translator.maxLength; | ||
@@ -76,4 +70,4 @@ | ||
short-uuid 4.0.0 adds support for options when creating a translator. | ||
This will support additional configuration in the future. | ||
short-uuid 4.0.0 added support for options when creating a translator. | ||
This may support additional configuration in the future. | ||
@@ -96,8 +90,11 @@ ```javascript | ||
short-uuid 4.0.0 and later is confirmed to work on Node 8.x and later. | ||
- Pre-compiled browser version is planned for future release. | ||
short-uuid [5.0.0](https://github.com/oculus42/short-uuid/blob/v5.0.0/README.md) | ||
and later is tested on Node 14.x and later. | ||
short-uuid [3.1.1](https://github.com/oculus42/short-uuid/blob/v3.1.1/README.md) | ||
and lower is confirmed to work on Node 0.10.x and later, | ||
and browsers with a precompiled library proposed | ||
short-uuid [4.x](https://github.com/oculus42/short-uuid/blob/v3.2.2/README.md) | ||
was tested on Node 8.x to 18.x | ||
short-uuid [3.x](https://github.com/oculus42/short-uuid/blob/v3.1.1/README.md) | ||
and lower was confirmed to work on Node 6.x to 12.x, | ||
and offered a precompiled browser library proposed | ||
by [voronianski](https://github.com/voronianski). | ||
@@ -113,9 +110,8 @@ | ||
## Recent Release Notes | ||
## Previous Release Note Highlights | ||
4.1.0 adds a maxLength value to translators for reference | ||
4.0.3 fixes default generate | ||
4.0.1 adds consistent length translation and throws an error if provided an invalid alphabet. | ||
3.1.1 updated dev dependencies which required dropping Node 4.x build test. Last Browserify distribution version temporarily. | ||
3.1.1 removed Node 4.x tests. Last included Browserify distribution. | ||
2.3.4 corrects the behavior for UUIDs with uppercase letters. Last version to build on Node 0.x. | ||
Please see [Revisions](revisions.md) for information on previous versions. |
Sorry, the diff of this file is not supported yet
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
62621
113
+ Addeduuid@9.0.1(transitive)
- Removeduuid@8.3.2(transitive)
Updateduuid@^9.0.1