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.16.0 to 3.17.0

19

CHANGELOG.md

@@ -0,1 +1,18 @@

# 3.17.0
_Allow access to some internals details linked to the underlying random generator_
[[Code](https://github.com/dubzzz/fast-check/tree/v3.17.0)][[Diff](https://github.com/dubzzz/fast-check/compare/v3.16.0...v3.17.0)]
## Features
- ([PR#4817](https://github.com/dubzzz/fast-check/pull/4817)) Expose internal state of the PRNG from `Random`
## Fixes
- ([PR#4781](https://github.com/dubzzz/fast-check/pull/4781)) Doc: Official release note of 3.16.0
- ([PR#4799](https://github.com/dubzzz/fast-check/pull/4799)) Doc: Add more links in the footer
- ([PR#4800](https://github.com/dubzzz/fast-check/pull/4800)) Doc: Better colors for footer and dark mode
---
# 3.16.0

@@ -21,2 +38,3 @@

- ([PR#4713](https://github.com/dubzzz/fast-check/pull/4713)) Doc: Add extra spacing on top of CTA
- ([PR#4730](https://github.com/dubzzz/fast-check/pull/4730)) Doc: Optimize image assets on homepage
- ([PR#4732](https://github.com/dubzzz/fast-check/pull/4732)) Doc: Optimize SVG assets

@@ -28,3 +46,2 @@ - ([PR#4735](https://github.com/dubzzz/fast-check/pull/4735)) Doc: Less layout shift with proper sizes

- ([PR#4771](https://github.com/dubzzz/fast-check/pull/4771)) Doc: Blog post for 3.15.0
- ([PR#4730](https://github.com/dubzzz/fast-check/pull/4730)) Performance: Optimize image assets on homepage
- ([PR#4753](https://github.com/dubzzz/fast-check/pull/4753)) Security: Configure CSP for fast-check.dev

@@ -31,0 +48,0 @@ - ([PR#4761](https://github.com/dubzzz/fast-check/pull/4761)) Security: Enforce Content-Security-Policy on our website

4

lib/esm/fast-check-default.js

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

const __type = 'module';
const __version = '3.16.0';
const __commitHash = '5d6ac3432695e6dd6a963389fb020f616e0bf0ba';
const __version = '3.17.0';
const __commitHash = 'aa304648402f8549fddb3058a93f59e445acedd4';
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, stringMatching, 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, gen, date, ipV4, ipV4Extended, ipV6, domain, webAuthority, webSegment, webFragments, webPath, webQueryParameters, webUrl, emailAddress, ulid, 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, };

@@ -29,2 +29,8 @@ import { unsafeUniformArrayIntDistribution, unsafeUniformBigIntDistribution, unsafeUniformIntDistribution, } from 'pure-rand';

}
getState() {
if ('getState' in this.internalRng && typeof this.internalRng.getState === 'function') {
return this.internalRng.getState();
}
return undefined;
}
}

@@ -31,0 +37,0 @@ Random.MIN_INT = 0x80000000 | 0;

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

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

@@ -180,3 +180,3 @@ * @public

/**
* Commit hash of the current code (eg.: 5d6ac3432695e6dd6a963389fb020f616e0bf0ba)
* Commit hash of the current code (eg.: aa304648402f8549fddb3058a93f59e445acedd4)
* @remarks Since 2.7.0

@@ -183,0 +183,0 @@ * @public

@@ -67,2 +67,6 @@ import type { RandomGenerator } from 'pure-rand';

nextDouble(): number;
/**
* Extract the internal state of the internal RandomGenerator backing the current instance of Random
*/
getState(): readonly number[] | undefined;
}

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

exports.__type = __type;
const __version = '3.16.0';
const __version = '3.17.0';
exports.__version = __version;
const __commitHash = '5d6ac3432695e6dd6a963389fb020f616e0bf0ba';
const __commitHash = 'aa304648402f8549fddb3058a93f59e445acedd4';
exports.__commitHash = __commitHash;

@@ -32,2 +32,8 @@ "use strict";

}
getState() {
if ('getState' in this.internalRng && typeof this.internalRng.getState === 'function') {
return this.internalRng.getState();
}
return undefined;
}
}

@@ -34,0 +40,0 @@ exports.Random = Random;

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

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

@@ -180,3 +180,3 @@ * @public

/**
* Commit hash of the current code (eg.: 5d6ac3432695e6dd6a963389fb020f616e0bf0ba)
* Commit hash of the current code (eg.: aa304648402f8549fddb3058a93f59e445acedd4)
* @remarks Since 2.7.0

@@ -183,0 +183,0 @@ * @public

@@ -67,2 +67,6 @@ import type { RandomGenerator } from 'pure-rand';

nextDouble(): number;
/**
* Extract the internal state of the internal RandomGenerator backing the current instance of Random
*/
getState(): readonly number[] | undefined;
}
{
"name": "fast-check",
"version": "3.16.0",
"version": "3.17.0",
"description": "Property based testing framework for JavaScript (like QuickCheck)",

@@ -63,13 +63,13 @@ "type": "commonjs",

"dependencies": {
"pure-rand": "^6.0.0"
"pure-rand": "^6.1.0"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-typescript": "^7.23.3",
"@babel/core": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@fast-check/expect-type": "0.2.0",
"@fast-check/poisoning": "0.2.0",
"@microsoft/api-extractor": "^7.42.2",
"@microsoft/api-extractor": "^7.43.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
"@types/node": "^20.11.30",
"babel-jest": "^29.7.0",

@@ -82,4 +82,4 @@ "cross-env": "^7.0.3",

"replace-in-file": "^7.1.0",
"typedoc": "^0.25.9",
"typescript": "~5.3.3"
"typedoc": "^0.25.12",
"typescript": "~5.4.3"
},

@@ -86,0 +86,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