@augment-vir/common 32.1.0 → 32.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
- import { type ArrayElement, type TupleIndexesRecursive } from '@augment-vir/core';
2
- import { type Writable } from '../type/writable.js';
1
+ import { type ArrayElement, type TupleIndexesRecursive, type Writable } from '@augment-vir/core';
3
2
  /**
4
3
  * Performs
5
4
  * [`[].map()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
@@ -1,4 +1,4 @@
1
- import { type RequireExactlyOne } from 'type-fest';
1
+ import { type RequireExactlyOne } from '@augment-vir/core';
2
2
  /**
3
3
  * Options for {@link getArrayPage}.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { type PartialWithUndefined } from '@augment-vir/common';
2
+ import { type IsEqual } from '@augment-vir/core';
2
3
  import { type AtLeastOneDuration } from '@date-vir/duration';
3
- import { type IsEqual } from 'type-fest';
4
4
  /**
5
5
  * Params for the callback passed to {@link retry}.
6
6
  *
@@ -1,5 +1,4 @@
1
- import { type NoInputsFunction } from '@augment-vir/core';
2
- import { type RequireOneOrNone } from 'type-fest';
1
+ import { type NoInputsFunction, type RequireOneOrNone } from '@augment-vir/core';
3
2
  /**
4
3
  * Options for {@link wrapInTry}.
5
4
  *
@@ -1,5 +1,5 @@
1
1
  import { check } from '@augment-vir/assert';
2
- import { ensureError } from '@augment-vir/core';
2
+ import { ensureError, } from '@augment-vir/core';
3
3
  /**
4
4
  * Calls the callback and returns its output. If the callback throws an error, it is handled in the
5
5
  * following ways:
@@ -1,5 +1,4 @@
1
- import { type JsonCompatibleValue } from '@augment-vir/core';
2
- import { type IsUnknown, type Jsonify, type Writable } from 'type-fest';
1
+ import { type IsUnknown, type JsonCompatibleValue, type Jsonify, type Writable } from '@augment-vir/core';
3
2
  /**
4
3
  * Deeply copy an object through JSON. This is the fastest deep copy, but the input must already be
5
4
  * JSON serializable otherwise the copy will not match the original.
@@ -1,4 +1,4 @@
1
- import { ensureErrorAndPrependMessage } from '@augment-vir/core';
1
+ import { ensureErrorAndPrependMessage, } from '@augment-vir/core';
2
2
  import { safeJsonStringify } from './safe-json-stringify.js';
3
3
  /**
4
4
  * Deeply copy an object through JSON. This is the fastest deep copy, but the input must already be
@@ -1,4 +1,4 @@
1
- import { type Jsonify } from 'type-fest';
1
+ import { type Jsonify } from '@augment-vir/core';
2
2
  /**
3
3
  * Creates a JSON compatible version of the value given. Under the hood this is actually the same as
4
4
  * {@link copyThroughJson}.
@@ -1,5 +1,4 @@
1
- import { type AnyObject } from '@augment-vir/core';
2
- import { type AbstractConstructor, type Constructor } from 'type-fest';
1
+ import { type AbstractConstructor, type AnyObject, type Constructor } from '@augment-vir/core';
3
2
  /**
4
3
  * Map all ancestor constructors of an object to a set of objects.
5
4
  *
@@ -1,4 +1,4 @@
1
- import { type PartialDeep } from 'type-fest';
1
+ import { type PartialDeep } from '@augment-vir/core';
2
2
  /**
3
3
  * Extract all nested object keys and values that are different between the two given objects.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type IsEmptyObject } from 'type-fest';
1
+ import { type IsEmptyObject } from '@augment-vir/core';
2
2
  /**
3
3
  * Excludes empty objects from a union.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type PartialDeep } from 'type-fest';
1
+ import { type PartialDeep } from '@augment-vir/core';
2
2
  /**
3
3
  * Accepts multiple objects and merges their key-value pairs recursively. Any values set to
4
4
  * undefined will be removed.
@@ -1,5 +1,4 @@
1
- import { type CompleteValues, type ExcludeKeysWithMatchingValues, type ExtractKeysWithMatchingValues } from '@augment-vir/core';
2
- import { type OptionalKeysOf, type RequiredKeysOf } from 'type-fest';
1
+ import { type CompleteValues, type ExcludeKeysWithMatchingValues, type ExtractKeysWithMatchingValues, type OptionalKeysOf, type RequiredKeysOf } from '@augment-vir/core';
3
2
  /**
4
3
  * Filters an object. Like
5
4
  * [`[].filter`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries)
@@ -1,5 +1,4 @@
1
- import { DeferredPromise, type MaybePromise } from '@augment-vir/core';
2
- import { type RequireExactlyOne } from 'type-fest';
1
+ import { DeferredPromise, type MaybePromise, type RequireExactlyOne } from '@augment-vir/core';
3
2
  import { ListenTarget } from 'typed-event-target';
4
3
  /**
5
4
  * An individual item in a {@link PromiseQueue} instance.
@@ -1,5 +1,4 @@
1
- import { type AnyObject, type RequiredKeysOf } from '@augment-vir/core';
2
- import { type IsAny, type IsNever, type OptionalKeysOf, type Primitive, type UnionToIntersection } from 'type-fest';
1
+ import { type AnyObject, type IsAny, type IsNever, type OptionalKeysOf, type Primitive, type RequiredKeysOf, type UnionToIntersection } from '@augment-vir/core';
3
2
  import { type TsRecurse, type TsRecursionStart, type TsRecursionTracker, type TsTooMuchRecursion } from '../type/type-recursion.js';
4
3
  /** All types that won't be recursed into when defining a {@link SelectionSet}. */
