Skip to content

Commit 1ccfeea

Browse files
authored
Remove dependency on uuid package (#284)
* remove uuid dependency * update CHANGELOG.md
1 parent 2936d2f commit 1ccfeea

File tree

4 files changed

+6
-37
lines changed

4 files changed

+6
-37
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9-
109
### Fixed
1110
- [python] Add a LICENSE file for Python ([#278](https://github.com/cucumber/messages/pull/278))
1211
- [.NET] Fix NuGet package generation
1312

13+
### Removed
14+
- [JavaScript] Remove dependency on `uuid` package ([#284](https://github.com/cucumber/messages/pull/284)
15+
1416
## [27.2.0] - 2025-01-31
1517
### Added
1618
- [python] Added Python implementation ([#165](https://github.com/cucumber/messages/pull/165))

javascript/package-lock.json

+1-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
"prepublishOnly": "npm run build && npm run copy-schemas"
3737
},
3838
"dependencies": {
39-
"@types/uuid": "10.0.0",
4039
"class-transformer": "0.5.1",
41-
"reflect-metadata": "0.2.2",
42-
"uuid": "11.0.5"
40+
"reflect-metadata": "0.2.2"
4341
},
4442
"devDependencies": {
4543
"@types/mocha": "10.0.10",

javascript/src/IdGenerator.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { v4 as uuidv4 } from 'uuid'
2-
31
export type NewId = () => string
42

53
export function uuid(): NewId {
6-
return () => uuidv4()
4+
return () => crypto.randomUUID()
75
}
86

97
export function incrementing(): NewId {

0 commit comments

Comments
 (0)