Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-check

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-check - npm Package Compare versions

Comparing version 3.6.2 to 3.6.3

21

CHANGELOG.md

@@ -0,1 +1,12 @@

# 3.6.3
_Fix broken replay based on path_
[[Code](https://github.com/dubzzz/fast-check/tree/v3.6.3)][[Diff](https://github.com/dubzzz/fast-check/compare/v3.6.2...v3.6.3)]
## Fixes
- ([PR#3617](https://github.com/dubzzz/fast-check/pull/3617)) Bug: Fix broken replay based on path
- ([PR#3583](https://github.com/dubzzz/fast-check/pull/3583)) CI: Do not run publish workflow of fast-check for vitest
- ([PR#3616](https://github.com/dubzzz/fast-check/pull/3616)) CI: Always build against latest node
# 3.6.2

@@ -43,2 +54,12 @@

# 3.5.1
_Still work in fake timer contexts_
[[Code](https://github.com/dubzzz/fast-check/tree/v3.5.1)][[Diff](https://github.com/dubzzz/fast-check/compare/v3.5.0...v3.5.1)]
## Fixes
- ([PR#3571](https://github.com/dubzzz/fast-check/pull/3571)) Bug: Resist to fake timers in interruptAfterTimeLimit
- ([PR#3572](https://github.com/dubzzz/fast-check/pull/3572)) Bug: Resist to fake timers in timeout
# 3.5.0

@@ -45,0 +66,0 @@

5

lib/check/runner/Tosser.js

@@ -21,2 +21,5 @@ "use strict";

exports.toss = toss;
function lazyGenerate(generator, rng, idx) {
return () => generator.generate(new Random_1.Random(rng), idx);
}
function* lazyToss(generator, seed, random, examples) {

@@ -28,5 +31,5 @@ yield* (0, globals_1.safeMap)(examples, (e) => () => new Value_1.Value(e, undefined));

rng = rng.jump ? rng.jump() : (0, pure_rand_1.skipN)(rng, 42);
yield () => generator.generate(new Random_1.Random(rng), idx++);
yield lazyGenerate(generator, rng, idx++);
}
}
exports.lazyToss = lazyToss;

@@ -17,2 +17,5 @@ import { skipN } from 'pure-rand';

}
function lazyGenerate(generator, rng, idx) {
return () => generator.generate(new Random(rng), idx);
}
export function* lazyToss(generator, seed, random, examples) {

@@ -24,4 +27,4 @@ yield* safeMap(examples, (e) => () => new Value(e, undefined));

rng = rng.jump ? rng.jump() : skipN(rng, 42);
yield () => generator.generate(new Random(rng), idx++);
yield lazyGenerate(generator, rng, idx++);
}
}

4

lib/esm/fast-check-default.js

@@ -104,4 +104,4 @@ import { pre } from './check/precondition/Pre.js';

const __type = 'module';
const __version = '3.6.2';
const __commitHash = '0d0a63c39c2e37243e673c722b02671ccaaa782e';
const __version = '3.6.3';
const __commitHash = '58b8809067d7aadebbecee5ba4823653667d5a87';
export { __type, __version, __commitHash, sample, statistics, check, assert, pre, PreconditionFailure, property, asyncProperty, boolean, falsy, float, double, integer, nat, maxSafeInteger, maxSafeNat, bigIntN, bigUintN, bigInt, bigUint, char, ascii, char16bits, unicode, fullUnicode, hexa, base64, mixedCase, string, asciiString, string16bits, stringOf, unicodeString, fullUnicodeString, hexaString, base64String, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, shuffledSubarray, subarray, array, sparseArray, infiniteStream, uniqueArray, tuple, record, dictionary, anything, object, json, jsonValue, unicodeJson, unicodeJsonValue, letrec, memo, compareBooleanFunc, compareFunc, func, context, date, ipV4, ipV4Extended, ipV6, domain, webAuthority, webSegment, webFragments, webPath, webQueryParameters, webUrl, emailAddress, uuid, uuidV, int8Array, uint8Array, uint8ClampedArray, int16Array, uint16Array, int32Array, uint32Array, float32Array, float64Array, bigInt64Array, bigUint64Array, asyncModelRun, modelRun, scheduledModelRun, commands, scheduler, schedulerFor, Arbitrary, Value, cloneMethod, cloneIfNeeded, hasCloneMethod, toStringMethod, hasToStringMethod, asyncToStringMethod, hasAsyncToStringMethod, getDepthContextFor, stringify, asyncStringify, defaultReportMessage, asyncDefaultReportMessage, hash, VerbosityLevel, configureGlobal, readConfigureGlobal, resetConfigureGlobal, ExecutionStatus, Random, Stream, stream, createDepthIdentifier, };

@@ -229,5 +229,5 @@ "use strict";

exports.__type = __type;
const __version = '3.6.2';
const __version = '3.6.3';
exports.__version = __version;
const __commitHash = '0d0a63c39c2e37243e673c722b02671ccaaa782e';
const __commitHash = '58b8809067d7aadebbecee5ba4823653667d5a87';
exports.__commitHash = __commitHash;

@@ -120,3 +120,3 @@ import { pre } from './check/precondition/Pre';

/**
* Version of fast-check used by your project (eg.: 3.6.2)
* Version of fast-check used by your project (eg.: 3.6.3)
* @remarks Since 1.22.0

@@ -127,3 +127,3 @@ * @public

/**
* Commit hash of the current code (eg.: 0d0a63c39c2e37243e673c722b02671ccaaa782e)
* Commit hash of the current code (eg.: 58b8809067d7aadebbecee5ba4823653667d5a87)
* @remarks Since 2.7.0

@@ -130,0 +130,0 @@ * @public

{
"name": "fast-check",
"version": "3.6.2",
"version": "3.6.3",
"description": "Property based testing framework for JavaScript (like QuickCheck)",

@@ -60,12 +60,12 @@ "type": "commonjs",

"@fast-check/poisoning": "0.0.5",
"@microsoft/api-extractor": "^7.33.8",
"@types/jest": "^29.2.6",
"@types/node": "^18.11.18",
"@microsoft/api-extractor": "^7.34.3",
"@types/jest": "^29.4.0",
"@types/node": "^18.13.0",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"jest": "^29.3.1",
"jest": "^29.4.2",
"replace-in-file": "^6.3.5",
"ts-jest": "^29.0.5",
"typedoc": "^0.23.24",
"typescript": "^4.9.4"
"typescript": "^4.9.5"
},

@@ -72,0 +72,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc