@webdeveric/utils 0.60.0 → 0.61.0

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,3 +1,4 @@
1
+ import type { NonEmptyArray } from '../../types/arrays.js';
1
2
  import type { InferPredicatesReturnType, TypePredicateFn } from '../../types/functions.js';
2
3
  import type { IntersectionOf } from '../../types/utils.js';
3
- export declare const allOf: <Predicates extends TypePredicateFn<unknown>[]>(...predicates: Predicates) => TypePredicateFn<IntersectionOf<InferPredicatesReturnType<Predicates>>>;
4
+ export declare const allOf: <Predicates extends NonEmptyArray<TypePredicateFn<unknown>>>(...predicates: Predicates) => TypePredicateFn<IntersectionOf<InferPredicatesReturnType<Predicates>>>;
@@ -1,3 +1,4 @@
1
+ import type { NonEmptyArray } from '../../types/arrays.js';
1
2
  import type { InferPredicatesReturnType, TypePredicateFn } from '../../types/functions.js';
2
3
  import type { UnionOf } from '../../types/utils.js';
3
- export declare const anyOf: <Predicates extends TypePredicateFn<unknown>[]>(...predicates: Predicates) => TypePredicateFn<UnionOf<InferPredicatesReturnType<Predicates>>>;
4
+ export declare const anyOf: <Predicates extends NonEmptyArray<TypePredicateFn<unknown>>>(...predicates: Predicates) => TypePredicateFn<UnionOf<InferPredicatesReturnType<Predicates>>>;
@@ -8,3 +8,4 @@ export type GetLength<A extends any[]> = A extends {
8
8
  export type IfLength<A extends any[], L extends number, T, F> = GetLength<A> extends L ? T : F;
9
9
  export type IfEmpty<A extends any[], T, F> = GetLength<A> extends 0 ? T : F;
10
10
  export type IfArray<Type, T, F> = Type extends unknown[] ? T : F;
11
+ export type NonEmptyArray<Type> = [Type, ...Type[]];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webdeveric/utils",
3
3
  "description": "Just another collection of utilities.",
4
- "version": "0.60.0",
4
+ "version": "0.61.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -66,7 +66,7 @@
66
66
  "url": "https://github.com/webdeveric/utils/issues"
67
67
  },
68
68
  "homepage": "https://github.com/webdeveric/utils/#readme",
69
- "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
69
+ "packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912",
70
70
  "scripts": {
71
71
  "clean": "rimraf ./dist/",
72
72
  "prebuild": "pnpm clean",
@@ -87,8 +87,8 @@
87
87
  "devDependencies": {
88
88
  "@commitlint/config-conventional": "^19.8.1",
89
89
  "@commitlint/types": "^19.8.1",
90
- "@types/node": "^22.15.29",
91
- "@vitest/coverage-v8": "^3.1.4",
90
+ "@types/node": "^22.15.30",
91
+ "@vitest/coverage-v8": "^3.2.2",
92
92
  "@webdeveric/eslint-config-ts": "^0.11.0",
93
93
  "@webdeveric/prettier-config": "^0.3.0",
94
94
  "commitlint": "^19.8.1",
@@ -97,7 +97,7 @@
97
97
  "cspell": "^9.0.2",
98
98
  "eslint": "^8.57.1",
99
99
  "eslint-config-prettier": "^10.1.5",
100
- "eslint-import-resolver-typescript": "^4.4.2",
100
+ "eslint-import-resolver-typescript": "^4.4.3",
101
101
  "eslint-plugin-import": "^2.31.0",
102
102
  "husky": "^9.1.7",
103
103
  "jsdom": "^26.1.0",
@@ -107,7 +107,7 @@
107
107
  "semantic-release": "^24.2.5",
108
108
  "typescript": "^5.8.3",
109
109
  "validate-package-exports": "^0.9.0",
110
- "vitest": "^3.1.4"
110
+ "vitest": "^3.2.2"
111
111
  },
112
112
  "pnpm": {
113
113
  "onlyBuiltDependencies": [