Skip to content

Commit

Permalink
Merge branch 'next' into test/verify-locale-code
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Mar 5, 2024
2 parents 2e1c4ad + 660da4c commit 58d72a8
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 1,328 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = defineConfig({
'error',
{ default: 'array-simple', readonly: 'generic' },
],
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/naming-convention': [
Expand Down
14 changes: 14 additions & 0 deletions docs/guide/upgrading_v9/2704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Remove deprecated date methods

Removed deprecated date methods

| old | replacement |
| -------------------------------------- | ------------------------------------------ |
| `faker.date.past(years, refDate)` | `faker.date.past({ years, refDate })` |
| `faker.date.future(years, refDate)` | `faker.date.future({ years, refDate })` |
| `faker.date.between(from, to)` | `faker.date.between({ from, to })` |
| `faker.date.betweens(from, to, count)` | `faker.date.betweens({ from, to, count })` |
| `faker.date.recent(days, refDate)` | `faker.date.recent({ days, refDate })` |
| `faker.date.soon(days, refDate)` | `faker.date.soon({ days, refDate })` |
| `faker.date.month({ abbr })` | `faker.date.month({ abbreviated })` |
| `faker.date.weekday({ abbr })` | `faker.date.weekday({ abbreviated })` |
7 changes: 7 additions & 0 deletions docs/guide/upgrading_v9/2712.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Remove deprecated phone methods

Removed deprecated phone methods

| old | replacement |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `faker.phone.number(format)` | `faker.phone.number()`, `faker.string.numeric()` or `faker.helpers.fromRegExp()` |
Loading

0 comments on commit 58d72a8

Please sign in to comment.