Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [20, 22, 24]
node_version: [22, 24, 26]
fail-fast: false
timeout-minutes: 10

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This documentation only covers the JavaScript implementation of Faker.

## Environments

You can run Faker in the browser, or in Node.js. Faker v10.0 requires Node.js version 20 or above.
You can run Faker in the browser, or in Node.js. Faker v11.0 requires Node.js version 22 or above.

::: tip Note
When using CJS, you need to use at least Node.js v20.19. See https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require
Expand Down
3 changes: 3 additions & 0 deletions docs/guide/upgrading_v11/3916.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Node v20 No Longer Supported

Support for Node.js v20 has been discontinued, as this version has reached its [end-of-life](https://github.com/nodejs/Release). Faker.js v11 requires a minimum of Node.js v22.13.0, v23.5.0, or v24.0.0.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
"packageManager": "pnpm@10.34.4",
"engines": {
"node": "^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0",
"node": "^22.13.0 || ^23.5.0 || >=24.0.0",
"npm": ">=10"
},
"pnpm": {
Expand Down
6 changes: 4 additions & 2 deletions test/scripts/apidocs/verify-jsdoc-tags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ const allowedLinks = new Set(

function assertDescription(description: string): void {
const linkRegexp = /\[([^\]]+)\]\(([^)]+)\)/g;
// eslint-disable-next-line unicorn/prefer-iterator-to-array -- Requires Node 22+
const links = [...description.matchAll(linkRegexp)].map((m) => m[2]);
const links = description
.matchAll(linkRegexp)
.map((m) => m[2])
.toArray();

for (const link of links) {
expect(link).toStartWith('https://');
Expand Down
2 changes: 1 addition & 1 deletion tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default defineConfig({
minify: true,
platform: 'neutral',
publint: true,
target: ['es2023', 'node20.11'],
target: ['es2024', 'node22.13'],
});