functype 0.41.0 → 0.41.2

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/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{Et as e,q as t,vt as n}from"../src-DpfaJv6K.js";const r=`0.41.0`,i={Option:{description:`Safe nullable handling - Some<T> or None`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Matchable`,`Serializable`,`Traversable`],methods:{create:[`Option(v)`,`Option.none()`,`Some(v)`,`None()`],transform:[`.map(f)`,`.flatMap(f)`,`.filter(p)`,`.ap(ff)`],extract:[`.fold(n, s)`,`.orElse(d)`,`.orThrow()`,`.orNull()`,`.match({Some, None})`],check:[`.isSome`,`.isNone`,`.isDefined`,`.isEmpty`]}},Either:{description:`Error handling with Left (error) or Right (success)`,interfaces:[`Functor`,`Monad`,`Foldable`,`Traversable`,`PromiseLike`],methods:{create:[`Right(v)`,`Left(e)`,`Either.right(v)`,`Either.left(e)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapLeft(f)`,`.swap()`],extract:[`.fold(l, r)`,`.orElse(d)`,`.orThrow()`,`.match({Left, Right})`],check:[`.isRight`,`.isLeft`]}},Try:{description:`Wrap operations that may throw - Success<T> or Failure`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Matchable`,`Serializable`,`Traversable`],methods:{create:[`Try(() => expr)`,`Success(v)`,`Failure(e)`],transform:[`.map(f)`,`.flatMap(f)`,`.recover(f)`,`.recoverWith(f)`],extract:[`.fold(f, s)`,`.orElse(d)`,`.orThrow()`,`.toOption()`,`.toEither()`],check:[`.isSuccess`,`.isFailure`]}},List:{description:`Immutable array with functional operations`,interfaces:[`Functor`,`Monad`,`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`List([...])`,`List.of(...)`,`List.empty()`],transform:[`.map(f)`,`.flatMap(f)`,`.filter(p)`,`.take(n)`,`.drop(n)`],extract:[`.fold(z, f)`,`.reduce(f)`,`.head`,`.tail`,`.toArray()`],check:[`.isEmpty`,`.nonEmpty`,`.size`,`.contains(v)`]}},Set:{description:`Immutable set of unique values`,interfaces:[`Functor`,`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`Set([...])`,`Set.of(...)`,`Set.empty()`],transform:[`.map(f)`,`.filter(p)`,`.union(s)`,`.intersection(s)`,`.difference(s)`],extract:[`.fold(z, f)`,`.toArray()`],check:[`.has(v)`,`.isEmpty`,`.size`]}},Map:{description:`Immutable key-value store`,interfaces:[`SafeTraversable`,`Collection`,`Serializable`],methods:{create:[`Map([...])`,`Map.of(...)`,`Map.empty()`],transform:[`.set(k, v)`,`.delete(k)`,`.map(f)`,`.filter(p)`],extract:[`.get(k)`,`.keys()`,`.values()`,`.entries()`,`.fold(z, f)`],check:[`.has(k)`,`.isEmpty`,`.size`]}},Lazy:{description:`Deferred computation with memoization`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Serializable`,`Traversable`],methods:{create:[`Lazy(() => expr)`],transform:[`.map(f)`,`.flatMap(f)`],extract:[`.fold(n, s)`,`.orElse(d)`,`.orThrow()`,`.get()`],check:[`.isEvaluated`]}},LazyList:{description:`Lazy sequences for large/infinite data`,interfaces:[`Functor`,`Monad`,`Iterable`],methods:{create:[`LazyList.from(iter)`,`LazyList.range(start, end)`,`LazyList.infinite(f)`],transform:[`.map(f)`,`.filter(p)`,`.take(n)`,`.drop(n)`,`.concat(ll)`],extract:[`.head`,`.tail`,`.toArray()`],check:[`.isEmpty`]}},Task:{description:`Async operations with cancellation and progress`,interfaces:[],methods:{create:[`Task.of(v)`,`Task.from(promise)`,`Task.sync(f)`,`Task.async(f)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapError(f)`],extract:[`.run()`,`.cancel()`],other:[`.onProgress(cb)`,`.onCancel(cb)`]}},IO:{description:`Lazy effect type with typed errors and dependency injection`,interfaces:[`Functor`,`Monad`,`Foldable`,`Matchable`],methods:{create:[`IO(() => v)`,`IO.succeed(v)`,`IO.fail(e)`,`IO.sync(f)`,`IO.async(f)`,`IO.tryPromise({try, catch})`,`IO.fromEither(e)`,`IO.fromOption(o)`,`IO.fromTry(t)`],transform:[`.map(f)`,`.flatMap(f)`,`.tap(f)`,`.mapError(f)`,`.recover(v)`,`.recoverWith(f)`],extract:[`.run()`,`.runOrThrow()`,`.runSync()`,`.runSyncOrThrow()`,`.runExit()`,`.runOption()`,`.runTry()`,`.fold(onErr, onOk)`,`.match({failure, success})`],check:[],other:[`.catchTag(tag, f)`,`.catchAll(f)`,`.retry(n)`,`.retryWithDelay(n, ms)`,`.timeout(ms)`,`.delay(ms)`,`.zip(io)`,`.pipe(f)`,`IO.all([...])`,`IO.race([...])`,`IO.bracket(acquire, use, release)`,`IO.gen(function*() {...})`,`IO.Do.bind().map()`,`IO.service(Tag)`,`.provideService(Tag, impl)`,`.provideLayer(layer)`]}},FPromise:{description:`Enhanced Promise with functional methods`,interfaces:[`PromiseLike`],methods:{create:[`FPromise.of(v)`,`FPromise.from(promise)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapError(f)`,`.recover(f)`],extract:[`.toPromise()`,`.cancel()`]}},Cond:{description:`Conditional expression builder - replace if-else chains`,interfaces:[],methods:{create:[`Cond<T>()`],other:[`.case(pred, result)`,`.otherwise(result)`,`.eval()`]}},Match:{description:`Pattern matching - replace switch statements`,interfaces:[],methods:{create:[`Match(value)`],other:[`.case(pattern, result)`,`.when(pred, result)`,`.default(result)`,`.done()`]}},Brand:{description:`Nominal typing without runtime overhead`,interfaces:[],methods:{create:[`Brand<K, T>(value)`],extract:[`.unwrap()`,`.toString()`]}},ValidatedBrand:{description:`Branded types with runtime validation`,interfaces:[],methods:{create:[`ValidatedBrand(validator)`,`.of(v)`,`.from(v)`,`.unsafeOf(v)`],check:[`.is(v)`],other:[`.refine(validator)`]}},Tuple:{description:`Fixed-size typed array`,interfaces:[`Typeable`,`Valuable`,`Iterable`],methods:{create:[`Tuple([a, b, ...])`,`Tuple.of(a, b, ...)`],extract:[`.first`,`.second`,`.toArray()`],transform:[`.map(f)`]}},Stack:{description:`Immutable LIFO stack`,interfaces:[`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`Stack()`,`Stack.of(...)`],transform:[`.push(v)`,`.pop()`],extract:[`.peek()`,`.toArray()`],check:[`.isEmpty`,`.size`]}}},a={Functor:{description:`Transform contained values`,methods:[`.map<B>(f: A => B): Functor<B>`]},Applicative:{extends:`Functor`,description:`Apply wrapped functions`,methods:[`.ap<B>(ff: Applicative<A => B>): Applicative<B>`]},Monad:{extends:`Applicative`,description:`Chain operations returning wrapped values`,methods:[`.flatMap<B>(f: A => Monad<B>): Monad<B>`]},Foldable:{description:`Extract via pattern matching`,methods:[`.fold<B>(empty: () => B, f: A => B): B`,`.foldLeft<B>(z: B, op: (B, A) => B): B`,`.foldRight<B>(z: B, op: (A, B) => B): B`]},Extractable:{description:`Get contained value with fallback`,methods:[`.orElse(d: T): T`,`.orThrow(e?: Error): T`,`.orNull(): T | null`,`.orUndefined(): T | undefined`]},Matchable:{description:`Pattern match on type variants`,methods:[`.match<R>(patterns: Record<Tag, Handler>): R`]},Traversable:{description:`Iterate and check contents`,methods:[`.size: number`,`.isEmpty: boolean`,`.contains(v: A): boolean`,`.reduce<B>(f, init): B`]},Collection:{description:`Collection operations`,methods:[`.toArray(): A[]`,`.forEach(f: A => void): void`]},Serializable:{description:`Convert to string formats`,methods:[`.serialize().toJSON(): string`,`.serialize().toYAML(): string`]}},o={Core:[`Option`,`Either`,`Try`],Collection:[`List`,`Set`,`Map`,`LazyList`,`Tuple`,`Stack`],Effect:[`IO`,`Task`,`FPromise`],Utility:[`Lazy`,`Cond`,`Match`,`Brand`,`ValidatedBrand`]},s=()=>{let t=n([`functype ${r} - Scala-inspired FP for TypeScript`,``]);return n(Object.entries(o)).foldLeft(t)((t,[r,a])=>{let o=t.add(r.toUpperCase());return n(a).foldLeft(o)((t,n)=>e(i[n]).fold(()=>t,e=>{let r=e.interfaces.length>0?` [${e.interfaces.join(`, `)}]`:``;return t.add(` ${n}${r}`).add(` ${e.description}`)})).add(``)}).concat(n([`Use: npx functype <Type> for details`,`Use: npx functype interfaces for interface reference`])).toArray().join(`
2
+ import{Et as e,q as t,vt as n}from"../src-DpfaJv6K.js";const r=`0.41.2`,i={Option:{description:`Safe nullable handling - Some<T> or None`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Matchable`,`Serializable`,`Traversable`],methods:{create:[`Option(v)`,`Option.none()`,`Some(v)`,`None()`],transform:[`.map(f)`,`.flatMap(f)`,`.filter(p)`,`.ap(ff)`],extract:[`.fold(n, s)`,`.orElse(d)`,`.orThrow()`,`.orNull()`,`.match({Some, None})`],check:[`.isSome`,`.isNone`,`.isDefined`,`.isEmpty`]}},Either:{description:`Error handling with Left (error) or Right (success)`,interfaces:[`Functor`,`Monad`,`Foldable`,`Traversable`,`PromiseLike`],methods:{create:[`Right(v)`,`Left(e)`,`Either.right(v)`,`Either.left(e)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapLeft(f)`,`.swap()`],extract:[`.fold(l, r)`,`.orElse(d)`,`.orThrow()`,`.match({Left, Right})`],check:[`.isRight`,`.isLeft`]}},Try:{description:`Wrap operations that may throw - Success<T> or Failure`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Matchable`,`Serializable`,`Traversable`],methods:{create:[`Try(() => expr)`,`Success(v)`,`Failure(e)`],transform:[`.map(f)`,`.flatMap(f)`,`.recover(f)`,`.recoverWith(f)`],extract:[`.fold(f, s)`,`.orElse(d)`,`.orThrow()`,`.toOption()`,`.toEither()`],check:[`.isSuccess`,`.isFailure`]}},List:{description:`Immutable array with functional operations`,interfaces:[`Functor`,`Monad`,`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`List([...])`,`List.of(...)`,`List.empty()`],transform:[`.map(f)`,`.flatMap(f)`,`.filter(p)`,`.take(n)`,`.drop(n)`],extract:[`.fold(z, f)`,`.reduce(f)`,`.head`,`.tail`,`.toArray()`],check:[`.isEmpty`,`.nonEmpty`,`.size`,`.contains(v)`]}},Set:{description:`Immutable set of unique values`,interfaces:[`Functor`,`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`Set([...])`,`Set.of(...)`,`Set.empty()`],transform:[`.map(f)`,`.filter(p)`,`.union(s)`,`.intersection(s)`,`.difference(s)`],extract:[`.fold(z, f)`,`.toArray()`],check:[`.has(v)`,`.isEmpty`,`.size`]}},Map:{description:`Immutable key-value store`,interfaces:[`SafeTraversable`,`Collection`,`Serializable`],methods:{create:[`Map([...])`,`Map.of(...)`,`Map.empty()`],transform:[`.set(k, v)`,`.delete(k)`,`.map(f)`,`.filter(p)`],extract:[`.get(k)`,`.keys()`,`.values()`,`.entries()`,`.fold(z, f)`],check:[`.has(k)`,`.isEmpty`,`.size`]}},Lazy:{description:`Deferred computation with memoization`,interfaces:[`Functor`,`Monad`,`Foldable`,`Extractable`,`Serializable`,`Traversable`],methods:{create:[`Lazy(() => expr)`],transform:[`.map(f)`,`.flatMap(f)`],extract:[`.fold(n, s)`,`.orElse(d)`,`.orThrow()`,`.get()`],check:[`.isEvaluated`]}},LazyList:{description:`Lazy sequences for large/infinite data`,interfaces:[`Functor`,`Monad`,`Iterable`],methods:{create:[`LazyList.from(iter)`,`LazyList.range(start, end)`,`LazyList.infinite(f)`],transform:[`.map(f)`,`.filter(p)`,`.take(n)`,`.drop(n)`,`.concat(ll)`],extract:[`.head`,`.tail`,`.toArray()`],check:[`.isEmpty`]}},Task:{description:`Async operations with cancellation and progress`,interfaces:[],methods:{create:[`Task.of(v)`,`Task.from(promise)`,`Task.sync(f)`,`Task.async(f)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapError(f)`],extract:[`.run()`,`.cancel()`],other:[`.onProgress(cb)`,`.onCancel(cb)`]}},IO:{description:`Lazy effect type with typed errors and dependency injection`,interfaces:[`Functor`,`Monad`,`Foldable`,`Matchable`],methods:{create:[`IO(() => v)`,`IO.succeed(v)`,`IO.fail(e)`,`IO.sync(f)`,`IO.async(f)`,`IO.tryPromise({try, catch})`,`IO.fromEither(e)`,`IO.fromOption(o)`,`IO.fromTry(t)`],transform:[`.map(f)`,`.flatMap(f)`,`.tap(f)`,`.mapError(f)`,`.recover(v)`,`.recoverWith(f)`],extract:[`.run()`,`.runOrThrow()`,`.runSync()`,`.runSyncOrThrow()`,`.runExit()`,`.runOption()`,`.runTry()`,`.fold(onErr, onOk)`,`.match({failure, success})`],check:[],other:[`.catchTag(tag, f)`,`.catchAll(f)`,`.retry(n)`,`.retryWithDelay(n, ms)`,`.timeout(ms)`,`.delay(ms)`,`.zip(io)`,`.pipe(f)`,`IO.all([...])`,`IO.race([...])`,`IO.bracket(acquire, use, release)`,`IO.gen(function*() {...})`,`IO.Do.bind().map()`,`IO.service(Tag)`,`.provideService(Tag, impl)`,`.provideLayer(layer)`]}},FPromise:{description:`Enhanced Promise with functional methods`,interfaces:[`PromiseLike`],methods:{create:[`FPromise.of(v)`,`FPromise.from(promise)`],transform:[`.map(f)`,`.flatMap(f)`,`.mapError(f)`,`.recover(f)`],extract:[`.toPromise()`,`.cancel()`]}},Cond:{description:`Conditional expression builder - replace if-else chains`,interfaces:[],methods:{create:[`Cond<T>()`],other:[`.case(pred, result)`,`.otherwise(result)`,`.eval()`]}},Match:{description:`Pattern matching - replace switch statements`,interfaces:[],methods:{create:[`Match(value)`],other:[`.case(pattern, result)`,`.when(pred, result)`,`.default(result)`,`.done()`]}},Brand:{description:`Nominal typing without runtime overhead`,interfaces:[],methods:{create:[`Brand<K, T>(value)`],extract:[`.unwrap()`,`.toString()`]}},ValidatedBrand:{description:`Branded types with runtime validation`,interfaces:[],methods:{create:[`ValidatedBrand(validator)`,`.of(v)`,`.from(v)`,`.unsafeOf(v)`],check:[`.is(v)`],other:[`.refine(validator)`]}},Tuple:{description:`Fixed-size typed array`,interfaces:[`Typeable`,`Valuable`,`Iterable`],methods:{create:[`Tuple([a, b, ...])`,`Tuple.of(a, b, ...)`],extract:[`.first`,`.second`,`.toArray()`],transform:[`.map(f)`]}},Stack:{description:`Immutable LIFO stack`,interfaces:[`Foldable`,`Collection`,`Serializable`,`Traversable`],methods:{create:[`Stack()`,`Stack.of(...)`],transform:[`.push(v)`,`.pop()`],extract:[`.peek()`,`.toArray()`],check:[`.isEmpty`,`.size`]}}},a={Functor:{description:`Transform contained values`,methods:[`.map<B>(f: A => B): Functor<B>`]},Applicative:{extends:`Functor`,description:`Apply wrapped functions`,methods:[`.ap<B>(ff: Applicative<A => B>): Applicative<B>`]},Monad:{extends:`Applicative`,description:`Chain operations returning wrapped values`,methods:[`.flatMap<B>(f: A => Monad<B>): Monad<B>`]},Foldable:{description:`Extract via pattern matching`,methods:[`.fold<B>(empty: () => B, f: A => B): B`,`.foldLeft<B>(z: B, op: (B, A) => B): B`,`.foldRight<B>(z: B, op: (A, B) => B): B`]},Extractable:{description:`Get contained value with fallback`,methods:[`.orElse(d: T): T`,`.orThrow(e?: Error): T`,`.orNull(): T | null`,`.orUndefined(): T | undefined`]},Matchable:{description:`Pattern match on type variants`,methods:[`.match<R>(patterns: Record<Tag, Handler>): R`]},Traversable:{description:`Iterate and check contents`,methods:[`.size: number`,`.isEmpty: boolean`,`.contains(v: A): boolean`,`.reduce<B>(f, init): B`]},Collection:{description:`Collection operations`,methods:[`.toArray(): A[]`,`.forEach(f: A => void): void`]},Serializable:{description:`Convert to string formats`,methods:[`.serialize().toJSON(): string`,`.serialize().toYAML(): string`]}},o={Core:[`Option`,`Either`,`Try`],Collection:[`List`,`Set`,`Map`,`LazyList`,`Tuple`,`Stack`],Effect:[`IO`,`Task`,`FPromise`],Utility:[`Lazy`,`Cond`,`Match`,`Brand`,`ValidatedBrand`]},s=()=>{let t=n([`functype ${r} - Scala-inspired FP for TypeScript`,``]);return n(Object.entries(o)).foldLeft(t)((t,[r,a])=>{let o=t.add(r.toUpperCase());return n(a).foldLeft(o)((t,n)=>e(i[n]).fold(()=>t,e=>{let r=e.interfaces.length>0?` [${e.interfaces.join(`, `)}]`:``;return t.add(` ${n}${r}`).add(` ${e.description}`)})).add(``)}).concat(n([`Use: npx functype <Type> for details`,`Use: npx functype interfaces for interface reference`])).toArray().join(`
3
3
  `)},c=(t,r)=>{let i=r.interfaces.length>0?` [${r.interfaces.join(`, `)}]`:``,a=n([`create`,`transform`,`extract`,`check`,`other`]),o=n([`${t}<T>${i}`,``,r.description,``]);return a.foldLeft(o)((t,i)=>e(r.methods[i]).filter(e=>e.length>0).fold(()=>t,e=>{let r=t.add(i.toUpperCase());return n(e).foldLeft(r)((e,t)=>e.add(` ${t}`)).add(``)})).toArray().join(`
4
4
  `).trimEnd()},l=()=>{let e=n([`INTERFACES`,``]);return n(Object.entries(a)).foldLeft(e)((e,[t,r])=>{let i=r.extends?` extends ${r.extends}`:``,a=e.add(`${t}<A>${i}`).add(` ${r.description}`);return n(r.methods).foldLeft(a)((e,t)=>e.add(` ${t}`)).add(``)}).toArray().join(`
5
5
  `).trimEnd()},u=e=>JSON.stringify(e,null,2),d=()=>({version:r,categories:o,types:i}),f=t=>e(i[t]).map(e=>({name:t,data:e})).or(n(Object.entries(i)).find(([e])=>e.toLowerCase()===t.toLowerCase()).map(([e,t])=>({name:e,data:t}))).orUndefined(),p=()=>Object.keys(i),m=()=>a,h={Option:`export interface Option<T extends Type> extends Functype<T, "Some" | "None">, Promisable<T>, Doable<T>, Reshapeable<T> {
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { Jn as Doable, a as EmptyListError, c as LeftError, d as isDoCapable, f as unwrap, i as DoGenerator, l as LeftErrorType, n as Do, o as FailureError, qn as DoResult, r as DoAsync, s as FailureErrorType, t as $, u as NoneError } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { $, Do, DoAsync, DoGenerator, DoResult, Doable, EmptyListError, FailureError, FailureErrorType, LeftError, LeftErrorType, NoneError, isDoCapable, unwrap };
package/dist/do/index.js CHANGED
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{A as e,F as t,I as n,M as r,N as i,O as a,P as o,j as s,k as c}from"../src-DpfaJv6K.js";export{a as $,c as Do,e as DoAsync,s as EmptyListError,r as FailureError,i as LeftError,o as NoneError,t as isDoCapable,n as unwrap};
1
+ import{A as e,F as t,I as n,M as r,N as i,O as a,P as o,j as s,k as c}from"../src-DpfaJv6K.js";export{a as $,c as Do,e as DoAsync,s as EmptyListError,r as FailureError,i as LeftError,o as NoneError,t as isDoCapable,n as unwrap};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { S as tryCatchAsync, _ as TypeCheckLeft, b as isRight, g as TestEither, h as Right, m as Left, p as Either, v as TypeCheckRight, x as tryCatch, y as isLeft } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { Either, Left, Right, TestEither, TypeCheckLeft, TypeCheckRight, isLeft, isRight, tryCatch, tryCatchAsync };
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{_t as e,dt as t,ft as n,gt as r,ht as i,lt as a,mt as o,pt as s,ut as c}from"../src-DpfaJv6K.js";export{a as Either,c as Left,t as Right,n as TypeCheckLeft,s as TypeCheckRight,o as isLeft,i as isRight,r as tryCatch,e as tryCatchAsync};
1
+ import{_t as e,dt as t,ft as n,gt as r,ht as i,lt as a,mt as o,pt as s,ut as c}from"../src-DpfaJv6K.js";export{a as Either,c as Left,t as Right,n as TypeCheckLeft,s as TypeCheckRight,o as isLeft,i as isRight,r as tryCatch,e as tryCatchAsync};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { cn as ErrorContext, ln as FPromise, un as FPromiseCompanion } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { ErrorContext, FPromise, FPromiseCompanion };
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{H as e,U as t}from"../src-DpfaJv6K.js";export{e as FPromise,t as FPromiseCompanion};
1
+ import{H as e,U as t}from"../src-DpfaJv6K.js";export{e as FPromise,t as FPromiseCompanion};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { D as List } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { List };
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{vt as e}from"../src-DpfaJv6K.js";export{e as List};
1
+ import{vt as e}from"../src-DpfaJv6K.js";export{e as List};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { J as Map, Y as SafeTraversable } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { Map, SafeTraversable };
package/dist/map/index.js CHANGED
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{i as e}from"../src-DpfaJv6K.js";export{e as Map};
1
+ import{i as e}from"../src-DpfaJv6K.js";export{e as Map};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { A as OptionConstructor, O as None, j as Some, k as Option } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { None, Option, OptionConstructor, Some };
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{Dt as e,Et as t,Ot as n,Tt as r}from"../src-DpfaJv6K.js";export{r as None,t as Option,e as OptionConstructor,n as Some};
1
+ import{Dt as e,Et as t,Ot as n,Tt as r}from"../src-DpfaJv6K.js";export{r as None,t as Option,e as OptionConstructor,n as Some};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { F as Set } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { Set };
package/dist/set/index.js CHANGED
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{wt as e}from"../src-DpfaJv6K.js";export{e as Set};
1
+ import{wt as e}from"../src-DpfaJv6K.js";export{e as Set};
@@ -1,4 +1,2 @@
1
- import "../Brand-BPeggBaO.js";
2
1
  import { Fn as Try, In as TypeNames } from "../index-B6Civ4kr.js";
3
- import "../Tuple-C4maYbiO.js";
4
2
  export { Try, TypeNames };
package/dist/try/index.js CHANGED
@@ -1 +1 @@
1
- import"../Brand-Cfr5zy8F.js";import"../Tuple-CgX4p79w.js";import{xt as e}from"../src-DpfaJv6K.js";export{e as Try};
1
+ import{xt as e}from"../src-DpfaJv6K.js";export{e as Try};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype",
3
- "version": "0.41.0",
3
+ "version": "0.41.2",
4
4
  "type": "module",
5
5
  "description": "A functional programming library for TypeScript, using immutable data structures and type classes",
6
6
  "author": "jordan.burke@gmail.com",
@@ -44,14 +44,14 @@
44
44
  "cli-example": "npx . Option"
45
45
  },
46
46
  "devDependencies": {
47
- "@eslint/compat": "^1.4.1",
48
- "@types/node": "^22.19.1",
47
+ "@eslint/compat": "^2.0.0",
48
+ "@types/node": "~24.10.4",
49
49
  "eslint-config-functype": "1.3.0",
50
50
  "eslint-plugin-functional": "^9.0.2",
51
- "fast-check": "^4.4.0",
51
+ "fast-check": "^4.5.2",
52
52
  "globals": "^16.5.0",
53
- "ts-builds": "^1.2.1",
54
- "tsdown": "^0.16.8",
53
+ "ts-builds": "^1.2.5",
54
+ "tsdown": "^0.18.3",
55
55
  "tsx": "^4.21.0",
56
56
  "typedoc": "^0.28.15"
57
57
  },
@@ -59,118 +59,99 @@
59
59
  "module": "./dist/index.js",
60
60
  "exports": {
61
61
  ".": {
62
- "import": {
63
- "types": "./dist/index.d.ts",
64
- "default": "./dist/index.js"
65
- }
62
+ "types": "./dist/index.d.ts",
63
+ "import": "./dist/index.js",
64
+ "default": "./dist/index.js"
66
65
  },
67
66
  "./option": {
68
- "import": {
69
- "types": "./dist/option/index.d.ts",
70
- "default": "./dist/option/index.js"
71
- }
67
+ "types": "./dist/option/index.d.ts",
68
+ "import": "./dist/option/index.js",
69
+ "default": "./dist/option/index.js"
72
70
  },
73
71
  "./either": {
74
- "import": {
75
- "types": "./dist/either/index.d.ts",
76
- "default": "./dist/either/index.js"
77
- }
72
+ "types": "./dist/either/index.d.ts",
73
+ "import": "./dist/either/index.js",
74
+ "default": "./dist/either/index.js"
78
75
  },
79
76
  "./try": {
80
- "import": {
81
- "types": "./dist/try/index.d.ts",
82
- "default": "./dist/try/index.js"
83
- }
77
+ "types": "./dist/try/index.d.ts",
78
+ "import": "./dist/try/index.js",
79
+ "default": "./dist/try/index.js"
84
80
  },
85
81
  "./list": {
86
- "import": {
87
- "types": "./dist/list/index.d.ts",
88
- "default": "./dist/list/index.js"
89
- }
82
+ "types": "./dist/list/index.d.ts",
83
+ "import": "./dist/list/index.js",
84
+ "default": "./dist/list/index.js"
90
85
  },
91
86
  "./conditional": {
92
- "import": {
93
- "types": "./dist/conditional/index.d.ts",
94
- "default": "./dist/conditional/index.js"
95
- }
87
+ "types": "./dist/conditional/index.d.ts",
88
+ "import": "./dist/conditional/index.js",
89
+ "default": "./dist/conditional/index.js"
96
90
  },
97
91
  "./do": {
98
- "import": {
99
- "types": "./dist/do/index.d.ts",
100
- "default": "./dist/do/index.js"
101
- }
92
+ "types": "./dist/do/index.d.ts",
93
+ "import": "./dist/do/index.js",
94
+ "default": "./dist/do/index.js"
102
95
  },
103
96
  "./lazy": {
104
- "import": {
105
- "types": "./dist/lazy/index.d.ts",
106
- "default": "./dist/lazy/index.js"
107
- }
97
+ "types": "./dist/lazy/index.d.ts",
98
+ "import": "./dist/lazy/index.js",
99
+ "default": "./dist/lazy/index.js"
108
100
  },
109
101
  "./task": {
110
- "import": {
111
- "types": "./dist/core/task/index.d.ts",
112
- "default": "./dist/core/task/index.js"
113
- }
102
+ "types": "./dist/core/task/index.d.ts",
103
+ "import": "./dist/core/task/index.js",
104
+ "default": "./dist/core/task/index.js"
114
105
  },
115
106
  "./fpromise": {
116
- "import": {
117
- "types": "./dist/fpromise/index.d.ts",
118
- "default": "./dist/fpromise/index.js"
119
- }
107
+ "types": "./dist/fpromise/index.d.ts",
108
+ "import": "./dist/fpromise/index.js",
109
+ "default": "./dist/fpromise/index.js"
120
110
  },
121
111
  "./io": {
122
- "import": {
123
- "types": "./dist/io/index.d.ts",
124
- "default": "./dist/io/index.js"
125
- }
112
+ "types": "./dist/io/index.d.ts",
113
+ "import": "./dist/io/index.js",
114
+ "default": "./dist/io/index.js"
126
115
  },
127
116
  "./functype": {
128
- "import": {
129
- "types": "./dist/functype/index.d.ts",
130
- "default": "./dist/functype/index.js"
131
- }
117
+ "types": "./dist/functype/index.d.ts",
118
+ "import": "./dist/functype/index.js",
119
+ "default": "./dist/functype/index.js"
132
120
  },
133
121
  "./typeclass": {
134
- "import": {
135
- "types": "./dist/typeclass/index.d.ts",
136
- "default": "./dist/typeclass/index.js"
137
- }
122
+ "types": "./dist/typeclass/index.d.ts",
123
+ "import": "./dist/typeclass/index.js",
124
+ "default": "./dist/typeclass/index.js"
138
125
  },
139
126
  "./map": {
140
- "import": {
141
- "types": "./dist/map/index.d.ts",
142
- "default": "./dist/map/index.js"
143
- }
127
+ "types": "./dist/map/index.d.ts",
128
+ "import": "./dist/map/index.js",
129
+ "default": "./dist/map/index.js"
144
130
  },
145
131
  "./set": {
146
- "import": {
147
- "types": "./dist/set/index.d.ts",
148
- "default": "./dist/set/index.js"
149
- }
132
+ "types": "./dist/set/index.d.ts",
133
+ "import": "./dist/set/index.js",
134
+ "default": "./dist/set/index.js"
150
135
  },
151
136
  "./tuple": {
152
- "import": {
153
- "types": "./dist/tuple/index.d.ts",
154
- "default": "./dist/tuple/index.js"
155
- }
137
+ "types": "./dist/tuple/index.d.ts",
138
+ "import": "./dist/tuple/index.js",
139
+ "default": "./dist/tuple/index.js"
156
140
  },
157
141
  "./branded": {
158
- "import": {
159
- "types": "./dist/branded/index.d.ts",
160
- "default": "./dist/branded/index.js"
161
- }
142
+ "types": "./dist/branded/index.d.ts",
143
+ "import": "./dist/branded/index.js",
144
+ "default": "./dist/branded/index.js"
162
145
  },
163
146
  "./companion": {
164
- "import": {
165
- "types": "./dist/companion/index.d.ts",
166
- "default": "./dist/companion/index.js"
167
- }
147
+ "types": "./dist/companion/index.d.ts",
148
+ "import": "./dist/companion/index.js",
149
+ "default": "./dist/companion/index.js"
168
150
  },
169
151
  "./serialization": {
170
- "import": {
171
- "types": "./dist/serialization/index.d.ts",
172
- "default": "./dist/serialization/index.js"
173
- }
152
+ "types": "./dist/serialization/index.d.ts",
153
+ "import": "./dist/serialization/index.js",
154
+ "default": "./dist/serialization/index.js"
174
155
  }
175
156
  },
176
157
  "bin": {
@@ -183,5 +164,5 @@
183
164
  "safe-stable-stringify": "^2.5.0"
184
165
  },
185
166
  "sideEffects": false,
186
- "packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
167
+ "packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6"
187
168
  }