You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -483,7 +472,7 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
483
472
484
473
**Browsers**: `uuid`[builds are tested](/uuidjs/uuid/blob/main/wdio.conf.js) against the latest version of desktop Chrome, Safari, Firefox, and Edge. Mobile versions of these same browsers are expected to work but aren't currently tested.
485
474
486
-
**Node**: `uuid`[builds are tested](https://github.com/uuidjs/uuid/blob/main/.github/workflows/ci.yml#L26-L27) against node ([LTS releases](https://github.com/nodejs/Release)), plus one prior. E.g. `node@18` is in maintainence mode, and `node@22` is the current LTS release. So`uuid` supports `node@16`-`node@22`.
475
+
**Node**: `uuid`[builds are tested](https://github.com/uuidjs/uuid/blob/main/.github/workflows/ci.yml#L26-L27) against node ([LTS releases](https://github.com/nodejs/Release)), plus one prior. E.g. At the time of this writing `node@20` is the "maintenance" release and `node@24` is the "current" release, so`uuid` supports `node@18`-`node@24`.
487
476
488
477
**Typescript**: TS versions released within the past two years are supported. [source](https://github.com/microsoft/TypeScript/issues/49088#issuecomment-2468723715)
@@ -23,7 +25,6 @@ For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (form
23
25
24
26
-**Complete** - Support for all RFC9562 UUID versions
25
27
-**Cross-platform** - Support for...
26
-
- ESM & Common JS
27
28
-[Typescript](#support)
28
29
-[Chrome, Safari, Firefox, and Edge](#support)
29
30
-[NodeJS](#support)
@@ -34,10 +35,8 @@ For the creation of [RFC9562](https://www.rfc-editor.org/rfc/rfc9562.html) (form
34
35
35
36
<!-- prettier-ignore -->
36
37
> [!NOTE]
37
-
> `uuid@11` is now available: See the [CHANGELOG](./CHANGELOG.md) for details. TL;DR:
38
-
> * TypeScript support is now included (remove `@types/uuid` from your dependencies)
39
-
> * Subtle changes to how the `options` arg is interpreted for `v1()`, `v6()`, and `v7()`. [See details](#options-handling-for-timestamp-uuids)
40
-
> * Binary UUIDs are now `Uint8Array`s. (May impact callers of `parse()`, `stringify()`, or that pass an `option#buf` argument to `v1()`-`v7()`.)
38
+
>
39
+
> As of `uuid@12` CommonJS is no longer supported. See [ESM Module FAQ](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
41
40
42
41
## Quickstart
43
42
@@ -49,17 +48,9 @@ npm install uuid
49
48
50
49
**2. Create a UUID**
51
50
52
-
ESM-syntax (must use named exports):
53
-
54
51
```javascript --run
55
52
import { v4asuuidv4 } from'uuid';
56
-
uuidv4(); // RESULT
57
-
```
58
-
59
-
... CommonJS:
60
53
61
-
```javascript --run
62
-
const { v4:uuidv4 } =require('uuid');
63
54
uuidv4(); // RESULT
64
55
```
65
56
@@ -492,7 +483,7 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
492
483
493
484
**Browsers**: `uuid`[builds are tested](/uuidjs/uuid/blob/main/wdio.conf.js) against the latest version of desktop Chrome, Safari, Firefox, and Edge. Mobile versions of these same browsers are expected to work but aren't currently tested.
494
485
495
-
**Node**: `uuid`[builds are tested](https://github.com/uuidjs/uuid/blob/main/.github/workflows/ci.yml#L26-L27) against node ([LTS releases](https://github.com/nodejs/Release)), plus one prior. E.g. `node@18` is in maintainence mode, and `node@22` is the current LTS release. So`uuid` supports `node@16`-`node@22`.
486
+
**Node**: `uuid`[builds are tested](https://github.com/uuidjs/uuid/blob/main/.github/workflows/ci.yml#L26-L27) against node ([LTS releases](https://github.com/nodejs/Release)), plus one prior. E.g. At the time of this writing `node@20` is the "maintenance" release and `node@24` is the "current" release, so`uuid` supports `node@18`-`node@24`.
496
487
497
488
**Typescript**: TS versions released within the past two years are supported. [source](https://github.com/microsoft/TypeScript/issues/49088#issuecomment-2468723715)
0 commit comments