Comparing version 3.0.1 to 3.0.2
# Changelog | ||
## v3.0.1 - 2023-07-16 | ||
## v3.0.2 - 2023-07-17 | ||
@@ -26,3 +26,8 @@ Most notably, v3 switches the letter case of generated IDs from uppercase (e.g., | ||
- TypeScript transpilation target from ES2015 to ES2016 | ||
- Edge case behavior of generator functions' rollback allowance handling | ||
### Maintenance | ||
- Updated dev dependencies | ||
## v2.5.0 - 2023-06-21 | ||
@@ -29,0 +34,0 @@ |
@@ -183,4 +183,4 @@ /** | ||
* All of these methods return monotonically increasing IDs unless a `timestamp` | ||
* provided is significantly (by default, ten seconds or more) smaller than the | ||
* one embedded in the immediately preceding ID. If such a significant clock | ||
* provided is significantly (by default, more than ten seconds) smaller than | ||
* the one embedded in the immediately preceding ID. If such a significant clock | ||
* rollback is detected, the `generate` (OrReset) method resets the generator | ||
@@ -187,0 +187,0 @@ * and returns a new ID based on the given `timestamp`, while the `OrAbort` |
@@ -391,4 +391,4 @@ /** | ||
* All of these methods return monotonically increasing IDs unless a `timestamp` | ||
* provided is significantly (by default, ten seconds or more) smaller than the | ||
* one embedded in the immediately preceding ID. If such a significant clock | ||
* provided is significantly (by default, more than ten seconds) smaller than | ||
* the one embedded in the immediately preceding ID. If such a significant clock | ||
* rollback is detected, the `generate` (OrReset) method resets the generator | ||
@@ -487,3 +487,3 @@ * and returns a new ID based on the given `timestamp`, while the `OrAbort` | ||
} | ||
else if (timestamp + rollbackAllowance > this.timestamp) { | ||
else if (timestamp + rollbackAllowance >= this.timestamp) { | ||
// go on with previous timestamp if new one is not much smaller | ||
@@ -490,0 +490,0 @@ this.counterLo++; |
{ | ||
"name": "scru128", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "SCRU128: Sortable, Clock and Random number-based Unique identifier", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
51419
0