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.17.0 to 3.17.1

11

CHANGELOG.md

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

# 3.17.1
_Better interrupt CJS/MJS regarding types_
[[Code](https://github.com/dubzzz/fast-check/tree/v3.17.1)][[Diff](https://github.com/dubzzz/fast-check/compare/v3.17.0...v3.17.1)]
## Fixes
- ([PR#4842](https://github.com/dubzzz/fast-check/pull/4842)) Bug: Fix dual-packages hazard and types incompatibility
- ([PR#4836](https://github.com/dubzzz/fast-check/pull/4836)) Doc: Release note for 3.17.0
- ([PR#4844](https://github.com/dubzzz/fast-check/pull/4844)) Doc: Add new contributor patroza
# 3.17.0

@@ -2,0 +13,0 @@

4

lib/esm/fast-check-default.js

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

const __type = 'module';
const __version = '3.17.0';
const __commitHash = 'aa304648402f8549fddb3058a93f59e445acedd4';
const __version = '3.17.1';
const __commitHash = '980a94bb2f3102a0d8cabb9a087832a746e825f7';
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, };
/**
* Internal symbol used to declare an opaque type for DepthIdentifier
* @public
*/
declare const depthIdentifierSymbol: unique symbol;
/**
* Type used to strongly type instances of depth identifier while keeping internals

@@ -13,5 +8,3 @@ * what they contain internally

*/
export type DepthIdentifier = {
[depthIdentifierSymbol]: true;
};
export type DepthIdentifier = {} & DepthContext;
/**

@@ -48,2 +41,1 @@ * Instance of depth, can be used to alter the depth perceived by an arbitrary

export declare function createDepthIdentifier(): DepthIdentifier;
export {};

@@ -16,8 +16,2 @@ /**

/**
* Flag indicating whether or not the this.value has already been called once
* If so, the underlying will be cloned
* Only set when hasToBeCloned = true
*/
private readOnce;
/**
* Safe value of the shrinkable

@@ -24,0 +18,0 @@ * Depending on `hasToBeCloned` it will either be `value_` or a clone of it

@@ -8,6 +8,4 @@ /**

readonly interruptExecution: boolean;
private static readonly SharedFootPrint;
private readonly footprint;
constructor(interruptExecution?: boolean);
static isFailure(err: unknown): err is PreconditionFailure;
}

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

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

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

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

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

@@ -13,3 +13,2 @@ import type { RandomGenerator } from 'pure-rand';

private static DBL_DIVISOR;
private internalRng;
/**

@@ -16,0 +15,0 @@ * Create a mutable random number generator by cloning the passed one and mutate it

@@ -10,3 +10,2 @@ declare const safeSymbolIterator: typeof Symbol.iterator;

export declare class Stream<T> implements IterableIterator<T> {
private readonly g;
/**

@@ -28,3 +27,3 @@ * Create an empty stream of T

*/
constructor(g: IterableIterator<T>);
constructor(/** @internal */ g: IterableIterator<T>);
next(): IteratorResult<T>;

@@ -31,0 +30,0 @@ [safeSymbolIterator](): IterableIterator<T>;

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

exports.__type = __type;
const __version = '3.17.0';
const __version = '3.17.1';
exports.__version = __version;
const __commitHash = 'aa304648402f8549fddb3058a93f59e445acedd4';
const __commitHash = '980a94bb2f3102a0d8cabb9a087832a746e825f7';
exports.__commitHash = __commitHash;
/**
* Internal symbol used to declare an opaque type for DepthIdentifier
* @public
*/
declare const depthIdentifierSymbol: unique symbol;
/**
* Type used to strongly type instances of depth identifier while keeping internals

@@ -13,5 +8,3 @@ * what they contain internally

*/
export type DepthIdentifier = {
[depthIdentifierSymbol]: true;
};
export type DepthIdentifier = {} & DepthContext;
/**

@@ -48,2 +41,1 @@ * Instance of depth, can be used to alter the depth perceived by an arbitrary

export declare function createDepthIdentifier(): DepthIdentifier;
export {};

@@ -16,8 +16,2 @@ /**

/**
* Flag indicating whether or not the this.value has already been called once
* If so, the underlying will be cloned
* Only set when hasToBeCloned = true
*/
private readOnce;
/**
* Safe value of the shrinkable

@@ -24,0 +18,0 @@ * Depending on `hasToBeCloned` it will either be `value_` or a clone of it

@@ -8,6 +8,4 @@ /**

readonly interruptExecution: boolean;
private static readonly SharedFootPrint;
private readonly footprint;
constructor(interruptExecution?: boolean);
static isFailure(err: unknown): err is PreconditionFailure;
}

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

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

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

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

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

@@ -13,3 +13,2 @@ import type { RandomGenerator } from 'pure-rand';

private static DBL_DIVISOR;
private internalRng;
/**

@@ -16,0 +15,0 @@ * Create a mutable random number generator by cloning the passed one and mutate it

@@ -10,3 +10,2 @@ declare const safeSymbolIterator: typeof Symbol.iterator;

export declare class Stream<T> implements IterableIterator<T> {
private readonly g;
/**

@@ -28,3 +27,3 @@ * Create an empty stream of T

*/
constructor(g: IterableIterator<T>);
constructor(/** @internal */ g: IterableIterator<T>);
next(): IteratorResult<T>;

@@ -31,0 +30,0 @@ [safeSymbolIterator](): IterableIterator<T>;

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

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -227,2 +227,3 @@ <h1 align="center">

<td align="center" valign="top" width="14.28%"><a href="https://github.com/gruhn"><img src="https://avatars.githubusercontent.com/u/26570572?v=4?s=100" width="100px;" alt="Niklas Gruhn"/><br /><sub><b>Niklas Gruhn</b></sub></a><br /><a href="https://github.com/dubzzz/fast-check/commits?author=gruhn" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://patrickroza.com/"><img src="https://avatars.githubusercontent.com/u/42661?v=4?s=100" width="100px;" alt="Patrick Roza"/><br /><sub><b>Patrick Roza</b></sub></a><br /><a href="https://github.com/dubzzz/fast-check/commits?author=patroza" title="Code">💻</a></td>
</tr>

@@ -229,0 +230,0 @@ </tbody>

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