aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-04-22 21:03:22 +0200
committerGitHub <[email protected]>2023-04-22 21:03:22 +0200
commit8fc5261298ebd0dfe616fed9265ce9d7e626ae96 (patch)
treed4276b62d1c7ed4c1cb8bd60e2bd8a960ae37197 /docs
parenta49aa0d7831a949728b6831b96f15c4971f1e1d9 (diff)
downloadfaker-8fc5261298ebd0dfe616fed9265ce9d7e626ae96.tar.xz
faker-8fc5261298ebd0dfe616fed9265ce9d7e626ae96.zip
refactor(datatype): deprecate datetime (#2053)
Diffstat (limited to 'docs')
-rw-r--r--docs/guide/upgrading.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/guide/upgrading.md b/docs/guide/upgrading.md
index e64f8b12..4a5a2ea9 100644
--- a/docs/guide/upgrading.md
+++ b/docs/guide/upgrading.md
@@ -274,6 +274,10 @@ faker.number.float({ max: 100, precision: 0.01 }); // 35.21
The method `faker.datatype.array` has been deprecated and will be removed in v9.
If you need an array of useful values, you are better off creating your own one using `faker.helpers.multiple`.
+### `faker.datatype.datetime` deprecated in favor of `faker.date.between`
+
+The `datetime` method previously found in `faker.datatype` has been deprecated, use `faker.date.between` instead.
+
### `allowLeadingZeros` behavior change in `faker.string.numeric`
The `allowLeadingZeros` boolean parameter in `faker.string.numeric` (in the new `string` module) now defaults to `true`. `faker.string.numeric` will now generate numeric strings that could have leading zeros by default.