Skip to content

Commit 83ff896

Browse files
Merge branch 'next' into 2350-test-all-credit-card-issuer-patterns
2 parents 17ba487 + 9940d54 commit 83ff896

File tree

15 files changed

+1348
-801
lines changed

15 files changed

+1348
-801
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
44
"name": "FakerJs",
5-
"image": "mcr.microsoft.com/devcontainers/typescript-node:22@sha256:7c2e711a4f7b02f32d2da16192d5e05aa7c95279be4ce889cff5df316f251c1d",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:22@sha256:2baa40a4eef3ac5b42d53acddaca3aac2e47bc30c54788f6fe299dbc5da83262",
66

77
// Features to add to the dev container. More info: https://containers.dev/features.
88
// "features": {},

docs/guide/upgrading.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Support for Node.js v18 has been discontinued, as this version has reached its [
2727

2828
### CommonJS Still Supported, but Check Your Node Version
2929

30-
Technically, Faker v10 is now an ESM-only package. However, the good news is that you can still use it from your CommonJS packages without code changes, thanks to the [ESM Modules require feature](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require) in recent versions of Node.js.
30+
Technically, Faker v10 is now an ESM-only package. However, the good news is that you can still use it from your CommonJS projects without code changes, thanks to the [ESM Modules require feature](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require) in recent versions of Node.js.
3131

32-
If you are using Node 20, ensure you are using a sufficiently recent minor version—Node v20.19+ or Node v22.13+ is required.
32+
If you are using Node 20 or Node 22, ensure you are using a sufficiently recent minor version—Node v20.19+ or Node v22.13+ is required.
3333

3434
```ts
3535
const { faker, fakerES } = require('@faker-js/faker'); // this still works
@@ -47,7 +47,7 @@ Instead, change the require of index.js in null to a dynamic import(), which is
4747

4848
A number of methods that were deprecated in v9 have been completely removed in v10. To prepare for the upgrade, it is recommended to first upgrade to the latest version of v9 (e.g., `npm install --save-dev faker@9`) and fix any deprecation warnings issued by your code.
4949

50-
| Removed Method | Replacement / Notes |
50+
| Removed Method | Replacement |
5151
| ------------------------- | ------------------------- |
5252
| `faker.address.*` | `faker.location.*` |
5353
| `faker.name.*` | `faker.person.*` |
@@ -74,10 +74,10 @@ faker.word.noun({ length: { min: 20, max: 25 } });
7474
// In v10, this throws an error `FakerError: No words found that match the given length.`
7575
```
7676

77-
Previously, the methods would return a random word, completly ignoring the the length requirements you specified.
78-
If you want to restore this behaviour, you can provide the 'any-length' strategy to the word methods.
77+
Previously, the methods would return a random word, completely ignoring the the length requirements you specified.
78+
If you want to restore this behavior, you can provide the 'any-length' strategy to the word methods.
7979

80-
| Method in v9 | Method in v10 with v9 behaviour |
80+
| Method in v9 | Method in v10 with v9 behavior |
8181
| --------------------------- | ----------------------------------------------------- |
8282
| `faker.word.adjective()` | `faker.word.adjective({ strategy: 'any-length' })` |
8383
| `faker.word.adverb()` | `faker.word.adverb({ strategy: 'any-length' })` |

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -98,44 +98,44 @@
9898
"dist"
9999
],
100100
"devDependencies": {
101-
"@eslint/compat": "1.3.1",
102-
"@eslint/js": "9.30.1",
103-
"@stylistic/eslint-plugin": "5.1.0",
104-
"@types/node": "22.16.0",
101+
"@eslint/compat": "1.3.2",
102+
"@eslint/js": "9.33.0",
103+
"@stylistic/eslint-plugin": "5.2.3",
104+
"@types/node": "22.17.1",
105105
"@types/sanitize-html": "2.16.0",
106106
"@types/semver": "7.7.0",
107107
"@types/validator": "13.15.2",
108108
"@vitest/coverage-v8": "3.2.4",
109109
"@vitest/eslint-plugin": "1.3.4",
110110
"@vitest/ui": "3.2.4",
111-
"@vueuse/core": "13.5.0",
112-
"commit-and-tag-version": "12.5.1",
113-
"cypress": "14.5.1",
114-
"eslint": "9.30.1",
115-
"eslint-config-prettier": "10.1.5",
111+
"@vueuse/core": "13.6.0",
112+
"commit-and-tag-version": "12.5.2",
113+
"cypress": "14.5.4",
114+
"eslint": "9.33.0",
115+
"eslint-config-prettier": "10.1.8",
116116
"eslint-plugin-file-progress": "3.0.2",
117-
"eslint-plugin-jsdoc": "51.3.3",
118-
"eslint-plugin-prettier": "5.5.1",
119-
"eslint-plugin-unicorn": "59.0.1",
120-
"jiti": "2.4.2",
117+
"eslint-plugin-jsdoc": "52.0.4",
118+
"eslint-plugin-prettier": "5.5.4",
119+
"eslint-plugin-unicorn": "60.0.0",
120+
"jiti": "2.5.1",
121121
"npm-run-all2": "8.0.4",
122122
"prettier": "3.6.2",
123-
"prettier-plugin-organize-imports": "4.1.0",
124-
"prettier-plugin-pkg": "0.21.1",
123+
"prettier-plugin-organize-imports": "4.2.0",
124+
"prettier-plugin-pkg": "0.21.2",
125125
"sanitize-html": "2.17.0",
126126
"semver": "7.7.2",
127127
"ts-morph": "26.0.0",
128128
"tsup": "8.5.0",
129129
"tsx": "4.20.3",
130-
"typescript": "5.8.3",
131-
"typescript-eslint": "8.35.1",
130+
"typescript": "5.9.2",
131+
"typescript-eslint": "8.39.0",
132132
"validator": "13.15.15",
133133
"vitepress": "1.6.3",
134134
"vitest": "3.2.4",
135-
"vue": "3.5.17",
136-
"vue-tsc": "3.0.1"
135+
"vue": "3.5.18",
136+
"vue-tsc": "3.0.5"
137137
},
138-
"packageManager": "pnpm@10.12.4",
138+
"packageManager": "pnpm@10.14.0",
139139
"engines": {
140140
"node": "^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0",
141141
"npm": ">=10"

0 commit comments

Comments
 (0)