5
4
  type SelectionTypesToPreserve = Primitive | RegExp | Promise<any>;
@@ -1,4 +1,3 @@
1
- export type { ReadonlyDeep } from 'type-fest';
2
1
  /**
3
2
  * This function does nothing but return the input as a readonly typed version of itself.
4
3
  *
@@ -1,5 +1,4 @@
1
- import { type Writable } from 'type-fest';
2
- export type { Writable, WritableDeep } from 'type-fest';
1
+ import { type Writable } from '@augment-vir/core';
3
2
  /**
4
3
  * This function does nothing but return the input as a writable typed version of itself.
5
4
  *
package/dist/index.d.ts CHANGED
@@ -105,7 +105,6 @@ export * from './augments/type/readonly.js';
105
105
  export * from './augments/type/remove-prefix.js';
106
106
  export * from './augments/type/remove-suffix.js';
107
107
  export * from './augments/type/type-recursion.js';
108
- export * from './augments/type/union.js';
109
108
  export * from './augments/type/void-type.js';
110
109
  export * from './augments/type/writable.js';
111
110
  /**
package/dist/index.js CHANGED
@@ -105,7 +105,6 @@ export * from './augments/type/readonly.js';
105
105
  export * from './augments/type/remove-prefix.js';
106
106
  export * from './augments/type/remove-suffix.js';
107
107
  export * from './augments/type/type-recursion.js';
108
- export * from './augments/type/union.js';
109
108
  export * from './augments/type/void-type.js';
110
109
  export * from './augments/type/writable.js';
111
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "32.1.0",
3
+ "version": "32.2.1",
4
4
  "description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.",
5
5
  "keywords": [
6
6
  "augment",
@@ -40,14 +40,13 @@
40
40
  "test:web": "virmator --no-deps test web"
41
41
  },
42
42
  "dependencies": {
43
- "@augment-vir/assert": "^32.1.0",
44
- "@augment-vir/core": "^32.1.0",
43
+ "@augment-vir/assert": "^32.2.1",
44
+ "@augment-vir/core": "^32.2.1",
45
45
  "@date-vir/duration": "^8.6.1",
46
46
  "@paralleldrive/cuid2": "^3.3.0",
47
47
  "ansi-styles": "^6.2.3",
48
48
  "deepcopy-esm": "^2.1.2",
49
49
  "json5": "^2.2.3",
50
- "type-fest": "^5.7.0",
51
50
  "typed-event-target": "^4.3.1"
52
51
  },
53
52
  "devDependencies": {
@@ -1 +0,0 @@
1
- export type { UnionToIntersection } from 'type-fest';
@@ -1 +0,0 @@
1
- export {};