Releases: electrovir/augment-vir
Releases · electrovir/augment-vir
v30.5.0
[minor] add assertSnapshot and snapshotCases to @augment-vir/test
v30.4.0
[minor] add PromiseQueue to @augment-vir/common
v30.3.0
[patch] handle circular references in checkCustomDeepQuality
v30.2.0
[minor] add checkCustomDeepQuality
v30.1.0
[minor] add assert.tsType.slowEquals
v30.0.5
[patch] convince TypeScript to stop inlining the guard methods in @au…
v30.0.4
[patch] fix isArray checks for readonly arrays
v30.0.3
First stable v30 release, which is a complete rewrite.
Full docs released for the first time: https://electrovir.github.io/augment-vir
The change log, compared to v29, is below:
@augment-vir/common
flatten2dArray
: removed. Use[].flat()
.AtLeastOneEntryArray
: removed. UseAtLeastTuple
.typedArrayIncludes
: removed. Usecheck.isIn
orcheck.hasValue
from@augment-vir/assert
instead.arrayToObject
: the callback must now provide both key and value.getEnumTypedValues
: renamed togetEnumValues
.getEnumTypedKeys
: removed. UsegetEnumValues
instead.isEnumValue
: removed. Usecheck.isEnumValue
from@augment-vir/assert
instead.ensureEnum
: removed. UseassertWrap.isEnumValue
from@augment-vir/assert
instead.filterToEnumValues
: removed thirdcaseInsensitive
input.hasKey
: removed. Usecheck.hasKey
from@augment-vir/assert
instead.isKeyof
: removed. Usecheck.isKeyOf
from@augment-vir/assert
instead.mapObjectValuesSync
: no longer needs to be curried.PartialAndNullable
: renamed toPartialWithNullable
.PartialAndUndefined
: renamed toPartialWithUndefined
.isObject
: removed. Usecheck.isObject
from@augment-vir/assert
instead.PropertyValueType
: renamed toValues
.RemovePartial
: improved and renamed toCompleteRequire
.PickDeep
: removed entirely. Use thePickSelection
pattern instead.typedHasProperty
: removed. Usecheck.hasValue
from@augment-vir/assert
instead.typedHasProperties
: removed. Usecheck.hasValues
from@augment-vir/assert
instead.createDeferredPromiseWrapper
: refactored into a class:DeferredPromise
.isPromiseLike
: removed. Usecheck.isPromiseLike
from@augment-vir/assert
instead.executeWithRetries
: renamed tocallWithRetries
.waitUntilTruthy
: removed. UsewaitUntil.isTruthy
from@augment-vir/assert
instead.isUuid
: removed. Usecheck.isUuid
from@augment-vir/assert
instead.ansiRegex
: renamed toansiRegExp
.getAllIndexesOf
: renamed tofindSubstringIndexes
.isTruthy
: removed. Usecheck.isTruthy
from@augment-vir/assert
instead.isFalsy
: moved to@augment-vir/assert
.doesRequireScientificNotation
: renamed torequiresScientificNotation
.ensureMinAndMax
: renamed toensureMinMax
convertIntoNumber
: removed. UsetoNumber
.wrapNumber
:value
is now the standalone first input.round
:value
is now the standalone first input.clamp
:value
is now the standalone first input.removeCommasFromNumberString
: renamed toremoveCommas
.makeCaseInsensitiveRegExp
: removed. UsesetRegExpCaseSensitivity
instead.getAllIndexesOf
: renamed togetSubstringIndexes
.typedSplit
: renamed tosafeSplit
.createDebounce
: refactored into a class,Debounce
.isBrowser
: removed. UseisRuntimeEnv(RuntimeEnv.Web)
instead.combineErrors
: always returns anError
now.combineErrorMessages
: now takes string inputs and is smarter about combinations.JsonCompatiblePrimitiveValue
: renamed to justJsonCompatiblePrimitive
.stringifyJson
: removed. Usestringify
or justJSON.stringify
instead.parseJson
: removed. UseJSON.parse
instead.deDupeRegExFlags
: removed. UseremoveDuplicateCharacters
instead.timeCallback
: renamed tomeasureExecutionDuration
.isLengthAtLeast
: removed. Usecheck.isLengthAtLeast
from@augment-vir/assert
instead.assertLengthAtLeast
: removed. Useassert.isLengthAtLeast
from@augment-vir/assert
instead.Writeable
: renamed toWritable
.DeepWriteable
: renamed toWritableDeep
.RequiredBy
: renamed toSetRequired
.RequiredAndNotNullBy
: renamed toSetRequiredAndNotNull
.IfEquals
: moved to@augment-vir/assert
.wrapNarrowTypeWithTypeCheck
: removed. Use TypeScript's built-insatisfies
instead.NoInfer
: removed. Use TypeScript's built-inNoInfer
instead, with a default type parameter ofnever
.Public
: removed.
@augment-vir/browser
Deprecated. Renamed to @augment-vir/web
.
findOverflowParent
: renamed tofindOverflowAncestor
queryChildren
: removed. UsequeryThroughShadow
instead.shuffleArray
: moved to@augment-vir/common
@augment-vir/browser-testing
Deprecated. All functionality moved to the testWeb
export from @augment-vir/test
.
@augment-vir/chai
Deprecated. All functionality moved to @augment-vir/test
.
@augment-vir/docker
Deprecated. All functionality moved to the docker
export from @augment-vir/node
.
@augment-vir/node-js
Deprecated. Renamed to @augment-vir/node
.
shuffleArray
: moved to@augment-vir/common
- All log related exports moved to
@augment-vir/common
@augment-vir/prisma-node-js
Deprecated. Types moved to @augment-vir/common
. Functionality moved to the prisma
export from @augment-vir/node
.
@augment-vir/testing
Deprecated. Use @augment-vir/test
instead.
v30.0.2
add many more prisma augments
v30.0.1
fix test flakiness in CI