@tb-dev/utils 6.0.5 → 7.0.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.
package/dist/index.js CHANGED
@@ -22,7 +22,6 @@ const noop = () => {
22
22
  function isNil(value) {
23
23
  return value === void 0 || value === null;
24
24
  }
25
- const isNullish = isNil;
26
25
  function panic(...args) {
27
26
  throw new Error(args.join(" "));
28
27
  }
@@ -100,7 +99,6 @@ export {
100
99
  PromiseSet,
101
100
  flushPromises,
102
101
  isNil,
103
- isNullish,
104
102
  noop,
105
103
  panic,
106
104
  sleep,
@@ -1,3 +1,2 @@
1
- import { Nil } from '../types';
2
- export declare function isNil(value: unknown): value is Nil;
3
- export declare const isNullish: typeof isNil;
1
+ import { nil } from '../types';
2
+ export declare function isNil(value: unknown): value is nil;
@@ -7,9 +7,9 @@ export type MaybeArray<T> = T | T[];
7
7
  /** Something may be a promise. */
8
8
  export type MaybePromise<T> = T | PromiseLike<T>;
9
9
  /** Null or undefined. */
10
- export type Nil = null | undefined;
10
+ export type nil = null | undefined;
11
11
  /** Something may be nullish. */
12
- export type Option<T> = T | Nil;
12
+ export type Option<T> = T | nil;
13
13
  /** Constructs a type where all properties of `T` may be null. */
14
14
  export type PartialNull<T> = {
15
15
  [P in keyof T]: T[P] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/utils",
3
- "version": "6.0.5",
3
+ "version": "7.0.1",
4
4
  "description": "TypeScript utils",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,10 +24,10 @@
24
24
  "typescript"
25
25
  ],
26
26
  "devDependencies": {
27
- "@tb-dev/eslint-config": "^7.1.3",
28
- "@types/node": "^22.15.18",
29
- "@vitest/ui": "^3.1.3",
30
- "eslint": "^9.26.0",
27
+ "@tb-dev/eslint-config": "^7.1.5",
28
+ "@types/node": "^22.15.21",
29
+ "@vitest/ui": "^3.1.4",
30
+ "eslint": "^9.27.0",
31
31
  "prettier": "^3.5.3",
32
32
  "tslib": "^2.8.1",
33
33
  "typedoc": "^0.28.4",
@@ -35,7 +35,7 @@
35
35
  "typescript": "^5.8.3",
36
36
  "vite": "^6.3.5",
37
37
  "vite-plugin-dts": "^4.5.4",
38
- "vitest": "^3.1.3"
38
+ "vitest": "^3.1.4"
39
39
  },
40
40
  "files": [
41
41
  "dist"