Skip to content

Commit

Permalink
refactor(date)!: remove v8 deprecated date methods (#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 5, 2024
1 parent 2bf8974 commit e868060
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 1,271 deletions.
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 })` |

0 comments on commit e868060

Please sign in to comment.