+1
-2
deno.json
+1
-2
deno.json
+2
-8
deno.lock
+2
-8
deno.lock
···
2
2
"version": "5",
3
3
"specifiers": {
4
4
"jsr:@mary/events@0.2": "0.2.0",
5
-
"npm:esm-env@^1.2.2": "1.2.2",
6
-
"npm:nanoid@^5.1.5": "5.1.5"
5
+
"npm:esm-env@^1.2.2": "1.2.2"
7
6
},
8
7
"jsr": {
9
8
"@mary/events@0.2.0": {
···
13
12
"npm": {
14
13
"esm-env@1.2.2": {
15
14
"integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="
16
-
},
17
-
"nanoid@5.1.5": {
18
-
"integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==",
19
-
"bin": true
20
15
}
21
16
},
22
17
"workspace": {
23
18
"dependencies": [
24
19
"jsr:@mary/events@0.2",
25
-
"npm:esm-env@^1.2.2",
26
-
"npm:nanoid@^5.1.5"
20
+
"npm:esm-env@^1.2.2"
27
21
]
28
22
}
29
23
}
+1
-2
lib/mod.ts
+1
-2
lib/mod.ts
···
6
6
// history implementation.
7
7
8
8
import { DEV } from 'esm-env';
9
-
import { nanoid } from 'nanoid/non-secure';
10
9
11
10
import { EventEmitter } from '@mary/events';
12
11
···
359
358
};
360
359
361
360
const randomId = () => {
362
-
return nanoid();
361
+
return crypto.randomUUID();
363
362
};
364
363
365
364
/**