aboutsummaryrefslogtreecommitdiff
path: root/docs/guide/upgrading.md
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2023-02-19 20:40:28 +0100
committerGitHub <[email protected]>2023-02-19 20:40:28 +0100
commit54faf53b47827d800872847c4075e496a8c9942b (patch)
treed7ce7b595dd128383f4681ed499116c0b2ee6ca3 /docs/guide/upgrading.md
parentfccd641f02fc0db463d34e1a7cc459ad6bd0b265 (diff)
downloadfaker-54faf53b47827d800872847c4075e496a8c9942b.tar.xz
faker-54faf53b47827d800872847c4075e496a8c9942b.zip
refactor(datatype): deprecate `array` (#1853)
Diffstat (limited to 'docs/guide/upgrading.md')
-rw-r--r--docs/guide/upgrading.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/guide/upgrading.md b/docs/guide/upgrading.md
index 673ab610..709a76d0 100644
--- a/docs/guide/upgrading.md
+++ b/docs/guide/upgrading.md
@@ -124,6 +124,11 @@ faker.number.float({ max: 100, precision: 0.01 }); // 35.21
| `faker.datatype.float` | `faker.number.float` |
| `faker.datatype.bigInt` | `faker.number.bigInt` |
+### Deprecation of `faker.datatype.array`
+
+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`.
+
### `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.