valleyed 4.5.5 → 4.5.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.5.6](https://github.com/kevinand11/valleyed/compare/v4.5.5...v4.5.6) (2025-06-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * typings ([b875b1a](https://github.com/kevinand11/valleyed/commit/b875b1a7872df822c7e1e4105101432358242675))
11
+
5
12
  ### [4.5.5](https://github.com/kevinand11/valleyed/compare/v4.5.4...v4.5.5) (2025-06-24)
6
13
 
7
14
 
@@ -1,12 +1,12 @@
1
1
  import { StandardSchemaV1 } from '@standard-schema/spec';
2
2
  import { ValueFunction } from '../../utils/functions';
3
- import { IsInTypeList, JsonSchema } from '../../utils/types';
3
+ import { JsonSchema } from '../../utils/types';
4
4
  import type { Timeable } from '../times';
5
5
  export type PipeFn<I, O, C> = (input: I, context: Context<C>) => O;
6
6
  export type PipeInput<T> = T extends Pipe<infer I, any, any> ? I : never;
7
7
  export type PipeOutput<T> = T extends Pipe<any, infer O, any> ? O : never;
8
8
  export type PipeContext<T> = T extends Pipe<any, any, infer C> ? C : never;
9
- export type Context<C> = (IsInTypeList<C, [any, unknown, never]> extends true ? {} : C) & Readonly<{
9
+ export type Context<C> = C & Readonly<{
10
10
  optional?: boolean;
11
11
  objectKeys?: string[];
12
12
  eq?: ValueFunction<unknown>;
@@ -38,9 +38,9 @@ type PipeChain<I, O, C> = {
38
38
  <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(fn1: Entry<O, T1, C>, fn2: Entry<T1, T2, C>, f3: Entry<T2, T3, C>, f4: Entry<T3, T4, C>, f5: Entry<T4, T5, C>, f6: Entry<T5, T6, C>, f7: Entry<T6, T7, C>, f8: Entry<T7, T8, C>, f9: Entry<T8, T9, C>, f10: Entry<T9, T10, C>): Pipe<I, T10, C>;
39
39
  };
40
40
  export interface Pipe<I, O, C> extends StandardSchemaV1<I, O> {
41
- readonly fn: PipeFn<I, O, C>;
42
- readonly context: () => Context<C>;
43
- readonly schema: (context: Context<C>) => JsonSchema;
41
+ readonly fn: PipeFn<any, any, any>;
42
+ readonly context: () => Context<any>;
43
+ readonly schema: (context: Context<any>) => JsonSchema;
44
44
  readonly pipe: PipeChain<I, O, C>;
45
45
  next?: Pipe<any, any, any>;
46
46
  last?: Pipe<any, any, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valleyed",
3
- "version": "4.5.5",
3
+ "version": "4.5.6",
4
4
  "description": "A lightweight package with definitions for various validation rules, and helper services to consume said rules.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",