You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description**
<!-- Please provide a short description and potentially linked issues
justifying the need for this PR -->
**💥 Breaking change**
With the introduction of the flag `noUnicodeString` on both `json` and
`jsonValue` we paved the way for unicode strings to be the default when
asking for json entries.
This PR toggles the flag to false by default, meaning that any legacy
arbitrary not passing the flag will move to unicode strings for keys and
value of the produced jsons. As such the breaking change should be
rather minor except if the fact not to request unicode was on purpose.
<!-- * Your PR is fixing a bug or regression? Check for existing issues
related to this bug and link them -->
<!-- * Your PR is adding a new feature? Make sure there is a related
issue or discussion attached to it -->
<!-- You can provide any additional context to help into understanding
what's this PR is attempting to solve: reproduction of a bug, code
snippets... -->
**Checklist** — _Don't delete this checklist and make sure you do the
following before opening the PR_
- [x] The name of my PR follows [gitmoji](https://gitmoji.dev/)
specification
- [x] My PR references one of several related issues (if any)
- [x] New features or breaking changes must come with an associated
Issue or Discussion
- [x] My PR does not add any new dependency without an associated Issue
or Discussion
- [x] My PR includes bumps details, please run `yarn bump` and flag the
impacts properly
- [x] My PR adds relevant tests and they would have failed without my PR
(when applicable)
<!-- More about contributing at
https://github.com/dubzzz/fast-check/blob/main/CONTRIBUTING.md -->
**Advanced**
<!-- How to fill the advanced section is detailed below! -->
- [x] Category: 💥 Breaking change
- [x] Impacts: Change defaults
<!-- [Category] Please use one of the categories below, it will help us
into better understanding the urgency of the PR -->
<!-- * ✨ Introduce new features -->
<!-- * 📝 Add or update documentation -->
<!-- * ✅ Add or update tests -->
<!-- * 🐛 Fix a bug -->
<!-- * 🏷️ Add or update types -->
<!-- * ⚡️ Improve performance -->
<!-- * _Other(s):_ ... -->
<!-- [Impacts] Please provide a comma separated list of the potential
impacts that might be introduced by this change -->
<!-- * Generated values: Can your change impact any of the existing
generators in terms of generated values, if so which ones? when? -->
<!-- * Shrink values: Can your change impact any of the existing
generators in terms of shrink values, if so which ones? when? -->
<!-- * Performance: Can it require some typings changes on user side?
Please give more details -->
<!-- * Typings: Is there a potential performance impact? In which cases?
-->
-`depthSize?` — default: `undefined`[more](/docs/configuration/larger-entries-by-default/#depth-size-explained) — _how much we allow our recursive structures to be deep?_
65
65
-`maxDepth?` — default: `Number.POSITIVE_INFINITY` — _maximal depth of generated objects_
66
-
-`noUnicodeString?` — default: `true` — _toggle on/off the generation of strings used either as keys or values of the instance and including non-ascii characters — shadowed by `stringUnit`_
67
66
-`stringUnit?` — default: `undefined` — _customize the set of characters being used by the `string` arbitrary_
-`depthSize?` — default: `undefined`[more](/docs/configuration/larger-entries-by-default/#depth-size-explained) — _how much we allow our recursive structures to be deep?_
128
127
-`maxDepth?` — default: `Number.POSITIVE_INFINITY` — _maximal depth for generated objects (Map and Set included into objects)_
129
-
-`noUnicodeString?` — default: `true` — _toggle on/off the generation of strings used either as keys or values of the instance and including non-ascii characters — shadowed by `stringUnit`_
130
128
-`stringUnit?` — default: `undefined` — _customize the set of characters being used by the `string` arbitrary_
0 commit comments