aboutsummaryrefslogtreecommitdiff
path: root/docs/guide
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-03-05 10:56:25 +0100
committerGitHub <[email protected]>2024-03-05 09:56:25 +0000
commite868060c87cbca3c1bf90465d61fc39a4eea1f9c (patch)
tree5ca57dc9eae4683ff82f951478e6a810c3f71a96 /docs/guide
parent2bf897464cdda53886380590d64236658102cdda (diff)
downloadfaker-e868060c87cbca3c1bf90465d61fc39a4eea1f9c.tar.xz
faker-e868060c87cbca3c1bf90465d61fc39a4eea1f9c.zip
refactor(date)!: remove v8 deprecated date methods (#2704)
Diffstat (limited to 'docs/guide')
-rw-r--r--docs/guide/upgrading_v9/2704.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/guide/upgrading_v9/2704.md b/docs/guide/upgrading_v9/2704.md
new file mode 100644
index 00000000..26c2b461
--- /dev/null
+++ b/docs/guide/upgrading_v9/2704.md
@@ -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 })` |