fast-check v2.12.0 Release Notes
-
More efficient shrinkers [Code][Diff]
๐ Features
- ๐ (PR#1354) Split internal shrinkNumeric for better performances
- (PR#1355) Introduce new helper ArbitraryWithContextualShrink
- (PR#1358) More efficient shrinker for integer
- (PR#1372) More efficient shrinker for bigint
- (PR#1377) More efficient shrinker for array
- (PR#1382) More efficient shrinker for subarray
- (PR#1383) More efficient shrinker for mixedCase
- (PR#1384) More efficient shrinker for double
๐ Fixes
- (PR#1347) Bug: Legacy float/double should never reach the max specified value
- (PR#1359) Bug: Calling
shrinkableFor
should never apply contextual shrinker - ๐ (PR#1350) Clean: Re-generate yarn.lock files
- ๐ (PR#1331) Doc: Deploy temporary documentation and package to Netlify
- ๐ (PR#1352) Doc: Performance impacts of filter
- (PR#1379) Doc: Only specify a single entryPoint in TypeDoc
- ๐จ (PR#1357) Refactor: Re-implement shrinker for integer based on contextual shrinker
- ๐จ (PR#1373) Refactor: Re-use contextual shrinker of integer in array
- ๐จ (PR#1376) Refactor: Re-use contextual shrinker of integer in commands
- ๐จ (PR#1385) Refactor: Extract Stream.of logic for re-use
- ๐จ (PR#1387) Refactor: Restructure implementations of ArbitraryWithContextualShrink
- โ (PR#1353) Test: Add unit tests for stringify on Regex
- โ (PR#1368) Test: Add non-regression tests on shrinking quality
- โ (PR#1375) Test: Typings of ArbitraryWithContextualShrink
- โ (PR#1380) Test: Typings of constantFrom and chain
- โ (PR#1381) Test: Tests on typings should fail with explicit errors
- โ (PR#1386) Test: Add tests for ArbitraryWithContextualShrink
- โ (PR#1388) Test: Add snapshot tests for new core shrinkers: integer, bigint, arrayInt64