Skip to content

Commit 75c896d

Browse files
committed
chore(release): 2.1.0
1 parent d70bfc0 commit 75c896d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## v2.1.0 (2025-08-29)
4+
5+
### Features
6+
7+
- Add `encode(bytes)` and `decode(puid)` methods on the Puid generator to encode/decode using the generator's configured characters.
8+
9+
- Add `risk(total)` and `total(risk)` methods on the Puid generator to approximate the risk/total for the generator using conservative approximations of actual entropy capacity.
10+
11+
### Types/Tests
12+
13+
- Extend Puid type with encode and decode methods
14+
- Extend Puid type with risk and total methods
15+
16+
### Changes
17+
18+
The calculations using `bits`, `risk` and `total` drop the minor efficiency for small totals. When using `total < 1000` this may create a slightly different corresponding value for a calculation given any two of the three values, but does not effect core `puid` generation.
19+
320
## v2.0.0 (2025-08-27)
421

522
### Breaking

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puid-js",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Simple, fast, flexible and efficient generation of probably unique identifiers (`puid`, aka random strings) of intuitively specified entropy using pre-defined or custom characters, including unicode",
55
"main": "build/main/index.js",
66
"types": "build/main/index.d.ts",

0 commit comments

Comments
 (0)