Skip to content

Releases: electrovir/augment-vir

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…

…gment-vir/assert

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

v30.0.1

09 Sep 13:27
24288e8
Compare
Choose a tag to compare
v30.0.1 Pre-release
Pre-release
fix test flakiness in CI

v30.0.0

27 Aug 19:45
5bf8a9e
Compare
Choose a tag to compare
v30.0.0 Pre-release
Pre-release
fill out documentation for @augment-vir/assert

v29.3.0

10 Jul 12:32
a494982
Compare
Choose a tag to compare

Commits

  • a494982: [minor] add UuidV4 type and improve comments on UUID functions (electrovir)

v29.2.0

08 Jul 20:55
1d925a4
Compare
Choose a tag to compare

Commits

  • 1d925a4: [minor] add Digit type to @augment-vir/common (electrovir)

v29.1.10

06 Jul 15:22
0c175e9
Compare
Choose a tag to compare

Commits

  • 0c175e9: [patch] fix PickCollapsedSelection and selectFrom for partial objects (electrovir)

v29.1.9

06 Jul 14:41
78993c8
Compare
Choose a tag to compare

Commits

  • 78993c8: [patch] fix recursive SelectionSet in partial properties (electrovir)