fast-check
Advanced tools
Comparing version 3.20.0 to 3.21.0
@@ -0,1 +1,23 @@ | ||
# 3.21.0 | ||
_Support customisable versions on `uuid`_ | ||
[[Code](https://github.com/dubzzz/fast-check/tree/v3.21.0)][[Diff](https://github.com/dubzzz/fast-check/compare/v3.20.0...v3.21.0)] | ||
## Features | ||
- ([PR#5172](https://github.com/dubzzz/fast-check/pull/5172)) Support UUID versions [1-15] on `uuidV` | ||
- ([PR#5189](https://github.com/dubzzz/fast-check/pull/5189)) Deprecate `uuidV` in favor of `uuid` | ||
- ([PR#5188](https://github.com/dubzzz/fast-check/pull/5188)) Customize versions directly from `uuid` | ||
## Fixes | ||
- ([PR#5190](https://github.com/dubzzz/fast-check/pull/5190)) CI: Support npm publish on other tags | ||
- ([PR#5124](https://github.com/dubzzz/fast-check/pull/5124)) Doc: Publish release note for 3.20.0 | ||
- ([PR#5137](https://github.com/dubzzz/fast-check/pull/5137)) Doc: Add missing options in the documentation for `float` and `double` | ||
- ([PR#5142](https://github.com/dubzzz/fast-check/pull/5142)) Doc: Better width for stargazer badge in the documentation | ||
- ([PR#5143](https://github.com/dubzzz/fast-check/pull/5143)) Doc: Document Faker integration | ||
- ([PR#5144](https://github.com/dubzzz/fast-check/pull/5144)) Doc: Add support us page in our documentation | ||
--- | ||
# 3.20.0 | ||
@@ -2,0 +24,0 @@ |
@@ -7,7 +7,34 @@ "use strict"; | ||
const PaddedEightsToUuid_1 = require("./_internals/mappers/PaddedEightsToUuid"); | ||
function uuid() { | ||
const globals_1 = require("../utils/globals"); | ||
const VersionsApplierForUuid_1 = require("./_internals/mappers/VersionsApplierForUuid"); | ||
function assertValidVersions(versions) { | ||
const found = {}; | ||
for (const version of versions) { | ||
if (found[version]) { | ||
throw new globals_1.Error(`Version ${version} has been requested at least twice for uuid`); | ||
} | ||
found[version] = true; | ||
if (version < 1 || version > 15) { | ||
throw new globals_1.Error(`Version must be a value in [1-15] for uuid, but received ${version}`); | ||
} | ||
if (~~version !== version) { | ||
throw new globals_1.Error(`Version must be an integer value for uuid, but received ${version}`); | ||
} | ||
} | ||
if (versions.length === 0) { | ||
throw new globals_1.Error(`Must provide at least one version for uuid`); | ||
} | ||
} | ||
function uuid(constraints = {}) { | ||
const padded = (0, PaddedNumberArbitraryBuilder_1.buildPaddedNumberArbitrary)(0, 0xffffffff); | ||
const secondPadded = (0, PaddedNumberArbitraryBuilder_1.buildPaddedNumberArbitrary)(0x10000000, 0x5fffffff); | ||
const version = constraints.version !== undefined | ||
? typeof constraints.version === 'number' | ||
? [constraints.version] | ||
: constraints.version | ||
: [1, 2, 3, 4, 5]; | ||
assertValidVersions(version); | ||
const { versionsApplierMapper, versionsApplierUnmapper } = (0, VersionsApplierForUuid_1.buildVersionsAppliersForUuid)(version); | ||
const secondPadded = (0, PaddedNumberArbitraryBuilder_1.buildPaddedNumberArbitrary)(0, 0x10000000 * version.length - 1).map(versionsApplierMapper, versionsApplierUnmapper); | ||
const thirdPadded = (0, PaddedNumberArbitraryBuilder_1.buildPaddedNumberArbitrary)(0x80000000, 0xbfffffff); | ||
return (0, tuple_1.tuple)(padded, secondPadded, thirdPadded, padded).map(PaddedEightsToUuid_1.paddedEightsToUuidMapper, PaddedEightsToUuid_1.paddedEightsToUuidUnmapper); | ||
} |
import { tuple } from './tuple.js'; | ||
import { buildPaddedNumberArbitrary } from './_internals/builders/PaddedNumberArbitraryBuilder.js'; | ||
import { paddedEightsToUuidMapper, paddedEightsToUuidUnmapper } from './_internals/mappers/PaddedEightsToUuid.js'; | ||
export function uuid() { | ||
import { Error } from '../utils/globals.js'; | ||
import { buildVersionsAppliersForUuid } from './_internals/mappers/VersionsApplierForUuid.js'; | ||
function assertValidVersions(versions) { | ||
const found = {}; | ||
for (const version of versions) { | ||
if (found[version]) { | ||
throw new Error(`Version ${version} has been requested at least twice for uuid`); | ||
} | ||
found[version] = true; | ||
if (version < 1 || version > 15) { | ||
throw new Error(`Version must be a value in [1-15] for uuid, but received ${version}`); | ||
} | ||
if (~~version !== version) { | ||
throw new Error(`Version must be an integer value for uuid, but received ${version}`); | ||
} | ||
} | ||
if (versions.length === 0) { | ||
throw new Error(`Must provide at least one version for uuid`); | ||
} | ||
} | ||
export function uuid(constraints = {}) { | ||
const padded = buildPaddedNumberArbitrary(0, 0xffffffff); | ||
const secondPadded = buildPaddedNumberArbitrary(0x10000000, 0x5fffffff); | ||
const version = constraints.version !== undefined | ||
? typeof constraints.version === 'number' | ||
? [constraints.version] | ||
: constraints.version | ||
: [1, 2, 3, 4, 5]; | ||
assertValidVersions(version); | ||
const { versionsApplierMapper, versionsApplierUnmapper } = buildVersionsAppliersForUuid(version); | ||
const secondPadded = buildPaddedNumberArbitrary(0, 0x10000000 * version.length - 1).map(versionsApplierMapper, versionsApplierUnmapper); | ||
const thirdPadded = buildPaddedNumberArbitrary(0x80000000, 0xbfffffff); | ||
return tuple(padded, secondPadded, thirdPadded, padded).map(paddedEightsToUuidMapper, paddedEightsToUuidUnmapper); | ||
} |
@@ -110,4 +110,4 @@ import { pre } from './check/precondition/Pre.js'; | ||
const __type = 'module'; | ||
const __version = '3.20.0'; | ||
const __commitHash = '6a2ca8b33028c8d3ef13380c79516f6aa071acf2'; | ||
const __version = '3.21.0'; | ||
const __commitHash = 'bec5d59a5c912e290ca78d8c59ed5eff44355405'; | ||
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, limitShrink, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, noBias, noShrink, 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, }; |
import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js'; | ||
/** | ||
* Constraints to be applied on {@link uuid} | ||
* @remarks Since 3.21.0 | ||
* @public | ||
*/ | ||
export interface UuidConstraints { | ||
/** | ||
* Define accepted versions in the [1-15] according to {@link https://datatracker.ietf.org/doc/html/rfc9562#name-version-field | RFC 9562} | ||
* @defaultValue [1,2,3,4,5] | ||
* @remarks Since 3.21.0 | ||
*/ | ||
version?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) | (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15)[]; | ||
} | ||
/** | ||
* For UUID from v1 to v5 | ||
@@ -12,2 +25,2 @@ * | ||
*/ | ||
export declare function uuid(): Arbitrary<string>; | ||
export declare function uuid(constraints?: UuidConstraints): Arbitrary<string>; |
import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js'; | ||
/** | ||
* For UUID of a given version (in v1 to v5) | ||
* For UUID of a given version (in v1 to v15) | ||
* | ||
* According to {@link https://tools.ietf.org/html/rfc4122 | RFC 4122} | ||
* According to {@link https://tools.ietf.org/html/rfc4122 | RFC 4122} and {@link https://datatracker.ietf.org/doc/html/rfc9562#name-version-field | RFC 9562} any version between 1 and 15 is valid even if only the ones from 1 to 8 have really been leveraged for now. | ||
* | ||
* No mixed case, only lower case digits (0-9a-f) | ||
* | ||
* @deprecated Prefer using {@link uuid} | ||
* @remarks Since 1.17.0 | ||
* @public | ||
*/ | ||
export declare function uuidV(versionNumber: 1 | 2 | 3 | 4 | 5): Arbitrary<string>; | ||
export declare function uuidV(versionNumber: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15): Arbitrary<string>; |
@@ -105,2 +105,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
import { uuid } from './arbitrary/uuid.js'; | ||
import type { UuidConstraints } from './arbitrary/uuid.js'; | ||
import { uuidV } from './arbitrary/uuidV.js'; | ||
@@ -178,3 +179,3 @@ import type { WebAuthorityConstraints } from './arbitrary/webAuthority.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 3.20.0) | ||
* Version of fast-check used by your project (eg.: 3.21.0) | ||
* @remarks Since 1.22.0 | ||
@@ -185,3 +186,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 6a2ca8b33028c8d3ef13380c79516f6aa071acf2) | ||
* Commit hash of the current code (eg.: bec5d59a5c912e290ca78d8c59ed5eff44355405) | ||
* @remarks Since 2.7.0 | ||
@@ -191,3 +192,3 @@ * @public | ||
declare const __commitHash: string; | ||
export type { IRawProperty, IProperty, IPropertyWithHooks, IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction, PropertyHookFunction, PropertyFailure, AsyncCommand, Command, ICommand, ModelRunSetup, ModelRunAsyncSetup, Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerAct, WithCloneMethod, WithToStringMethod, WithAsyncToStringMethod, DepthContext, ArrayConstraints, BigIntConstraints, BigIntArrayConstraints, BigUintConstraints, CommandsContraints, DateConstraints, DictionaryConstraints, DomainConstraints, DoubleConstraints, EmailAddressConstraints, FalsyContraints, Float32ArrayConstraints, Float64ArrayConstraints, FloatConstraints, IntArrayConstraints, IntegerConstraints, JsonSharedConstraints, UnicodeJsonSharedConstraints, LoremConstraints, MixedCaseConstraints, NatConstraints, ObjectConstraints, OneOfConstraints, OptionConstraints, RecordConstraints, SchedulerConstraints, UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect, SparseArrayConstraints, StringMatchingConstraints, StringSharedConstraints, SubarrayConstraints, ShuffledSubarrayConstraints, WebAuthorityConstraints, WebFragmentsConstraints, WebPathConstraints, WebQueryParametersConstraints, WebSegmentConstraints, WebUrlConstraints, MaybeWeightedArbitrary, WeightedArbitrary, LetrecTypedTie, LetrecTypedBuilder, LetrecLooselyTypedTie, LetrecLooselyTypedBuilder, CloneValue, ContextValue, FalsyValue, GeneratorValue, JsonValue, LetrecValue, OneOfValue, RecordValue, Memo, Size, SizeForArbitrary, DepthSize, GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction, Parameters, RandomType, ExecutionTree, RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon, DepthIdentifier, }; | ||
export type { IRawProperty, IProperty, IPropertyWithHooks, IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction, PropertyHookFunction, PropertyFailure, AsyncCommand, Command, ICommand, ModelRunSetup, ModelRunAsyncSetup, Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerAct, WithCloneMethod, WithToStringMethod, WithAsyncToStringMethod, DepthContext, ArrayConstraints, BigIntConstraints, BigIntArrayConstraints, BigUintConstraints, CommandsContraints, DateConstraints, DictionaryConstraints, DomainConstraints, DoubleConstraints, EmailAddressConstraints, FalsyContraints, Float32ArrayConstraints, Float64ArrayConstraints, FloatConstraints, IntArrayConstraints, IntegerConstraints, JsonSharedConstraints, UnicodeJsonSharedConstraints, LoremConstraints, MixedCaseConstraints, NatConstraints, ObjectConstraints, OneOfConstraints, OptionConstraints, RecordConstraints, SchedulerConstraints, UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect, UuidConstraints, SparseArrayConstraints, StringMatchingConstraints, StringSharedConstraints, SubarrayConstraints, ShuffledSubarrayConstraints, WebAuthorityConstraints, WebFragmentsConstraints, WebPathConstraints, WebQueryParametersConstraints, WebSegmentConstraints, WebUrlConstraints, MaybeWeightedArbitrary, WeightedArbitrary, LetrecTypedTie, LetrecTypedBuilder, LetrecLooselyTypedTie, LetrecLooselyTypedBuilder, CloneValue, ContextValue, FalsyValue, GeneratorValue, JsonValue, LetrecValue, OneOfValue, RecordValue, Memo, Size, SizeForArbitrary, DepthSize, GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction, Parameters, RandomType, ExecutionTree, RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon, DepthIdentifier, }; | ||
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, limitShrink, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, noBias, noShrink, 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, }; |
@@ -241,5 +241,5 @@ "use strict"; | ||
exports.__type = __type; | ||
const __version = '3.20.0'; | ||
const __version = '3.21.0'; | ||
exports.__version = __version; | ||
const __commitHash = '6a2ca8b33028c8d3ef13380c79516f6aa071acf2'; | ||
const __commitHash = 'bec5d59a5c912e290ca78d8c59ed5eff44355405'; | ||
exports.__commitHash = __commitHash; |
import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js'; | ||
/** | ||
* Constraints to be applied on {@link uuid} | ||
* @remarks Since 3.21.0 | ||
* @public | ||
*/ | ||
export interface UuidConstraints { | ||
/** | ||
* Define accepted versions in the [1-15] according to {@link https://datatracker.ietf.org/doc/html/rfc9562#name-version-field | RFC 9562} | ||
* @defaultValue [1,2,3,4,5] | ||
* @remarks Since 3.21.0 | ||
*/ | ||
version?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) | (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15)[]; | ||
} | ||
/** | ||
* For UUID from v1 to v5 | ||
@@ -12,2 +25,2 @@ * | ||
*/ | ||
export declare function uuid(): Arbitrary<string>; | ||
export declare function uuid(constraints?: UuidConstraints): Arbitrary<string>; |
import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js'; | ||
/** | ||
* For UUID of a given version (in v1 to v5) | ||
* For UUID of a given version (in v1 to v15) | ||
* | ||
* According to {@link https://tools.ietf.org/html/rfc4122 | RFC 4122} | ||
* According to {@link https://tools.ietf.org/html/rfc4122 | RFC 4122} and {@link https://datatracker.ietf.org/doc/html/rfc9562#name-version-field | RFC 9562} any version between 1 and 15 is valid even if only the ones from 1 to 8 have really been leveraged for now. | ||
* | ||
* No mixed case, only lower case digits (0-9a-f) | ||
* | ||
* @deprecated Prefer using {@link uuid} | ||
* @remarks Since 1.17.0 | ||
* @public | ||
*/ | ||
export declare function uuidV(versionNumber: 1 | 2 | 3 | 4 | 5): Arbitrary<string>; | ||
export declare function uuidV(versionNumber: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15): Arbitrary<string>; |
@@ -105,2 +105,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
import { uuid } from './arbitrary/uuid.js'; | ||
import type { UuidConstraints } from './arbitrary/uuid.js'; | ||
import { uuidV } from './arbitrary/uuidV.js'; | ||
@@ -178,3 +179,3 @@ import type { WebAuthorityConstraints } from './arbitrary/webAuthority.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 3.20.0) | ||
* Version of fast-check used by your project (eg.: 3.21.0) | ||
* @remarks Since 1.22.0 | ||
@@ -185,3 +186,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 6a2ca8b33028c8d3ef13380c79516f6aa071acf2) | ||
* Commit hash of the current code (eg.: bec5d59a5c912e290ca78d8c59ed5eff44355405) | ||
* @remarks Since 2.7.0 | ||
@@ -191,3 +192,3 @@ * @public | ||
declare const __commitHash: string; | ||
export type { IRawProperty, IProperty, IPropertyWithHooks, IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction, PropertyHookFunction, PropertyFailure, AsyncCommand, Command, ICommand, ModelRunSetup, ModelRunAsyncSetup, Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerAct, WithCloneMethod, WithToStringMethod, WithAsyncToStringMethod, DepthContext, ArrayConstraints, BigIntConstraints, BigIntArrayConstraints, BigUintConstraints, CommandsContraints, DateConstraints, DictionaryConstraints, DomainConstraints, DoubleConstraints, EmailAddressConstraints, FalsyContraints, Float32ArrayConstraints, Float64ArrayConstraints, FloatConstraints, IntArrayConstraints, IntegerConstraints, JsonSharedConstraints, UnicodeJsonSharedConstraints, LoremConstraints, MixedCaseConstraints, NatConstraints, ObjectConstraints, OneOfConstraints, OptionConstraints, RecordConstraints, SchedulerConstraints, UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect, SparseArrayConstraints, StringMatchingConstraints, StringSharedConstraints, SubarrayConstraints, ShuffledSubarrayConstraints, WebAuthorityConstraints, WebFragmentsConstraints, WebPathConstraints, WebQueryParametersConstraints, WebSegmentConstraints, WebUrlConstraints, MaybeWeightedArbitrary, WeightedArbitrary, LetrecTypedTie, LetrecTypedBuilder, LetrecLooselyTypedTie, LetrecLooselyTypedBuilder, CloneValue, ContextValue, FalsyValue, GeneratorValue, JsonValue, LetrecValue, OneOfValue, RecordValue, Memo, Size, SizeForArbitrary, DepthSize, GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction, Parameters, RandomType, ExecutionTree, RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon, DepthIdentifier, }; | ||
export type { IRawProperty, IProperty, IPropertyWithHooks, IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction, PropertyHookFunction, PropertyFailure, AsyncCommand, Command, ICommand, ModelRunSetup, ModelRunAsyncSetup, Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerAct, WithCloneMethod, WithToStringMethod, WithAsyncToStringMethod, DepthContext, ArrayConstraints, BigIntConstraints, BigIntArrayConstraints, BigUintConstraints, CommandsContraints, DateConstraints, DictionaryConstraints, DomainConstraints, DoubleConstraints, EmailAddressConstraints, FalsyContraints, Float32ArrayConstraints, Float64ArrayConstraints, FloatConstraints, IntArrayConstraints, IntegerConstraints, JsonSharedConstraints, UnicodeJsonSharedConstraints, LoremConstraints, MixedCaseConstraints, NatConstraints, ObjectConstraints, OneOfConstraints, OptionConstraints, RecordConstraints, SchedulerConstraints, UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect, UuidConstraints, SparseArrayConstraints, StringMatchingConstraints, StringSharedConstraints, SubarrayConstraints, ShuffledSubarrayConstraints, WebAuthorityConstraints, WebFragmentsConstraints, WebPathConstraints, WebQueryParametersConstraints, WebSegmentConstraints, WebUrlConstraints, MaybeWeightedArbitrary, WeightedArbitrary, LetrecTypedTie, LetrecTypedBuilder, LetrecLooselyTypedTie, LetrecLooselyTypedBuilder, CloneValue, ContextValue, FalsyValue, GeneratorValue, JsonValue, LetrecValue, OneOfValue, RecordValue, Memo, Size, SizeForArbitrary, DepthSize, GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction, Parameters, RandomType, ExecutionTree, RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon, DepthIdentifier, }; | ||
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, limitShrink, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, noBias, noShrink, 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, }; |
{ | ||
"name": "fast-check", | ||
"version": "3.20.0", | ||
"version": "3.21.0", | ||
"description": "Property based testing framework for JavaScript (like QuickCheck)", | ||
@@ -64,5 +64,5 @@ "type": "commonjs", | ||
"@fast-check/poisoning": "0.2.0", | ||
"@microsoft/api-extractor": "^7.47.0", | ||
"@types/node": "^20.14.10", | ||
"@vitest/coverage-v8": "^2.0.2", | ||
"@microsoft/api-extractor": "^7.47.5", | ||
"@types/node": "^20.14.14", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"cross-env": "^7.0.3", | ||
@@ -73,5 +73,5 @@ "glob": "^11.0.0", | ||
"replace-in-file": "^8.1.0", | ||
"typedoc": "^0.26.4", | ||
"typescript": "~5.5.3", | ||
"vitest": "^2.0.2" | ||
"typedoc": "^0.26.5", | ||
"typescript": "~5.5.4", | ||
"vitest": "^2.0.5" | ||
}, | ||
@@ -78,0 +78,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1240025
930
28221