Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency fast-check to v2 #324

Merged
merged 2 commits into from
Feb 25, 2021
Merged

Update dependency fast-check to v2 #324

merged 2 commits into from
Feb 25, 2021

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Aug 27, 2020

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fast-check 1.21.0 -> 2.11.0 age adoption passing confidence

Release Notes

dubzzz/fast-check

v2.11.0

Compare Source

Add support for Symbol properties and ability to mark keys as required in fc.record
[Code][Diff]

Features

  • (PR#​1265) Switch from Object.keys to for..in in record [reverted]
  • (PR#​1266) Arbitrary records with optional fields
  • (PR#​1306) Prefer unique symbols over Symbol.for ⚠️
  • (PR#​1328) Better handling of known symbols with fc.stringify
  • (PR#​1321) Add support for Symbol keys in record
  • (PR#​1327) Properly handle objects with symbols as keys in fc.stringify
  • (PR#​1329) Throw if non enumerable keys declared in requiredKeys of record

Fixes

  • (PR#​1286) CI: Basic setup for codecov
  • (PR#​1287) CI: Only take into account files from src/ in coverage
  • (PR#​1289) CI: Remove coveralls from the CI
  • (PR#​1290) CI: Remove unused flags in coverage
  • (PR#​1296) CI: Comment with links to install the package defined by the PR
  • (PR#​1304) CI: Better message for automatic comments
  • (PR#​1307) CI: Randomly seed runs in CI (by default)
  • (PR#​1269) Doc: Fix typo in AdvancedArbitraries.md
  • (PR#​1288) Doc: Switch to codecov in README
  • (PR#​1291) Doc: Prefer spaces over tabs in the README (easier to fit in screen)
  • (PR#​1268) Test: Switch from (deprecated) tsd to tsc for type checking
  • (PR#​1280) Test: Reduce flakiness of array e2e

v2.10.0

Compare Source

Increase performances of generic operations of arbitraries: map, filter, chain
[Code][Diff]

Features

  • (PR#​1264) Extract inlined-classes outside of Arbitrary base-class

Fixes

  • (PR#​1260) Test: Better coverage of ArrayInt64 to reduce flakiness in coverage

v2.9.0

Compare Source

Add arbitraries for typed arrays
[Code][Diff]

Features

  • (PR#​1210) Wider defaults for numbers in objects
  • (PR#​1212) Add typed arrays arbitraries
  • (PR#​1237) Add option withTypedArray to fc.object and fc.anything

Fixes

  • (PR#​1231) CI: Split test task into two tasks: one for units, another for e2e
  • (PR#​1232) CI: Run E2E tests on multiple platforms
  • (PR#​1243) CI: Add github-actions to dependabot list
  • (PR#​1230) Test: Reduce flakyness of object boxing coverage
  • (PR#​1233) Test: Wrongly defined test for 'Should box any number'
  • (PR#​1236) Test: Safer URL validation in our web urls e2e tests
  • (PR#​1238) Test: Add legacy tests for typed arrays
  • (PR#​1250) Test: Increase stability of e2e on floatNext/doubleNext
  • (PR#​1251) Test: Add more tests for fc.anything to reduce coverage flakiness

v2.8.0

Compare Source

New opt-in implementation for fc.float and fc.double
[Code][Diff]

Features

  • (PR#​1040) New opt-in implementation for fc.float
  • (PR#​1185) Move NaN as an extreme value for floatNext
  • (PR#​1187) New opt-in implementation for fc.double

Fixes

  • (PR#​1190) CI: Check CJS/ESM against node 12.20
  • (PR#​1161) Doc: Show examples for fc.__version and fc.__commitHash
  • (PR#​1128) Doc: Add link to ReScript bindings
  • (PR#​1173) Test: Add more tests on biasNumeric
  • (PR#​1182) Test: Better error reporting with isValidArbitrary
  • (PR#​1184) Test: Pass the original seed to callbacks of isValidArbitrary
  • (PR#​1183) Test: Wrongly defined isStrictlySmallerValue for floatNext
  • (PR#​1186) Test: Wrongly defined isStrictlySmallerValue for floatNext (2)
  • (PR#​1199) Test: Invalid checks to compare zeros in tests of fc.float(Next)
  • (PR#​1207) Test: More stable coverage for floatNext
  • (PR#​1211) Test: Add missing legacy tests for node 8 on next floats and others
  • (PR#​1213) Test: Add some more tests for ArrayInt64 for coverage stability

v2.7.0

Compare Source

Better bias for integers and any derived arbitraries
[Code][Diff]

Features

  • (PR#​1020) Faster implementation for set
  • (PR#​1034) Stricter limits on email arbitrary
  • (PR#​1035) Stricter limits on domain arbitrary ⚠️
  • (PR#​1160) Add commit hash into the generated package (see fc.__commitHash)
  • (PR#​1149) Bias towards extreme values for integer and bigint ⚠️

Fixes


v2.6.1

Compare Source

Wrongly typed fc.record
[Code][Diff]

Fixes

v2.6.0

Compare Source

Towards a uniform way to constrain arbitraries - step 3: number arbitraries
[Code][Diff]

Features


v2.5.1

Compare Source

Wrongly typed fc.record
[Code][Diff]

Fixes

v2.5.0

Compare Source

Towards a uniform way to constrain arbitraries - step 2: remaining arbitraries except number related ones
[Code][Diff]

Features

  • (PR#​1023) Unify signatures on arbitraries: fc.*[jJ]son* (see #​992)
  • (PR#​1026) Unify signatures on arbitraries: fc.lorem (see #​992)
  • (PR#​1063) Rename fc.dedup into fc.clone (older name has been deprecated for the moment)
  • (PR#​1065) Add withDate option on fc.object

Fixes


v2.4.1

Compare Source

Wrongly typed fc.record
[Code][Diff]

Fixes

v2.4.0

Compare Source

Towards a uniform way to constrain arbitraries - step 1: array-like arbitraries
[Code][Diff]

Features

Fixes

  • (PR#​975) Doc: Add runkit code example
  • (PR#​992) Doc: Add automatic simplification of min and max in codemod for #​992
  • (PR#​993) Fix: Do not depreciate overloads for array-like (yet)
  • (PR#​1012) Fix: Adopt a safer signature recognition on array and set
  • (PR#​1014) Test: Ensure old non-unified syntaxes still work
  • (PR#​991) Tool: Fix .prettierignore
  • (PR#​976) Typo: Use WebUrlConstraints instead of an inlined typing for webUrl

v2.3.1

Compare Source

Wrongly typed fc.record
[Code][Diff]

Fixes

v2.3.0

Compare Source

Add global beforeEach and afterEach hooks
[Code][Diff]

Features

  • (PR#​900) Add global beforeEach/afterEach hooks

Fixes

  • (PR#​970) Doc: Rewrite the documentation to better target JavaScript users

v2.2.2

Compare Source

Wrongly typed fc.record
[Code][Diff]

Fixes

v2.2.1

Compare Source

Fix infinite loop in fc.date when passing a NaN date
[Code][Diff]

Fixes

  • (PR#​938) Bug: Fix NaN passed to max in fc.date()
  • (PR#​936) Doc: Switch to typedoc for the API Reference
  • (PR#​939) Doc: Rename 'Documentation' badge into 'API Reference'
  • (PR#​948) Doc: Mark TypeScript as an optional requirement in the README
  • (PR#​919) Test: Reduce coverage flakiness on HostArbitrary.ts

v2.2.0

Compare Source

Export missing typings and various cleaning around the tsdoc
[Code][Diff]

Features

  • (PR#​880) Publish missing constraints types (option, scheduler)
  • (PR#​881) Add an interface to better type (Async)Property
  • (PR#​902) Standardize exported typings and add missing ones ⚠️
  • (PR#​906) Prefer interfaces and functions for exported entities

Fixes

  • (PR#​904) Bug: Asynchrorous properties should be able to use asyncReporter
  • (PR#​850) CI: Ignore fast-check bumps for some directories
  • (PR#​872) CI: Slow down dependabot frequency
  • (PR#​879) CI: Remove unneeded before_install step on .travis.yml
  • (PR#​882) CI: Apply post-build script before generating the doc
  • (PR#​903) CI: Break CI whenever documentation compiles with warnings
  • (PR#​905) CI: Enable protobot-stale
  • (PR#​873) Doc: Remove snyk badge
  • (PR#​878) Doc: Fix some of the warnings raised by API Extractor
  • (PR#​883) Doc: Update the template for new Pull Requests
  • (PR#​894) Doc: Fix warnings related to invalid references raised by api-extractor
  • (PR#​907) Doc: Fix examples leaking in to functions table
  • (PR#​908) Doc: Document non-documented sections
  • (PR#​911) Doc: Remove useless "fast-check#" prefix in @​link
  • (PR#​848) Test: Do not use @testing-library/dom directly in examples/
  • (PR#​851) Test: Reduce coverage flakiness on ReplayPath.ts
  • (PR#​874) Test: Reduce coverage flakiness on hash.ts
  • (PR#​893) Tool: Add script to serve the generated documentation locally

v2.1.0

Compare Source

Better reported errors for func, compareFunc and compareBooleanFunc
[Code][Diff]

Features

  • (PR#​843) Report a valid function on func and compareFunc
  • (PR#​844) Export internal hash function
  • (PR#​845) Rewrite hash without using node specific APIs

Fixes

  • (PR#​833) CI: Enable CodeQL Analysis
  • (PR#​837) Clean: Remove usages of ! operator in ObjectArbitrary
  • (PR#​838) Clean: Remove custom implementation of Array.prototype.find
  • (PR#​816) Doc: Fix typos in migration guide
  • (PR#​846) Doc: Update links for pika.dev to skypack.dev
  • (PR#​819) Test: Better test coverage for fc.option
  • (PR#​818) Test: Reduce flakiness of coverage

v2.0.0

Compare Source

Hybrid and full support for both ES Modules and CommonJS
[Code][Diff]

This new major of fast-check is:

  • lighter: 906kB with 385 files to 505kB with 287 files
  • faster: takes between -15% (sync) to -40% (async) less time to run properties (more)
  • es-module compatible: can be executed with type:module

Breaking changes

  • (PR#​748) Drop support for old runtimes of JavaScript, requirements: node>=8 and ES2017+
  • (PR#​747) Better typings of fc.constantFrom
  • (PR#​749) Remove depreciated with_deleted_keys on fc.record
  • (PR#​750) Drop support for TypeScript <3.2
  • (PR#​751) Strip internal code at build time
  • (PR#​753) Bump pure-rand package to use its hybrid build
  • (PR#​755) Replace namespace ObjectConstraints by an type
  • (PR#​752) Support ES Modules and CommonJS
  • (PR#​756) Drop browser build

You may refer to our migration guide in case of issue: https://github.com/dubzzz/fast-check/blob/master/MIGRATION_1.X_TO_2.X.md

Fixes

  • (PR#​752) Doc: Update compatibility table
  • (PR#​730) Test: Reproducible tests by adding missing lockfiles

v1.26.0

Compare Source

New arbitrary to generate falsy values
[Code][Diff]

Features

  • (PR#​627) New arbitrary to generate falsy values
  • (PR#​719) Add withBigInt flag for fc.falsy
  • (PR#​718) Add withBigInt flag for fc.anything

Fixes

  • (PR#​632) Doc: Script generating the documentation compatible with Windows
  • (PR#​652) Doc: Add note on chain shrink issues
  • (PR#​658) Doc: Document how fast-check works under-the-hood
  • (PR#​664) Doc: Add a compatibility section into the README
  • (PR#​665) Doc: Fix some typos
  • (PR#​700) Doc: Remove warnings related to badly set @param for ts-docs
  • (PR#​729) Doc: Add links to commit diff into the CHANGELOG
  • (PR#​630) Test: Enhance stability of e2e test for AsyncScheduler
  • (PR#​636) Test: Ensure we can generate the documentation for each PR
  • (PR#​637) Test: Add missing parameters in QualifiedParameters tests
  • (PR#​661) Test: Compilation against old releases of TypeScript
  • (PR#​720) Test: Remove useless CI stage (HEAD)

v1.25.1

Compare Source

Scheduler was not putting the metadata into the generated report
[Code][Diff]

Fixes

  • (PR#​625) Bug: Scheduler forgets to pass the metadata when calling report

v1.25.0

Compare Source

Add ability to customize reported errors
[Code][Diff]

Features

  • (PR#​622) Add the ability to provide a custom reporter
  • (PR#​623) Report the configuration, that has been used, in RunDetails
  • (PR#​621) Expose fc.defaultReportMessage
  • (PR#​607) Better typings for fc.object and fc.dictionnary ⚠️
  • (PR#​600) Better typings for RunDetails ⚠️
  • (PR#​604) Introduce a report method on the scheduler
  • (PR#​588) Easier replay of failing scheduler

Fixes

  • (PR#​609) Clean: Generated typings where causing the doc generation to crash
  • (PR#​608) Doc: Fix markdown section
  • (PR#​602) Test: Check compatibility with node 12.x and >= 12.18
  • (PR#​599) Doc: Document how to use fast-check in web using pika
  • (PR#​596) Clean: Clean examples based on getByRole
  • (PR#​585) Doc: Update README with Credits section
  • (PR#​594) Clean: Add missing "private": true on package.json used for tests
  • (PR#​592) Clean: Update travis configuration to use Node 14
  • (PR#​587) Test: Check package can be properly imported
  • (PR#​586) Clean: Rename build scripts to cjs

v1.24.2

Compare Source

Fix constantFrom not compatible with older versions of node
[Code][Diff]

Fixes

  • (PR#​583) Bug: constantFrom not compatible with old browsers
  • (PR#​569) Clean: Prebuild to cjs extension
  • (PR#​568) Doc: Broken links
  • (PR#​575) Doc: Invalid code in example of the README
  • (PR#​578) Doc: Schedule native timers
  • (PR#​576) Example: Fibonacci example
  • (PR#​577) Example: Fix decompPrime example for CodeSandbox
  • (PR#​581) Example: Fix wrong usages of userEvent.type
  • (PR#​579) Example: Race conditions with timers

v1.24.1

Compare Source

Fixes a code issue detected in fc.object() when using withNullPrototype
[Code][Diff]

Fixes

  • (PR#​567) Bug: Error in the code of fc.object() when using withNullPrototype

v1.24.0

Compare Source

Model based testing and race condition detection
[Code][Diff]

Features

  • (PR#​491) Add ability to run commands in a scheduled context

Fixes

  • (PR#​565) Doc: Broken documentation build
  • (PR#​566) Doc: Document how race conditions can be detected

v1.23.0

Compare Source

Better typings for filter and oneof plus support for null prototypes
[Code][Diff]

Features

  • (PR#​548) Stringify should distinguish {} from Object.create(null)
  • (PR#​552) Add ability to generate objects without prototype
  • (PR#​555) Support type guards while filtering ⚠️
  • (PR#​556) Better typings for oneof and frequency ⚠️

Fixes

  • (PR#​554) Doc: Add an example on atomic Counter for race conditions feature
  • (PR#​557) Doc: Add example based on decomposition in prime numbers

v1.22.2

Compare Source

Remove unused files from the final bundle
[Code][Diff]

Fixes

  • (PR#​550) Clean: Switch from npmignore to files to whitelist bundled files instead of blacklisting them
  • (PR#​549) Clean: Various typos in letrec unit-test
  • (PR#​551) Clean: CI was not considered as failed when examples failed

v1.22.1

Compare Source

Fix broken bundle
[Code][Diff]

v1.22.0

Compare Source

Better random values and ability to shrink very large data-structures
[Code][Diff]

Features

  • (PR#​534) Better independance between generated values during a test suite ⚠️
  • (PR#​536) Exclude internationalized-like domains ⚠️ - (PR#​538)
  • (PR#​537) Add xoroshiro128plsu in the list of random generators
  • (PR#​539) Add js extension onto esm files
  • (PR#​540) Add metadata on the generated sources (see fc.__version)

Fixes

  • (PR#​505) Bug: Fix stack overflow when shrinking large arrays
  • (PR#​541) Bug: Fix stack overflow when shrinking large arrays of commands
  • (PR#​511) Doc: Add Jest example in the README
  • (PR#​542) Doc: Example with function arbitrary
  • (PR#​518) Doc: Fix typos in Arbitraries.md
  • (PR#​523) Doc: Fix typos in Arbitraries.md
  • (PR#​533) Doc: Fix typos in Arbitraries.md
  • (PR#​529) Doc: Tip explaining how to avoid timeouts
  • (PR#​519) Clean: Add missing files in *ignore
  • (PR#​535) Clean: Better logs for GenericArbitraryHelper


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/fast-check-2.x branch from c7b9f38 to 1c5427c Compare October 26, 2020 21:01
@renovate renovate bot force-pushed the renovate/fast-check-2.x branch from 1c5427c to 0752fa6 Compare November 27, 2020 05:57
@renovate renovate bot force-pushed the renovate/fast-check-2.x branch from 0752fa6 to 14a0a87 Compare December 9, 2020 02:57
@renovate renovate bot force-pushed the renovate/fast-check-2.x branch from 14a0a87 to 93cbc4b Compare January 6, 2021 16:02
@renovate renovate bot force-pushed the renovate/fast-check-2.x branch from 93cbc4b to ea05955 Compare January 10, 2021 18:57
@lastmjs lastmjs merged commit 2ebc346 into master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants