Skip to content

Releases: electrovir/augment-vir

v30.5.1

08 Nov 21:49
6843037
Compare
Choose a tag to compare
[patch] bump version from demo to latest

v30.5.0

08 Nov 14:07
782c86e
Compare
Choose a tag to compare
[minor] add assertSnapshot and snapshotCases to @augment-vir/test

v30.4.0

07 Nov 20:45
8751982
Compare
Choose a tag to compare
[minor] add PromiseQueue to @augment-vir/common

v30.3.0

10 Oct 13:05
37da0e3
Compare
Choose a tag to compare
[patch] handle circular references in checkCustomDeepQuality

v30.2.0

01 Oct 18:22
17d3266
Compare
Choose a tag to compare
[minor] add checkCustomDeepQuality

v30.1.0

23 Sep 13:08
4a00925
Compare
Choose a tag to compare
[minor] add assert.tsType.slowEquals

v30.0.5

15 Sep 16:37
1541c39
Compare
Choose a tag to compare
[patch] convince TypeScript to stop inlining the guard methods in @au…

v30.0.4

14 Sep 12:20
51b36e8
Compare
Choose a tag to compare
[patch] fix isArray checks for readonly arrays

v30.0.3

12 Sep 20:43
a1d930e
Compare
Choose a tag to compare

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. Use AtLeastTuple.
  • typedArrayIncludes: removed. Use check.isIn or check.hasValue from @augment-vir/assert instead.
  • arrayToObject: the callback must now provide both key and value.
  • getEnumTypedValues: renamed to getEnumValues.
  • getEnumTypedKeys: removed. Use getEnumValues instead.
  • isEnumValue: removed. Use check.isEnumValue from @augment-vir/assert instead.
  • ensureEnum: removed. Use assertWrap.isEnumValue from @augment-vir/assert instead.
  • filterToEnumValues: removed third caseInsensitive input.
  • hasKey: removed. Use check.hasKey from @augment-vir/assert instead.
  • isKeyof: removed. Use check.isKeyOf from @augment-vir/assert instead.
  • mapObjectValuesSync: no longer needs to be curried.
  • PartialAndNullable: renamed to PartialWithNullable.
  • PartialAndUndefined: renamed to PartialWithUndefined.
  • isObject: removed. Use check.isObject from @augment-vir/assert instead.
  • PropertyValueType: renamed to Values.
  • RemovePartial: improved and renamed to CompleteRequire.
  • PickDeep: removed entirely. Use the PickSelection pattern instead.
  • typedHasProperty: removed. Use check.hasValue from @augment-vir/assert instead.
  • typedHasProperties: removed. Use check.hasValues from @augment-vir/assert instead.
  • createDeferredPromiseWrapper: refactored into a class: DeferredPromise.
  • isPromiseLike: removed. Use check.isPromiseLike from @augment-vir/assert instead.
  • executeWithRetries: renamed to callWithRetries.
  • waitUntilTruthy: removed. Use waitUntil.isTruthy from @augment-vir/assert instead.
  • isUuid: removed. Use check.isUuid from @augment-vir/assert instead.
  • ansiRegex: renamed to ansiRegExp.
  • getAllIndexesOf: renamed to findSubstringIndexes.
  • isTruthy: removed. Use check.isTruthy from @augment-vir/assert instead.
  • isFalsy: moved to @augment-vir/assert.
  • doesRequireScientificNotation: renamed to requiresScientificNotation.
  • ensureMinAndMax: renamed to ensureMinMax
  • convertIntoNumber: removed. Use toNumber.
  • 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 to removeCommas.
  • makeCaseInsensitiveRegExp: removed. Use setRegExpCaseSensitivity instead.
  • getAllIndexesOf: renamed to getSubstringIndexes.
  • typedSplit: renamed to safeSplit.
  • createDebounce: refactored into a class, Debounce.
  • isBrowser: removed. Use isRuntimeEnv(RuntimeEnv.Web) instead.
  • combineErrors: always returns an Error now.
  • combineErrorMessages: now takes string inputs and is smarter about combinations.
  • JsonCompatiblePrimitiveValue: renamed to just JsonCompatiblePrimitive.
  • stringifyJson: removed. Use stringify or just JSON.stringify instead.
  • parseJson: removed. Use JSON.parse instead.
  • deDupeRegExFlags: removed. Use removeDuplicateCharacters instead.
  • timeCallback: renamed to measureExecutionDuration.
  • isLengthAtLeast: removed. Use check.isLengthAtLeast from @augment-vir/assert instead.
  • assertLengthAtLeast: removed. Use assert.isLengthAtLeast from @augment-vir/assert instead.
  • Writeable: renamed to Writable.
  • DeepWriteable: renamed to WritableDeep.
  • RequiredBy: renamed to SetRequired.
  • RequiredAndNotNullBy: renamed to SetRequiredAndNotNull.
  • IfEquals: moved to @augment-vir/assert.
  • wrapNarrowTypeWithTypeCheck: removed. Use TypeScript's built-in satisfies instead.
  • NoInfer: removed. Use TypeScript's built-in NoInfer instead, with a default type parameter of never.
  • Public: removed.

@augment-vir/browser

Deprecated. Renamed to @augment-vir/web.

  • findOverflowParent: renamed to findOverflowAncestor
  • queryChildren: removed. Use queryThroughShadow 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

11 Sep 12:45
ab97ff4
Compare
Choose a tag to compare
v30.0.2 Pre-release
Pre-release
add many more prisma augments