Skip to content

Commit

Permalink
Merge branch 'next' into feat/phone-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Mar 12, 2024
2 parents d6dbf8f + aade09b commit 7b8bcd6
Show file tree
Hide file tree
Showing 12 changed files with 394 additions and 832 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = defineConfig({
'prefer-exponentiation-operator': 'error',
'prefer-template': 'error',

'unicorn/no-array-callback-reference': 'off', // reduces readability
'unicorn/no-nested-ternary': 'off', // incompatible with prettier
'unicorn/no-null': 'off', // incompatible with TypeScript
'unicorn/no-zero-fractions': 'off', // deactivated to raise awareness of floating operations
Expand All @@ -49,7 +50,6 @@ module.exports = defineConfig({
'unicorn/better-regex': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/import-style': 'off',
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-await-expression-member': 'off',
'unicorn/no-object-as-default-parameter': 'off',
'unicorn/numeric-separators-style': 'off',
Expand Down
25 changes: 14 additions & 11 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:best-practices",
"schedule:earlyMondays",
"group:allNonMajor",
":prHourlyLimitNone",
"helpers:pinGitHubActionDigests"
":prHourlyLimitNone"
],
"labels": ["c: dependencies"],
"labels": ["c: dependencies", "p: 1-normal"],
"lockFileMaintenance": {
"enabled": true
},
"milestone": 15,
"reviewersFromCodeOwners": true,
"rangeStrategy": "bump",
"rangeStrategy": "pin",
"packageRules": [
{
"groupName": "devDependencies",
"matchDepTypes": ["devDependencies"],
"rangeStrategy": "bump"
"matchDepTypes": ["devDependencies"]
},
{
"groupName": "dependencies",
Expand All @@ -35,12 +34,16 @@
"rangeStrategy": "replace"
},
{
"groupName": "typescript-eslint",
"matchPackagePrefixes": ["@typescript-eslint/"]
"groupName": "eslint",
"matchPackagePrefixes": [
"@typescript-eslint/",
"@eslint-types/",
"eslint"
]
},
{
"groupName": "vitest",
"matchPackageNames": ["@vitest/coverage-v8", "@vitest/ui", "vitest"]
"matchPackagePrefixes": ["@vitest/", "vitest"]
},
{
"groupName": "prettier",
Expand All @@ -61,7 +64,7 @@
}
],
"vulnerabilityAlerts": {
"labels": ["c: security"],
"labels": ["c: security", "p: 2-high"],
"assignees": ["team:maintainers"]
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/gallium
lts/iron
2 changes: 1 addition & 1 deletion docs/guide/upgrading_v9/2357.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Use High Precision RNG by default
### Use High Precision RNG by default

TLDR: Many Faker methods will return a different result in v9 compared to v8 for the same seed.

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/upgrading_v9/2508.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Some methods now return undefined in Javascript when unknown enumeration values are passed
### Some methods now return undefined in Javascript when unknown enumeration values are passed

Some methods would previously fallback to a default value for an option when an unknown value was passed for a enum parameter.
Now, these methods will return undefined instead.
Expand Down
10 changes: 10 additions & 0 deletions docs/guide/upgrading_v9/2727.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Remove deprecated finance methods

Removed deprecated finance methods

| old | replacement |
| --------------------------------------------------------- | ------------------------------------------------------------- |
| `faker.finance.account` | `faker.finance.accountNumber` |
| `faker.finance.mask` | `faker.finance.maskedNumber` |
| `faker.finance.amount(min, max, dec, symbol, autoFormat)` | `faker.finance.amount({ min, max, dec, symbol, autoFormat })` |
| `faker.finance.iban(formatted, countryCode)` | `faker.finance.iban({ formatted, countryCode })` |
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,31 @@
"@actions/github": "~6.0.0",
"@algolia/client-search": "~4.22.1",
"@eslint-types/deprecation": "2.0.0-1",
"@eslint-types/jsdoc": "~48.2.0",
"@eslint-types/jsdoc": "48.2.0",
"@eslint-types/prettier": "5.1.3",
"@eslint-types/typescript-eslint": "~7.0.2",
"@eslint-types/unicorn": "~51.0.1",
"@eslint-types/typescript-eslint": "7.0.2",
"@eslint-types/unicorn": "51.0.1",
"@types/markdown-it": "~13.0.7",
"@types/node": "~20.11.24",
"@types/node": "~20.11.25",
"@types/sanitize-html": "~2.11.0",
"@types/semver": "~7.5.8",
"@types/validator": "~13.11.9",
"@typescript-eslint/eslint-plugin": "~7.1.0",
"@typescript-eslint/parser": "~7.1.0",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@vitest/coverage-v8": "~1.3.1",
"@vitest/ui": "~1.3.1",
"@vueuse/core": "~10.9.0",
"conventional-changelog-cli": "~4.1.0",
"cypress": "~13.6.6",
"eslint": "~8.57.0",
"eslint-config-prettier": "~9.1.0",
"eslint-define-config": "~2.1.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-deprecation": "~2.0.0",
"eslint-plugin-jsdoc": "~48.2.0",
"eslint-plugin-prettier": "~5.1.3",
"eslint-plugin-unicorn": "~51.0.1",
"eslint-plugin-vitest": "~0.3.22",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-define-config": "2.1.0",
"eslint-gitignore": "0.1.0",
"eslint-plugin-deprecation": "2.0.0",
"eslint-plugin-jsdoc": "48.2.1",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-unicorn": "51.0.1",
"eslint-plugin-vitest": "0.3.25",
"glob": "~10.3.10",
"npm-run-all2": "~6.1.2",
"prettier": "3.2.5",
Expand All @@ -121,11 +121,11 @@
"standard-version": "~9.5.0",
"tsup": "~8.0.2",
"tsx": "~4.7.1",
"typedoc": "~0.25.10",
"typescript": "~5.3.3",
"typedoc": "~0.25.12",
"typescript": "~5.4.2",
"validator": "~13.11.0",
"vite": "~5.1.4",
"vitepress": "1.0.0-rc.44",
"vite": "~5.1.5",
"vitepress": "1.0.0-rc.45",
"vitest": "~1.3.1",
"vue": "~3.4.21"
},
Expand Down
Loading

0 comments on commit 7b8bcd6

Please sign in to comment.