Skip to content

Commit dc4ddb8

Browse files
authored
feat!: drop node@18 support (#934)
1 parent 0f1f9c9 commit dc4ddb8

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
node-version: [18.x, 20.x, 22.x, 24.x]
30+
node-version: [20.x, 22.x, 24.x]
3131
steps:
3232
- uses: actions/checkout@v4
3333
- name: Use Node.js ${{ matrix.node-version }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ npm install uuid
3434
```javascript
3535
import { v4 as uuidv4 } from "uuid";
3636

37-
uuidv4(); // ⇨ '59c892bd-28b3-430e-a180-b02548346331'
37+
uuidv4(); // ⇨ 'd02fd2bc-0baa-4a06-ae2f-fde2bbaff694'
3838
```
3939

4040
For timestamp UUIDs, namespace UUIDs, and other options read on ...
@@ -179,7 +179,7 @@ Example:
179179
```javascript
180180
import { v1 as uuidv1 } from "uuid";
181181

182-
uuidv1(); // ⇨ '8c5dce80-309e-11f1-a247-d30aadaa5579'
182+
uuidv1(); // ⇨ '56eaf9f0-310a-11f1-8b06-cf0bf06de9bb'
183183
```
184184

185185
Example using `options`:
@@ -234,7 +234,7 @@ Example:
234234
```javascript
235235
import { v4 as uuidv4 } from "uuid";
236236

237-
uuidv4(); // ⇨ '6aa50eb9-7f3b-4931-99c3-96153026c3a1'
237+
uuidv4(); // ⇨ 'c3d46383-7242-4b80-973b-eb3c66ad8d9e'
238238
```
239239

240240
Example using predefined `random` values:
@@ -310,7 +310,7 @@ This method takes the same arguments as uuid.v1().
310310
```javascript
311311
import { v6 as uuidv6 } from "uuid";
312312

313-
uuidv6(); // ⇨ '1f1309e8-c5e6-6ac0-8f36-0cb5e9b3126a'
313+
uuidv6(); // ⇨ '1f1310a5-6eb9-6630-bf43-2b49087aab53'
314314
```
315315

316316
Example using `options`:
@@ -357,7 +357,7 @@ Example:
357357
```javascript
358358
import { v7 as uuidv7 } from "uuid";
359359

360-
uuidv7(); // ⇨ '019d5ba8-fb6d-76e6-b431-ed99f3c6e608'
360+
uuidv7(); // ⇨ '019d5e6b-6713-7339-951f-6e19a533527d'
361361
```
362362

363363
### ~~uuid.v8()~~
@@ -464,7 +464,7 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
464464

465465
**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.
466466

467-
**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`.
467+
**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@20`-`node@24`.
468468

469469
**Typescript**: TS versions released within the past two years are supported. [source](https://github.com/microsoft/TypeScript/issues/49088#issuecomment-2468723715)
470470

README_js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Prior to `uuid@11`, it was possible for `options` state to interfere with the in
461461

462462
**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.
463463

464-
**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`.
464+
**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@20`-`node@24`.
465465

466466
**Typescript**: TS versions released within the past two years are supported. [source](https://github.com/microsoft/TypeScript/issues/49088#issuecomment-2468723715)
467467

examples/node-esmodules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"test:package": "( node --version | grep -vq 'v18' ) || ( node package.mjs )",
6+
"test:package": "( node --version | grep -vq 'v20' ) || ( node package.mjs )",
77
"test:example": "node example.mjs",
88
"pretest": "rm -fr node_modules && npm install --no-package-lock",
99
"test": "npm-run-all test:*"

0 commit comments

Comments
 (0)