Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
geommr committed May 7, 2023
1 parent 9826be9 commit 880b258
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
## 2.0.0

- Add `cuidConfig()` for more customizability.
- Example:
- Example:

```dart
Function myCounter(int start) {
return () => start += 5;
Expand All @@ -14,4 +15,11 @@ Function myCounter(int start) {
final cc = cuidConfig(counter: myCounter(0));
final id = cc.gen();
```
- __[BREAKING]__ remove `entropyLength` param from `cuid()` and `cuidSecure()`

- **[BREAKING]** remove `entropyLength` param from `cuid()` and `cuidSecure()`

## 3.0.0

- refactor code and bring it up to cuid2,js v2.2.0
- add more tests
- **[POSSIBLE BREAKING CHANGE]** `counter` parameter function is now of type `int Function()?` instead of `Function?`
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: cuid2
description: A dart implementaion of the secure, collision-resistant ids optimized for horizontal scaling and performance (v2).
version: 2.0.0
description: A dart implementaion of the secure, collision-resistant ids optimized for horizontal scaling and performance (v2).
version: 3.0.0
homepage: https://github.com/obsidiaHQ/cuid2
repository: https://github.com/obsidiaHQ/cuid2

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=2.12.0 <3.0.0"

dependencies:
dependencies:
pointycastle: ^3.6.2

dev_dependencies:
Expand Down

0 comments on commit 880b258

Please sign in to comment.