diff --git a/.opencode/node_modules/effect/dist/SchemaRepresentation.js.map b/.opencode/node_modules/effect/dist/SchemaRepresentation.js.map index eaed2909605a47165b0cc4dd9e77a873d5c77433..78dc224275fb43dff85ca851967f7dd8f071d2cd 100644 --- a/.opencode/node_modules/effect/dist/SchemaRepresentation.js.map +++ b/.opencode/node_modules/effect/dist/SchemaRepresentation.js.map @@ -1 +1 @@ -{"version":3,"file":"SchemaRepresentation.js","names":["Arr","format","formatPropertyKey","collectBrands","InternalRepresentation","unescapeToken","Option","Predicate","Rec","Schema","Getter","Representation$ref","suspend","$Representation","toJsonAnnotationsBlacklist","Set","fromASTBlacklist","$PrimitiveTree","Tree","Union","Null","Number","Boolean","BigInt","Symbol","String","isPrimitiveTree","is","$Annotations","Record","Unknown","pipe","encodeTo","decode","passthrough","encode","transformOptional","flatMap","r","out","k","v","Object","entries","has","isEmptyRecord","none","some","annotate","identifier","$Null","Struct","_tag","tag","annotations","optional","$Undefined","$Void","$Never","$Unknown","$Any","$IsStringFinite","regExp","RegExp","$IsStringBigInt","$IsStringSymbol","$IsTrimmed","$IsUUID","version","UndefinedOr","Literals","$IsULID","$IsBase64","$IsBase64Url","$IsStartsWith","startsWith","$IsEndsWith","endsWith","$IsIncludes","includes","$IsUppercased","$IsLowercased","$IsCapitalized","$IsUncapitalized","NonNegativeInt","Int","check","isGreaterThanOrEqualTo","$IsMinLength","minLength","$IsMaxLength","maxLength","$IsLengthBetween","minimum","maximum","$IsPattern","$StringMeta","makeCheck","meta","Check$ref","Check","checks","NonEmptyArray","$String","Array","contentMediaType","contentSchema","$IsInt","$IsMultipleOf","divisor","Finite","$IsFinite","$IsGreaterThan","exclusiveMinimum","$IsGreaterThanOrEqualTo","$IsLessThan","exclusiveMaximum","$IsLessThanOrEqualTo","$IsBetween","$NumberMeta","$Number","$Boolean","$IsGreaterThanBigInt","$IsGreaterThanOrEqualToBigInt","$IsLessThanBigInt","$IsLessThanOrEqualToBigInt","$IsBetweenBigInt","$BigIntMeta","$BigInt","$Symbol","$LiteralValue","$Literal","literal","$UniqueSymbol","symbol","$ObjectKeyword","$Enum","enums","Tuple","$TemplateLiteral","parts","$Element","isOptional","type","$IsUnique","$ArraysMeta","$Arrays","elements","rest","$PropertySignature","name","PropertyKey","isMutable","$IndexSignature","parameter","$IsMinProperties","minProperties","$IsMaxProperties","maxProperties","$IsPropertiesLengthBetween","$IsPropertyNames","propertyNames","$ObjectsMeta","$Objects","propertySignatures","indexSignatures","$Union","types","mode","$Reference","$ref","$IsDateValid","$IsGreaterThanDate","Date","$IsGreaterThanOrEqualToDate","$IsLessThanDate","$IsLessThanOrEqualToDate","$IsBetweenDate","$DateMeta","$IsMinSize","minSize","$IsMaxSize","maxSize","$IsSizeBetween","$SizeMeta","$DeclarationMeta","$Declaration","typeParameters","encodedSchema","$Suspend","thunk","$Document","representation","references","$MultiDocument","representations","fromAST","fromASTs","DocumentFromJson","toCodecJson","MultiDocumentFromJson","toMultiDocument","document","toSchemaDefaultReviver","s","recur","typeConstructor","isObject","map","Error","ErrorWithStack","File","FormData","ReadonlyMap","ReadonlySet","Uint8Array","URL","URLSearchParams","Result","Redacted","TimeZone","TimeZoneNamed","TimeZoneOffset","DateTimeUtc","DateTimeZoned","BigDecimal","Chunk","Cause","CauseReason","Duration","Exit","Json","MutableJson","HashMap","HashSet","toSchema","options","slots","Map","on","toSchemaChecks","getSlot","existing","get","slot","state","value","undefined","ref","set","resolveReference","definition","e","reviver","Undefined","Void","Never","Any","fromJsonString","Literal","UniqueSymbol","ObjectKeyword","Enum","fromEntries","TemplateLiteral","optionalKey","isArrayNonEmpty","length","TupleWithRest","fields","ps","withOptional","mutableKey","StructWithRest","every","t","top","schema","toSchemaCheck","toSchemaFilter","makeFilterGroup","filter","a","isStringFinite","isStringBigInt","isStringSymbol","isMinLength","isMaxLength","isLengthBetween","isPattern","isTrimmed","isUUID","isULID","isBase64","isBase64Url","isStartsWith","isEndsWith","isIncludes","isUppercased","isLowercased","isCapitalized","isUncapitalized","isFinite","isInt","isMultipleOf","isGreaterThan","isLessThan","isLessThanOrEqualTo","isBetween","isGreaterThanBigInt","isGreaterThanOrEqualToBigInt","isLessThanBigInt","isLessThanOrEqualToBigInt","isBetweenBigInt","isMinProperties","isMaxProperties","isPropertiesLengthBetween","isPropertyNames","isUnique","isDateValid","isGreaterThanDate","isGreaterThanOrEqualToDate","isLessThanDate","isLessThanOrEqualToDate","isBetweenDate","isMinSize","isMaxSize","isSizeBetween","toJsonSchemaDocument","toJsonSchemaMultiDocument","makeCode","runtime","Type","toCodeDocument","multiDocument","artifacts","ts","topologicalSort","sanitizedReferenceMap","uniqueSanitizedReferences","referenceCount","allRefs","nonRecursives","keys","recursives","ensureUniqueSanitized","code","mapEntries","codes","_","originalRef","sanitized","seed","sanitizeJavaScriptIdentifier","candidate","suffix","add","addSymbol","key","globalThis","keyFor","description","generation","push","addEnum","join","addImport","importDeclaration","g","toRuntimeAnnotate","toRuntimeBrand","toTypeBrand","toRuntimeChecks","toTypeChecks","replacePlaceholders","p","toTypeParts","item","post","slice","toRuntimeIsOptional","toRuntimeAnnotateKey","toTypeIsOptional","pss","isSymbol","nameType","toTypeIsMutable","toRuntimeIsMutable","iss","literals","l","brands","b","c","toTypeCheck","toRuntimeCheck","toRuntimeFilter","toRuntimeAnnotations","ca","toRuntimeRegExp","toRuntimeValue","VALID_ASCII_UPPER_JAVASCRIPT_IDENTIFIER_REGEXP","test","needsPrefix","i","ch","toUpperCase","isAsciiIdPart","isAsciiIdStart","template","items","replace","first","restPatterns","toTypePart","f","toCodeAnnotationsBlacklist","getTime","args","source","flags","trim","fromJsonSchemaDocument","schemas","fromJsonSchemaMultiDocument","dialect","definitions","visited","forEach","u","never","unknown","js","onEnter","isArray","isType","anyOf","collectAnnotations","combine","allOf","reduce","acc","curr","oneOf","split","at","reference","isLiteralValue","const","null_","enum","getType","collectStringChecks","string","collectNumberChecks","boolean","minItems","prefixItems","maxItems","collectArraysChecks","collectProperties","collectIndexSignatures","collectObjectsChecks","combineAnnotations","combineChecks","combineNumberChecks","combineArraysChecks","combineElements","combineRest","combinePropertySignatures","combineIndexSignatures","makeAnnotations","properties","required","hasOwn","patternProperties","pattern","additionalProperties","len","Math","max","thatPropertiesMap","thatp","findIndex","asChecks","isReadonlyArrayNonEmpty","multipleOf","uniqueItems","as","title","default","examples","readOnly","writeOnly","contentEncoding","stringKeys","numberKeys","objectKeys","arrayKeys","identifiers","identifierSet","collectRefs","root","refs","WeakSet","stack","pop","typeParam","part","element","propertySignature","indexSignature","dependencies","id","recursive","indexInStack","dfs","start","dep","delete","inDegree","dependents","deps","queue","deg","next"],"sources":["../src/SchemaRepresentation.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,SAASC,MAAM,EAAEC,iBAAiB,QAAQ,gBAAgB;AAC1D,SAASC,aAAa,QAAQ,kCAAkC;AAChE,OAAO,KAAKC,sBAAsB,MAAM,qCAAqC;AAC7E,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,GAAG,MAAM,aAAa;AAClC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,OAAO,KAAKC,MAAM,MAAM,mBAAmB;AAspB3C;AACA;AACA;AAEA,MAAMC,kBAAkB,gBAAGF,MAAM,CAACG,OAAO,CAAC,MAAMC,eAAe,CAAC;AAEhE,MAAMC,0BAA0B,gBAAgB,IAAIC,GAAG,CAAC,CACtD,GAAGX,sBAAsB,CAACY,gBAAgB,EAC1C,UAAU,EACV,kBAAkB,EAClB,eAAe,CAChB,CAAC;AAUF;;;;;;AAMA,OAAO,MAAMC,cAAc,gBAAgCR,MAAM,CAACS,IAAI,cACpET,MA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AAI8D,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGuH,KAAK,CAAChQ,MAAM,EAAEyI,CAAC,EAAE,EAAE;IACrC,MAAM1O,IAAI,GAAGiW,KAAK,CAACvH,CAAC,CAAC;IACrB9D,aAAa,CAACqB,IAAI,CAAC;MAAEjM,IAAI;MAAEsB,cAAc,EAAEC,UAAU,CAACvB,IAAI;IAAC,CAAE,CAAC;IAE9D,KAAK,MAAMmW,IAAI,IAAIJ,UAAU,CAACtR,GAAG,CAACzE,IAAI,CAAC,IAAI,EAAE,EAAE;MAC7C,MAAMkW,GAAG,GAAG,CAACJ,QAAQ,CAACrR,GAAG,CAAC0R,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;MACzCL,QAAQ,CAAC/Q,GAAG,CAACoR,IAAI,EAAED,GAAG,CAAC;MACvB,IAAIA,GAAG,KAAK,CAAC,EAAED,KAAK,CAAChK,IAAI,CAACkK,IAAI,CAAC;IACjC;EACF;EAEA,MAAMrL,UAAU,GAAmC,EAAE;EACrD,KAAK,MAAM9K,IAAI,IAAIwV,SAAS,EAAE;IAC5B1K,UAAU,CAAC9K,IAAI,CAAC,GAAGuB,UAAU,CAACvB,IAAI,CAAC;EACrC;EAEA,OAAO;IAAE4K,aAAa;IAAEE;EAAU,CAAE;AACtC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"SchemaRepresentation.js","names":["Arr","format","formatPropertyKey","collectBrands","InternalRepresentation","unescapeToken","Option","Predicate","Rec","Schema","SchemaGetter","Representation$ref","suspend","$Representation","toJsonAnnotationsBlacklist","Set","fromASTBlacklist","$PrimitiveTree","Tree","Union","Null","Number","Boolean","BigInt","Symbol","String","isPrimitiveTree","is","$Annotations","Record","Unknown","pipe","encodeTo","decode","passthrough","encode","transformOptional","flatMap","r","out","k","v","Object","entries","has","isEmptyRecord","none","some","annotate","identifier","$Null","Struct","_tag","tag","annotations","optional","$Undefined","$Void","$Never","$Unknown","$Any","$IsStringFinite","regExp","RegExp","$IsStringBigInt","$IsStringSymbol","$IsTrimmed","$IsUUID","version","UndefinedOr","Literals","$IsGUID","$IsULID","$IsBase64","$IsBase64Url","$IsStartsWith","startsWith","$IsEndsWith","endsWith","$IsIncludes","includes","$IsUppercased","$IsLowercased","$IsCapitalized","$IsUncapitalized","NonNegativeInt","Int","check","isGreaterThanOrEqualTo","$IsMinLength","minLength","$IsMaxLength","maxLength","$IsLengthBetween","minimum","maximum","$IsPattern","$StringMeta","makeCheck","meta","Check$ref","Check","checks","NonEmptyArray","$String","Array","contentMediaType","contentSchema","$IsInt","$IsMultipleOf","divisor","Finite","$IsFinite","$IsGreaterThan","exclusiveMinimum","$IsGreaterThanOrEqualTo","$IsLessThan","exclusiveMaximum","$IsLessThanOrEqualTo","$IsBetween","$NumberMeta","$Number","$Boolean","$IsGreaterThanBigInt","$IsGreaterThanOrEqualToBigInt","$IsLessThanBigInt","$IsLessThanOrEqualToBigInt","$IsBetweenBigInt","$BigIntMeta","$BigInt","$Symbol","$LiteralValue","$Literal","literal","$UniqueSymbol","symbol","$ObjectKeyword","$Enum","enums","Tuple","$TemplateLiteral","parts","$Element","isOptional","type","$IsUnique","$ArraysMeta","$Arrays","elements","rest","$PropertySignature","name","PropertyKey","isMutable","$IndexSignature","parameter","$IsMinProperties","minProperties","$IsMaxProperties","maxProperties","$IsPropertiesLengthBetween","$IsPropertyNames","propertyNames","$ObjectsMeta","$Objects","propertySignatures","indexSignatures","$Union","types","mode","$Reference","$ref","$IsDateValid","$IsGreaterThanDate","Date","$IsGreaterThanOrEqualToDate","$IsLessThanDate","$IsLessThanOrEqualToDate","$IsBetweenDate","$DateMeta","$IsMinSize","minSize","$IsMaxSize","maxSize","$IsSizeBetween","$SizeMeta","$DeclarationMeta","$Declaration","typeParameters","encodedSchema","$Suspend","thunk","$Document","representation","references","$MultiDocument","representations","fromAST","fromASTs","DocumentFromJson","toCodecJson","MultiDocumentFromJson","toMultiDocument","document","toSchemaDefaultReviver","s","recur","typeConstructor","isObject","map","Error","options","File","FormData","ReadonlyMap","ReadonlySet","Uint8Array","URL","URLSearchParams","Result","Redacted","TimeZone","TimeZoneNamed","TimeZoneOffset","DateTimeUtc","DateTimeZoned","BigDecimal","Chunk","Cause","CauseReason","Duration","Exit","Json","MutableJson","HashMap","HashSet","toSchema","slots","Map","on","toSchemaChecks","getSlot","existing","get","slot","state","value","undefined","ref","set","resolveReference","definition","e","reviver","Undefined","Void","Never","Any","fromJsonString","Literal","UniqueSymbol","ObjectKeyword","Enum","fromEntries","TemplateLiteral","optionalKey","isArrayNonEmpty","length","TupleWithRest","fields","ps","withOptional","mutableKey","StructWithRest","every","t","top","schema","toSchemaCheck","toSchemaFilter","makeFilterGroup","filter","a","isStringFinite","isStringBigInt","isStringSymbol","isMinLength","isMaxLength","isLengthBetween","isPattern","isTrimmed","isUUID","isGUID","isULID","isBase64","isBase64Url","isStartsWith","isEndsWith","isIncludes","isUppercased","isLowercased","isCapitalized","isUncapitalized","isFinite","isInt","isMultipleOf","isGreaterThan","isLessThan","isLessThanOrEqualTo","isBetween","isGreaterThanBigInt","isGreaterThanOrEqualToBigInt","isLessThanBigInt","isLessThanOrEqualToBigInt","isBetweenBigInt","isMinProperties","isMaxProperties","isPropertiesLengthBetween","isPropertyNames","isUnique","isDateValid","isGreaterThanDate","isGreaterThanOrEqualToDate","isLessThanDate","isLessThanOrEqualToDate","isBetweenDate","isMinSize","isMaxSize","isSizeBetween","toJsonSchemaDocument","toJsonSchemaMultiDocument","makeCode","runtime","Type","toCodeDocument","multiDocument","artifacts","ts","topologicalSort","sanitizedReferenceMap","uniqueSanitizedReferences","referenceCount","allRefs","nonRecursives","keys","recursives","ensureUniqueSanitized","code","mapEntries","codes","_","originalRef","sanitized","seed","sanitizeJavaScriptIdentifier","candidate","suffix","add","addSymbol","key","globalThis","keyFor","description","generation","push","addEnum","join","addImport","importDeclaration","g","toRuntimeAnnotate","toRuntimeBrand","toTypeBrand","toRuntimeChecks","toTypeChecks","replacePlaceholders","p","toTypeParts","item","post","slice","toRuntimeIsOptional","toRuntimeAnnotateKey","toTypeIsOptional","pss","isSymbol","nameType","toTypeIsMutable","toRuntimeIsMutable","iss","literals","l","brands","b","c","toTypeCheck","toRuntimeCheck","toRuntimeFilter","toRuntimeAnnotations","ca","toRuntimeRegExp","toRuntimeValue","VALID_ASCII_UPPER_JAVASCRIPT_IDENTIFIER_REGEXP","test","needsPrefix","i","ch","toUpperCase","isAsciiIdPart","isAsciiIdStart","template","items","replace","first","restPatterns","toTypePart","f","toCodeAnnotationsBlacklist","getTime","args","source","flags","trim","fromJsonSchemaDocument","schemas","fromJsonSchemaMultiDocument","dialect","definitions","visited","forEach","u","never","unknown","js","onEnter","isArray","isType","anyOf","collectAnnotations","combine","allOf","reduce","acc","curr","oneOf","split","at","reference","isLiteralValue","const","null_","enum","getType","collectStringChecks","string","collectNumberChecks","boolean","minItems","prefixItems","maxItems","collectArraysChecks","collectProperties","collectIndexSignatures","collectObjectsChecks","combineAnnotations","combineChecks","combineNumberChecks","combineArraysChecks","combineElements","combineRest","combinePropertySignatures","combineIndexSignatures","makeAnnotations","properties","required","hasOwn","patternProperties","pattern","additionalProperties","len","Math","max","thatPropertiesMap","thatp","findIndex","asChecks","isReadonlyArrayNonEmpty","multipleOf","uniqueItems","as","title","default","examples","readOnly","writeOnly","contentEncoding","stringKeys","numberKeys","objectKeys","arrayKeys","identifiers","identifierSet","collectRefs","root","refs","WeakSet","stack","pop","typeParam","part","element","propertySignature","indexSignature","dependencies","id","recursive","indexInStack","dfs","start","dep","delete","inDegree","dependents","deps","queue","deg","next"],"sources":["../src/SchemaRepresentation.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;AAcA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,SAASC,MAAM,EAAEC,iBAAiB,QAAQ,gBAAgB;AAC1D,SAASC,aAAa,QAAQ,kCAAkC;AAChE,OAAO,KAAKC,sBAAsB,MAAM,qCAAqC;AAC7E,SAASC,aAAa,QAAQ,kBAA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AMmW,IAAI,IAAIJ,UAAU,CAACvR,GAAG,CAACxE,IAAI,CAAC,IAAI,EAAE,EAAE;MAC7C,MAAMkW,GAAG,GAAG,CAACJ,QAAQ,CAACtR,GAAG,CAAC2R,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;MACzCL,QAAQ,CAAChR,GAAG,CAACqR,IAAI,EAAED,GAAG,CAAC;MACvB,IAAIA,GAAG,KAAK,CAAC,EAAED,KAAK,CAAChK,IAAI,CAACkK,IAAI,CAAC;IACjC;EACF;EAEA,MAAMrL,UAAU,GAAmC,EAAE;EACrD,KAAK,MAAM9K,IAAI,IAAIwV,SAAS,EAAE;IAC5B1K,UAAU,CAAC9K,IAAI,CAAC,GAAGuB,UAAU,CAACvB,IAAI,CAAC;EACrC;EAEA,OAAO;IAAE4K,aAAa;IAAEE;EAAU,CAAE;AACtC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts b/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts index ec9e7e704d4eede37f69533efa2ec92c016578d4..63234e4db4f38f4d370b6a209e44d90716e9d1e6 100644 --- a/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts +++ b/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts @@ -1,86 +1,13 @@ /** - * Bidirectional transformations for the Effect Schema system. - * - * A `Transformation` pairs a decode `Getter` and an encode `Getter` into a - * single bidirectional value, used by `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link` to define how values - * are converted between encoded and decoded representations. A `Middleware` - * is the effect-level equivalent — it wraps the entire parsing `Effect` - * pipeline rather than individual values. - * - * ## Mental model - * - * - **Transformation**: A pair of `Getter`s (decode + encode) that convert - * individual values bidirectionally. `T` is the decoded (Type) side, `E` is - * the encoded side. `RD`/`RE` are required Effect services. - * - **Middleware**: Like `Transformation`, but each direction receives the full - * parsing `Effect` and can intercept, retry, or modify the pipeline. - * - **Getter**: A single-direction transform `Option → Effect, Issue, R>` - * (see `SchemaGetter`). - * - **flip()**: Swaps decode and encode, turning a `Transformation` into - * `Transformation`. - * - **compose()**: Chains two transformations left-to-right on the decode side - * and right-to-left on the encode side. - * - **passthrough**: The identity transformation — no conversion in either - * direction. - * - * ## Common tasks - * - * - Convert values purely (sync, infallible) → {@link transform} - * - Convert values with possible failure → {@link transformOrFail} - * - Handle optional/missing keys → {@link transformOptional} - * - Build from existing Getters → {@link make} - * - No-op identity transformation → {@link passthrough} - * - Subtype/supertype coercion → {@link passthroughSupertype}, {@link passthroughSubtype} - * - Trim/case strings → {@link trim}, {@link toLowerCase}, {@link toUpperCase}, {@link capitalize}, {@link uncapitalize}, {@link snakeToCamel} - * - Parse key-value strings → {@link splitKeyValue} - * - Coerce string ↔ number/bigint → {@link numberFromString}, {@link bigintFromString} - * - Coerce string ↔ Date/Duration → {@link dateFromString}, {@link durationFromString} - * - Decode durations → {@link durationFromNanos}, {@link durationFromMillis} - * - Wrap nullable/optional as Option → {@link optionFromNullOr}, {@link optionFromOptionalKey}, {@link optionFromOptional} - * - Parse URLs → {@link urlFromString} - * - Base64 ↔ Uint8Array → {@link uint8ArrayFromBase64String} - * - Base64 ↔ string → {@link stringFromBase64String} - * - URI component ↔ string → {@link stringFromUriComponent} - * - JSON string ↔ unknown → {@link fromJsonString} - * - FormData/URLSearchParams ↔ unknown → {@link fromFormData}, {@link fromURLSearchParams} - * - Check if a value is a Transformation → {@link isTransformation} - * - * ## Gotchas - * - * - `Transformation` operates on individual values; `Middleware` wraps the - * entire parsing Effect. Choose accordingly. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - String transformations like `trim`, `toLowerCase`, and `toUpperCase` use - * `passthrough` on the encode side — they are lossy and do not round-trip. - * - `durationFromNanos` encode can fail if the Duration cannot be represented - * as a `bigint`. - * - * ## Quickstart - * - * **Example** (Defining a custom transformation with Schema.decodeTo) + * Builds two-way conversions used by schemas. * - * ```ts - * import { Schema, SchemaTransformation } from "effect" - * - * const CentsFromDollars = Schema.Number.pipe( - * Schema.decodeTo( - * Schema.Number, - * SchemaTransformation.transform({ - * decode: (dollars) => dollars * 100, - * encode: (cents) => cents / 100 - * }) - * ) - * ) - * ``` - * - * ## See also - * - * - {@link Transformation} — the core bidirectional transformation class - * - {@link Middleware} — effect-pipeline-level transformation - * - {@link transform} — most common constructor - * - {@link passthrough} — identity transformation + * A `Transformation` describes how to decode an encoded value into a + * decoded value and how to encode it back again. Schema APIs use + * transformations to connect two representations, such as a string and a + * number, a JSON value and a richer TypeScript value, or a form field and an + * application value. This module includes transformation and middleware types, + * constructors for pure or effectful conversions, and common conversions used + * by the Schema module. * * @since 4.0.0 */ @@ -89,24 +16,25 @@ import * as DateTime from "./DateTime.ts"; import * as Duration from "./Duration.ts"; import * as Effect from "./Effect.ts"; import * as Option from "./Option.ts"; -import type * as AST from "./SchemaAST.ts"; -import * as Getter from "./SchemaGetter.ts"; -import * as Issue from "./SchemaIssue.ts"; +import type * as SchemaAST from "./SchemaAST.ts"; +import * as SchemaGetter from "./SchemaGetter.ts"; +import * as SchemaIssue from "./SchemaIssue.ts"; /** - * A middleware that wraps the entire parsing `Effect` pipeline for both + * Middleware that wraps the entire parsing `Effect` pipeline for both * decode and encode directions. * + * **When to use** + * + * Use when you need a schema middleware to catch or recover from parsing + * errors (e.g. `Schema.catchDecoding`), run side effects around the parsing + * pipeline, or access the full `Effect` rather than a single decoded value. + * + * **Details** + * * Unlike `Transformation`, which operates on individual values via `Getter`, * `Middleware` receives the full `Effect` produced by the inner schema and can * intercept, modify, retry, or replace it. * - * When to use this: - * - You need to catch or recover from parsing errors (e.g. `Schema.catchDecoding`). - * - You need to run side effects around the parsing pipeline. - * - You need access to the full `Effect` rather than a single decoded value. - * - * Behavior: - * - Immutable — constructing a Middleware does not mutate existing instances. * - `decode` receives an `Effect, Issue, RDE>` and returns * `Effect, Issue, RDT>`. * - `encode` receives an `Effect, Issue, RET>` and returns @@ -128,34 +56,36 @@ import * as Issue from "./SchemaIssue.ts"; * ) * ``` * - * See also: - * - {@link Transformation} — value-level bidirectional transformation + * @see {@link Transformation} — value-level bidirectional transformation * - * @category model + * @category models * @since 4.0.0 */ export declare class Middleware { readonly _tag = "Middleware"; - readonly decode: (effect: Effect.Effect, Issue.Issue, RDE>, options: AST.ParseOptions) => Effect.Effect, Issue.Issue, RDT>; - readonly encode: (effect: Effect.Effect, Issue.Issue, RET>, options: AST.ParseOptions) => Effect.Effect, Issue.Issue, REE>; - constructor(decode: (effect: Effect.Effect, Issue.Issue, RDE>, options: AST.ParseOptions) => Effect.Effect, Issue.Issue, RDT>, encode: (effect: Effect.Effect, Issue.Issue, RET>, options: AST.ParseOptions) => Effect.Effect, Issue.Issue, REE>); + readonly decode: (effect: Effect.Effect, SchemaIssue.Issue, RDE>, options: SchemaAST.ParseOptions) => Effect.Effect, SchemaIssue.Issue, RDT>; + readonly encode: (effect: Effect.Effect, SchemaIssue.Issue, RET>, options: SchemaAST.ParseOptions) => Effect.Effect, SchemaIssue.Issue, REE>; + constructor(decode: (effect: Effect.Effect, SchemaIssue.Issue, RDE>, options: SchemaAST.ParseOptions) => Effect.Effect, SchemaIssue.Issue, RDT>, encode: (effect: Effect.Effect, SchemaIssue.Issue, RET>, options: SchemaAST.ParseOptions) => Effect.Effect, SchemaIssue.Issue, REE>); flip(): Middleware; } declare const TypeId = "~effect/SchemaTransformation/Transformation"; /** - * A bidirectional transformation between a decoded type `T` and an encoded + * Represents a bidirectional transformation between a decoded type `T` and an encoded * type `E`, built from a pair of `Getter`s. * - * This is the primary building block for `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link`. Each direction is a - * `SchemaGetter.Getter` that handles optionality, failure, and Effect services. + * **When to use** * - * When to use this: - * - You need to define how a schema converts between two representations. + * Use when you need a schema transformation that defines how a schema converts + * between two representations. * - You want to compose multiple transformations into a pipeline. * - You want to flip a transformation to swap decode/encode. * - * Behavior: + * **Details** + * + * This is the primary building block for `Schema.decodeTo`, `Schema.encodeTo`, + * `Schema.decode`, `Schema.encode`, and `Schema.link`. Each direction is a + * `SchemaGetter.Getter` that handles optionality, failure, and Effect services. + * * - Immutable — `flip()` and `compose()` return new instances. * - `flip()` swaps the decode and encode getters. * - `compose(other)` chains: `this.decode` then `other.decode` for decoding, @@ -173,31 +103,33 @@ declare const TypeId = "~effect/SchemaTransformation/Transformation"; * // encode: passthrough (both directions) * ``` * - * See also: - * - {@link make} — construct from `{ decode, encode }` getters - * - {@link transform} — construct from pure functions - * - {@link transformOrFail} — construct from effectful functions - * - {@link Middleware} — effect-pipeline-level alternative + * @see {@link make} — construct from `{ decode, encode }` getters + * @see {@link transform} — construct from pure functions + * @see {@link transformOrFail} — construct from effectful functions + * @see {@link Middleware} — effect-pipeline-level alternative * - * @category model + * @category models * @since 4.0.0 */ export declare class Transformation { readonly [TypeId] = "~effect/SchemaTransformation/Transformation"; readonly _tag = "Transformation"; - readonly decode: Getter.Getter; - readonly encode: Getter.Getter; - constructor(decode: Getter.Getter, encode: Getter.Getter); + readonly decode: SchemaGetter.Getter; + readonly encode: SchemaGetter.Getter; + constructor(decode: SchemaGetter.Getter, encode: SchemaGetter.Getter); flip(): Transformation; compose(other: Transformation): Transformation; } /** * Returns `true` if `u` is a `Transformation` instance. * - * When to use this: - * - Checking whether a value is already a Transformation before wrapping it. + * **When to use** + * + * Use to check whether a value is already a schema transformation before + * wrapping it. + * + * **Details** * - * Behavior: * - Pure predicate, no side effects. * - Acts as a TypeScript type guard. * @@ -213,10 +145,10 @@ export declare class Transformation * // false * ``` * - * See also: - * - {@link Transformation} - * - {@link make} + * @see {@link Transformation} + * @see {@link make} * + * @category guards * @since 4.0.0 */ export declare function isTransformation(u: unknown): u is Transformation; @@ -224,12 +156,14 @@ export declare function isTransformation(u: unknown): u is Transformation(options: { - readonly decode: Getter.Getter; - readonly encode: Getter.Getter; + readonly decode: SchemaGetter.Getter; + readonly encode: SchemaGetter.Getter; }) => Transformation; /** * Creates a `Transformation` from effectful decode and encode functions that * can fail with `Issue`. * - * When to use this: - * - The transformation can fail (e.g. parsing, validation). - * - The transformation requires Effect services. + * **When to use** + * + * Use when you need a schema transformation that may fail or require Effect + * services. + * + * **Details** * - * Behavior: * - Each function receives the input value and `ParseOptions`. * - Must return an `Effect` that succeeds with the output or fails with `Issue`. * - Skips `None` inputs (missing keys) — functions are only called on present values. @@ -288,26 +224,28 @@ export declare const make: (options: { * ) * ``` * - * See also: - * - {@link transform} — for infallible, pure transformations - * - {@link transformOptional} — for transformations that handle missing keys - * - {@link make} — for transformations from existing Getters + * @see {@link transform} — for infallible, pure transformations + * @see {@link transformOptional} — for transformations that handle missing keys + * @see {@link make} — for transformations from existing Getters * - * @since 4.0.0 + * @category constructors + * @since 3.10.0 */ export declare function transformOrFail(options: { - readonly decode: (e: E, options: AST.ParseOptions) => Effect.Effect; - readonly encode: (t: T, options: AST.ParseOptions) => Effect.Effect; + readonly decode: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect; + readonly encode: (t: T, options: SchemaAST.ParseOptions) => Effect.Effect; }): Transformation; /** * Creates a `Transformation` from pure (sync, infallible) decode and encode * functions. * - * When to use this: - * - The conversion cannot fail. - * - No Effect services are needed. + * **When to use** + * + * Use when you need an infallible schema transformation that does not require + * Effect services. + * + * **Details** * - * Behavior: * - Each function receives the input and returns the output directly. * - Skips `None` inputs (missing keys) — functions are only called on present values. * - Does not allocate Effects internally; uses optimized sync path. @@ -328,12 +266,12 @@ export declare function transformOrFail(options: { * ) * ``` * - * See also: - * - {@link transformOrFail} — for fallible or effectful transformations - * - {@link transformOptional} — for transformations that handle missing keys - * - {@link passthrough} — when no conversion is needed + * @see {@link transformOrFail} — for fallible or effectful transformations + * @see {@link transformOptional} — for transformations that handle missing keys + * @see {@link passthrough} — when no conversion is needed * - * @since 4.0.0 + * @category constructors + * @since 3.10.0 */ export declare function transform(options: { readonly decode: (input: E) => T; @@ -343,11 +281,14 @@ export declare function transform(options: { * Creates a `Transformation` where decode and encode operate on `Option` * values, giving full control over missing-key handling. * - * When to use this: - * - You need to produce or consume `Option.None` to represent absent keys. + * **When to use** + * + * Use when you need a schema transformation to produce or consume `Option.None` + * for absent keys. * - You are working with optional struct fields. * - * Behavior: + * **Details** + * * - Each function receives `Option` and returns `Option`. * - `Option.None` input means the key is absent; returning `Option.None` * omits the key from the output. @@ -371,11 +312,11 @@ export declare function transform(options: { * }) * ``` * - * See also: - * - {@link transform} — when you don't need Option-level control - * - {@link optionFromOptionalKey} — built-in for the common optional-key-to-Option pattern - * - {@link optionFromOptional} — built-in for optional (undefined) to Option + * @see {@link transform} — when you don't need Option-level control + * @see {@link optionFromOptionalKey} — built-in for the common optional-key-to-Option pattern + * @see {@link optionFromOptional} — built-in for optional (undefined) to Option * + * @category constructors * @since 4.0.0 */ export declare function transformOptional(options: { @@ -383,16 +324,19 @@ export declare function transformOptional(options: { readonly encode: (input: Option.Option) => Option.Option; }): Transformation; /** - * A string-to-string transformation that trims whitespace on decode. + * Transforms strings by trimming whitespace on decode. * Encode is passthrough (no change). * - * When to use this: - * - Normalizing user input by stripping leading/trailing whitespace. + * **When to use** * - * Behavior: - * - Decode: applies `String.prototype.trim()`. - * - Encode: passthrough (returns the string unchanged). - * - Not round-trippable if the original had whitespace. + * Use when you need a schema transformation to normalize user input by + * stripping leading/trailing whitespace. + * + * **Details** + * + * Decoding applies `String.prototype.trim()`. Encoding is passthrough and + * returns the string unchanged. This is not round-trippable if the original had + * whitespace. * * **Example** (Trimming on decode) * @@ -404,26 +348,28 @@ export declare function transformOptional(options: { * ) * ``` * - * See also: - * - {@link toLowerCase} - * - {@link toUpperCase} - * - {@link snakeToCamel} + * @see {@link toLowerCase} + * @see {@link toUpperCase} + * @see {@link snakeToCamel} * * @category String transformations * @since 4.0.0 */ export declare function trim(): Transformation; /** - * A string-to-string transformation that converts snake_case to camelCase + * Transforms strings by converting snake_case to camelCase * on decode and camelCase to snake_case on encode. * - * When to use this: - * - Converting API field names between snake_case and camelCase conventions. + * **When to use** + * + * Use when you need a schema transformation to convert API field names between + * snake_case and camelCase conventions. + * + * **Details** * - * Behavior: - * - Decode: `"my_field_name"` → `"myFieldName"`. - * - Encode: `"myFieldName"` → `"my_field_name"`. - * - Round-trippable for standard snake_case/camelCase. + * Decoding converts values such as `"my_field_name"` to `"myFieldName"`. + * Encoding converts values such as `"myFieldName"` back to `"my_field_name"`. + * The transformation is round-trippable for standard snake_case and camelCase. * * **Example** (Snake to camel conversion) * @@ -435,25 +381,26 @@ export declare function trim(): Transformation; * ) * ``` * - * See also: - * - {@link trim} - * - {@link toLowerCase} + * @see {@link trim} + * @see {@link toLowerCase} * * @category String transformations * @since 4.0.0 */ export declare function snakeToCamel(): Transformation; /** - * A string-to-string transformation that lowercases on decode. + * Transforms strings by lowercasing on decode. * Encode is passthrough. * - * When to use this: - * - Normalizing strings to lowercase (e.g. email addresses). + * **When to use** * - * Behavior: - * - Decode: applies `String.prototype.toLowerCase()`. - * - Encode: passthrough. - * - Not round-trippable if the original had uppercase characters. + * Use when you need a schema transformation to normalize strings to lowercase + * (e.g. email addresses). + * + * **Details** + * + * Decoding applies `String.prototype.toLowerCase()`. Encoding is passthrough. + * This is not round-trippable if the original had uppercase characters. * * **Example** (Lowercasing on decode) * @@ -465,25 +412,26 @@ export declare function snakeToCamel(): Transformation; * ) * ``` * - * See also: - * - {@link toUpperCase} - * - {@link trim} + * @see {@link toUpperCase} + * @see {@link trim} * * @category String transformations * @since 4.0.0 */ export declare function toLowerCase(): Transformation; /** - * A string-to-string transformation that uppercases on decode. + * Transforms strings by uppercasing on decode. * Encode is passthrough. * - * When to use this: - * - Normalizing strings to uppercase (e.g. country codes). + * **When to use** + * + * Use when you need a schema transformation to normalize strings to uppercase + * (e.g. country codes). * - * Behavior: - * - Decode: applies `String.prototype.toUpperCase()`. - * - Encode: passthrough. - * - Not round-trippable if the original had lowercase characters. + * **Details** + * + * Decoding applies `String.prototype.toUpperCase()`. Encoding is passthrough. + * This is not round-trippable if the original had lowercase characters. * * **Example** (Uppercasing on decode) * @@ -495,24 +443,26 @@ export declare function toLowerCase(): Transformation; * ) * ``` * - * See also: - * - {@link toLowerCase} - * - {@link trim} + * @see {@link toLowerCase} + * @see {@link trim} * * @category String transformations * @since 4.0.0 */ export declare function toUpperCase(): Transformation; /** - * A string-to-string transformation that capitalizes the first character on + * Transforms strings by capitalizing the first character on * decode. Encode is passthrough. * - * When to use this: - * - Normalizing display names or titles. + * **When to use** + * + * Use when you need a schema transformation to normalize display names or + * titles. * - * Behavior: - * - Decode: uppercases the first character, leaves the rest unchanged. - * - Encode: passthrough. + * **Details** + * + * Decoding uppercases the first character and leaves the rest unchanged. + * Encoding is passthrough. * * **Example** (Capitalizing on decode) * @@ -524,24 +474,26 @@ export declare function toUpperCase(): Transformation; * ) * ``` * - * See also: - * - {@link uncapitalize} - * - {@link toUpperCase} + * @see {@link uncapitalize} + * @see {@link toUpperCase} * * @category String transformations * @since 4.0.0 */ export declare function capitalize(): Transformation; /** - * A string-to-string transformation that lowercases the first character on + * Transforms strings by lowercasing the first character on * decode. Encode is passthrough. * - * When to use this: - * - Normalizing identifiers or field names. + * **When to use** + * + * Use when you need a schema transformation to normalize identifiers or field + * names. * - * Behavior: - * - Decode: lowercases the first character, leaves the rest unchanged. - * - Encode: passthrough. + * **Details** + * + * Decoding lowercases the first character and leaves the rest unchanged. + * Encoding is passthrough. * * **Example** (Uncapitalizing on decode) * @@ -553,26 +505,28 @@ export declare function capitalize(): Transformation; * ) * ``` * - * See also: - * - {@link capitalize} - * - {@link toLowerCase} + * @see {@link capitalize} + * @see {@link toLowerCase} * * @category String transformations * @since 4.0.0 */ export declare function uncapitalize(): Transformation; /** - * A transformation that decodes a string into a record of key-value pairs and + * Transforms a string into a record of key-value pairs and * encodes a record of key-value pairs into a string. * - * When to use this: - * - Parsing query-string-like or config-file-like strings into records. + * **When to use** + * + * Use when you need a schema transformation to parse query-string-like or + * config-file-like strings into records. * - * Behavior: - * - Decode: splits the string by `separator` (default `","`) into pairs, - * then splits each pair by `keyValueSeparator` (default `"="`). - * - Encode: joins the record back into a string using the same separators. - * - Round-trippable when keys and values don't contain the separators. + * **Details** + * + * Decoding splits the string by `separator` (default `","`) into pairs, then + * splits each pair by `keyValueSeparator` (default `"="`). Encoding joins the + * record back into a string using the same separators. The transformation is + * round-trippable when keys and values do not contain the separators. * * **Example** (Parsing key-value pairs) * @@ -588,9 +542,8 @@ export declare function uncapitalize(): Transformation; * // "host:localhost;port:3000" → { host: "localhost", port: "3000" } * ``` * - * See also: - * - {@link trim} - * - {@link snakeToCamel} + * @see {@link trim} + * @see {@link snakeToCamel} * * @category String transformations * @since 4.0.0 @@ -600,15 +553,16 @@ export declare function splitKeyValue(options?: { readonly keyValueSeparator?: string | undefined; }): Transformation, string>; /** - * The identity transformation — returns the input unchanged in both + * Transforms values by returning the input unchanged in both * directions. * - * When to use this: - * - Connecting two schemas that share the same type with no conversion. - * - As a placeholder when `Schema.decodeTo` requires a transformation but - * no actual conversion is needed. + * **When to use** + * + * Use when you need a schema transformation to connect two schemas that share + * the same type with no actual conversion. + * + * **Details** * - * Behavior: * - Both decode and encode are no-ops. * - Returns a shared singleton instance (no allocation per call). * - By default, `T` and `E` must be the same type. Pass `{ strict: false }` @@ -624,11 +578,11 @@ export declare function splitKeyValue(options?: { * ) * ``` * - * See also: - * - {@link passthroughSupertype} - * - {@link passthroughSubtype} - * - {@link transform} + * @see {@link passthroughSupertype} + * @see {@link passthroughSubtype} + * @see {@link transform} * + * @category constructors * @since 4.0.0 */ export declare function passthrough(options: { @@ -636,15 +590,18 @@ export declare function passthrough(options: { }): Transformation; export declare function passthrough(): Transformation; /** - * A passthrough transformation typed so that `T extends E` — the decoded - * type is a supertype of the encoded type. + * Transforms values without changing them, typed so that `T extends E`, where the decoded + * type `T` is a subtype of the encoded type `E`. * - * When to use this: - * - Widening: the decoded side accepts a broader type than the encoded side. + * **When to use** * - * Behavior: - * - Both decode and encode are no-ops (same as {@link passthrough}). - * - Returns a shared singleton instance. + * Use when you need a no-op schema transformation whose decoded side is + * narrower than the encoded side. + * + * **Details** + * + * Both decode and encode are no-ops and return a shared singleton + * transformation. * * **Example** (Supertype passthrough) * @@ -654,21 +611,24 @@ export declare function passthrough(): Transformation; * const t = SchemaTransformation.passthroughSupertype<"a" | "b", string>() * ``` * - * See also: - * - {@link passthrough} - * - {@link passthroughSubtype} + * @see {@link passthrough} + * @see {@link passthroughSubtype} * + * @category constructors * @since 4.0.0 */ export declare function passthroughSupertype(): Transformation; /** - * A passthrough transformation typed so that `E extends T` — the encoded + * Transforms values without changing them, typed so that `E extends T` — the encoded * type is a subtype of the decoded type. * - * When to use this: - * - Narrowing: the encoded side is more specific than the decoded side. + * **When to use** + * + * Use when you need a no-op schema transformation whose encoded side is more + * specific than its decoded side. + * + * **Details** * - * Behavior: * - Both decode and encode are no-ops (same as {@link passthrough}). * - Returns a shared singleton instance. * @@ -680,10 +640,10 @@ export declare function passthroughSupertype(): Transformation() * ``` * - * See also: - * - {@link passthrough} - * - {@link passthroughSupertype} + * @see {@link passthrough} + * @see {@link passthroughSupertype} * + * @category constructors * @since 4.0.0 */ export declare function passthroughSubtype(): Transformation; @@ -691,14 +651,17 @@ export declare function passthroughSubtype(): Transformation(): Transformation; * Decodes a `string` into a `Duration` and encodes a `Duration` back to a * parseable `string`. * - * When to use this: - * - Parsing human-readable duration strings from APIs, config, or user input. + * **When to use** + * + * Use when you need a schema transformation to parse human-readable duration + * strings from APIs, config, or user input. + * + * **Details** * - * Behavior: - * - Decode: accepts any string that `Duration.fromInput` can parse, including - * `"Infinity"` and `"-Infinity"`. - * - Encode: returns `String(duration)`, producing strings like `"2000 millis"` - * or `"10 nanos"` that round-trip through the parser. + * Decoding accepts any string that `Duration.fromInput` can parse, including + * `"Infinity"` and `"-Infinity"`. Encoding returns `String(duration)`, + * producing strings such as `"2000 millis"` or `"10 nanos"` that round-trip + * through the parser. * * **Example** (Duration from string) * @@ -800,10 +769,10 @@ export declare const dateFromString: Transformation; * ) * ``` * - * See also: - * - {@link durationFromNanos} - * - {@link durationFromMillis} + * @see {@link durationFromNanos} + * @see {@link durationFromMillis} * + * @category transforming * @since 4.0.0 */ export declare const durationFromString: Transformation; @@ -811,13 +780,16 @@ export declare const durationFromString: Transformation; /** - * Decodes a `number` (milliseconds) into a `Duration` and encodes a - * `Duration` back to `number` milliseconds. + * Decodes a `number` of milliseconds into a `Duration` and encodes a `Duration` + * back to milliseconds. + * + * **When to use** * - * When to use this: - * - Working with millisecond-precision timestamps (e.g. `Date.now()`). + * Use when you need a schema transformation to decode timeouts, delays, elapsed + * intervals, or other duration values stored as millisecond counts. * - * Behavior: - * - Decode: creates a Duration from milliseconds. Always succeeds. - * - Encode: converts a Duration to milliseconds. Always succeeds. + * **Details** + * + * Decode creates a duration from the number, and encode returns the duration + * length in milliseconds. * * **Example** (Duration from milliseconds) * @@ -856,9 +831,9 @@ export declare const durationFromNanos: Transformation; @@ -866,13 +841,16 @@ export declare const durationFromMillis: Transformation` and encodes `Option` back to * `T | null`. * - * When to use this: - * - Converting nullable API fields to `Option`. + * **When to use** * - * Behavior: - * - Decode: `null` → `Option.none()`, non-null → `Option.some(value)`. - * - Encode: `Option.none()` → `null`, `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert nullable API fields to + * `Option`. + * + * **Details** + * + * Decoding maps `null` to `Option.none()` and non-null values to + * `Option.some(value)`. Encoding maps `Option.none()` to `null` and + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from nullable) * @@ -887,23 +865,26 @@ export declare const durationFromMillis: Transformation(): Transformation, T | null>; /** - * Decodes `T | undefined` into `Option` and encodes `Option` back - * to `T | undefined`. + * Decodes `T | undefined` into `Option` and encodes `Option.none()` back to + * `undefined`. * - * When to use this: - * - Converting undefined-or API fields to `Option`. + * **When to use** * - * Behavior: - * - Decode: `undefined` → `Option.none()`, non-undefined → `Option.some(value)`. - * - Encode: `Option.none()` → `undefined`, `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert API fields that use + * `undefined` for absence to `Option`. + * + * **Details** + * + * Decoding maps `undefined` to `Option.none()` and non-undefined values to + * `Option.some(value)`. Encoding maps `Option.none()` to `undefined` and + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from undefined-or) * @@ -918,26 +899,29 @@ export declare function optionFromNullOr(): Transformation, * ) * ``` * - * See also: - * - {@link optionFromOptionalKey} - * - {@link optionFromOptional} + * @see {@link optionFromOptionalKey} + * @see {@link optionFromOptional} * + * @category transforming * @since 4.0.0 */ export declare function optionFromUndefinedOr(): Transformation, T | undefined>; /** * Decodes `T | null | undefined` into `Option` and encodes `Option` - * back to `T | null` or `T | undefined` depending on the provided `options.onNoneEncoding` (defaults to `undefined`). + * back to `T | null` or `T | undefined` depending on the provided + * `options.onNoneEncoding` (defaults to `undefined`). * - * When to use this: - * - Converting nullish API fields to `Option` when both `null` and - * `undefined` represent absence. + * **When to use** * - * Behavior: - * - Decode: `null` or `undefined` → `Option.none()`, otherwise → `Option.some(value)`. - * - Encode: `Option.none()` → `null` or `undefined` (per `options.onNoneEncoding`), - * `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert nullish API fields to + * `Option` when both `null` and `undefined` represent absence. + * + * **Details** + * + * Decoding maps `null` and `undefined` to `Option.none()` and all other values + * to `Option.some(value)`. Encoding maps `Option.none()` to `null` or + * `undefined` according to `options.onNoneEncoding`, and maps + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from nullish, encoding None as null) * @@ -952,10 +936,10 @@ export declare function optionFromUndefinedOr(): Transformation(options?: { @@ -965,14 +949,17 @@ export declare function optionFromNullishOr(options?: { * Decodes an optional struct key into `Option` and encodes `Option` * back to an optional key. * - * When to use this: - * - Converting optional struct keys (declared with `Schema.optionalKey`) to - * `Option` values. + * **When to use** + * + * Use when you need a schema transformation to convert optional struct keys + * (declared with `Schema.optionalKey`) to `Option` values. * - * Behavior: - * - Decode: absent key (`None`) → `Some(None)`, present key (`Some(v)`) → `Some(Some(v))`. - * - Encode: `Some(None)` → `None` (omit key), `Some(Some(v))` → `Some(v)`. - * - Uses `transformOptional` under the hood. + * **Details** + * + * Decoding maps an absent key (`None`) to `Some(None)` and a present key + * (`Some(v)`) to `Some(Some(v))`. Encoding maps `Some(None)` to `None` to omit + * the key, and maps `Some(Some(v))` to `Some(v)`. This uses + * `transformOptional` under the hood. * * **Example** (Optional key to Option) * @@ -989,25 +976,29 @@ export declare function optionFromNullishOr(options?: { * }) * ``` * - * See also: - * - {@link optionFromOptional} - * - {@link optionFromUndefinedOr} - * - {@link transformOptional} + * @see {@link optionFromOptional} + * @see {@link optionFromUndefinedOr} + * @see {@link transformOptional} * + * @category transforming * @since 4.0.0 */ export declare function optionFromOptionalKey(): Transformation, T>; /** - * Decodes `T | undefined` into `Option` and encodes `Option` back - * to `T | undefined`. + * Decodes optional values into `Option` and encodes `Option.none()` back to + * an omitted optional value. + * + * **When to use** * - * When to use this: - * - Converting optional (possibly `undefined`) values to `Option`. + * Use when you need a schema transformation to convert optional (possibly + * `undefined`) values to `Option`. * - * Behavior: - * - Decode: absent or `undefined` → `Some(None)`, present → `Some(Some(v))`. - * - Encode: `Some(None)` → `None` (omit), `Some(Some(v))` → `Some(v)`. - * - Uses `transformOptional` under the hood; filters out `undefined` on decode. + * **Details** + * + * Decoding maps an absent or `undefined` value to `Some(None)` and a present + * value to `Some(Some(v))`. Encoding maps `Some(None)` to `None` to omit the + * value, and maps `Some(Some(v))` to `Some(v)`. This uses + * `transformOptional` under the hood and filters out `undefined` on decode. * * **Example** (Optional value to Option) * @@ -1024,11 +1015,11 @@ export declare function optionFromOptionalKey(): Transformation(): Transformation, T | undefined>; @@ -1036,13 +1027,15 @@ export declare function optionFromOptional(): Transformation * Decodes a `string` into a `URL` and encodes a `URL` back to its `href` * string. * - * When to use this: - * - Parsing URL strings from user input or API responses. + * **When to use** + * + * Use when you need a schema transformation to parse URL strings from user + * input or API responses. * - * Behavior: - * - Decode: calls `new URL(s)`. Fails with `InvalidValue` if the string - * is not a valid URL. - * - Encode: returns `url.href`. + * **Details** + * + * Decoding calls `new URL(s)` and fails with `InvalidValue` if the string is + * not a valid URL. Encoding returns `url.href`. * * **Example** (URL from string) * @@ -1054,10 +1047,10 @@ export declare function optionFromOptional(): Transformation * ) * ``` * - * See also: - * - {@link numberFromString} - * - {@link transformOrFail} + * @see {@link numberFromString} + * @see {@link transformOrFail} * + * @category transforming * @since 4.0.0 */ export declare const urlFromString: Transformation; @@ -1065,14 +1058,18 @@ export declare const urlFromString: Transformation; * Decodes a `string` into a `BigDecimal` and encodes a `BigDecimal` back to * its string representation. * - * When to use this: - * - Parsing decimal number strings from APIs or user input. + * **When to use** + * + * Use when you need a schema transformation to parse decimal number strings + * from APIs or user input. + * + * **Details** * - * Behavior: - * - Decode: calls `BigDecimal.fromString(s)`. Fails with `InvalidValue` if the - * string is not a valid BigDecimal representation. - * - Encode: returns `BigDecimal.format(bd)`. + * Decoding calls `BigDecimal.fromString(s)` and fails with `InvalidValue` if + * the string is not a valid `BigDecimal` representation. Encoding returns + * `BigDecimal.format(bd)`. * + * @category transforming * @since 4.0.0 */ export declare const bigDecimalFromString: Transformation; @@ -1080,13 +1077,15 @@ export declare const bigDecimalFromString: Transformation, string>; @@ -1109,12 +1108,15 @@ export declare const uint8ArrayFromBase64String: Transformation; /** * Decodes a base64 (URL) encoded `string` into a UTF-8 `string` and encodes it back. * - * When to use this: - * - Handling text data transmitted as Base64 URL-safe strings. + * **When to use** + * + * Use when you need a schema transformation for text data transmitted as Base64 + * URL-safe strings. + * + * **Details** * - * Behavior: - * - Decode: parses the Base64 URL string into a UTF-8 string. - * - Encode: encodes the string as a Base64 URL string. + * Decoding parses the Base64 URL string into a UTF-8 string. Encoding writes + * the string as a Base64 URL string. * * **Example** (String from Base64Url) * @@ -1153,22 +1158,25 @@ export declare const stringFromBase64String: Transformation; * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromBase64Url` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromBase64Url` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ export declare const stringFromBase64UrlString: Transformation; /** * Decodes a hex encoded `string` into a UTF-8 `string` and encodes it back. * - * When to use this: - * - Handling text data transmitted as hexadecimal strings. + * **When to use** * - * Behavior: - * - Decode: parses the hex string into a UTF-8 string. - * - Encode: encodes the string as a hex string. + * Use when you need a schema transformation for text data transmitted as + * hexadecimal strings. + * + * **Details** + * + * Decoding parses the hex string into a UTF-8 string. Encoding writes the + * string as a hex string. * * **Example** (String from Hex) * @@ -1180,10 +1188,10 @@ export declare const stringFromBase64UrlString: Transformation; * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromHex` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromHex` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ export declare const stringFromHexString: Transformation; @@ -1191,14 +1199,16 @@ export declare const stringFromHexString: Transformation; * Decodes a URI component encoded string into a UTF-8 string and encodes a * UTF-8 string into a URI component encoded string. * - * When to use this: - * - Storing structured data in URL query parameters or fragments. - * - Composing with `Schema.parseJson` to round-trip JSON through a URL. + * **When to use** + * + * Use when you need a schema transformation to store structured data in URL + * query parameters or fragments, such as composing with `Schema.parseJson` to + * round-trip JSON through a URL. + * + * **Details** * - * Behavior: - * - Decode: calls `decodeURIComponent`. Fails if the input contains malformed - * percent-encoding sequences. - * - Encode: calls `encodeURIComponent`. + * Decoding calls `decodeURIComponent` and fails if the input contains malformed + * percent-encoding sequences. Encoding calls `encodeURIComponent`. * * **Example** (URI component schema) * @@ -1210,24 +1220,27 @@ export declare const stringFromHexString: Transformation; * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromUriComponent` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromUriComponent` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ export declare const stringFromUriComponent: Transformation; /** - * Decodes a JSON `string` into an `unknown` value and encodes an `unknown` - * value back to a JSON string. + * Decodes a JSON string with `JSON.parse` and encodes a value with + * `JSON.stringify`. * - * When to use this: - * - Parsing JSON strings from HTTP bodies, message queues, or storage. - * - Typically composed with a further schema to validate the parsed structure. + * **When to use** * - * Behavior: - * - Decode: calls `JSON.parse`. Fails if the string is not valid JSON. - * - Encode: calls `JSON.stringify`. + * Use when you need a schema transformation to decode JSON stored or + * transmitted as a string, usually before composing with another schema that + * validates the parsed structure. + * + * **Details** + * + * Decode fails with `InvalidValue` for invalid JSON, and encode can fail with + * `InvalidValue` when `JSON.stringify` cannot serialize the value. * * **Example** (Parsing JSON) * @@ -1239,23 +1252,27 @@ export declare const stringFromUriComponent: Transformation; * ) * ``` * - * See also: - * - {@link uint8ArrayFromBase64String} - * - {@link fromFormData} + * @see {@link uint8ArrayFromBase64String} + * @see {@link fromFormData} * + * @category decoding * @since 4.0.0 */ export declare const fromJsonString: Transformation; /** - * Decodes a `FormData` instance into an `unknown` record and encodes an - * `unknown` record back to `FormData`. + * Decodes a `FormData` instance into a nested record using bracket-path keys and + * encodes object-like values back into `FormData`. + * + * **When to use** + * + * Use when you need a schema transformation for form or multipart payloads + * whose keys, such as `user[name]` or `items[0]`, should become nested data. * - * When to use this: - * - Handling HTML form submissions or multipart API requests. + * **Details** * - * Behavior: - * - Decode: extracts entries from the FormData into a plain object. - * - Encode: constructs a FormData from the record's entries. + * Decode preserves string and `Blob` leaves. Encode flattens nested objects and + * arrays into bracket-path entries and returns an empty `FormData` for + * non-object inputs. * * **Example** (Decoding FormData) * @@ -1267,23 +1284,27 @@ export declare const fromJsonString: Transformation; /** - * Decodes a `URLSearchParams` instance into an `unknown` record and encodes - * an `unknown` record back to `URLSearchParams`. + * Decodes `URLSearchParams` into a nested record using bracket-path keys and + * encodes object-like values back into `URLSearchParams`. * - * When to use this: - * - Parsing URL query parameters. + * **When to use** * - * Behavior: - * - Decode: extracts entries from URLSearchParams into a plain object. - * - Encode: constructs URLSearchParams from the record's entries. + * Use when you need a schema transformation for query strings whose keys, such + * as `filter[name]` or `items[0]`, should become nested data. + * + * **Details** + * + * Decode produces string leaves. Encode flattens nested objects and arrays into + * bracket-path entries and returns empty `URLSearchParams` for non-object + * inputs. * * **Example** (Decoding URLSearchParams) * @@ -1295,30 +1316,116 @@ export declare const fromFormData: Transformation; /** + * Decodes a numeric time-zone offset in milliseconds into a + * `DateTime.TimeZone.Offset` and encodes it back to the offset number. + * + * **When to use** + * + * Use when you need a schema transformation to represent fixed-offset time + * zones with numeric millisecond offsets. + * + * **Details** + * + * Decode uses `DateTime.zoneMakeOffset`; encode returns the offset's `offset` + * field. + * + * @see {@link timeZoneFromString} for IANA or offset string encodings + * @see {@link timeZoneNamedFromString} for IANA named-zone strings + * + * @category transforming * @since 4.0.0 */ export declare const timeZoneOffsetFromNumber: Transformation; /** + * Decodes an IANA time-zone identifier string into a + * `DateTime.TimeZone.Named` and encodes a named time zone back to its `id`. + * + * **When to use** + * + * Use when you need a schema transformation to accept only IANA time-zone + * identifier strings and produce `DateTime.TimeZone.Named` values. + * + * **Details** + * + * Decode fails with `InvalidValue` when the string is not a valid IANA time-zone + * identifier. + * + * @see {@link timeZoneFromString} for time-zone strings that may be either IANA identifiers or offset strings + * + * @category transforming * @since 4.0.0 */ export declare const timeZoneNamedFromString: Transformation; /** + * Decodes a string into a `DateTime.TimeZone` and encodes a time zone back to + * its string representation. + * + * **When to use** + * + * Use when you need a schema transformation to accept either an IANA time-zone + * identifier or an offset string and produce a general `DateTime.TimeZone`. + * + * **Details** + * + * Accepted decode inputs include valid IANA identifiers and offset strings such + * as `"+03:00"`. Decode fails with `InvalidValue` when the string cannot be + * parsed as a time zone. + * + * @see {@link timeZoneNamedFromString} for IANA named-zone strings only + * @see {@link timeZoneOffsetFromNumber} for fixed-offset zones encoded as numbers + * + * @category transforming * @since 4.0.0 */ export declare const timeZoneFromString: Transformation; /** + * Decodes a date-time string into a `DateTime.Utc` and encodes it back to an ISO + * string. + * + * **When to use** + * + * Use when you need a schema transformation to decode date-time strings to a + * normalized `DateTime.Utc` and encode back as a UTC ISO string. + * + * **Details** + * + * Decode accepts strings supported by `DateTime.make`, converts the result to + * UTC, and fails with `InvalidValue` when parsing fails. Encode uses + * `DateTime.formatIso`. + * + * @see {@link dateTimeZonedFromString} for ISO strings that should preserve zoned date-time information + * @see {@link dateFromString} for decoding into JavaScript `Date` + * + * @category transforming * @since 4.0.0 */ export declare const dateTimeUtcFromString: Transformation; /** + * Decodes a zoned date-time string into a `DateTime.Zoned` and encodes it back + * to an ISO zoned string. + * + * **When to use** + * + * Use when you need a schema transformation for ISO zoned date-time strings + * that decode to `DateTime.Zoned` and encode with `DateTime.formatIsoZoned`. + * + * **Details** + * + * Decode uses `DateTime.makeZonedFromString` and fails with `InvalidValue` when + * the input is not a valid zoned date-time. Encode uses + * `DateTime.formatIsoZoned`. + * + * @see {@link dateTimeUtcFromString} for date-time strings that should decode to `DateTime.Utc` and encode as UTC ISO strings + * + * @category transforming * @since 4.0.0 */ export declare const dateTimeZonedFromString: Transformation; diff --git a/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts.map b/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts.map index abdb7e83fbd19166ca7e1c965d6e2548933bfe10..7b406b0cf857a2027c0b81718c99701217424e68 100644 --- a/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts.map +++ b/.opencode/node_modules/effect/dist/SchemaTransformation.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SchemaTransformation.d.ts","sourceRoot":"","sources":["../src/SchemaTransformation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AAEH,OAAO,KAA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;;;;GA4BG;AACH,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAG9D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAGjE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,cAAc,+CAG1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,YAAY,iDAGxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,mBAAmB,wDAG/B,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAMpF,CAAA;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAYlF,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAWvE,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAYrE,CAAA;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAYzE,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SchemaTransformation.js b/.opencode/node_modules/effect/dist/SchemaTransformation.js index 9d28e223424c786c03b4d183f605736a843fba44..27779260bc8924e5cb781ff6c7eb3250d5b9c308 100644 --- a/.opencode/node_modules/effect/dist/SchemaTransformation.js +++ b/.opencode/node_modules/effect/dist/SchemaTransformation.js @@ -1,86 +1,13 @@ /** - * Bidirectional transformations for the Effect Schema system. - * - * A `Transformation` pairs a decode `Getter` and an encode `Getter` into a - * single bidirectional value, used by `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link` to define how values - * are converted between encoded and decoded representations. A `Middleware` - * is the effect-level equivalent — it wraps the entire parsing `Effect` - * pipeline rather than individual values. - * - * ## Mental model - * - * - **Transformation**: A pair of `Getter`s (decode + encode) that convert - * individual values bidirectionally. `T` is the decoded (Type) side, `E` is - * the encoded side. `RD`/`RE` are required Effect services. - * - **Middleware**: Like `Transformation`, but each direction receives the full - * parsing `Effect` and can intercept, retry, or modify the pipeline. - * - **Getter**: A single-direction transform `Option → Effect, Issue, R>` - * (see `SchemaGetter`). - * - **flip()**: Swaps decode and encode, turning a `Transformation` into - * `Transformation`. - * - **compose()**: Chains two transformations left-to-right on the decode side - * and right-to-left on the encode side. - * - **passthrough**: The identity transformation — no conversion in either - * direction. - * - * ## Common tasks - * - * - Convert values purely (sync, infallible) → {@link transform} - * - Convert values with possible failure → {@link transformOrFail} - * - Handle optional/missing keys → {@link transformOptional} - * - Build from existing Getters → {@link make} - * - No-op identity transformation → {@link passthrough} - * - Subtype/supertype coercion → {@link passthroughSupertype}, {@link passthroughSubtype} - * - Trim/case strings → {@link trim}, {@link toLowerCase}, {@link toUpperCase}, {@link capitalize}, {@link uncapitalize}, {@link snakeToCamel} - * - Parse key-value strings → {@link splitKeyValue} - * - Coerce string ↔ number/bigint → {@link numberFromString}, {@link bigintFromString} - * - Coerce string ↔ Date/Duration → {@link dateFromString}, {@link durationFromString} - * - Decode durations → {@link durationFromNanos}, {@link durationFromMillis} - * - Wrap nullable/optional as Option → {@link optionFromNullOr}, {@link optionFromOptionalKey}, {@link optionFromOptional} - * - Parse URLs → {@link urlFromString} - * - Base64 ↔ Uint8Array → {@link uint8ArrayFromBase64String} - * - Base64 ↔ string → {@link stringFromBase64String} - * - URI component ↔ string → {@link stringFromUriComponent} - * - JSON string ↔ unknown → {@link fromJsonString} - * - FormData/URLSearchParams ↔ unknown → {@link fromFormData}, {@link fromURLSearchParams} - * - Check if a value is a Transformation → {@link isTransformation} - * - * ## Gotchas - * - * - `Transformation` operates on individual values; `Middleware` wraps the - * entire parsing Effect. Choose accordingly. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - String transformations like `trim`, `toLowerCase`, and `toUpperCase` use - * `passthrough` on the encode side — they are lossy and do not round-trip. - * - `durationFromNanos` encode can fail if the Duration cannot be represented - * as a `bigint`. - * - * ## Quickstart - * - * **Example** (Defining a custom transformation with Schema.decodeTo) + * Builds two-way conversions used by schemas. * - * ```ts - * import { Schema, SchemaTransformation } from "effect" - * - * const CentsFromDollars = Schema.Number.pipe( - * Schema.decodeTo( - * Schema.Number, - * SchemaTransformation.transform({ - * decode: (dollars) => dollars * 100, - * encode: (cents) => cents / 100 - * }) - * ) - * ) - * ``` - * - * ## See also - * - * - {@link Transformation} — the core bidirectional transformation class - * - {@link Middleware} — effect-pipeline-level transformation - * - {@link transform} — most common constructor - * - {@link passthrough} — identity transformation + * A `Transformation` describes how to decode an encoded value into a + * decoded value and how to encode it back again. Schema APIs use + * transformations to connect two representations, such as a string and a + * number, a JSON value and a richer TypeScript value, or a form field and an + * application value. This module includes transformation and middleware types, + * constructors for pure or effectful conversions, and common conversions used + * by the Schema module. * * @since 4.0.0 */ @@ -88,26 +15,27 @@ import * as BigDecimal from "./BigDecimal.js"; import * as DateTime from "./DateTime.js"; import * as Duration from "./Duration.js"; import * as Effect from "./Effect.js"; -import { formatDate } from "./Formatter.js"; +import { format, formatDate, formatJson } from "./Formatter.js"; import * as Option from "./Option.js"; import * as Predicate from "./Predicate.js"; -import * as Getter from "./SchemaGetter.js"; -import * as Issue from "./SchemaIssue.js"; +import * as SchemaGetter from "./SchemaGetter.js"; +import * as SchemaIssue from "./SchemaIssue.js"; /** - * A middleware that wraps the entire parsing `Effect` pipeline for both + * Middleware that wraps the entire parsing `Effect` pipeline for both * decode and encode directions. * + * **When to use** + * + * Use when you need a schema middleware to catch or recover from parsing + * errors (e.g. `Schema.catchDecoding`), run side effects around the parsing + * pipeline, or access the full `Effect` rather than a single decoded value. + * + * **Details** + * * Unlike `Transformation`, which operates on individual values via `Getter`, * `Middleware` receives the full `Effect` produced by the inner schema and can * intercept, modify, retry, or replace it. * - * When to use this: - * - You need to catch or recover from parsing errors (e.g. `Schema.catchDecoding`). - * - You need to run side effects around the parsing pipeline. - * - You need access to the full `Effect` rather than a single decoded value. - * - * Behavior: - * - Immutable — constructing a Middleware does not mutate existing instances. * - `decode` receives an `Effect, Issue, RDE>` and returns * `Effect, Issue, RDT>`. * - `encode` receives an `Effect, Issue, RET>` and returns @@ -129,10 +57,9 @@ import * as Issue from "./SchemaIssue.js"; * ) * ``` * - * See also: - * - {@link Transformation} — value-level bidirectional transformation + * @see {@link Transformation} — value-level bidirectional transformation * - * @category model + * @category models * @since 4.0.0 */ export class Middleware { @@ -149,19 +76,22 @@ export class Middleware { } const TypeId = "~effect/SchemaTransformation/Transformation"; /** - * A bidirectional transformation between a decoded type `T` and an encoded + * Represents a bidirectional transformation between a decoded type `T` and an encoded * type `E`, built from a pair of `Getter`s. * - * This is the primary building block for `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link`. Each direction is a - * `SchemaGetter.Getter` that handles optionality, failure, and Effect services. + * **When to use** * - * When to use this: - * - You need to define how a schema converts between two representations. + * Use when you need a schema transformation that defines how a schema converts + * between two representations. * - You want to compose multiple transformations into a pipeline. * - You want to flip a transformation to swap decode/encode. * - * Behavior: + * **Details** + * + * This is the primary building block for `Schema.decodeTo`, `Schema.encodeTo`, + * `Schema.decode`, `Schema.encode`, and `Schema.link`. Each direction is a + * `SchemaGetter.Getter` that handles optionality, failure, and Effect services. + * * - Immutable — `flip()` and `compose()` return new instances. * - `flip()` swaps the decode and encode getters. * - `compose(other)` chains: `this.decode` then `other.decode` for decoding, @@ -179,13 +109,12 @@ const TypeId = "~effect/SchemaTransformation/Transformation"; * // encode: passthrough (both directions) * ``` * - * See also: - * - {@link make} — construct from `{ decode, encode }` getters - * - {@link transform} — construct from pure functions - * - {@link transformOrFail} — construct from effectful functions - * - {@link Middleware} — effect-pipeline-level alternative + * @see {@link make} — construct from `{ decode, encode }` getters + * @see {@link transform} — construct from pure functions + * @see {@link transformOrFail} — construct from effectful functions + * @see {@link Middleware} — effect-pipeline-level alternative * - * @category model + * @category models * @since 4.0.0 */ export class Transformation { @@ -207,10 +136,13 @@ export class Transformation { /** * Returns `true` if `u` is a `Transformation` instance. * - * When to use this: - * - Checking whether a value is already a Transformation before wrapping it. + * **When to use** + * + * Use to check whether a value is already a schema transformation before + * wrapping it. + * + * **Details** * - * Behavior: * - Pure predicate, no side effects. * - Acts as a TypeScript type guard. * @@ -226,10 +158,10 @@ export class Transformation { * // false * ``` * - * See also: - * - {@link Transformation} - * - {@link make} + * @see {@link Transformation} + * @see {@link make} * + * @category guards * @since 4.0.0 */ export function isTransformation(u) { @@ -239,12 +171,14 @@ export function isTransformation(u) { * Constructs a `Transformation` from an object with `decode` and `encode` * `Getter`s. If the input is already a `Transformation`, returns it as-is. * - * When to use this: - * - You already have `Getter` instances and want to pair them. + * **When to use** + * + * Use when you already have schema getter instances and want to pair them into + * a schema transformation. * - You want idempotent wrapping (won't double-wrap). * - * Behavior: - * - Does not mutate the input. + * **Details** + * * - Returns the input unchanged if it is already a `Transformation`. * * **Example** (Wrapping existing getters) @@ -258,12 +192,12 @@ export function isTransformation(u) { * }) * ``` * - * See also: - * - {@link transform} — simpler constructor from pure functions - * - {@link transformOrFail} — constructor from effectful functions - * - {@link Transformation} + * @see {@link transform} — simpler constructor from pure functions + * @see {@link transformOrFail} — constructor from effectful functions + * @see {@link Transformation} * - * @since 4.0.0 + * @category constructors + * @since 3.10.0 */ export const make = options => { if (isTransformation(options)) { @@ -275,11 +209,13 @@ export const make = options => { * Creates a `Transformation` from effectful decode and encode functions that * can fail with `Issue`. * - * When to use this: - * - The transformation can fail (e.g. parsing, validation). - * - The transformation requires Effect services. + * **When to use** + * + * Use when you need a schema transformation that may fail or require Effect + * services. + * + * **Details** * - * Behavior: * - Each function receives the input value and `ParseOptions`. * - Must return an `Effect` that succeeds with the output or fails with `Issue`. * - Skips `None` inputs (missing keys) — functions are only called on present values. @@ -305,25 +241,27 @@ export const make = options => { * ) * ``` * - * See also: - * - {@link transform} — for infallible, pure transformations - * - {@link transformOptional} — for transformations that handle missing keys - * - {@link make} — for transformations from existing Getters + * @see {@link transform} — for infallible, pure transformations + * @see {@link transformOptional} — for transformations that handle missing keys + * @see {@link make} — for transformations from existing Getters * - * @since 4.0.0 + * @category constructors + * @since 3.10.0 */ export function transformOrFail(options) { - return new Transformation(Getter.transformOrFail(options.decode), Getter.transformOrFail(options.encode)); + return new Transformation(SchemaGetter.transformOrFail(options.decode), SchemaGetter.transformOrFail(options.encode)); } /** * Creates a `Transformation` from pure (sync, infallible) decode and encode * functions. * - * When to use this: - * - The conversion cannot fail. - * - No Effect services are needed. + * **When to use** + * + * Use when you need an infallible schema transformation that does not require + * Effect services. + * + * **Details** * - * Behavior: * - Each function receives the input and returns the output directly. * - Skips `None` inputs (missing keys) — functions are only called on present values. * - Does not allocate Effects internally; uses optimized sync path. @@ -344,25 +282,28 @@ export function transformOrFail(options) { * ) * ``` * - * See also: - * - {@link transformOrFail} — for fallible or effectful transformations - * - {@link transformOptional} — for transformations that handle missing keys - * - {@link passthrough} — when no conversion is needed + * @see {@link transformOrFail} — for fallible or effectful transformations + * @see {@link transformOptional} — for transformations that handle missing keys + * @see {@link passthrough} — when no conversion is needed * - * @since 4.0.0 + * @category constructors + * @since 3.10.0 */ export function transform(options) { - return new Transformation(Getter.transform(options.decode), Getter.transform(options.encode)); + return new Transformation(SchemaGetter.transform(options.decode), SchemaGetter.transform(options.encode)); } /** * Creates a `Transformation` where decode and encode operate on `Option` * values, giving full control over missing-key handling. * - * When to use this: - * - You need to produce or consume `Option.None` to represent absent keys. + * **When to use** + * + * Use when you need a schema transformation to produce or consume `Option.None` + * for absent keys. * - You are working with optional struct fields. * - * Behavior: + * **Details** + * * - Each function receives `Option` and returns `Option`. * - `Option.None` input means the key is absent; returning `Option.None` * omits the key from the output. @@ -386,27 +327,30 @@ export function transform(options) { * }) * ``` * - * See also: - * - {@link transform} — when you don't need Option-level control - * - {@link optionFromOptionalKey} — built-in for the common optional-key-to-Option pattern - * - {@link optionFromOptional} — built-in for optional (undefined) to Option + * @see {@link transform} — when you don't need Option-level control + * @see {@link optionFromOptionalKey} — built-in for the common optional-key-to-Option pattern + * @see {@link optionFromOptional} — built-in for optional (undefined) to Option * + * @category constructors * @since 4.0.0 */ export function transformOptional(options) { - return new Transformation(Getter.transformOptional(options.decode), Getter.transformOptional(options.encode)); + return new Transformation(SchemaGetter.transformOptional(options.decode), SchemaGetter.transformOptional(options.encode)); } /** - * A string-to-string transformation that trims whitespace on decode. + * Transforms strings by trimming whitespace on decode. * Encode is passthrough (no change). * - * When to use this: - * - Normalizing user input by stripping leading/trailing whitespace. + * **When to use** + * + * Use when you need a schema transformation to normalize user input by + * stripping leading/trailing whitespace. * - * Behavior: - * - Decode: applies `String.prototype.trim()`. - * - Encode: passthrough (returns the string unchanged). - * - Not round-trippable if the original had whitespace. + * **Details** + * + * Decoding applies `String.prototype.trim()`. Encoding is passthrough and + * returns the string unchanged. This is not round-trippable if the original had + * whitespace. * * **Example** (Trimming on decode) * @@ -418,28 +362,30 @@ export function transformOptional(options) { * ) * ``` * - * See also: - * - {@link toLowerCase} - * - {@link toUpperCase} - * - {@link snakeToCamel} + * @see {@link toLowerCase} + * @see {@link toUpperCase} + * @see {@link snakeToCamel} * * @category String transformations * @since 4.0.0 */ export function trim() { - return new Transformation(Getter.trim(), Getter.passthrough()); + return new Transformation(SchemaGetter.trim(), SchemaGetter.passthrough()); } /** - * A string-to-string transformation that converts snake_case to camelCase + * Transforms strings by converting snake_case to camelCase * on decode and camelCase to snake_case on encode. * - * When to use this: - * - Converting API field names between snake_case and camelCase conventions. + * **When to use** + * + * Use when you need a schema transformation to convert API field names between + * snake_case and camelCase conventions. * - * Behavior: - * - Decode: `"my_field_name"` → `"myFieldName"`. - * - Encode: `"myFieldName"` → `"my_field_name"`. - * - Round-trippable for standard snake_case/camelCase. + * **Details** + * + * Decoding converts values such as `"my_field_name"` to `"myFieldName"`. + * Encoding converts values such as `"myFieldName"` back to `"my_field_name"`. + * The transformation is round-trippable for standard snake_case and camelCase. * * **Example** (Snake to camel conversion) * @@ -451,27 +397,28 @@ export function trim() { * ) * ``` * - * See also: - * - {@link trim} - * - {@link toLowerCase} + * @see {@link trim} + * @see {@link toLowerCase} * * @category String transformations * @since 4.0.0 */ export function snakeToCamel() { - return new Transformation(Getter.snakeToCamel(), Getter.camelToSnake()); + return new Transformation(SchemaGetter.snakeToCamel(), SchemaGetter.camelToSnake()); } /** - * A string-to-string transformation that lowercases on decode. + * Transforms strings by lowercasing on decode. * Encode is passthrough. * - * When to use this: - * - Normalizing strings to lowercase (e.g. email addresses). + * **When to use** + * + * Use when you need a schema transformation to normalize strings to lowercase + * (e.g. email addresses). * - * Behavior: - * - Decode: applies `String.prototype.toLowerCase()`. - * - Encode: passthrough. - * - Not round-trippable if the original had uppercase characters. + * **Details** + * + * Decoding applies `String.prototype.toLowerCase()`. Encoding is passthrough. + * This is not round-trippable if the original had uppercase characters. * * **Example** (Lowercasing on decode) * @@ -483,27 +430,28 @@ export function snakeToCamel() { * ) * ``` * - * See also: - * - {@link toUpperCase} - * - {@link trim} + * @see {@link toUpperCase} + * @see {@link trim} * * @category String transformations * @since 4.0.0 */ export function toLowerCase() { - return new Transformation(Getter.toLowerCase(), Getter.passthrough()); + return new Transformation(SchemaGetter.toLowerCase(), SchemaGetter.passthrough()); } /** - * A string-to-string transformation that uppercases on decode. + * Transforms strings by uppercasing on decode. * Encode is passthrough. * - * When to use this: - * - Normalizing strings to uppercase (e.g. country codes). + * **When to use** + * + * Use when you need a schema transformation to normalize strings to uppercase + * (e.g. country codes). + * + * **Details** * - * Behavior: - * - Decode: applies `String.prototype.toUpperCase()`. - * - Encode: passthrough. - * - Not round-trippable if the original had lowercase characters. + * Decoding applies `String.prototype.toUpperCase()`. Encoding is passthrough. + * This is not round-trippable if the original had lowercase characters. * * **Example** (Uppercasing on decode) * @@ -515,26 +463,28 @@ export function toLowerCase() { * ) * ``` * - * See also: - * - {@link toLowerCase} - * - {@link trim} + * @see {@link toLowerCase} + * @see {@link trim} * * @category String transformations * @since 4.0.0 */ export function toUpperCase() { - return new Transformation(Getter.toUpperCase(), Getter.passthrough()); + return new Transformation(SchemaGetter.toUpperCase(), SchemaGetter.passthrough()); } /** - * A string-to-string transformation that capitalizes the first character on + * Transforms strings by capitalizing the first character on * decode. Encode is passthrough. * - * When to use this: - * - Normalizing display names or titles. + * **When to use** + * + * Use when you need a schema transformation to normalize display names or + * titles. + * + * **Details** * - * Behavior: - * - Decode: uppercases the first character, leaves the rest unchanged. - * - Encode: passthrough. + * Decoding uppercases the first character and leaves the rest unchanged. + * Encoding is passthrough. * * **Example** (Capitalizing on decode) * @@ -546,26 +496,28 @@ export function toUpperCase() { * ) * ``` * - * See also: - * - {@link uncapitalize} - * - {@link toUpperCase} + * @see {@link uncapitalize} + * @see {@link toUpperCase} * * @category String transformations * @since 4.0.0 */ export function capitalize() { - return new Transformation(Getter.capitalize(), Getter.passthrough()); + return new Transformation(SchemaGetter.capitalize(), SchemaGetter.passthrough()); } /** - * A string-to-string transformation that lowercases the first character on + * Transforms strings by lowercasing the first character on * decode. Encode is passthrough. * - * When to use this: - * - Normalizing identifiers or field names. + * **When to use** * - * Behavior: - * - Decode: lowercases the first character, leaves the rest unchanged. - * - Encode: passthrough. + * Use when you need a schema transformation to normalize identifiers or field + * names. + * + * **Details** + * + * Decoding lowercases the first character and leaves the rest unchanged. + * Encoding is passthrough. * * **Example** (Uncapitalizing on decode) * @@ -577,28 +529,30 @@ export function capitalize() { * ) * ``` * - * See also: - * - {@link capitalize} - * - {@link toLowerCase} + * @see {@link capitalize} + * @see {@link toLowerCase} * * @category String transformations * @since 4.0.0 */ export function uncapitalize() { - return new Transformation(Getter.uncapitalize(), Getter.passthrough()); + return new Transformation(SchemaGetter.uncapitalize(), SchemaGetter.passthrough()); } /** - * A transformation that decodes a string into a record of key-value pairs and + * Transforms a string into a record of key-value pairs and * encodes a record of key-value pairs into a string. * - * When to use this: - * - Parsing query-string-like or config-file-like strings into records. + * **When to use** + * + * Use when you need a schema transformation to parse query-string-like or + * config-file-like strings into records. + * + * **Details** * - * Behavior: - * - Decode: splits the string by `separator` (default `","`) into pairs, - * then splits each pair by `keyValueSeparator` (default `"="`). - * - Encode: joins the record back into a string using the same separators. - * - Round-trippable when keys and values don't contain the separators. + * Decoding splits the string by `separator` (default `","`) into pairs, then + * splits each pair by `keyValueSeparator` (default `"="`). Encoding joins the + * record back into a string using the same separators. The transformation is + * round-trippable when keys and values do not contain the separators. * * **Example** (Parsing key-value pairs) * @@ -614,17 +568,16 @@ export function uncapitalize() { * // "host:localhost;port:3000" → { host: "localhost", port: "3000" } * ``` * - * See also: - * - {@link trim} - * - {@link snakeToCamel} + * @see {@link trim} + * @see {@link snakeToCamel} * * @category String transformations * @since 4.0.0 */ export function splitKeyValue(options) { - return new Transformation(Getter.splitKeyValue(options), Getter.joinKeyValue(options)); + return new Transformation(SchemaGetter.splitKeyValue(options), SchemaGetter.joinKeyValue(options)); } -const passthrough_ = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.passthrough(), /*#__PURE__*/Getter.passthrough()); +const passthrough_ = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.passthrough(), /*#__PURE__*/SchemaGetter.passthrough()); export function passthrough() { return passthrough_; } @@ -638,14 +591,17 @@ export function passthroughSubtype() { * Decodes a `string` into a `number` and encodes a `number` back to a * `string`. * - * When to use this: - * - Parsing numeric strings from APIs, form data, or URL parameters. + * **When to use** * - * Behavior: - * - Decode: coerces the string to a number (like `Number(s)`). - * - Encode: coerces the number to a string (like `String(n)`). - * - Does not validate that the result is finite — combine with - * `Schema.Finite` or `Schema.Int` for stricter checks. + * Use when you need a schema transformation to parse numeric strings from APIs, + * form data, or URL parameters. + * + * **Details** + * + * Decoding coerces the string to a number like `Number(s)`. Encoding coerces + * the number to a string like `String(n)`. This does not validate that the + * result is finite; combine with `Schema.Finite` or `Schema.Int` for stricter + * checks. * * **Example** (Number from string) * @@ -657,25 +613,27 @@ export function passthroughSubtype() { * ) * ``` * - * See also: - * - {@link bigintFromString} - * - {@link transform} + * @see {@link bigintFromString} + * @see {@link transform} * * @category Coercions * @since 4.0.0 */ -export const numberFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.Number(), /*#__PURE__*/Getter.String()); +export const numberFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.Number(), /*#__PURE__*/SchemaGetter.String()); /** * Decodes a `string` into a `bigint` and encodes a `bigint` back to a * `string`. * - * When to use this: - * - Parsing large integer strings (e.g. database IDs, blockchain values). + * **When to use** + * + * Use when you need a schema transformation to parse large integer strings + * (e.g. database IDs, blockchain values). * - * Behavior: - * - Decode: coerces the string to a bigint (like `BigInt(s)`). - * - Encode: coerces the bigint to a string (like `String(n)`). - * - Fails on decode if the string is not a valid bigint representation. + * **Details** + * + * Decoding coerces the string to a bigint like `BigInt(s)`. Encoding coerces + * the bigint to a string like `String(n)`. Decoding fails if the string is not + * a valid bigint representation. * * **Example** (BigInt from string) * @@ -687,24 +645,26 @@ export const numberFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Get * ) * ``` * - * See also: - * - {@link numberFromString} - * - {@link transform} + * @see {@link numberFromString} + * @see {@link transform} * * @category Coercions * @since 4.0.0 */ -export const bigintFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.BigInt(), /*#__PURE__*/Getter.String()); +export const bigintFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.BigInt(), /*#__PURE__*/SchemaGetter.String()); /** * Decodes a `string` into a `Date` and encodes a `Date` back to a `string`. * - * When to use this: - * - Parsing ISO 8601 date strings from APIs or user input. + * **When to use** + * + * Use when you need a schema transformation to parse ISO 8601 date strings from + * APIs or user input. * - * Behavior: - * - Decode: creates a `Date` from the string (like `new Date(s)`). - * - Encode: converts the `Date` to an ISO string (like `date.toISOString()`), - * returning `"Invalid Date"` for invalid dates. + * **Details** + * + * Decoding creates a `Date` from the string like `new Date(s)`. Encoding + * converts the `Date` to an ISO string like `date.toISOString()`, returning + * `"Invalid Date"` for invalid dates. * * **Example** (Date from string) * @@ -716,26 +676,28 @@ export const bigintFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Get * ) * ``` * - * See also: - * - {@link numberFromString} - * - {@link dateTimeUtcFromString} + * @see {@link numberFromString} + * @see {@link dateTimeUtcFromString} * * @category Coercions * @since 4.0.0 */ -export const dateFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.Date(), /*#__PURE__*/Getter.transform(formatDate)); +export const dateFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.Date(), /*#__PURE__*/SchemaGetter.transform(formatDate)); /** * Decodes a `string` into a `Duration` and encodes a `Duration` back to a * parseable `string`. * - * When to use this: - * - Parsing human-readable duration strings from APIs, config, or user input. + * **When to use** + * + * Use when you need a schema transformation to parse human-readable duration + * strings from APIs, config, or user input. * - * Behavior: - * - Decode: accepts any string that `Duration.fromInput` can parse, including - * `"Infinity"` and `"-Infinity"`. - * - Encode: returns `String(duration)`, producing strings like `"2000 millis"` - * or `"10 nanos"` that round-trip through the parser. + * **Details** + * + * Decoding accepts any string that `Duration.fromInput` can parse, including + * `"Infinity"` and `"-Infinity"`. Encoding returns `String(duration)`, + * producing strings such as `"2000 millis"` or `"10 nanos"` that round-trip + * through the parser. * * **Example** (Duration from string) * @@ -747,15 +709,15 @@ export const dateFromString = /*#__PURE__*/new Transformation(/*#__PURE__*/Gette * ) * ``` * - * See also: - * - {@link durationFromNanos} - * - {@link durationFromMillis} + * @see {@link durationFromNanos} + * @see {@link durationFromMillis} * + * @category transforming * @since 4.0.0 */ export const durationFromString = /*#__PURE__*/transformOrFail({ decode: s => Option.match(Duration.fromInput(s), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(s), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid Duration string: ${s}` })), onSome: Effect.succeed @@ -766,13 +728,16 @@ export const durationFromString = /*#__PURE__*/transformOrFail({ * Decodes a `bigint` (nanoseconds) into a `Duration` and encodes a * `Duration` back to `bigint` nanoseconds. * - * When to use this: - * - Working with nanosecond-precision timestamps or intervals. + * **When to use** + * + * Use when you need a schema transformation for nanosecond-precision timestamps + * or intervals. * - * Behavior: - * - Decode: always succeeds, creating a Duration from nanoseconds. - * - Encode: fails with `InvalidValue` if the Duration cannot be represented - * as a `bigint` (e.g. `Duration.infinity`). + * **Details** + * + * Decoding always succeeds and creates a `Duration` from nanoseconds. Encoding + * fails with `InvalidValue` if the `Duration` cannot be represented as a + * `bigint`, such as `Duration.infinity`. * * **Example** (Duration from nanoseconds) * @@ -784,30 +749,33 @@ export const durationFromString = /*#__PURE__*/transformOrFail({ * ) * ``` * - * See also: - * - {@link durationFromMillis} + * @see {@link durationFromMillis} * + * @category transforming * @since 4.0.0 */ export const durationFromNanos = /*#__PURE__*/transformOrFail({ decode: i => Effect.succeed(Duration.nanos(i)), encode: a => Option.match(Duration.toNanos(a), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(a), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(a), { message: `Unable to encode ${a} into a bigint` })), onSome: nanos => Effect.succeed(nanos) }) }); /** - * Decodes a `number` (milliseconds) into a `Duration` and encodes a - * `Duration` back to `number` milliseconds. + * Decodes a `number` of milliseconds into a `Duration` and encodes a `Duration` + * back to milliseconds. + * + * **When to use** + * + * Use when you need a schema transformation to decode timeouts, delays, elapsed + * intervals, or other duration values stored as millisecond counts. * - * When to use this: - * - Working with millisecond-precision timestamps (e.g. `Date.now()`). + * **Details** * - * Behavior: - * - Decode: creates a Duration from milliseconds. Always succeeds. - * - Encode: converts a Duration to milliseconds. Always succeeds. + * Decode creates a duration from the number, and encode returns the duration + * length in milliseconds. * * **Example** (Duration from milliseconds) * @@ -819,45 +787,87 @@ export const durationFromNanos = /*#__PURE__*/transformOrFail({ * ) * ``` * - * See also: - * - {@link durationFromNanos} + * @see {@link durationFromNanos} * + * @category transforming * @since 4.0.0 */ export const durationFromMillis = /*#__PURE__*/transform({ decode: i => Duration.millis(i), encode: a => Duration.toMillis(a) }); -/** @internal */ -export const errorFromErrorJsonEncoded = options => transform({ - decode: i => { - const err = new Error(i.message); - if (typeof i.name === "string" && i.name !== "Error") err.name = i.name; - if (typeof i.stack === "string") err.stack = i.stack; - return err; - }, - encode: a => { - const e = { - name: a.name, - message: a.message - }; - if (options?.includeStack && typeof a.stack === "string") { - e.stack = a.stack; - } - return e; +const isJsonError = input => Predicate.isObject(input) && typeof input["message"] === "string"; +const decodeJsonError = input => { + const hasCause = Object.hasOwn(input, "cause"); + const err = hasCause ? new Error(input.message, { + cause: decodeDefect(input.cause) + }) : new Error(input.message); + if (typeof input.name === "string" && input.name !== "Error") err.name = input.name; + if (typeof input.stack === "string") err.stack = input.stack; + return err; +}; +const encodeUnknownAsJson = input => { + try { + const json = formatJson(input); + return json === undefined ? format(input) : JSON.parse(json); + } catch { + return format(input); + } +}; +const encodeJsonError = (input, options, encodeDefect) => { + const encoded = { + name: input.name, + message: typeof input.message === "string" ? input.message : "" + }; + if (options?.includeStack && typeof input.stack === "string") { + encoded.stack = input.stack; } + if (!options?.excludeCause && input.cause !== undefined) { + encoded.cause = encodeDefect(input.cause); + } + return encoded; +}; +const makeEncodeDefect = options => { + const seen = new WeakSet(); + const encode = input => { + if (Predicate.isError(input)) { + if (seen.has(input)) { + return "[Circular]"; + } + seen.add(input); + const encoded = encodeJsonError(input, options, encode); + seen.delete(input); + return encoded; + } + return encodeUnknownAsJson(input); + }; + return encode; +}; +const decodeDefect = input => isJsonError(input) ? decodeJsonError(input) : input; +/** @internal */ +export const errorFromJsonError = options => transform({ + decode: decodeJsonError, + encode: input => makeEncodeDefect(options)(input) +}); +/** @internal */ +export const defectFromJson = options => transform({ + decode: decodeDefect, + encode: makeEncodeDefect(options) }); /** * Decodes `T | null` into `Option` and encodes `Option` back to * `T | null`. * - * When to use this: - * - Converting nullable API fields to `Option`. + * **When to use** * - * Behavior: - * - Decode: `null` → `Option.none()`, non-null → `Option.some(value)`. - * - Encode: `Option.none()` → `null`, `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert nullable API fields to + * `Option`. + * + * **Details** + * + * Decoding maps `null` to `Option.none()` and non-null values to + * `Option.some(value)`. Encoding maps `Option.none()` to `null` and + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from nullable) * @@ -872,9 +882,9 @@ export const errorFromErrorJsonEncoded = options => transform({ * ) * ``` * - * See also: - * - {@link optionFromNullishOr} + * @see {@link optionFromNullishOr} * + * @category transforming * @since 4.0.0 */ export function optionFromNullOr() { @@ -884,16 +894,19 @@ export function optionFromNullOr() { }); } /** - * Decodes `T | undefined` into `Option` and encodes `Option` back - * to `T | undefined`. + * Decodes `T | undefined` into `Option` and encodes `Option.none()` back to + * `undefined`. * - * When to use this: - * - Converting undefined-or API fields to `Option`. + * **When to use** * - * Behavior: - * - Decode: `undefined` → `Option.none()`, non-undefined → `Option.some(value)`. - * - Encode: `Option.none()` → `undefined`, `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert API fields that use + * `undefined` for absence to `Option`. + * + * **Details** + * + * Decoding maps `undefined` to `Option.none()` and non-undefined values to + * `Option.some(value)`. Encoding maps `Option.none()` to `undefined` and + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from undefined-or) * @@ -908,10 +921,10 @@ export function optionFromNullOr() { * ) * ``` * - * See also: - * - {@link optionFromOptionalKey} - * - {@link optionFromOptional} + * @see {@link optionFromOptionalKey} + * @see {@link optionFromOptional} * + * @category transforming * @since 4.0.0 */ export function optionFromUndefinedOr() { @@ -922,17 +935,20 @@ export function optionFromUndefinedOr() { } /** * Decodes `T | null | undefined` into `Option` and encodes `Option` - * back to `T | null` or `T | undefined` depending on the provided `options.onNoneEncoding` (defaults to `undefined`). + * back to `T | null` or `T | undefined` depending on the provided + * `options.onNoneEncoding` (defaults to `undefined`). * - * When to use this: - * - Converting nullish API fields to `Option` when both `null` and - * `undefined` represent absence. + * **When to use** * - * Behavior: - * - Decode: `null` or `undefined` → `Option.none()`, otherwise → `Option.some(value)`. - * - Encode: `Option.none()` → `null` or `undefined` (per `options.onNoneEncoding`), - * `Option.some(value)` → `value`. - * - Pure and synchronous. + * Use when you need a schema transformation to convert nullish API fields to + * `Option` when both `null` and `undefined` represent absence. + * + * **Details** + * + * Decoding maps `null` and `undefined` to `Option.none()` and all other values + * to `Option.some(value)`. Encoding maps `Option.none()` to `null` or + * `undefined` according to `options.onNoneEncoding`, and maps + * `Option.some(value)` to `value`. The transformation is pure and synchronous. * * **Example** (Option from nullish, encoding None as null) * @@ -947,10 +963,10 @@ export function optionFromUndefinedOr() { * ) * ``` * - * See also: - * - {@link optionFromNullOr} - * - {@link optionFromUndefinedOr} + * @see {@link optionFromNullOr} + * @see {@link optionFromUndefinedOr} * + * @category transforming * @since 4.0.0 */ export function optionFromNullishOr(options) { @@ -963,14 +979,17 @@ export function optionFromNullishOr(options) { * Decodes an optional struct key into `Option` and encodes `Option` * back to an optional key. * - * When to use this: - * - Converting optional struct keys (declared with `Schema.optionalKey`) to - * `Option` values. + * **When to use** + * + * Use when you need a schema transformation to convert optional struct keys + * (declared with `Schema.optionalKey`) to `Option` values. + * + * **Details** * - * Behavior: - * - Decode: absent key (`None`) → `Some(None)`, present key (`Some(v)`) → `Some(Some(v))`. - * - Encode: `Some(None)` → `None` (omit key), `Some(Some(v))` → `Some(v)`. - * - Uses `transformOptional` under the hood. + * Decoding maps an absent key (`None`) to `Some(None)` and a present key + * (`Some(v)`) to `Some(Some(v))`. Encoding maps `Some(None)` to `None` to omit + * the key, and maps `Some(Some(v))` to `Some(v)`. This uses + * `transformOptional` under the hood. * * **Example** (Optional key to Option) * @@ -987,11 +1006,11 @@ export function optionFromNullishOr(options) { * }) * ``` * - * See also: - * - {@link optionFromOptional} - * - {@link optionFromUndefinedOr} - * - {@link transformOptional} + * @see {@link optionFromOptional} + * @see {@link optionFromUndefinedOr} + * @see {@link transformOptional} * + * @category transforming * @since 4.0.0 */ export function optionFromOptionalKey() { @@ -1001,16 +1020,20 @@ export function optionFromOptionalKey() { }); } /** - * Decodes `T | undefined` into `Option` and encodes `Option` back - * to `T | undefined`. + * Decodes optional values into `Option` and encodes `Option.none()` back to + * an omitted optional value. * - * When to use this: - * - Converting optional (possibly `undefined`) values to `Option`. + * **When to use** * - * Behavior: - * - Decode: absent or `undefined` → `Some(None)`, present → `Some(Some(v))`. - * - Encode: `Some(None)` → `None` (omit), `Some(Some(v))` → `Some(v)`. - * - Uses `transformOptional` under the hood; filters out `undefined` on decode. + * Use when you need a schema transformation to convert optional (possibly + * `undefined`) values to `Option`. + * + * **Details** + * + * Decoding maps an absent or `undefined` value to `Some(None)` and a present + * value to `Some(Some(v))`. Encoding maps `Some(None)` to `None` to omit the + * value, and maps `Some(Some(v))` to `Some(v)`. This uses + * `transformOptional` under the hood and filters out `undefined` on decode. * * **Example** (Optional value to Option) * @@ -1027,11 +1050,11 @@ export function optionFromOptionalKey() { * }) * ``` * - * See also: - * - {@link optionFromOptionalKey} - * - {@link optionFromUndefinedOr} - * - {@link transformOptional} + * @see {@link optionFromOptionalKey} + * @see {@link optionFromUndefinedOr} + * @see {@link transformOptional} * + * @category transforming * @since 4.0.0 */ export function optionFromOptional() { @@ -1044,13 +1067,15 @@ export function optionFromOptional() { * Decodes a `string` into a `URL` and encodes a `URL` back to its `href` * string. * - * When to use this: - * - Parsing URL strings from user input or API responses. + * **When to use** + * + * Use when you need a schema transformation to parse URL strings from user + * input or API responses. * - * Behavior: - * - Decode: calls `new URL(s)`. Fails with `InvalidValue` if the string - * is not a valid URL. - * - Encode: returns `url.href`. + * **Details** + * + * Decoding calls `new URL(s)` and fails with `InvalidValue` if the string is + * not a valid URL. Encoding returns `url.href`. * * **Example** (URL from string) * @@ -1062,16 +1087,16 @@ export function optionFromOptional() { * ) * ``` * - * See also: - * - {@link numberFromString} - * - {@link transformOrFail} + * @see {@link numberFromString} + * @see {@link transformOrFail} * + * @category transforming * @since 4.0.0 */ export const urlFromString = /*#__PURE__*/transformOrFail({ decode: s => Effect.try({ try: () => new URL(s), - catch: () => new Issue.InvalidValue(Option.some(s), { + catch: () => new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid URL string: ${s}` }) }), @@ -1081,20 +1106,24 @@ export const urlFromString = /*#__PURE__*/transformOrFail({ * Decodes a `string` into a `BigDecimal` and encodes a `BigDecimal` back to * its string representation. * - * When to use this: - * - Parsing decimal number strings from APIs or user input. + * **When to use** + * + * Use when you need a schema transformation to parse decimal number strings + * from APIs or user input. * - * Behavior: - * - Decode: calls `BigDecimal.fromString(s)`. Fails with `InvalidValue` if the - * string is not a valid BigDecimal representation. - * - Encode: returns `BigDecimal.format(bd)`. + * **Details** * + * Decoding calls `BigDecimal.fromString(s)` and fails with `InvalidValue` if + * the string is not a valid `BigDecimal` representation. Encoding returns + * `BigDecimal.format(bd)`. + * + * @category transforming * @since 4.0.0 */ export const bigDecimalFromString = /*#__PURE__*/transformOrFail({ decode: s => { const result = BigDecimal.fromString(s); - return Option.isNone(result) ? Effect.fail(new Issue.InvalidValue(Option.some(s), { + return Option.isNone(result) ? Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid BigDecimal string: ${s}` })) : Effect.succeed(result.value); }, @@ -1104,13 +1133,15 @@ export const bigDecimalFromString = /*#__PURE__*/transformOrFail({ * Decodes a Base64-encoded `string` into a `Uint8Array` and encodes a * `Uint8Array` back to a Base64 string. * - * When to use this: - * - Handling binary data transmitted as Base64 strings (e.g. file uploads, - * API payloads). + * **When to use** + * + * Use when you need a schema transformation for binary data transmitted as + * Base64 strings (e.g. file uploads, API payloads). * - * Behavior: - * - Decode: parses the Base64 string into bytes. - * - Encode: encodes the byte array as a Base64 string. + * **Details** + * + * Decoding parses the Base64 string into bytes. Encoding writes the byte array + * as a Base64 string. * * **Example** (Uint8Array from Base64) * @@ -1122,23 +1153,26 @@ export const bigDecimalFromString = /*#__PURE__*/transformOrFail({ * ) * ``` * - * See also: - * - {@link fromJsonString} - * - `Schema.Uint8ArrayFromBase64` - a ready-made schema wrapping this transformation. + * @see {@link fromJsonString} + * @see `Schema.Uint8ArrayFromBase64` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ -export const uint8ArrayFromBase64String = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeBase64(), /*#__PURE__*/Getter.encodeBase64()); +export const uint8ArrayFromBase64String = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeBase64(), /*#__PURE__*/SchemaGetter.encodeBase64()); /** * Decodes a Base64-encoded `string` into a UTF-8 `string` and encodes a * UTF-8 `string` back to a Base64 string. * - * When to use this: - * - Handling text data transmitted as Base64 strings. + * **When to use** + * + * Use when you need a schema transformation for text data transmitted as Base64 + * strings. * - * Behavior: - * - Decode: parses the Base64 string into a UTF-8 string. - * - Encode: encodes the string as a Base64 string. + * **Details** + * + * Decoding parses the Base64 string into a UTF-8 string. Encoding writes the + * string as a Base64 string. * * **Example** (String from Base64) * @@ -1150,22 +1184,25 @@ export const uint8ArrayFromBase64String = /*#__PURE__*/new Transformation(/*#__P * ) * ``` * - * See also: - * - {@link uint8ArrayFromBase64String} - * - `Schema.StringFromBase64` - a ready-made schema wrapping this transformation. + * @see {@link uint8ArrayFromBase64String} + * @see `Schema.StringFromBase64` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ -export const stringFromBase64String = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeBase64String(), /*#__PURE__*/Getter.encodeBase64()); +export const stringFromBase64String = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeBase64String(), /*#__PURE__*/SchemaGetter.encodeBase64()); /** * Decodes a base64 (URL) encoded `string` into a UTF-8 `string` and encodes it back. * - * When to use this: - * - Handling text data transmitted as Base64 URL-safe strings. + * **When to use** + * + * Use when you need a schema transformation for text data transmitted as Base64 + * URL-safe strings. + * + * **Details** * - * Behavior: - * - Decode: parses the Base64 URL string into a UTF-8 string. - * - Encode: encodes the string as a Base64 URL string. + * Decoding parses the Base64 URL string into a UTF-8 string. Encoding writes + * the string as a Base64 URL string. * * **Example** (String from Base64Url) * @@ -1177,22 +1214,25 @@ export const stringFromBase64String = /*#__PURE__*/new Transformation(/*#__PURE_ * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromBase64Url` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromBase64Url` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ -export const stringFromBase64UrlString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeBase64UrlString(), /*#__PURE__*/Getter.encodeBase64Url()); +export const stringFromBase64UrlString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeBase64UrlString(), /*#__PURE__*/SchemaGetter.encodeBase64Url()); /** * Decodes a hex encoded `string` into a UTF-8 `string` and encodes it back. * - * When to use this: - * - Handling text data transmitted as hexadecimal strings. + * **When to use** + * + * Use when you need a schema transformation for text data transmitted as + * hexadecimal strings. + * + * **Details** * - * Behavior: - * - Decode: parses the hex string into a UTF-8 string. - * - Encode: encodes the string as a hex string. + * Decoding parses the hex string into a UTF-8 string. Encoding writes the + * string as a hex string. * * **Example** (String from Hex) * @@ -1204,25 +1244,27 @@ export const stringFromBase64UrlString = /*#__PURE__*/new Transformation(/*#__PU * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromHex` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromHex` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ -export const stringFromHexString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeHexString(), /*#__PURE__*/Getter.encodeHex()); +export const stringFromHexString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeHexString(), /*#__PURE__*/SchemaGetter.encodeHex()); /** * Decodes a URI component encoded string into a UTF-8 string and encodes a * UTF-8 string into a URI component encoded string. * - * When to use this: - * - Storing structured data in URL query parameters or fragments. - * - Composing with `Schema.parseJson` to round-trip JSON through a URL. + * **When to use** * - * Behavior: - * - Decode: calls `decodeURIComponent`. Fails if the input contains malformed - * percent-encoding sequences. - * - Encode: calls `encodeURIComponent`. + * Use when you need a schema transformation to store structured data in URL + * query parameters or fragments, such as composing with `Schema.parseJson` to + * round-trip JSON through a URL. + * + * **Details** + * + * Decoding calls `decodeURIComponent` and fails if the input contains malformed + * percent-encoding sequences. Encoding calls `encodeURIComponent`. * * **Example** (URI component schema) * @@ -1234,24 +1276,27 @@ export const stringFromHexString = /*#__PURE__*/new Transformation(/*#__PURE__*/ * ) * ``` * - * See also: - * - {@link stringFromBase64String} - * - `Schema.StringFromUriComponent` - a ready-made schema wrapping this transformation. + * @see {@link stringFromBase64String} + * @see `Schema.StringFromUriComponent` - a ready-made schema wrapping this transformation. * + * @category encoding * @since 4.0.0 */ -export const stringFromUriComponent = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeUriComponent(), /*#__PURE__*/Getter.encodeUriComponent()); +export const stringFromUriComponent = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeUriComponent(), /*#__PURE__*/SchemaGetter.encodeUriComponent()); /** - * Decodes a JSON `string` into an `unknown` value and encodes an `unknown` - * value back to a JSON string. + * Decodes a JSON string with `JSON.parse` and encodes a value with + * `JSON.stringify`. + * + * **When to use** + * + * Use when you need a schema transformation to decode JSON stored or + * transmitted as a string, usually before composing with another schema that + * validates the parsed structure. * - * When to use this: - * - Parsing JSON strings from HTTP bodies, message queues, or storage. - * - Typically composed with a further schema to validate the parsed structure. + * **Details** * - * Behavior: - * - Decode: calls `JSON.parse`. Fails if the string is not valid JSON. - * - Encode: calls `JSON.stringify`. + * Decode fails with `InvalidValue` for invalid JSON, and encode can fail with + * `InvalidValue` when `JSON.stringify` cannot serialize the value. * * **Example** (Parsing JSON) * @@ -1263,23 +1308,27 @@ export const stringFromUriComponent = /*#__PURE__*/new Transformation(/*#__PURE_ * ) * ``` * - * See also: - * - {@link uint8ArrayFromBase64String} - * - {@link fromFormData} + * @see {@link uint8ArrayFromBase64String} + * @see {@link fromFormData} * + * @category decoding * @since 4.0.0 */ -export const fromJsonString = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.parseJson(), /*#__PURE__*/Getter.stringifyJson()); +export const fromJsonString = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.parseJson(), /*#__PURE__*/SchemaGetter.stringifyJson()); /** - * Decodes a `FormData` instance into an `unknown` record and encodes an - * `unknown` record back to `FormData`. + * Decodes a `FormData` instance into a nested record using bracket-path keys and + * encodes object-like values back into `FormData`. * - * When to use this: - * - Handling HTML form submissions or multipart API requests. + * **When to use** * - * Behavior: - * - Decode: extracts entries from the FormData into a plain object. - * - Encode: constructs a FormData from the record's entries. + * Use when you need a schema transformation for form or multipart payloads + * whose keys, such as `user[name]` or `items[0]`, should become nested data. + * + * **Details** + * + * Decode preserves string and `Blob` leaves. Encode flattens nested objects and + * arrays into bracket-path entries and returns an empty `FormData` for + * non-object inputs. * * **Example** (Decoding FormData) * @@ -1291,23 +1340,27 @@ export const fromJsonString = /*#__PURE__*/new Transformation(/*#__PURE__*/Gette * ) * ``` * - * See also: - * - {@link fromURLSearchParams} - * - {@link fromJsonString} + * @see {@link fromURLSearchParams} + * @see {@link fromJsonString} * + * @category decoding * @since 4.0.0 */ -export const fromFormData = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeFormData(), /*#__PURE__*/Getter.encodeFormData()); +export const fromFormData = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeFormData(), /*#__PURE__*/SchemaGetter.encodeFormData()); /** - * Decodes a `URLSearchParams` instance into an `unknown` record and encodes - * an `unknown` record back to `URLSearchParams`. + * Decodes `URLSearchParams` into a nested record using bracket-path keys and + * encodes object-like values back into `URLSearchParams`. + * + * **When to use** * - * When to use this: - * - Parsing URL query parameters. + * Use when you need a schema transformation for query strings whose keys, such + * as `filter[name]` or `items[0]`, should become nested data. * - * Behavior: - * - Decode: extracts entries from URLSearchParams into a plain object. - * - Encode: constructs URLSearchParams from the record's entries. + * **Details** + * + * Decode produces string leaves. Encode flattens nested objects and arrays into + * bracket-path entries and returns empty `URLSearchParams` for non-object + * inputs. * * **Example** (Decoding URLSearchParams) * @@ -1319,14 +1372,31 @@ export const fromFormData = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter. * ) * ``` * - * See also: - * - {@link fromFormData} - * - {@link fromJsonString} + * @see {@link fromFormData} + * @see {@link fromJsonString} * + * @category decoding * @since 4.0.0 */ -export const fromURLSearchParams = /*#__PURE__*/new Transformation(/*#__PURE__*/Getter.decodeURLSearchParams(), /*#__PURE__*/Getter.encodeURLSearchParams()); +export const fromURLSearchParams = /*#__PURE__*/new Transformation(/*#__PURE__*/SchemaGetter.decodeURLSearchParams(), /*#__PURE__*/SchemaGetter.encodeURLSearchParams()); /** + * Decodes a numeric time-zone offset in milliseconds into a + * `DateTime.TimeZone.Offset` and encodes it back to the offset number. + * + * **When to use** + * + * Use when you need a schema transformation to represent fixed-offset time + * zones with numeric millisecond offsets. + * + * **Details** + * + * Decode uses `DateTime.zoneMakeOffset`; encode returns the offset's `offset` + * field. + * + * @see {@link timeZoneFromString} for IANA or offset string encodings + * @see {@link timeZoneNamedFromString} for IANA named-zone strings + * + * @category transforming * @since 4.0.0 */ export const timeZoneOffsetFromNumber = /*#__PURE__*/transform({ @@ -1334,12 +1404,28 @@ export const timeZoneOffsetFromNumber = /*#__PURE__*/transform({ encode: tz => tz.offset }); /** + * Decodes an IANA time-zone identifier string into a + * `DateTime.TimeZone.Named` and encodes a named time zone back to its `id`. + * + * **When to use** + * + * Use when you need a schema transformation to accept only IANA time-zone + * identifier strings and produce `DateTime.TimeZone.Named` values. + * + * **Details** + * + * Decode fails with `InvalidValue` when the string is not a valid IANA time-zone + * identifier. + * + * @see {@link timeZoneFromString} for time-zone strings that may be either IANA identifiers or offset strings + * + * @category transforming * @since 4.0.0 */ export const timeZoneNamedFromString = /*#__PURE__*/transformOrFail({ decode: s => { return Option.match(DateTime.zoneMakeNamed(s), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(s), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid IANA time zone: ${s}` })), onSome: Effect.succeed @@ -1348,12 +1434,30 @@ export const timeZoneNamedFromString = /*#__PURE__*/transformOrFail({ encode: tz => Effect.succeed(tz.id) }); /** + * Decodes a string into a `DateTime.TimeZone` and encodes a time zone back to + * its string representation. + * + * **When to use** + * + * Use when you need a schema transformation to accept either an IANA time-zone + * identifier or an offset string and produce a general `DateTime.TimeZone`. + * + * **Details** + * + * Accepted decode inputs include valid IANA identifiers and offset strings such + * as `"+03:00"`. Decode fails with `InvalidValue` when the string cannot be + * parsed as a time zone. + * + * @see {@link timeZoneNamedFromString} for IANA named-zone strings only + * @see {@link timeZoneOffsetFromNumber} for fixed-offset zones encoded as numbers + * + * @category transforming * @since 4.0.0 */ export const timeZoneFromString = /*#__PURE__*/transformOrFail({ decode: s => { return Option.match(DateTime.zoneFromString(s), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(s), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid time zone: ${s}` })), onSome: Effect.succeed @@ -1362,12 +1466,30 @@ export const timeZoneFromString = /*#__PURE__*/transformOrFail({ encode: tz => Effect.succeed(DateTime.zoneToString(tz)) }); /** + * Decodes a date-time string into a `DateTime.Utc` and encodes it back to an ISO + * string. + * + * **When to use** + * + * Use when you need a schema transformation to decode date-time strings to a + * normalized `DateTime.Utc` and encode back as a UTC ISO string. + * + * **Details** + * + * Decode accepts strings supported by `DateTime.make`, converts the result to + * UTC, and fails with `InvalidValue` when parsing fails. Encode uses + * `DateTime.formatIso`. + * + * @see {@link dateTimeZonedFromString} for ISO strings that should preserve zoned date-time information + * @see {@link dateFromString} for decoding into JavaScript `Date` + * + * @category transforming * @since 4.0.0 */ export const dateTimeUtcFromString = /*#__PURE__*/transformOrFail({ decode: s => { return Option.match(DateTime.make(s), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(s), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid UTC DateTime string: ${s}` })), onSome: result => Effect.succeed(DateTime.toUtc(result)) @@ -1376,12 +1498,29 @@ export const dateTimeUtcFromString = /*#__PURE__*/transformOrFail({ encode: utc => Effect.succeed(DateTime.formatIso(utc)) }); /** + * Decodes a zoned date-time string into a `DateTime.Zoned` and encodes it back + * to an ISO zoned string. + * + * **When to use** + * + * Use when you need a schema transformation for ISO zoned date-time strings + * that decode to `DateTime.Zoned` and encode with `DateTime.formatIsoZoned`. + * + * **Details** + * + * Decode uses `DateTime.makeZonedFromString` and fails with `InvalidValue` when + * the input is not a valid zoned date-time. Encode uses + * `DateTime.formatIsoZoned`. + * + * @see {@link dateTimeUtcFromString} for date-time strings that should decode to `DateTime.Utc` and encode as UTC ISO strings + * + * @category transforming * @since 4.0.0 */ export const dateTimeZonedFromString = /*#__PURE__*/transformOrFail({ decode: s => { return Option.match(DateTime.makeZonedFromString(s), { - onNone: () => Effect.fail(new Issue.InvalidValue(Option.some(s), { + onNone: () => Effect.fail(new SchemaIssue.InvalidValue(Option.some(s), { message: `Invalid Zoned DateTime string: ${s}` })), onSome: Effect.succeed diff --git a/.opencode/node_modules/effect/dist/SchemaTransformation.js.map b/.opencode/node_modules/effect/dist/SchemaTransformation.js.map index 50df489bd0b48aa6cce5ac727303c77f89c6e221..2e65ca475bd0b69371f70f74b19dae6c674e8dd2 100644 --- a/.opencode/node_modules/effect/dist/SchemaTransformation.js.map +++ b/.opencode/node_modules/effect/dist/SchemaTransformation.js.map @@ -1 +1 @@ -{"version":3,"file":"SchemaTransformation.js","names":["BigDecimal","DateTime","Duration","Effect","formatDate","Option","Predicate","Getter","Issue","Middleware","_tag","decode","encode","constructor","flip","TypeId","Transformation","compose","other","isTransformation","u","hasProperty","make","options","transformOrFail","transform","transformOptional","trim","passthrough","snakeToCamel","camelToSnake","toLowerCase","toUpperCase","capitalize","uncapitalize","splitKeyValue","joinKeyValue","passthrough_","passthroughSupertype","passthroughSubtype","numberFromString","Number","String","bigintFromString","BigInt","dateFromString","Date","durationFromString","s","match","fromInput","onNone","fail","InvalidValue","some","message","onSome","succeed","duration","globalThis","durationFromNanos","i","nanos","a","toNanos","durationFromMillis","millis","toMillis","errorFromErrorJsonEncoded","err","Error","name","stack","e","includeStack","optionFromNullOr","fromNullOr","getOrNull","optionFromUndefinedOr","fromUndefinedOr","getOrUndefined","optionFromNullishOr","fromNullishOr","onNoneEncoding","optionFromOptionalKey","flatten","optionFromOptional","ot","pipe","filter","isNotUndefined","urlFromString","try","URL","catch","url","href","bigDecimalFromString","result","fromString","isNone","value","bd","format","uint8ArrayFromBase64String","decodeBase64","encodeBase64","stringFromBase64String","decodeBase64String","stringFromBase64UrlString","decodeBase64UrlString","encodeBase64Url","stringFromHexString","decodeHexString","encodeHex","stringFromUriComponent","decodeUriComponent","encodeUriComponent","fromJsonString","parseJson","stringifyJson","fromFormData","decodeFormData","encodeFormData","fromURLSearchParams","decodeURLSearchParams","encodeURLSearchParams","timeZoneOffsetFromNumber","n","zoneMakeOffset","tz","offset","timeZoneNamedFromString","zoneMakeNamed","id","timeZoneFromString","zoneFromString","zoneToString","dateTimeUtcFromString","toUtc","utc","formatIso","dateTimeZonedFromString","makeZonedFromString","zoned","formatIsoZoned"],"sources":["../src/SchemaTransformation.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFA,OAAO,KAAKA,UAAU,MAAM,iBAAiB;AAC7C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C,OAAO,KAAKC,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,KAAK,MAAM,kBAAkB;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,OAAM,MAAOC,UAAU;EACZC,IAAI,GAAG,YAAY;EACnBC,MAAM;EAINC,MAAM;EAKfC,YACEF,MAGsD,EACtDC,MAGsD;IAEtD,IAAI,CAACD,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACtB;EACAE,IAAIA,CAAA;IACF,OAAO,IAAIL,UAAU,CAAC,IAAI,CAACG,MAAM,EAAE,IAAI,CAACD,MAAM,CAAC;EACjD;;AAGF,MAAMI,MAAM,GAAG,6CAA6C;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAM,MAAOC,cAAc;EAChB,CAACD,MAAM,IAAIA,MAAM;EACjBL,IAAI,GAAG,gBAAgB;EACvBC,MA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KAAK,CAACzC,MAAM,CAAC;KAC1D,CAAC;EACJ,CAAC;EACDtF,MAAM,EAAGgI,GAAG,IAAKzI,MAAM,CAACsD,OAAO,CAACxD,QAAQ,CAAC4I,SAAS,CAACD,GAAG,CAAC;CACxD,CAAC;AAEF;;;AAGA,OAAO,MAAME,uBAAuB,gBAA2CtH,eAAe,CAG5F;EACAb,MAAM,EAAGqC,CAAC,IAAI;IACZ,OAAO3C,MAAM,CAAC4C,KAAK,CAAChD,QAAQ,CAAC8I,mBAAmB,CAAC/F,CAAC,CAAC,EAAE;MACnDG,MAAM,EAAEA,CAAA,KACNhD,MAAM,CAACiD,IAAI,CAAC,IAAI5C,KAAK,CAAC6C,YAAY,CAAChD,MAAM,CAACiD,IAAI,CAACN,CAAC,CAAC,EAAE;QAAEO,OAAO,EAAE,kCAAkCP,CAAC;MAAE,CAAE,CAAC,CAAC;MACzGQ,MAAM,EAAErD,MAAM,CAACsD;KAChB,CAAC;EACJ,CAAC;EACD7C,MAAM,EAAGoI,KAAK,IAAK7I,MAAM,CAACsD,OAAO,CAACxD,QAAQ,CAACgJ,cAAc,CAACD,KAAK,CAAC;CACjE,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"SchemaTransformation.js","names":["BigDecimal","DateTime","Duration","Effect","format","formatDate","formatJson","Option","Predicate","SchemaGetter","SchemaIssue","Middleware","_tag","decode","encode","constructor","flip","TypeId","Transformation","compose","other","isTransformation","u","hasProperty","make","options","transformOrFail","transform","transformOptional","trim","passthrough","snakeToCamel","camelToSnake","toLowerCase","toUpperCase","capitalize","uncapitalize","splitKeyValue","joinKeyValue","passthrough_","passthroughSupertype","passthroughSubtype","numberFromString","Number","String","bigintFromString","BigInt","dateFromString","Date","durationFromString","s","match","fromInput","onNone","fail","InvalidValue","some","message","onSome","succeed","duration","globalThis","durationFromNanos","i","nanos","a","toNanos","durationFromMillis","millis","toMillis","isJsonError","input","isObject","decodeJsonError","hasCause","Object","hasOwn","err","Error","cause","decodeDefect","name","stack","encodeUnknownAsJson","json","undefined","JSON","parse","encodeJsonError","encodeDefect","encoded","includeStack","excludeCause","makeEncodeDefect","seen","WeakSet","isError","has","add","delete","errorFromJsonError","defectFromJson","optionFromNullOr","fromNullOr","getOrNull","optionFromUndefinedOr","fromUndefinedOr","getOrUndefined","optionFromNullishOr","fromNullishOr","onNoneEncoding","optionFromOptionalKey","flatten","optionFromOptional","ot","pipe","filter","isNotUndefined","urlFromString","try","URL","catch","url","href","bigDecimalFromString","result","fromString","isNone","value","bd","uint8ArrayFromBase64String","decodeBase64","encodeBase64","stringFromBase64String","decodeBase64String","stringFromBase64UrlString","decodeBase64UrlString","encodeBase64Url","stringFromHexString","decodeHexString","encodeHex","stringFromUriComponent","decodeUriComponent","encodeUriComponent","fromJsonString","parseJson","stringifyJson","fromFormData","decodeFormData","encodeFormData","fromURLSearchParams","decodeURLSearchParams","encodeURLSearchParams","timeZoneOffsetFromNumber","n","zoneMakeOffset","tz","offset","timeZoneNamedFromString","zoneMakeNamed","id","timeZoneFromString","zoneFromString","zoneToString","dateTimeUtcFromString","toUtc","utc","formatIso","dateTimeZonedFromString","makeZonedFromString","zoned","formatIsoZoned"],"sources":["../src/SchemaTransformation.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAcA,OAAO,KAAKA,UAAU,MAAM,iBAAiB;AAC7C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,MAAM,EAAEC,UAAU,EAAEC,UAAU,QAAQ,gBAAgB;AAC/D,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAG3C,OAAO,KAAKC,YAAY,MAAM,mBAAmB;AACjD,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,O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AC;MAC7GQ,MAAM,EAAGmE,MAAM,IAAK1H,MAAM,CAACwD,OAAO,CAAC1D,QAAQ,CAACoK,KAAK,CAACxC,MAAM,CAAC;KAC1D,CAAC;EACJ,CAAC;EACD/G,MAAM,EAAGwJ,GAAG,IAAKnK,MAAM,CAACwD,OAAO,CAAC1D,QAAQ,CAACsK,SAAS,CAACD,GAAG,CAAC;CACxD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAME,uBAAuB,gBAA2C9I,eAAe,CAG5F;EACAb,MAAM,EAAGqC,CAAC,IAAI;IACZ,OAAO3C,MAAM,CAAC4C,KAAK,CAAClD,QAAQ,CAACwK,mBAAmB,CAACvH,CAAC,CAAC,EAAE;MACnDG,MAAM,EAAEA,CAAA,KACNlD,MAAM,CAACmD,IAAI,CAAC,IAAI5C,WAAW,CAAC6C,YAAY,CAAChD,MAAM,CAACiD,IAAI,CAACN,CAAC,CAAC,EAAE;QAAEO,OAAO,EAAE,kCAAkCP,CAAC;MAAE,CAAE,CAAC,CAAC;MAC/GQ,MAAM,EAAEvD,MAAM,CAACwD;KAChB,CAAC;EACJ,CAAC;EACD7C,MAAM,EAAG4J,KAAK,IAAKvK,MAAM,CAACwD,OAAO,CAAC1D,QAAQ,CAAC0K,cAAc,CAACD,KAAK,CAAC;CACjE,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SchemaUtils.d.ts b/.opencode/node_modules/effect/dist/SchemaUtils.d.ts index fbe8352847a86c0ff48896bb7b113d338473779e..fe26a384a6eed90ec0d6e2850e7dcf88609c89f9 100644 --- a/.opencode/node_modules/effect/dist/SchemaUtils.d.ts +++ b/.opencode/node_modules/effect/dist/SchemaUtils.d.ts @@ -1,7 +1,25 @@ import * as Schema from "./Schema.ts"; /** + * Builds an experimental schema for instances of a native class using a struct + * schema as the encoded representation. + * + * **When to use** + * + * Use when you need a schema for an existing native class while keeping a + * `Struct` schema as its encoded representation. + * + * **Details** + * + * Decoding constructs `new constructor(props)` from the encoded fields. + * Encoding uses the instance as the encoded shape, so the class should expose + * properties compatible with the provided encoding schema. + * + * @see {@link Schema.instanceOf} for validating existing class instances without a struct encoding + * @see {@link Schema.Class} for defining schema-backed classes directly + * @see {@link Schema.ErrorClass} for defining schema-backed error classes + * + * @category schemas * @since 4.0.0 - * @experimental */ export declare function getNativeClassSchema any, S extends Schema.Struct>(constructor: C, options: { readonly encoding: S; diff --git a/.opencode/node_modules/effect/dist/SchemaUtils.d.ts.map b/.opencode/node_modules/effect/dist/SchemaUtils.d.ts.map index d88b6952e4389e9098ef4402cde8a20634fe2cce..dd6aaf5994e0f2211fe83aaac1b9c193f4c0807d 100644 --- a/.opencode/node_modules/effect/dist/SchemaUtils.d.ts.map +++ b/.opencode/node_modules/effect/dist/SchemaUtils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SchemaUtils.d.ts","sourceRoot":"","sources":["../src/SchemaUtils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAI,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EACpH,WAAW,EAAE,CAAC,EACd,OAAO,EAAE;IACP,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;CACvE,GACA,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CASlE"} \ No newline at end of file +{"version":3,"file":"SchemaUtils.d.ts","sourceRoot":"","sources":["../src/SchemaUtils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAI,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EACpH,WAAW,EAAE,CAAC,EACd,OAAO,EAAE;IACP,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;CACvE,GACA,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CASlE"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SchemaUtils.js b/.opencode/node_modules/effect/dist/SchemaUtils.js index 77c9ba853d3b43e567684afbbe1e0ebac122fd1b..1761914f43f58d423ae20a67ca5362c7d565b2cd 100644 --- a/.opencode/node_modules/effect/dist/SchemaUtils.js +++ b/.opencode/node_modules/effect/dist/SchemaUtils.js @@ -1,15 +1,39 @@ /** + * Small helpers for schema patterns that are too specialized for the main + * `Schema` module. The current helper builds a schema for an existing class: + * the encoded input is checked with a struct schema, decoding calls the class + * constructor with the decoded properties, and the final value remains an + * instance of that class. + * * @since 4.0.0 */ import { identity } from "./Function.js"; import * as Schema from "./Schema.js"; -import * as Transformation from "./SchemaTransformation.js"; +import * as SchemaTransformation from "./SchemaTransformation.js"; /** + * Builds an experimental schema for instances of a native class using a struct + * schema as the encoded representation. + * + * **When to use** + * + * Use when you need a schema for an existing native class while keeping a + * `Struct` schema as its encoded representation. + * + * **Details** + * + * Decoding constructs `new constructor(props)` from the encoded fields. + * Encoding uses the instance as the encoded shape, so the class should expose + * properties compatible with the provided encoding schema. + * + * @see {@link Schema.instanceOf} for validating existing class instances without a struct encoding + * @see {@link Schema.Class} for defining schema-backed classes directly + * @see {@link Schema.ErrorClass} for defining schema-backed error classes + * + * @category schemas * @since 4.0.0 - * @experimental */ export function getNativeClassSchema(constructor, options) { - const transformation = Transformation.transform({ + const transformation = SchemaTransformation.transform({ decode: props => new constructor(props), encode: identity }); diff --git a/.opencode/node_modules/effect/dist/SchemaUtils.js.map b/.opencode/node_modules/effect/dist/SchemaUtils.js.map index 5dfd7799db4f49fa2c3c4a4abcbd7c1afd0777f0..5dba233e0aef39e3a2da83c2bd9da42b9a4b032f 100644 --- a/.opencode/node_modules/effect/dist/SchemaUtils.js.map +++ b/.opencode/node_modules/effect/dist/SchemaUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"SchemaUtils.js","names":["identity","Schema","Transformation","getNativeClassSchema","constructor","options","transformation","transform","decode","props","encode","instanceOf","toCodec","link","encoding","annotations","pipe","encodeTo"],"sources":["../src/SchemaUtils.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,SAASA,QAAQ,QAAQ,eAAe;AACxC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,cAAc,MAAM,2BAA2B;AAE3D;;;;AAIA,OAAM,SAAUC,oBAAoBA,CAClCC,WAAc,EACdC,OAGC;EAED,MAAMC,cAAc,GAAGJ,cAAc,CAACK,SAAS,CAA6B;IAC1EC,MAAM,EAAGC,KAAK,IAAK,IAAIL,WAAW,CAACK,KAAK,CAAC;IACzCC,MAAM,EAAEV;GACT,CAAC;EACF,OAAOC,MAAM,CAACU,UAAU,CAACP,WAAW,EAAE;IACpCQ,OAAO,EAAEA,CAAA,KAAMX,MAAM,CAACY,IAAI,EAAmB,CAACR,OAAO,CAACS,QAAQ,EAAER,cAAc,CAAC;IAC/E,GAAGD,OAAO,CAACU;GACZ,CAAC,CAACC,IAAI,CAACf,MAAM,CAACgB,QAAQ,CAACZ,OAAO,CAACS,QAAQ,EAAER,cAAc,CAAC,CAAC;AAC5D","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"SchemaUtils.js","names":["identity","Schema","SchemaTransformation","getNativeClassSchema","constructor","options","transformation","transform","decode","props","encode","instanceOf","toCodec","link","encoding","annotations","pipe","encodeTo"],"sources":["../src/SchemaUtils.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;AASA,SAASA,QAAQ,QAAQ,eAAe;AACxC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,oBAAoB,MAAM,2BAA2B;AAEjE;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAM,SAAUC,oBAAoBA,CAClCC,WAAc,EACdC,OAGC;EAED,MAAMC,cAAc,GAAGJ,oBAAoB,CAACK,SAAS,CAA6B;IAChFC,MAAM,EAAGC,KAAK,IAAK,IAAIL,WAAW,CAACK,KAAK,CAAC;IACzCC,MAAM,EAAEV;GACT,CAAC;EACF,OAAOC,MAAM,CAACU,UAAU,CAACP,WAAW,EAAE;IACpCQ,OAAO,EAAEA,CAAA,KAAMX,MAAM,CAACY,IAAI,EAAmB,CAACR,OAAO,CAACS,QAAQ,EAAER,cAAc,CAAC;IAC/E,GAAGD,OAAO,CAACU;GACZ,CAAC,CAACC,IAAI,CAACf,MAAM,CAACgB,QAAQ,CAACZ,OAAO,CAACS,QAAQ,EAAER,cAAc,CAAC,CAAC;AAC5D","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Scope.d.ts b/.opencode/node_modules/effect/dist/Scope.d.ts index ab5c348cea07f94ae39d913897770f6a9e3eb0e5..c90a29004e3318dc30fd139f31685b9d8081a598 100644 --- a/.opencode/node_modules/effect/dist/Scope.d.ts +++ b/.opencode/node_modules/effect/dist/Scope.d.ts @@ -1,15 +1,11 @@ /** - * The `Scope` module provides functionality for managing resource lifecycles - * and cleanup operations in a functional and composable manner. + * Controls how long resources stay open. * - * A `Scope` represents a context where resources can be acquired and automatically - * cleaned up when the scope is closed. This is essential for managing resources - * like file handles, database connections, or any other resources that need - * proper cleanup. - * - * Scopes support both sequential and parallel finalization strategies: - * - Sequential: Finalizers run one after another in reverse order of registration - * - Parallel: Finalizers run concurrently for better performance + * A scope is a lifetime boundary. Code can register cleanup effects on it, and + * closing the scope runs those cleanups with the `Exit` value that ended the + * work. Most application code uses higher-level APIs such as `Effect.scoped` + * and `Layer`, while this module is useful when code needs to create, provide, + * fork, close, or inspect scopes directly. * * @since 2.0.0 */ @@ -23,7 +19,8 @@ declare const CloseableTypeId = "~effect/Scope/Closeable"; * automatically cleaned up when the scope is closed. Scopes can use * either sequential or parallel finalization strategies. * - * @example + * **Example** (Managing scoped resources) + * * ```ts * import { Effect, Exit, Scope } from "effect" * @@ -40,8 +37,8 @@ declare const CloseableTypeId = "~effect/Scope/Closeable"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Scope { readonly [TypeId]: typeof TypeId; @@ -52,7 +49,8 @@ export interface Scope { * A `Closeable` scope extends the base `Scope` interface with the ability * to be closed, executing all registered finalizers. * - * @example + * **Example** (Closing a scope) + * * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -67,17 +65,19 @@ export interface Scope { * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Closeable extends Scope { readonly [CloseableTypeId]: typeof CloseableTypeId; } /** - * The `State` namespace contains types representing the different states - * a scope can be in: Open (accepting new finalizers) or Closed (no longer accepting finalizers). + * The `State` namespace contains the concrete states of a scope: `Empty` + * before any finalizers are registered, `Open` with registered finalizers, and + * `Closed` with the exit value used to close the scope. + * + * **Example** (Checking scope states) * - * @example * ```ts * import { Effect, Exit, Scope } from "effect" * @@ -99,15 +99,20 @@ export interface Closeable extends Scope { * }) * ``` * - * @since 2.0.0 - * @category models + * @since 4.0.0 */ export declare namespace State { /** - * Represents an open scope state where finalizers can be added and - * the scope is still accepting new resources. + * Represents an open scope with no registered finalizers yet. + * + * **Details** + * + * Adding the first finalizer transitions the scope to `Open`; closing an + * empty scope transitions directly to `Closed` without producing a finalizer + * effect. + * + * **Example** (Inspecting an empty scope state) * - * @example * ```ts * import { Scope } from "effect" * @@ -120,8 +125,8 @@ export declare namespace State { * } * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ type Empty = { readonly _tag: "Empty"; @@ -130,7 +135,8 @@ export declare namespace State { * Represents an open scope state where finalizers can be added and * the scope is still accepting new resources. * - * @example + * **Example** (Inspecting an open scope state) + * * ```ts * import { Scope } from "effect" * @@ -143,8 +149,8 @@ export declare namespace State { * } * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ type Open = { readonly _tag: "Open"; @@ -154,7 +160,8 @@ export declare namespace State { * Represents a closed scope state where finalizers have been executed * and the scope is no longer accepting new resources. * - * @example + * **Example** (Inspecting a closed scope state) + * * ```ts * import { Effect, Exit, Scope } from "effect" * @@ -172,8 +179,8 @@ export declare namespace State { * }) * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ type Closed = { readonly _tag: "Closed"; @@ -181,9 +188,15 @@ export declare namespace State { }; } /** - * The service tag for `Scope`, used for dependency injection in the Effect system. + * Service tag for the active resource lifetime. + * + * **When to use** + * + * Use to access the active lifetime when registering finalizers or sharing + * resources with the surrounding scope. + * + * **Example** (Accessing the scope service) * - * @example * ```ts * import { Effect, Scope } from "effect" * @@ -199,14 +212,15 @@ export declare namespace State { * const scoped = Effect.scoped(program) * ``` * + * @category services * @since 2.0.0 - * @category tags */ export declare const Scope: Context.Service; /** * Creates a new `Scope` with the specified finalizer strategy. * - * @example + * **Example** (Creating a scope) + * * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -233,7 +247,13 @@ export declare const make: (finalizerStrategy?: "sequential" | "parallel") => Ef * This is useful when you need a scope immediately but should be used with caution * as it doesn't provide the same safety guarantees as the `Effect`-wrapped version. * - * @example + * **When to use** + * + * Use when a scope must be allocated synchronously and the caller will close it + * manually. + * + * **Example** (Creating a scope synchronously) + * * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -247,21 +267,24 @@ export declare const make: (finalizerStrategy?: "sequential" | "parallel") => Ef * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const makeUnsafe: (finalizerStrategy?: "sequential" | "parallel") => Closeable; /** - * Provides a `Scope` to an `Effect`, removing the `Scope` requirement from its context. - * This allows you to run effects that require a scope by explicitly providing one. + * Provides a concrete `Scope` to an effect. + * + * **When to use** * - * **Previously Known As** + * Use to run an effect that requires `Scope` with a scope managed by the + * caller. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Scope.extend` + * Providing the scope removes the `Scope` requirement from the effect context. + * + * **Example** (Providing a scope) * - * @example * ```ts * import { Console, Effect, Scope } from "effect" * @@ -279,21 +302,24 @@ export declare const makeUnsafe: (finalizerStrategy?: "sequential" | "parallel") * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const provide: { /** - * Provides a `Scope` to an `Effect`, removing the `Scope` requirement from its context. - * This allows you to run effects that require a scope by explicitly providing one. + * Provides a concrete `Scope` to an effect. + * + * **When to use** * - * **Previously Known As** + * Use to run an effect that requires `Scope` with a scope managed by the + * caller. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Scope.extend` + * Providing the scope removes the `Scope` requirement from the effect context. + * + * **Example** (Providing a scope) * - * @example * ```ts * import { Console, Effect, Scope } from "effect" * @@ -311,21 +337,24 @@ export declare const provide: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (value: Scope): (self: Effect) => Effect>; /** - * Provides a `Scope` to an `Effect`, removing the `Scope` requirement from its context. - * This allows you to run effects that require a scope by explicitly providing one. + * Provides a concrete `Scope` to an effect. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use to run an effect that requires `Scope` with a scope managed by the + * caller. * - * - `Scope.extend` + * **Details** + * + * Providing the scope removes the `Scope` requirement from the effect context. + * + * **Example** (Providing a scope) * - * @example * ```ts * import { Console, Effect, Scope } from "effect" * @@ -343,16 +372,27 @@ export declare const provide: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: Effect, value: Scope): Effect>; }; /** - * Adds a finalizer to a scope that will be executed when the scope is closed. - * Finalizers are cleanup functions that receive the exit value of the scope. + * Registers an exit-aware finalizer on a scope. + * + * **When to use** + * + * Use when cleanup needs to know whether the scope closed with success, + * failure, or interruption. + * + * **Details** + * + * If the scope is open, the finalizer runs when the scope closes and receives + * the scope's exit value. If the scope is already closed, the finalizer runs + * immediately with the stored exit value. + * + * **Example** (Adding an exit-aware finalizer) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -379,15 +419,20 @@ export declare const provide: { * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export declare const addFinalizerExit: (scope: Scope, finalizer: (exit: Exit) => Effect) => Effect; /** - * Adds a finalizer to a scope. The finalizer is a simple `Effect` that will be - * executed when the scope is closed, regardless of whether the scope closes - * successfully or with an error. + * Registers a finalizer effect on a scope. + * + * **Details** + * + * If the scope is open, the finalizer runs when the scope closes, regardless of + * whether the scope closes successfully or with an error. If the scope is + * already closed, the finalizer runs immediately. + * + * **Example** (Adding finalizers) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -407,15 +452,21 @@ export declare const addFinalizerExit: (scope: Scope, finalizer: (exit: Exit) => Effect; /** - * Creates a child scope from a parent scope. The child scope inherits the - * parent's finalization strategy unless overridden. + * Creates a closeable child scope registered with a parent scope. + * + * **Details** + * + * Closing the parent closes the child with the same exit value, and closing the + * child detaches it from the parent. The optional finalizer strategy configures + * the child scope and defaults to `"sequential"` when omitted. + * + * **Example** (Creating a child scope) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -438,14 +489,25 @@ export declare const addFinalizer: (scope: Scope, finalizer: Effect) => * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export declare const fork: (scope: Scope, finalizerStrategy?: "sequential" | "parallel") => Effect; /** - * Creates a child scope from a parent scope synchronously without wrapping it in an `Effect`. - * The child scope inherits the parent's finalization strategy unless overridden. + * Creates a closeable child scope synchronously and registers it with a parent scope. + * + * **When to use** + * + * Use when a child scope must be created synchronously and the caller controls + * both parent and child scope lifetimes. + * + * **Details** + * + * Closing the parent closes the child with the same exit value, and closing the + * child detaches it from the parent. The optional finalizer strategy configures + * the child scope and defaults to `"sequential"` when omitted. + * + * **Example** (Creating a child scope synchronously) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -463,15 +525,24 @@ export declare const fork: (scope: Scope, finalizerStrategy?: "sequential" | "pa * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const forkUnsafe: (scope: Scope, finalizerStrategy?: "sequential" | "parallel") => Closeable; /** - * Closes a scope, running all registered finalizers in the appropriate order. - * The exit value is passed to each finalizer. + * Closes a scope and runs its registered finalizers. + * + * **When to use** + * + * Use to close a scope manually with a specific exit value. + * + * **Details** + * + * Finalizers run in the scope's configured order and receive the supplied + * `Exit`. + * + * **Example** (Running scope finalizers) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -493,26 +564,97 @@ export declare const forkUnsafe: (scope: Scope, finalizerStrategy?: "sequential" * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export declare const close: (self: Scope, exit: Exit) => Effect; /** + * Closes a scope unsafely with the provided exit value. + * + * **When to use** + * + * Use when implementing lower-level scope machinery that must transition a + * scope to `Closed` immediately and can run the returned finalizer effect when + * one is produced. + * + * **Details** + * + * Returns an effect that runs registered finalizers, or `undefined` when the + * scope was already closed or no finalizers need to run. + * + * **Gotchas** + * + * Ignoring the returned effect skips registered finalizers. + * + * @see {@link close} for the usual effectful close operation that always returns an `Effect` + * + * @category unsafe * @since 4.0.0 */ export declare const closeUnsafe: (self: Scope, exit_: Exit) => Effect | undefined; /** + * Runs an effect with the provided closeable scope in its context and closes + * that scope when the effect exits. + * + * **When to use** + * + * Use when you already have a `Closeable` scope and want to run an effect that + * requires `Scope` while automatically closing that scope when the effect exits. + * + * **Details** + * + * The scope is closed with the same exit value as the effect, so registered + * finalizers can observe whether the effect succeeded, failed, or was + * interrupted. + * + * @see `provide` for providing a scope without closing it automatically + * @see `Effect.scoped` for creating and closing a fresh scope around a workflow + * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export declare const use: { /** + * Runs an effect with the provided closeable scope in its context and closes + * that scope when the effect exits. + * + * **When to use** + * + * Use when you already have a `Closeable` scope and want to run an effect that + * requires `Scope` while automatically closing that scope when the effect exits. + * + * **Details** + * + * The scope is closed with the same exit value as the effect, so registered + * finalizers can observe whether the effect succeeded, failed, or was + * interrupted. + * + * @see `provide` for providing a scope without closing it automatically + * @see `Effect.scoped` for creating and closing a fresh scope around a workflow + * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ (scope: Closeable): (self: Effect) => Effect>; /** + * Runs an effect with the provided closeable scope in its context and closes + * that scope when the effect exits. + * + * **When to use** + * + * Use when you already have a `Closeable` scope and want to run an effect that + * requires `Scope` while automatically closing that scope when the effect exits. + * + * **Details** + * + * The scope is closed with the same exit value as the effect, so registered + * finalizers can observe whether the effect succeeded, failed, or was + * interrupted. + * + * @see `provide` for providing a scope without closing it automatically + * @see `Effect.scoped` for creating and closing a fresh scope around a workflow + * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ (self: Effect, scope: Closeable): Effect>; }; diff --git a/.opencode/node_modules/effect/dist/Scope.d.ts.map b/.opencode/node_modules/effect/dist/Scope.d.ts.map index 47584f852fcf073d6873c520aba6fce143537cc9..a51cb5bea79809fb72236e58c11f5aed5b70c3a3 100644 --- a/.opencode/node_modules/effect/dist/Scope.d.ts.map +++ b/.opencode/node_modules/effect/dist/Scope.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../src/Scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;A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;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,IAAI,CAAqB,CAAA;AAE7F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,SACxE,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,GAAG,EAAE;IAChB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,CAAC,KAAK,EAAE,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;IACvF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;CAClE,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Scope.js b/.opencode/node_modules/effect/dist/Scope.js index d374a75b7d319bc1a5791e5d9c66a1f8b219161d..7b6e5dfa2e557eff136af0c34bd0e1589a84807f 100644 --- a/.opencode/node_modules/effect/dist/Scope.js +++ b/.opencode/node_modules/effect/dist/Scope.js @@ -1,15 +1,11 @@ /** - * The `Scope` module provides functionality for managing resource lifecycles - * and cleanup operations in a functional and composable manner. + * Controls how long resources stay open. * - * A `Scope` represents a context where resources can be acquired and automatically - * cleaned up when the scope is closed. This is essential for managing resources - * like file handles, database connections, or any other resources that need - * proper cleanup. - * - * Scopes support both sequential and parallel finalization strategies: - * - Sequential: Finalizers run one after another in reverse order of registration - * - Parallel: Finalizers run concurrently for better performance + * A scope is a lifetime boundary. Code can register cleanup effects on it, and + * closing the scope runs those cleanups with the `Exit` value that ended the + * work. Most application code uses higher-level APIs such as `Effect.scoped` + * and `Layer`, while this module is useful when code needs to create, provide, + * fork, close, or inspect scopes directly. * * @since 2.0.0 */ @@ -17,9 +13,15 @@ import * as effect from "./internal/effect.js"; const TypeId = effect.ScopeTypeId; const CloseableTypeId = effect.ScopeCloseableTypeId; /** - * The service tag for `Scope`, used for dependency injection in the Effect system. + * Service tag for the active resource lifetime. + * + * **When to use** + * + * Use to access the active lifetime when registering finalizers or sharing + * resources with the surrounding scope. + * + * **Example** (Accessing the scope service) * - * @example * ```ts * import { Effect, Scope } from "effect" * @@ -35,14 +37,15 @@ const CloseableTypeId = effect.ScopeCloseableTypeId; * const scoped = Effect.scoped(program) * ``` * + * @category services * @since 2.0.0 - * @category tags */ export const Scope = effect.scopeTag; /** * Creates a new `Scope` with the specified finalizer strategy. * - * @example + * **Example** (Creating a scope) + * * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -69,7 +72,13 @@ export const make = effect.scopeMake; * This is useful when you need a scope immediately but should be used with caution * as it doesn't provide the same safety guarantees as the `Effect`-wrapped version. * - * @example + * **When to use** + * + * Use when a scope must be allocated synchronously and the caller will close it + * manually. + * + * **Example** (Creating a scope synchronously) + * * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -83,21 +92,24 @@ export const make = effect.scopeMake; * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const makeUnsafe = effect.scopeMakeUnsafe; /** - * Provides a `Scope` to an `Effect`, removing the `Scope` requirement from its context. - * This allows you to run effects that require a scope by explicitly providing one. + * Provides a concrete `Scope` to an effect. + * + * **When to use** + * + * Use to run an effect that requires `Scope` with a scope managed by the + * caller. * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * Providing the scope removes the `Scope` requirement from the effect context. * - * - `Scope.extend` + * **Example** (Providing a scope) * - * @example * ```ts * import { Console, Effect, Scope } from "effect" * @@ -115,15 +127,26 @@ export const makeUnsafe = effect.scopeMakeUnsafe; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const provide = effect.provideScope; /** - * Adds a finalizer to a scope that will be executed when the scope is closed. - * Finalizers are cleanup functions that receive the exit value of the scope. + * Registers an exit-aware finalizer on a scope. + * + * **When to use** + * + * Use when cleanup needs to know whether the scope closed with success, + * failure, or interruption. + * + * **Details** + * + * If the scope is open, the finalizer runs when the scope closes and receives + * the scope's exit value. If the scope is already closed, the finalizer runs + * immediately with the stored exit value. + * + * **Example** (Adding an exit-aware finalizer) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -150,15 +173,20 @@ export const provide = effect.provideScope; * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export const addFinalizerExit = effect.scopeAddFinalizerExit; /** - * Adds a finalizer to a scope. The finalizer is a simple `Effect` that will be - * executed when the scope is closed, regardless of whether the scope closes - * successfully or with an error. + * Registers a finalizer effect on a scope. + * + * **Details** + * + * If the scope is open, the finalizer runs when the scope closes, regardless of + * whether the scope closes successfully or with an error. If the scope is + * already closed, the finalizer runs immediately. + * + * **Example** (Adding finalizers) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -178,15 +206,21 @@ export const addFinalizerExit = effect.scopeAddFinalizerExit; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const addFinalizer = effect.scopeAddFinalizer; /** - * Creates a child scope from a parent scope. The child scope inherits the - * parent's finalization strategy unless overridden. + * Creates a closeable child scope registered with a parent scope. + * + * **Details** + * + * Closing the parent closes the child with the same exit value, and closing the + * child detaches it from the parent. The optional finalizer strategy configures + * the child scope and defaults to `"sequential"` when omitted. + * + * **Example** (Creating a child scope) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -209,14 +243,25 @@ export const addFinalizer = effect.scopeAddFinalizer; * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export const fork = effect.scopeFork; /** - * Creates a child scope from a parent scope synchronously without wrapping it in an `Effect`. - * The child scope inherits the parent's finalization strategy unless overridden. + * Creates a closeable child scope synchronously and registers it with a parent scope. + * + * **When to use** + * + * Use when a child scope must be created synchronously and the caller controls + * both parent and child scope lifetimes. + * + * **Details** + * + * Closing the parent closes the child with the same exit value, and closing the + * child detaches it from the parent. The optional finalizer strategy configures + * the child scope and defaults to `"sequential"` when omitted. + * + * **Example** (Creating a child scope synchronously) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -234,15 +279,24 @@ export const fork = effect.scopeFork; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const forkUnsafe = effect.scopeForkUnsafe; /** - * Closes a scope, running all registered finalizers in the appropriate order. - * The exit value is passed to each finalizer. + * Closes a scope and runs its registered finalizers. + * + * **When to use** + * + * Use to close a scope manually with a specific exit value. + * + * **Details** + * + * Finalizers run in the scope's configured order and receive the supplied + * `Exit`. + * + * **Example** (Running scope finalizers) * - * @example * ```ts * import { Console, Effect, Exit, Scope } from "effect" * @@ -264,16 +318,53 @@ export const forkUnsafe = effect.scopeForkUnsafe; * ``` * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export const close = effect.scopeClose; /** + * Closes a scope unsafely with the provided exit value. + * + * **When to use** + * + * Use when implementing lower-level scope machinery that must transition a + * scope to `Closed` immediately and can run the returned finalizer effect when + * one is produced. + * + * **Details** + * + * Returns an effect that runs registered finalizers, or `undefined` when the + * scope was already closed or no finalizers need to run. + * + * **Gotchas** + * + * Ignoring the returned effect skips registered finalizers. + * + * @see {@link close} for the usual effectful close operation that always returns an `Effect` + * + * @category unsafe * @since 4.0.0 */ export const closeUnsafe = effect.scopeCloseUnsafe; /** + * Runs an effect with the provided closeable scope in its context and closes + * that scope when the effect exits. + * + * **When to use** + * + * Use when you already have a `Closeable` scope and want to run an effect that + * requires `Scope` while automatically closing that scope when the effect exits. + * + * **Details** + * + * The scope is closed with the same exit value as the effect, so registered + * finalizers can observe whether the effect succeeded, failed, or was + * interrupted. + * + * @see `provide` for providing a scope without closing it automatically + * @see `Effect.scoped` for creating and closing a fresh scope around a workflow + * * @category combinators - * @since 4.0.0 + * @since 2.0.0 */ export const use = effect.scopeUse; //# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Scope.js.map b/.opencode/node_modules/effect/dist/Scope.js.map index 858f80e18f9ba42dc86ec6fab007fb3a1571a9ac..6b9f1cf1a2aead0b173c1f6bcd4feeaebe9c3b14 100644 --- a/.opencode/node_modules/effect/dist/Scope.js.map +++ b/.opencode/node_modules/effect/dist/Scope.js.map @@ -1 +1 @@ -{"version":3,"file":"Scope.js","names":["effect","TypeId","ScopeTypeId","CloseableTypeId","ScopeCloseableTypeId","Scope","scopeTag","make","scopeMake","makeUnsafe","scopeMakeUnsafe","provide","provideScope","addFinalizerExit","scopeAddFinalizerExit","addFinalizer","scopeAddFinalizer","fork","scopeFork","forkUnsafe","scopeForkUnsafe","close","scopeClose","closeUnsafe","scopeCloseUnsafe","use","scopeUse"],"sources":["../src/Scope.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;AAmBA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAE9C,MAAMC,MAAM,GAAGD,MAAM,CAACE,WAAW;AACjC,MAAMC,eAAe,GAAGH,MAAM,CAACI,oBAAoB;AAsKnD;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,KAAK,GAAkCL,MAAM,CAACM,QAAQ;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,IAAI,GAAyEP,MAAM,CAACQ,SAAS;AAE1G;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,UAAU,GAAiET,MAAM,CAACU,eAAe;AAE9G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,OAAO,GAiEhBX,MAAM,CAACY,YAAY;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAO,MAAMC,gBAAgB,GAC3Bb,MAAM,CAACc,qBAAqB;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,YAAY,GAA+Df,MAAM,CAACgB,iBAAiB;AAEhH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,MAAMC,IAAI,GAGQjB,MAAM,CAACkB,SAAS;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,UAAU,GACrBnB,MAAM,CAACoB,eAAe;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,KAAK,GAA0DrB,MAAM,CAACsB,UAAU;AAE7F;;;AAGA,OAAO,MAAMC,WAAW,GACtBvB,MAAM,CAACwB,gBAAgB;AAEzB;;;;AAIA,OAAO,MAAMC,GAAG,GAWZzB,MAAM,CAAC0B,QAAQ","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Scope.js","names":["effect","TypeId","ScopeTypeId","CloseableTypeId","ScopeCloseableTypeId","Scope","scopeTag","make","scopeMake","makeUnsafe","scopeMakeUnsafe","provide","provideScope","addFinalizerExit","scopeAddFinalizerExit","addFinalizer","scopeAddFinalizer","fork","scopeFork","forkUnsafe","scopeForkUnsafe","close","scopeClose","closeUnsafe","scopeCloseUnsafe","use","scopeUse"],"sources":["../src/Scope.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;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} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ScopedCache.d.ts b/.opencode/node_modules/effect/dist/ScopedCache.d.ts index 967afcd4fd76a114a4458d1507c3dddbc432d35c..ee76b283ab2fa8d268d4fcb45fdb20236f54f451 100644 --- a/.opencode/node_modules/effect/dist/ScopedCache.d.ts +++ b/.opencode/node_modules/effect/dist/ScopedCache.d.ts @@ -9,8 +9,26 @@ import * as Predicate from "./Predicate.ts"; import * as Scope from "./Scope.ts"; declare const TypeId = "~effect/ScopedCache"; /** - * @since 4.0.0 - * @category Models + * A scoped cache whose values are acquired by a lookup effect and stored in + * per-entry scopes. + * + * **When to use** + * + * Use to cache values that acquire scoped resources and must release those + * resources when entries expire, are evicted, or are invalidated. + * + * **Details** + * + * Concurrent requests for the same key share the same in-flight lookup. + * Entries can expire based on the lookup exit, are evicted when capacity is + * exceeded, and release their entry scopes when invalidated, evicted, expired, + * or when the cache's owning scope closes. + * + * @see {@link make} for creating a scoped cache with a fixed time-to-live + * @see {@link makeWith} for creating a scoped cache with dynamic time-to-live + * + * @category models + * @since 2.0.0 */ export interface ScopedCache extends Pipeable { readonly [TypeId]: typeof TypeId; @@ -20,8 +38,20 @@ export interface ScopedCache, key: Key) => Duration.Duration; } /** + * Represents whether a `ScopedCache` is open or closed. + * + * **When to use** + * + * Use when inspecting the low-level lifecycle state of a scoped cache. + * + * **Details** + * + * `Open` stores cached entries in access order for reuse and eviction. + * `Closed` means the owning scope has closed and the cache can no longer + * perform lookup operations. + * + * @category models * @since 4.0.0 - * @category Models */ export type State = { readonly _tag: "Open"; @@ -30,11 +60,23 @@ export type State = { readonly _tag: "Closed"; }; /** - * Represents a cache entry containing a deferred value and optional expiration time. - * This is used internally by the cache implementation to track cached values and their lifetimes. + * A single scoped cache entry. * + * **When to use** + * + * Use when inspecting the open state of a `ScopedCache` and you need the stored + * deferred result, entry scope, or expiration timestamp for a key. + * + * **Details** + * + * The entry contains the deferred lookup result shared by readers, the scope + * that owns resources acquired while computing the value, and an optional + * expiration time in milliseconds. Removing the entry closes its scope. + * + * @see {@link State} for the open/closed cache state that stores entries by key + * + * @category models * @since 4.0.0 - * @category Models */ export interface Entry { expiresAt: number | undefined; @@ -42,8 +84,26 @@ export interface Entry { readonly scope: Scope.Closeable; } /** - * @since 4.0.0 - * @category Constructors + * Creates a `ScopedCache` from a lookup function, maximum capacity, and a + * time-to-live function computed from each lookup exit and key. + * + * **When to use** + * + * Use when you need a scoped cache whose entry lifetime depends on each lookup + * result or key. + * + * **Details** + * + * The cache must be constructed in a `Scope`. Each lookup runs in its own entry + * scope, and that scope is closed when the entry expires, is invalidated, is + * evicted by capacity, or when the cache's owning scope closes. + * `requireServicesAt` controls whether lookup services are captured at + * construction time or required when lookup operations run. + * + * @see {@link make} for creating a scoped cache with one fixed time-to-live + * + * @category constructors + * @since 2.0.0 */ export declare const makeWith: (options: { readonly lookup: (key: Key) => Effect.Effect; @@ -52,8 +112,24 @@ export declare const makeWith: Effect.Effect : never>, never, ("lookup" extends ServiceMode ? never : R) | Scope.Scope>; /** - * @since 4.0.0 - * @category Constructors + * Creates a `ScopedCache` with a fixed time-to-live for every lookup result. + * + * **When to use** + * + * Use to create a scoped cache when every cached lookup result should share the + * same lifetime. + * + * **Details** + * + * This is the constant-TTL variant of `makeWith`: values are acquired by the + * lookup effect in per-entry scopes, capacity can evict older entries, and + * entry scopes are closed when entries expire, are invalidated, are evicted, or + * when the cache's owning scope closes. + * + * @see {@link makeWith} for computing time-to-live from each lookup result and key + * + * @category constructors + * @since 2.0.0 */ export declare const make: (options: { readonly lookup: (key: Key) => Effect.Effect; @@ -62,34 +138,139 @@ export declare const make: Effect.Effect : never>, never, ("lookup" extends ServiceMode ? never : R) | Scope.Scope>; /** + * Gets the value for a key, running the cache lookup when no unexpired entry is + * present. + * + * **When to use** + * + * Use to retrieve a scoped cached value by key when a missing or expired entry + * should run the cache lookup and share the in-flight lookup with concurrent + * callers. + * + * **Details** + * + * Concurrent `get` calls for the same key share the same in-flight lookup. + * Successful and failed lookup exits are cached according to the configured + * TTL. If the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading only when an unexpired entry is already cached + * @see {@link getSuccess} for inspecting an already-completed successful entry + * @see {@link refresh} for forcing a new lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const get: { /** + * Gets the value for a key, running the cache lookup when no unexpired entry is + * present. + * + * **When to use** + * + * Use to retrieve a scoped cached value by key when a missing or expired entry + * should run the cache lookup and share the in-flight lookup with concurrent + * callers. + * + * **Details** + * + * Concurrent `get` calls for the same key share the same in-flight lookup. + * Successful and failed lookup exits are cached according to the configured + * TTL. If the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading only when an unexpired entry is already cached + * @see {@link getSuccess} for inspecting an already-completed successful entry + * @see {@link refresh} for forcing a new lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect; /** + * Gets the value for a key, running the cache lookup when no unexpired entry is + * present. + * + * **When to use** + * + * Use to retrieve a scoped cached value by key when a missing or expired entry + * should run the cache lookup and share the in-flight lookup with concurrent + * callers. + * + * **Details** + * + * Concurrent `get` calls for the same key share the same in-flight lookup. + * Successful and failed lookup exits are cached according to the configured + * TTL. If the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading only when an unexpired entry is already cached + * @see {@link getSuccess} for inspecting an already-completed successful entry + * @see {@link refresh} for forcing a new lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect; }; /** + * Reads an existing unexpired cache entry without running the lookup function. + * + * **When to use** + * + * Use to read a scoped value only when it is already cached, without starting + * the lookup for missing or expired keys. + * + * **Details** + * + * Returns `Option.none` when the key is absent or expired. If an entry exists, + * the effect waits for its cached result and returns `Option.some(value)` on + * success, or fails with the cached lookup error. + * + * @see {@link get} for running the lookup on missing or expired keys + * @see {@link getSuccess} for inspecting only already-completed successful entries + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const getOption: { /** + * Reads an existing unexpired cache entry without running the lookup function. + * + * **When to use** + * + * Use to read a scoped value only when it is already cached, without starting + * the lookup for missing or expired keys. + * + * **Details** + * + * Returns `Option.none` when the key is absent or expired. If an entry exists, + * the effect waits for its cached result and returns `Option.some(value)` on + * success, or fails with the cached lookup error. + * + * @see {@link get} for running the lookup on missing or expired keys + * @see {@link getSuccess} for inspecting only already-completed successful entries + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect, E>; /** + * Reads an existing unexpired cache entry without running the lookup function. + * + * **When to use** + * + * Use to read a scoped value only when it is already cached, without starting + * the lookup for missing or expired keys. + * + * **Details** + * + * Returns `Option.none` when the key is absent or expired. If an entry exists, + * the effect waits for its cached result and returns `Option.some(value)` on + * success, or fails with the cached lookup error. + * + * @see {@link get} for running the lookup on missing or expired keys + * @see {@link getSuccess} for inspecting only already-completed successful entries + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect, E>; }; @@ -97,192 +278,492 @@ export declare const getOption: { * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **When to use** + * + * Use to inspect an already-completed successful scoped cache entry without + * running or awaiting the lookup effect. + * + * **Details** + * + * Returns `Option.some` for a resolved successful entry. Returns `Option.none` + * for missing, expired, failed, or still-pending entries. + * + * @see {@link get} for awaiting or starting the lookup effect + * @see {@link getOption} for awaiting an already-cached entry without starting a lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const getSuccess: { /** * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **When to use** + * + * Use to inspect an already-completed successful scoped cache entry without + * running or awaiting the lookup effect. + * + * **Details** + * + * Returns `Option.some` for a resolved successful entry. Returns `Option.none` + * for missing, expired, failed, or still-pending entries. + * + * @see {@link get} for awaiting or starting the lookup effect + * @see {@link getOption} for awaiting an already-cached entry without starting a lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect>; /** * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **When to use** + * + * Use to inspect an already-completed successful scoped cache entry without + * running or awaiting the lookup effect. + * + * **Details** + * + * Returns `Option.some` for a resolved successful entry. Returns `Option.none` + * for missing, expired, failed, or still-pending entries. + * + * @see {@link get} for awaiting or starting the lookup effect + * @see {@link getOption} for awaiting an already-cached entry without starting a lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect>; }; /** - * Sets the value associated with the specified key in the cache. This will - * overwrite any existing value for that key, skipping the lookup function. + * Sets a successful value for a key without running the lookup function. + * + * **When to use** + * + * Use to seed or overwrite a scoped cache entry with an already available + * successful value. * + * **Details** + * + * This replaces and closes any existing entry scope for the key, applies the + * cache's TTL using a successful exit for the value, and may evict older + * entries if the cache capacity is exceeded. + * + * @see {@link get} for reading or computing a cached value + * @see {@link refresh} for replacing an entry by running the lookup function + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const set: { /** - * Sets the value associated with the specified key in the cache. This will - * overwrite any existing value for that key, skipping the lookup function. + * Sets a successful value for a key without running the lookup function. + * + * **When to use** + * + * Use to seed or overwrite a scoped cache entry with an already available + * successful value. + * + * **Details** * + * This replaces and closes any existing entry scope for the key, applies the + * cache's TTL using a successful exit for the value, and may evict older + * entries if the cache capacity is exceeded. + * + * @see {@link get} for reading or computing a cached value + * @see {@link refresh} for replacing an entry by running the lookup function + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key, value: A): (self: ScopedCache) => Effect.Effect; /** - * Sets the value associated with the specified key in the cache. This will - * overwrite any existing value for that key, skipping the lookup function. + * Sets a successful value for a key without running the lookup function. + * + * **When to use** + * + * Use to seed or overwrite a scoped cache entry with an already available + * successful value. + * + * **Details** * + * This replaces and closes any existing entry scope for the key, applies the + * cache's TTL using a successful exit for the value, and may evict older + * entries if the cache capacity is exceeded. + * + * @see {@link get} for reading or computing a cached value + * @see {@link refresh} for replacing an entry by running the lookup function + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key, value: A): Effect.Effect; }; /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **When to use** + * + * Use to test whether an unexpired entry exists for a key without running the + * cache lookup. + * + * **Details** + * + * This does not start lookups and does not refresh access order. Expired + * entries are treated as absent and their scopes are closed while checking. If + * the cache is closed, the effect is interrupted. * + * @see {@link getOption} for reading an existing cached entry + * @see {@link get} for running the lookup on missing or expired keys + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const has: { /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **When to use** + * + * Use to test whether an unexpired entry exists for a key without running the + * cache lookup. + * + * **Details** + * + * This does not start lookups and does not refresh access order. Expired + * entries are treated as absent and their scopes are closed while checking. If + * the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading an existing cached entry + * @see {@link get} for running the lookup on missing or expired keys * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect; /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. * + * **When to use** + * + * Use to test whether an unexpired entry exists for a key without running the + * cache lookup. + * + * **Details** + * + * This does not start lookups and does not refresh access order. Expired + * entries are treated as absent and their scopes are closed while checking. If + * the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading an existing cached entry + * @see {@link get} for running the lookup on missing or expired keys + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect; }; /** - * Invalidates the entry associated with the specified key in the cache. + * Removes the entry associated with a key and closes its entry scope. + * + * **When to use** + * + * Use to remove a single key from a scoped cache and release any resources owned + * by that entry before a later lookup computes it again. + * + * **Details** + * + * If the key is absent, this is a no-op. + * + * **Gotchas** + * + * If the cache is closed, the effect is interrupted. + * + * @see {@link refresh} for replacing a key by running a new lookup immediately + * @see {@link invalidateWhen} for invalidating only when a cached value matches a predicate + * @see {@link invalidateAll} for removing every cached entry * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidate: { /** - * Invalidates the entry associated with the specified key in the cache. + * Removes the entry associated with a key and closes its entry scope. * + * **When to use** + * + * Use to remove a single key from a scoped cache and release any resources owned + * by that entry before a later lookup computes it again. + * + * **Details** + * + * If the key is absent, this is a no-op. + * + * **Gotchas** + * + * If the cache is closed, the effect is interrupted. + * + * @see {@link refresh} for replacing a key by running a new lookup immediately + * @see {@link invalidateWhen} for invalidating only when a cached value matches a predicate + * @see {@link invalidateAll} for removing every cached entry + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect; /** - * Invalidates the entry associated with the specified key in the cache. + * Removes the entry associated with a key and closes its entry scope. + * + * **When to use** + * + * Use to remove a single key from a scoped cache and release any resources owned + * by that entry before a later lookup computes it again. + * + * **Details** + * + * If the key is absent, this is a no-op. + * + * **Gotchas** * + * If the cache is closed, the effect is interrupted. + * + * @see {@link refresh} for replacing a key by running a new lookup immediately + * @see {@link invalidateWhen} for invalidating only when a cached value matches a predicate + * @see {@link invalidateAll} for removing every cached entry + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect; }; /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **When to use** + * + * Use to remove an already-cached scoped value only when the successful cached + * value satisfies a predicate. + * + * **Details** + * + * Returns `true` only when a successful cached value matches and is removed. It + * returns `false` for absent, expired, failed, or non-matching entries. * + * **Gotchas** + * + * A matching invalidation closes the entry scope and releases its resources. + * + * @see {@link invalidate} for unconditional removal by key + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidateWhen: { /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **When to use** + * + * Use to remove an already-cached scoped value only when the successful cached + * value satisfies a predicate. * + * **Details** + * + * Returns `true` only when a successful cached value matches and is removed. It + * returns `false` for absent, expired, failed, or non-matching entries. + * + * **Gotchas** + * + * A matching invalidation closes the entry scope and releases its resources. + * + * @see {@link invalidate} for unconditional removal by key + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key, f: Predicate.Predicate): (self: ScopedCache) => Effect.Effect; /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **When to use** + * + * Use to remove an already-cached scoped value only when the successful cached + * value satisfies a predicate. + * + * **Details** + * + * Returns `true` only when a successful cached value matches and is removed. It + * returns `false` for absent, expired, failed, or non-matching entries. + * + * **Gotchas** + * + * A matching invalidation closes the entry scope and releases its resources. + * + * @see {@link invalidate} for unconditional removal by key * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key, f: Predicate.Predicate): Effect.Effect; }; /** * Forces a refresh of the value associated with the specified key in the cache. * + * **When to use** + * + * Use to recompute a scoped cache entry immediately, even when an unexpired + * value is already cached. + * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * + * @see {@link get} for reusing an unexpired entry before running the lookup + * @see {@link invalidate} for removing an entry without recomputing it + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const refresh: { /** * Forces a refresh of the value associated with the specified key in the cache. * + * **When to use** + * + * Use to recompute a scoped cache entry immediately, even when an unexpired + * value is already cached. + * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * + * @see {@link get} for reusing an unexpired entry before running the lookup + * @see {@link invalidate} for removing an entry without recomputing it + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: ScopedCache) => Effect.Effect; /** * Forces a refresh of the value associated with the specified key in the cache. * + * **When to use** + * + * Use to recompute a scoped cache entry immediately, even when an unexpired + * value is already cached. + * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * + * @see {@link get} for reusing an unexpired entry before running the lookup + * @see {@link invalidate} for removing an entry without recomputing it + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: ScopedCache, key: Key): Effect.Effect; }; /** - * Invalidates all entries in the cache. + * Removes every entry from the cache and closes each entry scope. * + * **When to use** + * + * Use to clear a scoped cache and release resources owned by all cached entries. + * + * **Details** + * + * If the cache is closed, the effect is interrupted. + * + * @see {@link invalidate} for removing one cached entry + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidateAll: (self: ScopedCache) => Effect.Effect; /** * Retrieves the approximate number of entries in the cache. * + * **When to use** + * + * Use to inspect how many entries are currently stored in the scoped cache. + * + * **Gotchas** + * * Note that expired entries are counted until they are accessed and removed. * The size reflects the current number of entries stored, not the number * of valid entries. * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const size: (self: ScopedCache) => Effect.Effect; /** * Retrieves all active keys from the cache, automatically filtering out expired entries. * + * **When to use** + * + * Use to inspect currently cached unexpired keys without running cache lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link entries} for retrieving successful cached key-value pairs + * @see {@link values} for retrieving only successfully cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const keys: (self: ScopedCache) => Effect.Effect>; /** * Retrieves all successfully cached values from the cache, excluding failed * lookups and expired entries. * + * **When to use** + * + * Use to inspect currently successful cached values without running cache + * lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link entries} for retrieving successful cached key-value pairs + * @see {@link keys} for retrieving only cached keys + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const values: (self: ScopedCache) => Effect.Effect>; /** - * Retrieves all key-value pairs from the cache as an iterable. This function + * Retrieves all key-value pairs from the cache as an array. This function * only returns entries with successfully resolved values, filtering out any * failed lookups or expired entries. * + * **When to use** + * + * Use to inspect the currently successful cached key-value pairs without + * running cache lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link keys} for retrieving only cached keys + * @see {@link values} for retrieving only cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const entries: (self: ScopedCache) => Effect.Effect>; export {}; diff --git a/.opencode/node_modules/effect/dist/ScopedCache.d.ts.map b/.opencode/node_modules/effect/dist/ScopedCache.d.ts.map index 4efaa5b4a75eca398de3ed3578d60eef1c53f2eb..828d8b0108e54e23ffa461cb4a5d553f83f1e3de 100644 --- a/.opencode/node_modules/effect/dist/ScopedCache.d.ts.map +++ b/.opencode/node_modules/effect/dist/ScopedCache.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ScopedCache.d.ts","sourceRoot":"","sources":["../src/ScopedCache.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAA;AAMtC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,QAAA,MAAM,MAAM,wBAAwB,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAE,SAAQ,QAAQ;IAClG,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAA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O,MAAM,IAAI,GAAI,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAgBzF,CAAA;AAEJ;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CACnC,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAqBjG,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ScopedCache.js b/.opencode/node_modules/effect/dist/ScopedCache.js index d4eaa78d6f8d72a489e51af8fdbad995d43e393e..cf4b2c6b2237a24d2182ba00f6c1eeb2d4692767 100644 --- a/.opencode/node_modules/effect/dist/ScopedCache.js +++ b/.opencode/node_modules/effect/dist/ScopedCache.js @@ -1,4 +1,13 @@ /** + * Caches values that need scoped resource management. + * + * Each cached entry owns its own `Scope`, so resources opened while creating a + * value stay alive while that entry is cached and are released when the entry is + * removed. A `ScopedCache` also belongs to an outer scope, which closes all + * remaining entries when the cache is closed. Lookups for the same missing key + * share one in-progress effect, and entries can expire, be refreshed, be + * invalidated, or be evicted by capacity limits. + * * @since 4.0.0 */ import * as Arr from "./Array.js"; @@ -16,8 +25,26 @@ import * as Predicate from "./Predicate.js"; import * as Scope from "./Scope.js"; const TypeId = "~effect/ScopedCache"; /** - * @since 4.0.0 - * @category Constructors + * Creates a `ScopedCache` from a lookup function, maximum capacity, and a + * time-to-live function computed from each lookup exit and key. + * + * **When to use** + * + * Use when you need a scoped cache whose entry lifetime depends on each lookup + * result or key. + * + * **Details** + * + * The cache must be constructed in a `Scope`. Each lookup runs in its own entry + * scope, and that scope is closed when the entry expires, is invalidated, is + * evicted by capacity, or when the cache's owning scope closes. + * `requireServicesAt` controls whether lookup services are captured at + * construction time or required when lookup operations run. + * + * @see {@link make} for creating a scoped cache with one fixed time-to-live + * + * @category constructors + * @since 2.0.0 */ export const makeWith = options => effect.contextWith(context => { const scope = Context.get(context, Scope.Scope); @@ -38,8 +65,24 @@ export const makeWith = options => effect.contextWith(context => { })), self); }); /** - * @since 4.0.0 - * @category Constructors + * Creates a `ScopedCache` with a fixed time-to-live for every lookup result. + * + * **When to use** + * + * Use to create a scoped cache when every cached lookup result should share the + * same lifetime. + * + * **Details** + * + * This is the constant-TTL variant of `makeWith`: values are acquired by the + * lookup effect in per-entry scopes, capacity can evict older entries, and + * entry scopes are closed when entries expire, are invalidated, are evicted, or + * when the cache's owning scope closes. + * + * @see {@link makeWith} for computing time-to-live from each lookup result and key + * + * @category constructors + * @since 2.0.0 */ export const make = options => makeWith({ ...options, @@ -58,8 +101,27 @@ const Proto = { }; const defaultTimeToLive = (_, _key) => Duration.infinity; /** + * Gets the value for a key, running the cache lookup when no unexpired entry is + * present. + * + * **When to use** + * + * Use to retrieve a scoped cached value by key when a missing or expired entry + * should run the cache lookup and share the in-flight lookup with concurrent + * callers. + * + * **Details** + * + * Concurrent `get` calls for the same key share the same in-flight lookup. + * Successful and failed lookup exits are cached according to the configured + * TTL. If the cache is closed, the effect is interrupted. + * + * @see {@link getOption} for reading only when an unexpired entry is already cached + * @see {@link getSuccess} for inspecting an already-completed successful entry + * @see {@link refresh} for forcing a new lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const get = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptibleMask(restore => core.withFiber(fiber => { const state = self.state; @@ -111,8 +173,24 @@ const checkCapacity = (parent, map, capacity) => { return effect.fiberAwaitAll(fibers); }; /** + * Reads an existing unexpired cache entry without running the lookup function. + * + * **When to use** + * + * Use to read a scoped value only when it is already cached, without starting + * the lookup for missing or expired keys. + * + * **Details** + * + * Returns `Option.none` when the key is absent or expired. If an entry exists, + * the effect waits for its cached result and returns `Option.some(value)` on + * success, or fails with the cached lookup error. + * + * @see {@link get} for running the lookup on missing or expired keys + * @see {@link getSuccess} for inspecting only already-completed successful entries + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const getOption = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptibleMask(restore => core.withFiber(fiber => effect.flatMap(getImpl(self, key, fiber), entry => entry ? effect.asSome(restore(Deferred.await(entry.deferred))) : effect.succeedNone)))); const getImpl = (self, key, fiber, isRead = true) => { @@ -136,8 +214,21 @@ const getImpl = (self, key, fiber, isRead = true) => { * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **When to use** + * + * Use to inspect an already-completed successful scoped cache entry without + * running or awaiting the lookup effect. + * + * **Details** + * + * Returns `Option.some` for a resolved successful entry. Returns `Option.none` + * for missing, expired, failed, or still-pending entries. + * + * @see {@link get} for awaiting or starting the lookup effect + * @see {@link getOption} for awaiting an already-cached entry without starting a lookup + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptible(core.withFiber(fiber => effect.map(getImpl(self, key, fiber), entry => { const exit = entry?.deferred.effect; @@ -147,11 +238,24 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => effect.uninterrupt return Option.none(); })))); /** - * Sets the value associated with the specified key in the cache. This will - * overwrite any existing value for that key, skipping the lookup function. + * Sets a successful value for a key without running the lookup function. + * + * **When to use** + * + * Use to seed or overwrite a scoped cache entry with an already available + * successful value. + * + * **Details** + * + * This replaces and closes any existing entry scope for the key, applies the + * cache's TTL using a successful exit for the value, and may evict older + * entries if the cache capacity is exceeded. * + * @see {@link get} for reading or computing a cached value + * @see {@link refresh} for replacing an entry by running the lookup function + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const set = /*#__PURE__*/dual(3, (self, key, value) => effect.uninterruptible(core.withFiber(fiber => { if (self.state._tag === "Closed") { @@ -172,17 +276,48 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => effect.uninterrupt return Option.isSome(oentry) ? effect.flatMap(Scope.close(oentry.value.scope, effect.exitVoid), () => check) : check; }))); /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **When to use** + * + * Use to test whether an unexpired entry exists for a key without running the + * cache lookup. + * + * **Details** + * + * This does not start lookups and does not refresh access order. Expired + * entries are treated as absent and their scopes are closed while checking. If + * the cache is closed, the effect is interrupted. * + * @see {@link getOption} for reading an existing cached entry + * @see {@link get} for running the lookup on missing or expired keys + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const has = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptible(core.withFiber(fiber => effect.map(getImpl(self, key, fiber, false), Predicate.isNotUndefined)))); /** - * Invalidates the entry associated with the specified key in the cache. + * Removes the entry associated with a key and closes its entry scope. + * + * **When to use** + * + * Use to remove a single key from a scoped cache and release any resources owned + * by that entry before a later lookup computes it again. + * + * **Details** + * + * If the key is absent, this is a no-op. + * + * **Gotchas** * + * If the cache is closed, the effect is interrupted. + * + * @see {@link refresh} for replacing a key by running a new lookup immediately + * @see {@link invalidateWhen} for invalidating only when a cached value matches a predicate + * @see {@link invalidateAll} for removing every cached entry + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidate = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptible(effect.suspend(() => { if (self.state._tag === "Closed") { @@ -196,11 +331,27 @@ export const invalidate = /*#__PURE__*/dual(2, (self, key) => effect.uninterrupt return Scope.close(oentry.value.scope, effect.exitVoid); }))); /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **When to use** + * + * Use to remove an already-cached scoped value only when the successful cached + * value satisfies a predicate. + * + * **Details** * + * Returns `true` only when a successful cached value matches and is removed. It + * returns `false` for absent, expired, failed, or non-matching entries. + * + * **Gotchas** + * + * A matching invalidation closes the entry scope and releases its resources. + * + * @see {@link invalidate} for unconditional removal by key + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => effect.uninterruptibleMask(restore => core.withFiber(fiber => effect.flatMap(getImpl(self, key, fiber, false), entry => { if (entry === undefined) { @@ -219,11 +370,21 @@ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => effect.unin /** * Forces a refresh of the value associated with the specified key in the cache. * + * **When to use** + * + * Use to recompute a scoped cache entry immediately, even when an unexpired + * value is already cached. + * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * + * @see {@link get} for reusing an unexpired entry before running the lookup + * @see {@link invalidate} for removing an entry without recomputing it + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const refresh = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptibleMask(effect.fnUntraced(function* (restore) { if (self.state._tag === "Closed") return yield* effect.interrupt; @@ -261,10 +422,20 @@ export const refresh = /*#__PURE__*/dual(2, (self, key) => effect.uninterruptibl return yield* exit; }))); /** - * Invalidates all entries in the cache. + * Removes every entry from the cache and closes each entry scope. + * + * **When to use** + * + * Use to clear a scoped cache and release resources owned by all cached entries. * + * **Details** + * + * If the cache is closed, the effect is interrupted. + * + * @see {@link invalidate} for removing one cached entry + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidateAll = self => core.withFiber(parent => { if (self.state._tag === "Closed") { @@ -283,19 +454,36 @@ const invalidateAllImpl = (parent, map) => { /** * Retrieves the approximate number of entries in the cache. * + * **When to use** + * + * Use to inspect how many entries are currently stored in the scoped cache. + * + * **Gotchas** + * * Note that expired entries are counted until they are accessed and removed. * The size reflects the current number of entries stored, not the number * of valid entries. * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const size = self => effect.sync(() => self.state._tag === "Closed" ? 0 : MutableHashMap.size(self.state.map)); /** * Retrieves all active keys from the cache, automatically filtering out expired entries. * + * **When to use** + * + * Use to inspect currently cached unexpired keys without running cache lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link entries} for retrieving successful cached key-value pairs + * @see {@link values} for retrieving only successfully cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const keys = self => core.withFiber(fiber => { if (self.state._tag === "Closed") return effect.succeed([]); @@ -317,17 +505,41 @@ export const keys = self => core.withFiber(fiber => { * Retrieves all successfully cached values from the cache, excluding failed * lookups and expired entries. * + * **When to use** + * + * Use to inspect currently successful cached values without running cache + * lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link entries} for retrieving successful cached key-value pairs + * @see {@link keys} for retrieving only cached keys + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const values = self => effect.map(entries(self), Arr.map(([, value]) => value)); /** - * Retrieves all key-value pairs from the cache as an iterable. This function + * Retrieves all key-value pairs from the cache as an array. This function * only returns entries with successfully resolved values, filtering out any * failed lookups or expired entries. * + * **When to use** + * + * Use to inspect the currently successful cached key-value pairs without + * running cache lookups. + * + * **Gotchas** + * + * Expired entries are removed and their scopes are closed while filtering. + * + * @see {@link keys} for retrieving only cached keys + * @see {@link values} for retrieving only cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const entries = self => core.withFiber(fiber => { if (self.state._tag === "Closed") return effect.succeed([]); diff --git a/.opencode/node_modules/effect/dist/ScopedCache.js.map b/.opencode/node_modules/effect/dist/ScopedCache.js.map index b90f42dd0535d588fcf78dc66ca60c5d8db7b93b..c3ba7f41ff7f76dd2df85070e83086c9c373dc9c 100644 --- a/.opencode/node_modules/effect/dist/ScopedCache.js.map +++ b/.opencode/node_modules/effect/dist/ScopedCache.js.map @@ -1 +1 @@ -{"version":3,"file":"ScopedCache.js","names":["Arr","Context","Deferred","Duration","Fiber","dual","identity","core","PipeInspectableProto","effect","MutableHashMap","Option","Predicate","Scope","TypeId","makeWith","options","contextWith","context","scope","get","self","Object","create","Proto","lookup","key","updateContext","input","merge","map","empty","state","_tag","capacity","timeToLive","exit","fromInputUnsafe","defaultTimeToLive","as","addFinalizer","withFiber","fiber","invalidateAllImpl","make","toJSON","_id","_","_key","infinity","uninterruptibleMask","restore","interrupt","oentry","isSome","hasExpired","value","remove","set","await","deferred","makeUnsafe","entry","expiresAt","undefined","checkCapacity","pipe","flatMap","close","exitVoid","provide","onExit","doneUnsafe","ttl","isFinite","getRef","ClockRef","currentTimeMillisUnsafe","toMillis","void","parent","Number","diff","size","fibers","push","forkUnsafe","fiberAwaitAll","getOption","getImpl","asSome","succeedNone","isRead","isNone","succeed","getSuccess","uninterruptible","exitIsSuccess","some","none","exitSucceed","check","has","isNotUndefined","invalidate","suspend","invalidateWhen","f","catch_","refresh","fnUntraced","getCurrent","newEntry","invalidateAll","clear","sync","keys","now","length","values","entries","arr","isExit","exitIsFailure"],"sources":["../src/ScopedCache.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAGzC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAC9C,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,cAAc,MAAM,qBAAqB;AACrD,OAA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AC;MACrC0D,MAAM,CAACC,IAAI,CAAC5E,MAAM,CAAC6E,UAAU,CAAC5C,KAAK,EAAE7B,KAAK,CAACuD,KAAK,CAACN,KAAK,CAAC3C,KAAK,EAAEV,MAAM,CAAC4D,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9F;EACF;EACA,OAAOe,MAAM,CAACkC,MAAM,KAAK,CAAC,GACtB7G,MAAM,CAACqF,OAAO,CAAC2B,GAAG,CAAC,GACnBhH,MAAM,CAAC8B,EAAE,CAAC9B,MAAM,CAAC8E,aAAa,CAACH,MAAM,CAAC,EAAEqC,GAAG,CAAC;AAClD,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ScopedCache.js","names":["Arr","Context","Deferred","Duration","Fiber","dual","identity","core","PipeInspectableProto","effect","MutableHashMap","Option","Predicate","Scope","TypeId","makeWith","options","contextWith","context","scope","get","self","Object","create","Proto","lookup","key","updateContext","input","merge","map","empty","state","_tag","capacity","timeToLive","exit","fromInputUnsafe","defaultTimeToLive","as","addFinalizer","withFiber","fiber","invalidateAllImpl","make","toJSON","_id","_","_key","infinity","uninterruptibleMask","restore","interrupt","oentry","isSome","hasExpired","value","remove","set","await","deferred","makeUnsafe","entry","expiresAt","undefined","checkCapacity","pipe","flatMap","close","exitVoid","provide","onExit","doneUnsafe","ttl","isFinite","getRef","ClockRef","currentTimeMillisUnsafe","toMillis","void","parent","Number","diff","size","fibers","push","forkUnsafe","fiberAwaitAll","getOption","getImpl","asSome","succeedNone","isRead","isNone","succeed","getSuccess","uninterruptible","exitIsSuccess","some","none","exitSucceed","check","has","isNotUndefined","invalidate","suspend","invalidateWhen","f","catch_","refresh","fnUntraced","getCurrent","newEntry","invalidateAll","clear","sync","keys","now","length","values","entries","arr","isExit","exitIsFailure"],"sources":["../src/ScopedCache.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAA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,EAAE;EACnE,MAAMO,MAAM,GAAGpF,GAAG,CAAC+B,KAAK,EAAiC;EACzD,MAAM0F,GAAG,GAAoB,EAAE;EAC/B,KAAK,MAAM,CAAC/F,GAAG,EAAEoC,KAAK,CAAC,IAAI9B,KAAK,CAACF,GAAG,EAAE;IACpC,IAAIgC,KAAK,CAACC,SAAS,KAAKC,SAAS,IAAIF,KAAK,CAACC,SAAS,GAAGsD,GAAG,EAAE;MAC1D,MAAMjF,IAAI,GAAG0B,KAAK,CAACF,QAAQ,CAACnD,MAAM;MAClC,IAAIF,IAAI,CAACmH,MAAM,CAACtF,IAAI,CAAC,IAAI,CAAC3B,MAAM,CAACkH,aAAa,CAACvF,IAAI,CAAC,EAAE;QACpDqF,GAAG,CAACpC,IAAI,CAAC,CAAC3D,GAAG,EAAEU,IAAI,CAACoB,KAAU,CAAC,CAAC;MAClC;IACF,CAAC,MAAM;MACL9C,cAAc,CAAC+C,MAAM,CAACzB,KAAK,CAACF,GAAG,EAAEJ,GAAG,CAAC;MACrC0D,MAAM,CAACC,IAAI,CAAC5E,MAAM,CAAC6E,UAAU,CAAC5C,KAAK,EAAE7B,KAAK,CAACuD,KAAK,CAACN,KAAK,CAAC3C,KAAK,EAAEV,MAAM,CAAC4D,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9F;EACF;EACA,OAAOe,MAAM,CAACkC,MAAM,KAAK,CAAC,GACtB7G,MAAM,CAACqF,OAAO,CAAC2B,GAAG,CAAC,GACnBhH,MAAM,CAAC8B,EAAE,CAAC9B,MAAM,CAAC8E,aAAa,CAACH,MAAM,CAAC,EAAEqC,GAAG,CAAC;AAClD,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ScopedRef.d.ts b/.opencode/node_modules/effect/dist/ScopedRef.d.ts index 447fd46cbeed3e8b127810a9c9ca245a7b7f775a..ba31a678d17daa7a646bbc01f4a75ca2de96923b 100644 --- a/.opencode/node_modules/effect/dist/ScopedRef.d.ts +++ b/.opencode/node_modules/effect/dist/ScopedRef.d.ts @@ -1,4 +1,12 @@ /** + * Stores a current value together with the scope that owns it. + * + * A `ScopedRef` is useful for resource-backed values such as clients, + * connections, subscriptions, or handles. Replacing the value acquires the + * replacement in a new scope and releases the resources owned by the previous + * value. Reads can be effectful or synchronous, and updates are synchronized so + * only one replacement happens at a time. + * * @since 2.0.0 */ import * as Effect from "./Effect.ts"; @@ -14,77 +22,141 @@ declare const TypeId = "~effect/ScopedRef"; * resources). The reference itself takes care of properly releasing resources * for the old value whenever a new value is obtained. * - * @since 2.0.0 + * **When to use** + * + * Use when an application needs to keep a current resource-backed value and + * later replace it with another acquired value while ensuring the previous + * value is released. + * * @category models + * @since 2.0.0 */ export interface ScopedRef extends Pipeable { readonly [TypeId]: typeof TypeId; readonly backing: Synchronized.SynchronizedRef; } /** - * Creates a new `ScopedRef` from an effect that resourcefully produces a - * value. + * Creates a new `ScopedRef` from an effect that acquires the initial value. * - * @since 2.0.0 + * **When to use** + * + * Use when creating a `ScopedRef` whose initial value requires acquiring + * resources that must be released. + * + * @see {@link make} for creating a `ScopedRef` from a value that does not require resource acquisition * @category constructors + * @since 2.0.0 */ export declare const fromAcquire: (acquire: Effect.Effect) => Effect.Effect, E, Scope.Scope | R>; /** - * Retrieves the current value of the scoped reference. + * Retrieves the current value of the scoped reference synchronously. + * + * **When to use** + * + * Use when you need immediate synchronous access to the current `ScopedRef` + * value and can guarantee that reading outside the `Effect` API is safe. + * + * @see {@link get} for Effect-wrapped access in Effect programs * - * @since 4.0.0 * @category getters + * @since 4.0.0 */ export declare const getUnsafe: (self: ScopedRef) => A; /** - * Retrieves the current value of the scoped reference. + * Retrieves the current value of the scoped reference effectfully. + * + * **When to use** + * + * Use to read the value currently stored in a `ScopedRef` inside an `Effect` + * workflow. + * + * @see {@link getUnsafe} for reading the current value synchronously when an unsafe read is acceptable * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const get: (self: ScopedRef) => Effect.Effect; /** - * Creates a new `ScopedRef` from the specified value. This method should - * not be used for values whose creation require the acquisition of resources. + * Creates a new `ScopedRef` from the specified value. + * + * **When to use** + * + * Use to create a `ScopedRef` when the initial value is already available or + * can be produced without acquiring resources. + * + * **Details** + * + * The `evaluate` function runs when the returned effect runs. The returned + * effect requires a `Scope`, and the reference closes the currently stored + * value's scope when that outer scope closes. + * + * **Gotchas** + * + * Do not use `make` for an initial value whose creation acquires resources; use + * `fromAcquire` so acquisition and finalization are tracked. + * + * @see {@link fromAcquire} for creating a `ScopedRef` from an effect that acquires the initial value + * @see {@link set} for replacing the current value with a newly acquired value * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: (evaluate: LazyArg) => Effect.Effect, never, Scope.Scope>; /** - * Sets the value of this reference to the specified resourcefully-created - * value. Any resources associated with the old value will be released. + * Sets the value of this reference to a newly acquired scoped value, releasing + * any resources associated with the old value. + * + * **When to use** + * + * Use to replace the current value of an existing `ScopedRef` with a newly + * acquired scoped value while releasing resources for the previous value. + * + * **Details** * * This method will not return until either the reference is successfully * changed to the new value, with old resources released, or until the attempt * to acquire a new value fails. * + * @category setters * @since 2.0.0 - * @category getters */ export declare const set: { /** - * Sets the value of this reference to the specified resourcefully-created - * value. Any resources associated with the old value will be released. + * Sets the value of this reference to a newly acquired scoped value, releasing + * any resources associated with the old value. + * + * **When to use** + * + * Use to replace the current value of an existing `ScopedRef` with a newly + * acquired scoped value while releasing resources for the previous value. + * + * **Details** * * This method will not return until either the reference is successfully * changed to the new value, with old resources released, or until the attempt * to acquire a new value fails. * + * @category setters * @since 2.0.0 - * @category getters */ (acquire: Effect.Effect): (self: ScopedRef) => Effect.Effect>; /** - * Sets the value of this reference to the specified resourcefully-created - * value. Any resources associated with the old value will be released. + * Sets the value of this reference to a newly acquired scoped value, releasing + * any resources associated with the old value. + * + * **When to use** + * + * Use to replace the current value of an existing `ScopedRef` with a newly + * acquired scoped value while releasing resources for the previous value. + * + * **Details** * * This method will not return until either the reference is successfully * changed to the new value, with old resources released, or until the attempt * to acquire a new value fails. * + * @category setters * @since 2.0.0 - * @category getters */ (self: ScopedRef, acquire: Effect.Effect): Effect.Effect>; }; diff --git a/.opencode/node_modules/effect/dist/ScopedRef.d.ts.map b/.opencode/node_modules/effect/dist/ScopedRef.d.ts.map index b5acfe6260d51123713aa25f480636534d00dad3..629d4ad93a5c96e90628ef233d9bde26064058c7 100644 --- a/.opencode/node_modules/effect/dist/ScopedRef.d.ts.map +++ b/.opencode/node_modules/effect/dist/ScopedRef.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ScopedRef.d.ts","sourceRoot":"","sources":["../src/ScopedRef.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AAEpD,QAAA,MAAM,MAAM,sBAAsB,CAAA;AAElC;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,QAAQ;IACnD,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;IAChC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAA;CAC9E;AAsBD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAChC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC5B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,C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AC,EAAE,UAAU,OAAO,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAMzF,CAAA;AAEJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,GAAG,EAAE;IAChB;;;;;;;;;;;;;;;;;OAiBG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IACnH;;;;;;;;;;;;;;;;;OAiBG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;CAmBhH,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ScopedRef.js b/.opencode/node_modules/effect/dist/ScopedRef.js index 6f298cd64a2bf4ac157e69acd29401c62f573c7f..cc070687477dd05065a67700ecbac63f6740f0e3 100644 --- a/.opencode/node_modules/effect/dist/ScopedRef.js +++ b/.opencode/node_modules/effect/dist/ScopedRef.js @@ -1,4 +1,12 @@ /** + * Stores a current value together with the scope that owns it. + * + * A `ScopedRef` is useful for resource-backed values such as clients, + * connections, subscriptions, or handles. Replacing the value acquires the + * replacement in a new scope and releases the resources owned by the previous + * value. Reads can be effectful or synchronous, and updates are synchronized so + * only one replacement happens at a time. + * * @since 2.0.0 */ import * as Effect from "./Effect.js"; @@ -24,11 +32,16 @@ const makeUnsafe = (scope, value) => { return self; }; /** - * Creates a new `ScopedRef` from an effect that resourcefully produces a - * value. + * Creates a new `ScopedRef` from an effect that acquires the initial value. * - * @since 2.0.0 + * **When to use** + * + * Use when creating a `ScopedRef` whose initial value requires acquiring + * resources that must be released. + * + * @see {@link make} for creating a `ScopedRef` from a value that does not require resource acquisition * @category constructors + * @since 2.0.0 */ export const fromAcquire = /*#__PURE__*/Effect.fnUntraced(function* (acquire) { const scope = Scope.makeUnsafe(); @@ -38,25 +51,57 @@ export const fromAcquire = /*#__PURE__*/Effect.fnUntraced(function* (acquire) { return self; }, Effect.uninterruptible); /** - * Retrieves the current value of the scoped reference. + * Retrieves the current value of the scoped reference synchronously. + * + * **When to use** + * + * Use when you need immediate synchronous access to the current `ScopedRef` + * value and can guarantee that reading outside the `Effect` API is safe. + * + * @see {@link get} for Effect-wrapped access in Effect programs * - * @since 4.0.0 * @category getters + * @since 4.0.0 */ export const getUnsafe = self => self.backing.backing.ref.current[1]; /** - * Retrieves the current value of the scoped reference. + * Retrieves the current value of the scoped reference effectfully. + * + * **When to use** + * + * Use to read the value currently stored in a `ScopedRef` inside an `Effect` + * workflow. + * + * @see {@link getUnsafe} for reading the current value synchronously when an unsafe read is acceptable * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const get = self => Effect.sync(() => getUnsafe(self)); /** - * Creates a new `ScopedRef` from the specified value. This method should - * not be used for values whose creation require the acquisition of resources. + * Creates a new `ScopedRef` from the specified value. + * + * **When to use** + * + * Use to create a `ScopedRef` when the initial value is already available or + * can be produced without acquiring resources. + * + * **Details** + * + * The `evaluate` function runs when the returned effect runs. The returned + * effect requires a `Scope`, and the reference closes the currently stored + * value's scope when that outer scope closes. + * + * **Gotchas** + * + * Do not use `make` for an initial value whose creation acquires resources; use + * `fromAcquire` so acquisition and finalization are tracked. + * + * @see {@link fromAcquire} for creating a `ScopedRef` from an effect that acquires the initial value + * @see {@link set} for replacing the current value with a newly acquired value * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = evaluate => Effect.suspend(() => { const scope = Scope.makeUnsafe(); @@ -65,15 +110,22 @@ export const make = evaluate => Effect.suspend(() => { return Effect.as(Effect.addFinalizer(exit => Scope.close(self.backing.backing.ref.current[0], exit)), self); }); /** - * Sets the value of this reference to the specified resourcefully-created - * value. Any resources associated with the old value will be released. + * Sets the value of this reference to a newly acquired scoped value, releasing + * any resources associated with the old value. + * + * **When to use** + * + * Use to replace the current value of an existing `ScopedRef` with a newly + * acquired scoped value while releasing resources for the previous value. + * + * **Details** * * This method will not return until either the reference is successfully * changed to the new value, with old resources released, or until the attempt * to acquire a new value fails. * + * @category setters * @since 2.0.0 - * @category getters */ export const set = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, acquire) { yield* Scope.close(self.backing.backing.ref.current[0], Exit.void); diff --git a/.opencode/node_modules/effect/dist/ScopedRef.js.map b/.opencode/node_modules/effect/dist/ScopedRef.js.map index b6a0c036be703c14b5e42b9aa586da91ff853e7a..194509a4a844eef1c15b6a0b33b55700843f6ccd 100644 --- a/.opencode/node_modules/effect/dist/ScopedRef.js.map +++ b/.opencode/node_modules/effect/dist/ScopedRef.js.map @@ -1 +1 @@ -{"version":3,"file":"ScopedRef.js","names":["Effect","Exit","dual","PipeInspectableProto","Scope","Synchronized","TypeId","Proto","toJSON","_id","value","backing","ref","current","makeUnsafe","scope","self","Object","create","fromAcquire","fnUntraced","acquire","pipe","provide","tapCause","cause","close","failCause","addFinalizer","exit","uninterruptible","getUnsafe","get","sync","make","evaluate","suspend","as","set","void","effect","semaphore","withPermit"],"sources":["../src/ScopedRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAASC,IAAI,QAAsB,eAAe;AAClD,SAASC,oBAA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AK,CAACmB,OAAO,CAACR,KAAK,CAAC,EACpBf,MAAM,CAACwB,QAAQ,CAAEC,KAAK,IAAKrB,KAAK,CAACsB,KAAK,CAACX,KAAK,EAAEd,IAAI,CAAC0B,SAAS,CAACF,KAAK,CAAC,CAAC,CAAC,CACtE;EACDT,IAAI,CAACL,OAAO,CAACA,OAAO,CAACC,GAAG,CAACC,OAAO,GAAG,CAACE,KAAK,EAAEL,KAAK,CAAC;AACnD,CAAC,EACDV,MAAM,CAAC8B,eAAe,EACtB,CAACU,MAAM,EAAExB,IAAI,KAAKA,IAAI,CAACL,OAAO,CAAC8B,SAAS,CAACC,UAAU,CAACF,MAAM,CAAC,CAC5D,CACF","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ScopedRef.js","names":["Effect","Exit","dual","PipeInspectableProto","Scope","Synchronized","TypeId","Proto","toJSON","_id","value","backing","ref","current","makeUnsafe","scope","self","Object","create","fromAcquire","fnUntraced","acquire","pipe","provide","tapCause","cause","close","failCause","addFinalizer","exit","uninterruptible","getUnsafe","get","sync","make","evaluate","suspend","as","set","void","effect","semaphore","withPermit"],"sources":["../src/ScopedRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAASC,IAAI,QAAsB,eAAe;AAClD,SAASC,oBAAoB,QAAQ,oBAAoB;AAEzD,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,YAAY,MAAM,sBAAsB;AAEpD,MAAMC,MAAM,GAAG,mBAAmB;AAuBlC,MAAMC,KAAK,GAAG;EACZ,GAAGJ,oBAAoB;EACvB,CAACG,MAAM,GAAGA,MAAM;EAChBE,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,WAAW;MAChBC,KAAK,EAAE,IAAI,CAACC,OAAO,CAACA,OAAO,CAACC,GAAG,CAACC,OAAO,CAAC,CAAC;KAC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C8B,eAAe,EACtB,CAACU,MAAM,EAAExB,IAAI,KAAKA,IAAI,CAACL,OAAO,CAAC8B,SAAS,CAACC,UAAU,CAACF,MAAM,CAAC,CAC5D,CACF","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Semaphore.d.ts b/.opencode/node_modules/effect/dist/Semaphore.d.ts index df8d46c57591ddc999a778b988edf38b12f8d69d..d6c33dbd00854b7788561ef4ecb119cc81a363a9 100644 --- a/.opencode/node_modules/effect/dist/Semaphore.d.ts +++ b/.opencode/node_modules/effect/dist/Semaphore.d.ts @@ -1,12 +1,33 @@ /** - * @since 2.0.0 + * Limits how many effects can use a shared resource at the same time. + * + * A `Semaphore` owns a number of permits. Work can run only after acquiring the + * permits it needs, and those permits are returned when the work finishes. This + * module includes constructors, automatic wrappers that acquire and release + * permits around an effect, manual permit operations, a non-waiting variant for + * work that should only run immediately, and resizing support for an existing + * semaphore. + * + * @since 4.0.0 */ import type * as Effect from "./Effect.ts"; import type * as Option from "./Option.ts"; /** - * @category models - * @since 2.0.0 - * @example + * A counting semaphore that coordinates concurrent access with permits. + * + * **When to use** + * + * Use to coordinate concurrent effects that need bounded access to a shared + * resource. + * + * **Details** + * + * Effects can acquire permits, wait until enough permits are available, + * release permits, or run with permits that are automatically released when + * the effect exits. + * + * **Example** (Controlling concurrent access) + * * ```ts * import { Effect, Semaphore } from "effect" * @@ -19,16 +40,30 @@ import type * as Option from "./Option.ts"; * ) * }) * ``` + * + * @see {@link make} for creating a semaphore inside Effect code + * @see {@link makeUnsafe} for creating a semaphore synchronously + * + * @category models + * @since 4.0.0 */ export interface Semaphore { /** * Adjusts the number of permits available in the semaphore. + * + * **When to use** + * + * Use to change the total permit count of an existing semaphore. */ resize(this: Semaphore, permits: number): Effect.Effect; /** * Runs an effect with the given number of permits and releases the permits * when the effect completes. * + * **When to use** + * + * Use to run an effect while holding a specified number of semaphore permits. + * * **Details** * * This function acquires the specified number of permits before executing @@ -41,6 +76,10 @@ export interface Semaphore { * Runs an effect with the given number of permits and releases the permits * when the effect completes. * + * **When to use** + * + * Use to run an effect while holding exactly one semaphore permit. + * * **Details** * * This function acquires the specified number of permits before executing @@ -53,6 +92,11 @@ export interface Semaphore { * Runs an effect only if the specified number of permits are immediately * available. * + * **When to use** + * + * Use when guarded work should run only if the requested permits are + * immediately available. + * * **Details** * * This function attempts to acquire the specified number of permits. If they @@ -65,28 +109,42 @@ export interface Semaphore { * Acquires the specified number of permits and returns the resulting * available permits, suspending the task if they are not yet available. * Concurrent pending `take` calls are processed in a first-in, first-out manner. + * + * **When to use** + * + * Use to manually acquire permits for lower-level coordination protocols. */ take(this: Semaphore, permits: number): Effect.Effect; /** * Releases the specified number of permits and returns the resulting * available permits. + * + * **When to use** + * + * Use to manually return permits acquired by a lower-level coordination + * protocol. */ release(this: Semaphore, permits: number): Effect.Effect; /** * Releases all permits held by this semaphore and returns the resulting available permits. + * + * **When to use** + * + * Use to return every currently taken permit to the semaphore at once. */ readonly releaseAll: Effect.Effect; } /** - * Unsafely creates a new Semaphore. + * Creates a `Semaphore` synchronously with the specified total + * number of permits. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use to construct a semaphore synchronously when an immediate value is + * required outside an Effect workflow. * - * - `Effect.makeSemaphoreUnsafe` + * **Example** (Creating an unsafe semaphore) * - * @example * ```ts * import { Effect, Semaphore } from "effect" * @@ -111,20 +169,20 @@ export interface Semaphore { * ], { concurrency: "unbounded" }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const makeUnsafe: (permits: number) => Semaphore; /** - * Creates a new Semaphore. + * Creates a `Semaphore` initialized with the specified total number of permits. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use to create a semaphore inside Effect code for bounding concurrency with + * automatic or manual permit management. * - * - `Effect.makeSemaphore` + * **Example** (Creating a semaphore) * - * @example * ```ts * import { Effect, Semaphore } from "effect" * @@ -145,29 +203,71 @@ export declare const makeUnsafe: (permits: number) => Semaphore; * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const make: (permits: number) => Effect.Effect; /** - * Adjusts the number of permits available in the semaphore. + * Sets the total number of permits managed by the semaphore. + * + * **When to use** + * + * Use to change the concurrency limit of an existing semaphore while keeping + * current acquisitions in place. + * + * **Details** + * + * Existing acquisitions remain taken after resizing. If the new total is less + * than the currently taken permit count, new acquisitions wait until enough + * permits are released. + * + * @see {@link make} for creating a semaphore with an initial permit count + * @see {@link release} for returning permits without changing semaphore capacity * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const resize: { /** - * Adjusts the number of permits available in the semaphore. + * Sets the total number of permits managed by the semaphore. + * + * **When to use** + * + * Use to change the concurrency limit of an existing semaphore while keeping + * current acquisitions in place. + * + * **Details** + * + * Existing acquisitions remain taken after resizing. If the new total is less + * than the currently taken permit count, new acquisitions wait until enough + * permits are released. + * + * @see {@link make} for creating a semaphore with an initial permit count + * @see {@link release} for returning permits without changing semaphore capacity * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (permits: number): (self: Semaphore) => Effect.Effect; /** - * Adjusts the number of permits available in the semaphore. + * Sets the total number of permits managed by the semaphore. + * + * **When to use** + * + * Use to change the concurrency limit of an existing semaphore while keeping + * current acquisitions in place. + * + * **Details** + * + * Existing acquisitions remain taken after resizing. If the new total is less + * than the currently taken permit count, new acquisitions wait until enough + * permits are released. + * + * @see {@link make} for creating a semaphore with an initial permit count + * @see {@link release} for returning permits without changing semaphore capacity * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number): Effect.Effect; }; @@ -175,24 +275,69 @@ export declare const resize: { * Runs an effect with the given number of permits and releases the permits when * the effect completes. * - * @since 4.0.0 + * **When to use** + * + * Use to run an effect while holding a specified number of semaphore permits + * for the duration of that effect. + * + * **Details** + * + * The effect waits until enough permits are available. Acquired permits are + * released when the wrapped effect exits. + * + * @see {@link withPermit} for acquiring exactly one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ export declare const withPermits: { /** * Runs an effect with the given number of permits and releases the permits when * the effect completes. * - * @since 4.0.0 + * **When to use** + * + * Use to run an effect while holding a specified number of semaphore permits + * for the duration of that effect. + * + * **Details** + * + * The effect waits until enough permits are available. Acquired permits are + * released when the wrapped effect exits. + * + * @see {@link withPermit} for acquiring exactly one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number): (effect: Effect.Effect) => Effect.Effect; /** * Runs an effect with the given number of permits and releases the permits when * the effect completes. * - * @since 4.0.0 + * **When to use** + * + * Use to run an effect while holding a specified number of semaphore permits + * for the duration of that effect. + * + * **Details** + * + * The effect waits until enough permits are available. Acquired permits are + * released when the wrapped effect exits. + * + * @see {@link withPermit} for acquiring exactly one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number, effect: Effect.Effect): Effect.Effect; }; @@ -200,24 +345,54 @@ export declare const withPermits: { * Runs an effect with a single permit and releases the permit when the effect * completes. * - * @since 4.0.0 + * **When to use** + * + * Use to guard an effect with exactly one semaphore permit while automatically + * releasing that permit when the effect exits. + * + * @see {@link withPermits} for acquiring more than one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ export declare const withPermit: { /** * Runs an effect with a single permit and releases the permit when the effect * completes. * - * @since 4.0.0 + * **When to use** + * + * Use to guard an effect with exactly one semaphore permit while automatically + * releasing that permit when the effect exits. + * + * @see {@link withPermits} for acquiring more than one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ (self: Semaphore): (effect: Effect.Effect) => Effect.Effect; /** * Runs an effect with a single permit and releases the permit when the effect * completes. * - * @since 4.0.0 + * **When to use** + * + * Use to guard an effect with exactly one semaphore permit while automatically + * releasing that permit when the effect exits. + * + * @see {@link withPermits} for acquiring more than one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, effect: Effect.Effect): Effect.Effect; }; @@ -225,49 +400,130 @@ export declare const withPermit: { * Runs an effect only if the specified number of permits are immediately * available. * - * @since 4.0.0 + * **When to use** + * + * Use when guarded work should run only if the requested permits are + * immediately available. + * + * **Details** + * + * When the permits are unavailable, the effect is not run and the result is + * `Option.none`. When permits are available, the effect is run, its result is + * wrapped in `Option.some`, and the acquired permits are released when the + * effect exits. + * + * @see {@link withPermits} for the variant that waits until permits are available + * * @category combinators + * @since 4.0.0 */ export declare const withPermitsIfAvailable: { /** * Runs an effect only if the specified number of permits are immediately * available. * - * @since 4.0.0 + * **When to use** + * + * Use when guarded work should run only if the requested permits are + * immediately available. + * + * **Details** + * + * When the permits are unavailable, the effect is not run and the result is + * `Option.none`. When permits are available, the effect is run, its result is + * wrapped in `Option.some`, and the acquired permits are released when the + * effect exits. + * + * @see {@link withPermits} for the variant that waits until permits are available + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number): (effect: Effect.Effect) => Effect.Effect, E, R>; /** * Runs an effect only if the specified number of permits are immediately * available. * - * @since 4.0.0 + * **When to use** + * + * Use when guarded work should run only if the requested permits are + * immediately available. + * + * **Details** + * + * When the permits are unavailable, the effect is not run and the result is + * `Option.none`. When permits are available, the effect is run, its result is + * wrapped in `Option.some`, and the acquired permits are released when the + * effect exits. + * + * @see {@link withPermits} for the variant that waits until permits are available + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number, effect: Effect.Effect): Effect.Effect, E, R>; }; /** - * Acquires the specified number of permits and returns the resulting available - * permits, suspending the task if they are not yet available. + * Acquires the specified number of permits and returns the acquired permit + * count. + * + * **When to use** + * + * Use when you need manual permit acquisition for a lower-level protocol with + * explicit acquisition and release control. + * + * **Details** + * + * The effect waits until enough permits are available. + * + * @see {@link withPermit} for automatically acquiring and releasing one permit around an effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits around an effect + * @see {@link release} for returning manually acquired permits * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const take: { /** - * Acquires the specified number of permits and returns the resulting available - * permits, suspending the task if they are not yet available. + * Acquires the specified number of permits and returns the acquired permit + * count. + * + * **When to use** + * + * Use when you need manual permit acquisition for a lower-level protocol with + * explicit acquisition and release control. + * + * **Details** + * + * The effect waits until enough permits are available. + * + * @see {@link withPermit} for automatically acquiring and releasing one permit around an effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits around an effect + * @see {@link release} for returning manually acquired permits * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (permits: number): (self: Semaphore) => Effect.Effect; /** - * Acquires the specified number of permits and returns the resulting available - * permits, suspending the task if they are not yet available. + * Acquires the specified number of permits and returns the acquired permit + * count. + * + * **When to use** + * + * Use when you need manual permit acquisition for a lower-level protocol with + * explicit acquisition and release control. + * + * **Details** + * + * The effect waits until enough permits are available. + * + * @see {@link withPermit} for automatically acquiring and releasing one permit around an effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits around an effect + * @see {@link release} for returning manually acquired permits * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number): Effect.Effect; }; @@ -275,24 +531,87 @@ export declare const take: { * Releases the specified number of permits and returns the resulting available * permits. * - * @since 4.0.0 + * **When to use** + * + * Use when you need to return permits acquired with `take` in a lower-level + * permit protocol with explicit release control. + * + * **Details** + * + * Running the effect releases the requested permits, wakes waiting acquirers + * when permits become available, and returns the current available permit + * count. + * + * **Gotchas** + * + * Manual `take` / `release` usage must keep permit counts balanced. Prefer + * `withPermit` or `withPermits` when the acquisition can be scoped to one + * effect. + * + * @see {@link take} for manually acquiring permits + * @see {@link releaseAll} for returning every currently taken permit + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ export declare const release: { /** * Releases the specified number of permits and returns the resulting available * permits. * - * @since 4.0.0 + * **When to use** + * + * Use when you need to return permits acquired with `take` in a lower-level + * permit protocol with explicit release control. + * + * **Details** + * + * Running the effect releases the requested permits, wakes waiting acquirers + * when permits become available, and returns the current available permit + * count. + * + * **Gotchas** + * + * Manual `take` / `release` usage must keep permit counts balanced. Prefer + * `withPermit` or `withPermits` when the acquisition can be scoped to one + * effect. + * + * @see {@link take} for manually acquiring permits + * @see {@link releaseAll} for returning every currently taken permit + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ (permits: number): (self: Semaphore) => Effect.Effect; /** * Releases the specified number of permits and returns the resulting available * permits. * - * @since 4.0.0 + * **When to use** + * + * Use when you need to return permits acquired with `take` in a lower-level + * permit protocol with explicit release control. + * + * **Details** + * + * Running the effect releases the requested permits, wakes waiting acquirers + * when permits become available, and returns the current available permit + * count. + * + * **Gotchas** + * + * Manual `take` / `release` usage must keep permit counts balanced. Prefer + * `withPermit` or `withPermits` when the acquisition can be scoped to one + * effect. + * + * @see {@link take} for manually acquiring permits + * @see {@link releaseAll} for returning every currently taken permit + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ (self: Semaphore, permits: number): Effect.Effect; }; @@ -300,8 +619,16 @@ export declare const release: { * Releases all permits held by this semaphore and returns the resulting * available permits. * - * @since 4.0.0 + * **When to use** + * + * Use to return every currently taken permit to a semaphore at once, typically + * during cleanup of manual `take` / `release` protocols. + * + * @see {@link release} for releasing a known permit count + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ export declare const releaseAll: (self: Semaphore) => Effect.Effect; //# sourceMappingURL=Semaphore.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Semaphore.d.ts.map b/.opencode/node_modules/effect/dist/Semaphore.d.ts.map index 4beb2294edaff72f9557fd08f8a0c79cc9ef4992..dba1995f30f244bba2ecc82ee4862dcb79486129 100644 --- a/.opencode/node_modules/effect/dist/Semaphore.d.ts.map +++ b/.opencode/node_modules/effect/dist/Semaphore.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Semaphore.d.ts","sourceRoot":"","sources":["../src/Semaphore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAK1C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAE7D;;;;;;;;;;OAUG;IACH,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAEhH;;;;;;;;;;OAUG;IACH,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAEzE;;;;;;;;;;OAUG;IACH,sBAAsB,CACpB,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,GACd,CAAC,CAAC,EAAE,CAAC,E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,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAI3G,CAAA;AAET;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,IAAI,EAAE;IACjB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;CACU,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,OAAO,EAAE;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;CACa,CAAA;AAExE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,SAAS,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAoB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Semaphore.js b/.opencode/node_modules/effect/dist/Semaphore.js index 1e2515d51ab9a79e3bf61519cf8b45b277aac916..049e8a4b81d277925eab3999ba42ade2e9913a7b 100644 --- a/.opencode/node_modules/effect/dist/Semaphore.js +++ b/.opencode/node_modules/effect/dist/Semaphore.js @@ -2,15 +2,16 @@ import { dual } from "./Function.js"; import * as core from "./internal/core.js"; import * as internal from "./internal/effect.js"; /** - * Unsafely creates a new Semaphore. + * Creates a `Semaphore` synchronously with the specified total + * number of permits. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use to construct a semaphore synchronously when an immediate value is + * required outside an Effect workflow. * - * - `Effect.makeSemaphoreUnsafe` + * **Example** (Creating an unsafe semaphore) * - * @example * ```ts * import { Effect, Semaphore } from "effect" * @@ -35,8 +36,8 @@ import * as internal from "./internal/effect.js"; * ], { concurrency: "unbounded" }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const makeUnsafe = permits => new SemaphoreImpl(permits); class SemaphoreImpl { @@ -120,15 +121,15 @@ class SemaphoreImpl { } } /** - * Creates a new Semaphore. + * Creates a `Semaphore` initialized with the specified total number of permits. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use to create a semaphore inside Effect code for bounding concurrency with + * automatic or manual permit management. * - * - `Effect.makeSemaphore` + * **Example** (Creating a semaphore) * - * @example * ```ts * import { Effect, Semaphore } from "effect" * @@ -149,23 +150,52 @@ class SemaphoreImpl { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const make = permits => internal.sync(() => new SemaphoreImpl(permits)); /** - * Adjusts the number of permits available in the semaphore. + * Sets the total number of permits managed by the semaphore. + * + * **When to use** + * + * Use to change the concurrency limit of an existing semaphore while keeping + * current acquisitions in place. + * + * **Details** + * + * Existing acquisitions remain taken after resizing. If the new total is less + * than the currently taken permit count, new acquisitions wait until enough + * permits are released. + * + * @see {@link make} for creating a semaphore with an initial permit count + * @see {@link release} for returning permits without changing semaphore capacity * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const resize = /*#__PURE__*/dual(2, (self, permits) => self.resize(permits)); /** * Runs an effect with the given number of permits and releases the permits when * the effect completes. * - * @since 4.0.0 + * **When to use** + * + * Use to run an effect while holding a specified number of semaphore permits + * for the duration of that effect. + * + * **Details** + * + * The effect waits until enough permits are available. Acquired permits are + * released when the wrapped effect exits. + * + * @see {@link withPermit} for acquiring exactly one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ export const withPermits = (self, permits, effect) => { const withPermits = self.withPermits(permits); @@ -175,8 +205,18 @@ export const withPermits = (self, permits, effect) => { * Runs an effect with a single permit and releases the permit when the effect * completes. * - * @since 4.0.0 + * **When to use** + * + * Use to guard an effect with exactly one semaphore permit while automatically + * releasing that permit when the effect exits. + * + * @see {@link withPermits} for acquiring more than one permit + * @see {@link withPermitsIfAvailable} for running only when permits are immediately available + * @see {@link take} for manually acquiring permits + * @see {@link release} for manually returning permits + * * @category combinators + * @since 4.0.0 */ export const withPermit = (self, effect) => { if (!effect) return self.withPermit; @@ -186,35 +226,91 @@ export const withPermit = (self, effect) => { * Runs an effect only if the specified number of permits are immediately * available. * - * @since 4.0.0 + * **When to use** + * + * Use when guarded work should run only if the requested permits are + * immediately available. + * + * **Details** + * + * When the permits are unavailable, the effect is not run and the result is + * `Option.none`. When permits are available, the effect is run, its result is + * wrapped in `Option.some`, and the acquired permits are released when the + * effect exits. + * + * @see {@link withPermits} for the variant that waits until permits are available + * * @category combinators + * @since 4.0.0 */ export const withPermitsIfAvailable = (self, permits, effect) => { const withPermits = self.withPermitsIfAvailable(permits); return effect ? withPermits(effect) : withPermits; }; /** - * Acquires the specified number of permits and returns the resulting available - * permits, suspending the task if they are not yet available. + * Acquires the specified number of permits and returns the acquired permit + * count. + * + * **When to use** + * + * Use when you need manual permit acquisition for a lower-level protocol with + * explicit acquisition and release control. + * + * **Details** + * + * The effect waits until enough permits are available. + * + * @see {@link withPermit} for automatically acquiring and releasing one permit around an effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits around an effect + * @see {@link release} for returning manually acquired permits * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const take = /*#__PURE__*/dual(2, (self, permits) => self.take(permits)); /** * Releases the specified number of permits and returns the resulting available * permits. * - * @since 4.0.0 + * **When to use** + * + * Use when you need to return permits acquired with `take` in a lower-level + * permit protocol with explicit release control. + * + * **Details** + * + * Running the effect releases the requested permits, wakes waiting acquirers + * when permits become available, and returns the current available permit + * count. + * + * **Gotchas** + * + * Manual `take` / `release` usage must keep permit counts balanced. Prefer + * `withPermit` or `withPermits` when the acquisition can be scoped to one + * effect. + * + * @see {@link take} for manually acquiring permits + * @see {@link releaseAll} for returning every currently taken permit + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ export const release = /*#__PURE__*/dual(2, (self, permits) => self.release(permits)); /** * Releases all permits held by this semaphore and returns the resulting * available permits. * - * @since 4.0.0 + * **When to use** + * + * Use to return every currently taken permit to a semaphore at once, typically + * during cleanup of manual `take` / `release` protocols. + * + * @see {@link release} for releasing a known permit count + * @see {@link withPermits} for automatic acquire and release around an effect + * * @category combinators + * @since 4.0.0 */ export const releaseAll = self => self.releaseAll; //# sourceMappingURL=Semaphore.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Semaphore.js.map b/.opencode/node_modules/effect/dist/Semaphore.js.map index 742b46ee74b984623ec576a1b0116fe4b90a77b8..7491cf04568f18ccafb15e333b314d6a11411ce2 100644 --- a/.opencode/node_modules/effect/dist/Semaphore.js.map +++ b/.opencode/node_modules/effect/dist/Semaphore.js.map @@ -1 +1 @@ -{"version":3,"file":"Semaphore.js","names":["dual","core","internal","makeUnsafe","permits","SemaphoreImpl","waiters","Set","taken","constructor","free","take","n","suspend","callback","resume","observer","delete","add","sync","succeed","updateTakenUnsafe","fiber","f","size","currentDispatcher","scheduleTask","iter","values","item","next","done","value","updateTaken","withFiber","resize","void","release","releaseAll","_","withPermits","self","uninterruptibleMask","restore","flatMap","onExitPrimitive","getCurrentFiber","undefined","withPermit","withPermitsIfAvailable","succeedNone","asSome","make","effect"],"sources":["../src/Semaphore.ts"],"sourcesContent":[null],"mappings":"AAKA,SAASA,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,sBAAsB;AAuFhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAMC,UAAU,GAAIC,OAAe,IAAgB,IAAIC,aAAa,CAACD,OAAO,CAAC;AAEpF,MAAMC,aAAa;EACVC,OAAO,gBAAG,IAAIC,GAAG,EAAc;EAC/BC,KAAK,GAAG,CAAC;EACTJ,OAAO;EAEdK,YAAYL,OAAe;IACzB,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;EAEA,IAAIM,IAAIA,CAAA;IACN,OAAO,IAAI,CAACN,OAAO,GAAG,IAAI,CAACI,KAAK;EAClC;EAEAG,IAAIA,CAACC,CAAS;IACZ,MAAMD,IAAI,GAA0BT,QAAQ,CAACW,OAAO,CAAC,MAAK;MACxD,IAAI,IAAI,CAACH,IAAI,GAAGE,CAAC,EAAE;QACjB,OAAOV,QAAQ,CAACY,QAAQ,CAAEC,MAAM,IAAI;UAClC,IAAI,IAAI,CAACL,IAAI,IAAIE,CAAC,EAAE,OAAOG,MAAM,CAACJ,IAAI,CAAC;UACvC,MAAMK,QAAQ,GAAGA,CAAA,KAAK;YACpB,IAAI,IAAI,CAACN,IAAI,GAAGE,CAAC,EAAE;YACnB,IAAI,CAACN,OAAO,CAACW,MAAM,CAACD,QAAQ,CAAC;YAC7BD,MAAM,CAACJ,IAAI,CAAC;UACd,CAAC;UACD,IAAI,CAACL,OAAO,CAACY,GAAG,CAACF,QAAQ,CAAC;UAC1B,OAAOd,QAAQ,CAACiB,IAAI,CAAC,MAAK;YACxB,IAAI,CAACb,OAAO,CAACW,MAAM,CAACD,QAAQ,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,CAAC,CAAC,EAAE,CAACyC,IAAe,EAAErC,OAAe,KAAKqC,IAAI,CAACJ,OAAO,CAACjC,OAAO,CAAC,CAAC;AAExE;;;;;;;AAOA,OAAO,MAAMkC,UAAU,GAAIG,IAAe,IAA4BA,IAAI,CAACH,UAAU","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Semaphore.js","names":["dual","core","internal","makeUnsafe","permits","SemaphoreImpl","waiters","Set","taken","constructor","free","take","n","suspend","callback","resume","observer","delete","add","sync","succeed","updateTakenUnsafe","fiber","f","size","currentDispatcher","scheduleTask","iter","values","item","next","done","value","updateTaken","withFiber","resize","void","release","releaseAll","_","withPermits","self","uninterruptibleMask","restore","flatMap","onExitPrimitive","getCurrentFiber","undefined","withPermit","withPermitsIfAvailable","succeedNone","asSome","make","effect"],"sources":["../src/Semaphore.ts"],"sourcesContent":[null],"mappings":"AAcA,SAASA,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,sBAAsB;AAuIhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,OAAO,MAAMC,UAAU,GAAIC,OAAe,IAAgB,IAAIC,aAAa,CAACD,OAAO,CAAC;AAEpF,MAAMC,aAAa;EACVC,OAAO,gBAAG,IAAIC,GAAG,EAAc;EAC/BC,KAAK,GAAG,CAAC;EACTJ,OAAO;EAEdK,YAAYL,OAAe;IACzB,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;EAEA,IAAIM,IAAIA,CAAA;IACN,OAAO,IAAI,CAACN,OAAO,GAAG,IAAI,CAACI,KAAK;EAClC;EAEAG,IAAIA,CAACC,CAAS;IACZ,MAAMD,IAAI,GAA0BT,QAAQ,CAACW,OAAO,CAAC,MAAK;MACxD,IAAI,IAAI,CAACH,IAAI,GAAGE,CAAC,EAAE;QACjB,OAAOV,QAAQ,CAACY,QAAQ,CAAEC,MAAM,IAAI;UAClC,IAAI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ChC,CAAS;AAET;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMJ,sBAAsB,GA6C9BA,CAACR,IAAe,EAAErC,OAAe,EAAEiD,MAAqC,KAAI;EAC/E,MAAMb,WAAW,GAAGC,IAAI,CAACQ,sBAAsB,CAAC7C,OAAO,CAAC;EACxD,OAAOiD,MAAM,GAAGb,WAAW,CAACa,MAAM,CAAC,GAAGb,WAAW;AACnD,CAAS;AAET;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAM7B,IAAI,gBA2CbX,IAAI,CAAC,CAAC,EAAE,CAACyC,IAAe,EAAErC,OAAe,KAAKqC,IAAI,CAAC9B,IAAI,CAACP,OAAO,CAAC,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMiC,OAAO,gBA2DhBrC,IAAI,CAAC,CAAC,EAAE,CAACyC,IAAe,EAAErC,OAAe,KAAKqC,IAAI,CAACJ,OAAO,CAACjC,OAAO,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;AAeA,OAAO,MAAMkC,UAAU,GAAIG,IAAe,IAA4BA,IAAI,CAACH,UAAU","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Sink.d.ts b/.opencode/node_modules/effect/dist/Sink.d.ts index c17d430df6334bbf0bc00ab41c19737b6b29339b..44eb144edbf850e45846eee8eb4aa0f8279c601d 100644 --- a/.opencode/node_modules/effect/dist/Sink.d.ts +++ b/.opencode/node_modules/effect/dist/Sink.d.ts @@ -1,4 +1,12 @@ /** + * Consumes values from a `Stream` and produces one final result. + * + * A `Sink` may read no input, a fixed amount of input, or keep reading until a + * condition is met. If it reads more than it needs, it can return leftovers so + * the stream can continue from those values. Sinks are used to collect, fold, + * search, count, or otherwise reduce streamed input, and they can be composed + * when a stream needs more than one consuming step. + * * @since 2.0.0 */ import type { NonEmptyReadonlyArray } from "./Array.ts"; @@ -29,11 +37,10 @@ declare const TypeId = "~effect/Sink"; * and will eventually yield a value of type `A` together with a remainder of * type `L` (i.e. any leftovers). * - * @example + * **Example** (Running a sink with a stream) + * * ```ts - * import { Effect } from "effect" - * import * as Sink from "effect/Sink" - * import * as Stream from "effect/Stream" + * import { Effect, Sink, Stream } from "effect" * * // Create a simple sink that always succeeds with a value * const sink: Sink.Sink = Sink.succeed(42) @@ -46,8 +53,8 @@ declare const TypeId = "~effect/Sink"; * // Output: 42 * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Sink extends Sink.Variance, Pipeable { readonly transform: (upstream: Pull.Pull, never, void>, scope: Scope.Scope) => Effect.Effect, E, R>; @@ -56,30 +63,29 @@ export interface Sink = readonly [value: A, leftover?: NonEmptyReadonlyArray | undefined]; /** - * Interface for Sink unification, used internally by the Effect type system - * to provide proper type inference when using Sink with other Effect types. - * - * @example - * ```ts - * import type { Effect } from "effect" - * import type * as Sink from "effect/Sink" - * import type * as Unify from "effect/Unify" + * Type-level unification support for `Sink` values. * - * // SinkUnify helps unify Sink and Effect types - * declare const sink: Sink.Sink - * declare const effect: Effect.Effect + * **Details** * - * // The unification system handles mixed operations - * type Combined = Sink.SinkUnify<{ [Unify.typeSymbol]?: any }> - * ``` + * This preserves the result, input, leftover, error, and service type + * parameters when Effect's `Unify` machinery normalizes generic values that + * include sinks. Users normally do not need to reference this interface + * directly. * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface SinkUnify A[Unify.typeSymbol] extends Sink | infer _ ? Sink : never; } /** - * Interface used to ignore certain types during Sink unification. - * Part of the internal type system machinery. + * Marker used by Effect's `Unify` machinery for `Sink` values. * - * @example - * ```ts - * import type * as Sink from "effect/Sink" + * **Details** * - * // Used internally by the type system - * type IgnoreConfig = Sink.SinkUnifyIgnore - * ``` + * It prevents the inherited `Effect` unifier from being selected when + * sink-specific unification should preserve the `Sink` type parameters. Users + * normally do not need to reference this interface directly. * * @category models * @since 2.0.0 @@ -107,53 +110,35 @@ export interface SinkUnifyIgnore { /** * Namespace containing types and interfaces for Sink variance and type relationships. * - * @example - * ```ts - * import type * as Sink from "effect/Sink" - * - * // The Sink namespace contains internal type definitions - * // These are used internally for type safety and variance - * type SinkType = Sink.Sink - * ``` - * * @since 2.0.0 - * @category models */ export declare namespace Sink { /** - * Represents the variance annotations for a Sink type. - * Used internally to track how type parameters flow through the Sink. + * Type-level variance marker for `Sink`. * - * @example - * ```ts - * import type * as Sink from "effect/Sink" + * **Details** * - * // The variance interface is used internally - * // It defines how type parameters behave in Sink - * type SinkWithVariance = Sink.Sink & { variance: "internal" } - * ``` + * The result `A`, leftovers `L`, errors `E`, and services `R` are + * covariant. The input type `In` is contravariant because values flow into + * the sink. * - * @since 2.0.0 * @category models + * @since 2.0.0 */ interface Variance { readonly [TypeId]: VarianceStruct; } /** - * The internal structure representing Sink variance annotations. - * Contains the actual variance markers for each type parameter. + * Structural encoding used by `Sink.Variance` to record each `Sink` type + * parameter's variance. * - * @example - * ```ts - * import type * as Sink from "effect/Sink" + * **Details** * - * // The variance structure is used internally by the type system - * // It ensures proper type safety for Sink operations - * type SinkInstance = Sink.Sink - * ``` + * `_A`, `_L`, `_E`, and `_R` are covariant markers. `_In` is a + * contravariant marker. * - * @since 2.0.0 * @category models + * @since 2.0.0 */ interface VarianceStruct { _A: Types.Covariant; @@ -164,9 +149,10 @@ export declare namespace Sink { } } /** - * Checks if a value is a Sink. + * Checks whether a value is a Sink. + * + * **Example** (Checking for a sink) * - * @example * ```ts * import { Sink } from "effect" * @@ -177,26 +163,41 @@ export declare namespace Sink { * console.log(Sink.isSink(notStream)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export declare const isSink: (u: unknown) => u is Sink; /** * Creates a sink from a `Channel`. * - * @since 2.0.0 + * **When to use** + * + * Use to create a `Sink` from a `Channel` that processes non-empty arrays of + * input values. + * + * @see {@link toChannel} for converting a `Sink` back to a `Channel` * @category constructors + * @since 2.0.0 */ export declare const fromChannel: (channel: Channel.Channel, NonEmptyReadonlyArray, never, void, R>) => Sink; /** - * @since 4.0.0 + * Creates a `Sink` from a low-level transform function. + * + * **Details** + * + * The transform receives the upstream pull of non-empty input arrays and the + * active scope, and returns an effect that completes with the sink's `End` + * value. + * * @category constructors + * @since 4.0.0 */ export declare const fromTransform: (transform: (upstream: Pull.Pull, never, void>, scope: Scope.Scope) => Effect.Effect, E, R>) => Sink; /** * Creates a `Channel` from a Sink. * - * @example + * **Example** (Converting a sink to a channel) + * * ```ts * import { Sink } from "effect" * @@ -205,20 +206,40 @@ export declare const fromTransform: (transform: (upstrea * const channel = Sink.toChannel(sink) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const toChannel: (self: Sink) => Channel.Channel, NonEmptyReadonlyArray, never, void, R>; /** - * @since 4.0.0 + * Creates a pipe-style constructor for sinks over input type `In`. + * + * **Details** + * + * The returned function exposes the sink input as a `Stream`, applies the + * provided pipeline, and uses the final effect's success value as the sink + * result. + * * @category constructors + * @since 4.0.0 */ export declare const make: () => make.Constructor; /** + * Companion namespace containing overload types for the pipe-style sink + * constructor returned by `Sink.make`. + * * @since 4.0.0 */ export declare namespace make { /** + * Overloaded function type returned by `Sink.make`. + * + * **Details** + * + * The first pipeline function receives the sink input as a `Stream`. The + * final pipeline step must return an `Effect`, whose success value becomes + * the sink result. + * + * @category models * @since 4.0.0 */ interface Constructor { @@ -235,29 +256,58 @@ export declare namespace make { } } /** - * @since 4.0.0 + * Creates a sink that ignores upstream input and completes from an effect that + * already returns an `End`. + * + * **When to use** + * + * Use when you need to create a sink from an effect that returns both the sink + * result value and optional leftovers. + * * @category constructors + * @since 4.0.0 */ export declare const fromEffectEnd: (effect: Effect.Effect, E, R>) => Sink; /** - * @since 4.0.0 + * Creates a sink that ignores upstream input and completes with the success + * value of the provided effect. + * + * **Details** + * + * If the effect fails, the sink fails with the same error. + * * @category constructors + * @since 2.0.0 */ export declare const fromEffect: (effect: Effect.Effect) => Sink; /** - * @since 2.0.0 + * Creates a sink that offers every consumed input element to a queue. + * + * **Details** + * + * When the upstream stream ends, the sink ends the queue and completes with + * `void`. + * * @category constructors + * @since 2.0.0 */ export declare const fromQueue: (queue: Queue.Queue) => Sink; /** - * @since 2.0.0 + * Creates a sink that publishes every consumed input element to a `PubSub`. + * + * **Details** + * + * The sink completes with `void` when the upstream stream ends. + * * @category constructors + * @since 2.0.0 */ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Sink; /** * A sink that immediately ends with the specified value. * - * @example + * **Example** (Succeeding with a value) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -272,28 +322,29 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Sink; * // Output: 42 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const succeed: (a: A, leftovers?: NonEmptyReadonlyArray | undefined) => Sink; /** * A sink that immediately ends with the specified lazily evaluated value. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const sync: (a: LazyArg) => Sink; /** * A sink that is created from a lazily evaluated sink. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const suspend: (evaluate: LazyArg>) => Sink; /** * A sink that always fails with the specified error. * - * @example + * **Example** (Failing with an error) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -308,14 +359,15 @@ export declare const suspend: (evaluate: LazyArg(e: E) => Sink; /** * A sink that always fails with the specified lazily evaluated error. * - * @example + * **Example** (Failing with a lazy error) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -330,14 +382,15 @@ export declare const fail: (e: E) => Sink; * // Output: Error: Lazy error * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const failSync: (evaluate: LazyArg) => Sink; /** * Creates a sink halting with a specified `Cause`. * - * @example + * **Example** (Failing with a cause) + * * ```ts * import { Cause, Effect, Sink, Stream } from "effect" * @@ -352,14 +405,15 @@ export declare const failSync: (evaluate: LazyArg) => Sink(cause: Cause.Cause) => Sink; /** * Creates a sink halting with a specified lazily evaluated `Cause`. * - * @example + * **Example** (Failing with a lazy cause) + * * ```ts * import { Cause, Effect, Sink, Stream } from "effect" * @@ -374,14 +428,15 @@ export declare const failCause: (cause: Cause.Cause) => Sink(evaluate: LazyArg>) => Sink; /** * Creates a sink halting with a specified defect. * - * @example + * **Example** (Dying with a defect) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -396,308 +451,521 @@ export declare const failCauseSync: (evaluate: LazyArg>) => Si * // Output: Error: Defect error * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const die: (defect: unknown) => Sink; /** * A sink that never completes. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const never: Sink; /** - * Drains the remaining elements from the stream after the sink finishes + * Drops leftovers produced by a sink. + * + * **Details** * + * The sink result is preserved, but any leftover elements are discarded + * instead of being returned to downstream sink composition. This does not + * continue pulling additional elements from the upstream stream. + * + * @category filtering * @since 2.0.0 - * @category utils */ export declare const ignoreLeftover: (self: Sink) => Sink; /** - * Drains elements from the stream by ignoring all inputs. + * Consumes and ignores all stream inputs. + * + * **When to use** + * + * Use to consume all upstream input and complete with void when the input + * values and any aggregate result are not needed. + * + * @see {@link count} for consuming all input while returning the number of elements + * @see {@link forEach} for consuming all input while running an effect for each element * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const drain: Sink; /** * A sink that folds its inputs with the provided function, termination * predicate and initial state. * - * @since 2.0.0 + * **When to use** + * + * Use to accumulate stream input element by element with an effectful step and + * stop based on the accumulated state. + * + * **Details** + * + * The initial state is evaluated lazily. Each input element is folded with the + * effectful function, and the sink continues while `contFn` returns `true`. If + * the sink stops in the middle of a pulled array, the remaining elements from + * that array are returned as leftovers. + * + * @see {@link foldArray} for folding each pulled non-empty input array at once + * @see {@link foldUntil} for folding until a fixed maximum number of elements is consumed + * * @category folding + * @since 2.0.0 */ export declare const fold: (s: LazyArg, contFn: Predicate, f: (s: S, input: In) => Effect.Effect) => Sink; /** - * @since 2.0.0 + * Folds non-empty input arrays into state with an effectful function. + * + * **When to use** + * + * Use to update state with an effectful function once per pulled non-empty + * input array when batch-level processing is the natural unit. + * + * **Details** + * + * The initial state is evaluated lazily. After each pulled array is folded, + * the sink continues while `contFn` returns `true`; otherwise it completes + * with the current state. + * + * @see {@link fold} for folding element by element and returning leftovers when stopping mid-array + * @see {@link reduceWhileArrayEffect} for array-level effectful reducing that checks the predicate before consuming input + * * @category folding + * @since 4.0.0 */ export declare const foldArray: (s: LazyArg, contFn: Predicate, f: (s: S, input: Arr.NonEmptyReadonlyArray) => Effect.Effect) => Sink; /** - * @since 2.0.0 + * Folds input elements into state until the specified maximum number of + * elements has been consumed or the upstream stream ends. + * + * **Details** + * + * If the sink stops in the middle of a pulled array, the remaining elements + * from that array are returned as leftovers. + * * @category folding + * @since 2.0.0 */ export declare const foldUntil: (s: LazyArg, max: number, f: (s: S, input: In) => Effect.Effect) => Sink; /** * A sink that returns whether all elements satisfy the specified predicate. * - * @since 2.0.0 + * **When to use** + * + * Use to reduce a stream to a boolean that is true only when every input + * satisfies a pure predicate. + * + * @see {@link some} for the dual any-match check + * * @category constructors + * @since 2.0.0 */ export declare const every: (predicate: Predicate) => Sink; /** * A sink that returns whether an element satisfies the specified predicate. * - * @since 2.0.0 + * **When to use** + * + * Use to reduce a stream to a boolean that is true when any input satisfies a + * pure predicate. + * + * @see {@link every} for the all-match check + * * @category constructors + * @since 2.0.0 */ export declare const some: (predicate: Predicate) => Sink; /** * Transforms this sink's result. * - * @since 2.0.0 + * **When to use** + * + * Use to compute a new result from the original sink result while preserving + * the sink's input consumption behavior. + * + * **Details** + * + * The transformed sink preserves the original sink's input type, leftovers, + * errors, and requirements. + * + * @see {@link mapEffect} for effectful result transformations + * @see {@link as} for replacing the result with a constant value + * @see {@link mapEnd} for transforming both the result and leftovers + * * @category mapping + * @since 2.0.0 */ export declare const map: { /** * Transforms this sink's result. * - * @since 2.0.0 + * **When to use** + * + * Use to compute a new result from the original sink result while preserving + * the sink's input consumption behavior. + * + * **Details** + * + * The transformed sink preserves the original sink's input type, leftovers, + * errors, and requirements. + * + * @see {@link mapEffect} for effectful result transformations + * @see {@link as} for replacing the result with a constant value + * @see {@link mapEnd} for transforming both the result and leftovers + * * @category mapping + * @since 2.0.0 */ (f: (a: A) => A2): (self: Sink) => Sink; /** * Transforms this sink's result. * - * @since 2.0.0 + * **When to use** + * + * Use to compute a new result from the original sink result while preserving + * the sink's input consumption behavior. + * + * **Details** + * + * The transformed sink preserves the original sink's input type, leftovers, + * errors, and requirements. + * + * @see {@link mapEffect} for effectful result transformations + * @see {@link as} for replacing the result with a constant value + * @see {@link mapEnd} for transforming both the result and leftovers + * * @category mapping + * @since 2.0.0 */ (self: Sink, f: (a: A) => A2): Sink; }; /** - * Set the sink's result to a constant value. + * Sets the sink's result to a constant value. + * + * **When to use** + * + * Use to keep a sink's input consumption, errors, requirements, and leftovers + * while replacing only its result with a known value. + * + * @see {@link map} for computing the replacement from the original result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const as: { /** - * Set the sink's result to a constant value. + * Sets the sink's result to a constant value. + * + * **When to use** + * + * Use to keep a sink's input consumption, errors, requirements, and leftovers + * while replacing only its result with a known value. + * + * @see {@link map} for computing the replacement from the original result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (a2: A2): (self: Sink) => Sink; /** - * Set the sink's result to a constant value. + * Sets the sink's result to a constant value. + * + * **When to use** + * + * Use to keep a sink's input consumption, errors, requirements, and leftovers + * while replacing only its result with a known value. + * + * @see {@link map} for computing the replacement from the original result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, a2: A2): Sink; }; /** * Transforms this sink's input elements. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const mapInput: { /** * Transforms this sink's input elements. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (f: (input: In0) => In): (self: Sink) => Sink; /** * Transforms this sink's input elements. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, f: (input: In0) => In): Sink; }; /** - * Effectfully transforms this sink's input elements. + * Transforms this sink's input elements effectfully. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const mapInputEffect: { /** - * Effectfully transforms this sink's input elements. + * Transforms this sink's input elements effectfully. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (f: (input: In0) => Effect.Effect): (self: Sink) => Sink; /** - * Effectfully transforms this sink's input elements. + * Transforms this sink's input elements effectfully. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, f: (input: In0) => Effect.Effect): Sink; }; /** - * Transforms this sink's input elements. + * Transforms each non-empty array of upstream input before it is fed to this + * sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export declare const mapInputArray: { /** - * Transforms this sink's input elements. + * Transforms each non-empty array of upstream input before it is fed to this + * sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (f: (input: Arr.NonEmptyReadonlyArray) => Arr.NonEmptyReadonlyArray): (self: Sink) => Sink; /** - * Transforms this sink's input elements. + * Transforms each non-empty array of upstream input before it is fed to this + * sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (self: Sink, f: (input: Arr.NonEmptyReadonlyArray) => Arr.NonEmptyReadonlyArray): Sink; }; /** - * Effectfully transforms this sink's input elements. + * Transforms each non-empty array of upstream input effectfully before it is + * fed to this sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export declare const mapInputArrayEffect: { /** - * Effectfully transforms this sink's input elements. + * Transforms each non-empty array of upstream input effectfully before it is + * fed to this sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (f: (input: Arr.NonEmptyReadonlyArray) => Effect.Effect, E2, R2>): (self: Sink) => Sink; /** - * Effectfully transforms this sink's input elements. + * Transforms each non-empty array of upstream input effectfully before it is + * fed to this sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (self: Sink, f: (input: Arr.NonEmptyReadonlyArray) => Effect.Effect, E2, R2>): Sink; }; /** - * Transforms this sink's result. + * Transforms the full `End` produced by this sink. + * + * **Details** + * + * This can change both the result value and the optional leftovers. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export declare const mapEnd: { /** - * Transforms this sink's result. + * Transforms the full `End` produced by this sink. + * + * **Details** + * + * This can change both the result value and the optional leftovers. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (f: (a: End) => End): (self: Sink) => Sink; /** - * Transforms this sink's result. + * Transforms the full `End` produced by this sink. + * + * **Details** + * + * This can change both the result value and the optional leftovers. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (self: Sink, f: (a: End) => End): Sink; }; /** - * Effectfully transforms this sink's result. + * Transforms the full `End` produced by this sink effectfully. + * + * **Details** + * + * This can change both the result value and the optional leftovers, and the + * transformation can fail or require services. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export declare const mapEffectEnd: { /** - * Effectfully transforms this sink's result. + * Transforms the full `End` produced by this sink effectfully. + * + * **Details** + * + * This can change both the result value and the optional leftovers, and the + * transformation can fail or require services. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (f: (end: End) => Effect.Effect, E2, R2>): (self: Sink) => Sink; /** - * Effectfully transforms this sink's result. + * Transforms the full `End` produced by this sink effectfully. + * + * **Details** + * + * This can change both the result value and the optional leftovers, and the + * transformation can fail or require services. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ (self: Sink, f: (end: End) => Effect.Effect, E2, R2>): Sink; }; /** - * Effectfully transforms this sink's result. + * Transforms this sink's result effectfully. + * + * **When to use** + * + * Use when you need a sink result transformation that is effectful, can fail, + * or requires services. + * + * **Details** + * + * The transformed sink preserves the original sink's input consumption and + * leftovers while adding the errors and requirements of the transformation. + * + * @see {@link map} for pure result transformations + * @see {@link mapEffectEnd} for effectfully transforming both the result and leftovers + * @see {@link flatMap} for continuing with another sink based on the result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const mapEffect: { /** - * Effectfully transforms this sink's result. + * Transforms this sink's result effectfully. + * + * **When to use** + * + * Use when you need a sink result transformation that is effectful, can fail, + * or requires services. + * + * **Details** + * + * The transformed sink preserves the original sink's input consumption and + * leftovers while adding the errors and requirements of the transformation. + * + * @see {@link map} for pure result transformations + * @see {@link mapEffectEnd} for effectfully transforming both the result and leftovers + * @see {@link flatMap} for continuing with another sink based on the result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (f: (a: A) => Effect.Effect): (self: Sink) => Sink; /** - * Effectfully transforms this sink's result. + * Transforms this sink's result effectfully. + * + * **When to use** + * + * Use when you need a sink result transformation that is effectful, can fail, + * or requires services. + * + * **Details** + * + * The transformed sink preserves the original sink's input consumption and + * leftovers while adding the errors and requirements of the transformation. + * + * @see {@link map} for pure result transformations + * @see {@link mapEffectEnd} for effectfully transforming both the result and leftovers + * @see {@link flatMap} for continuing with another sink based on the result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, f: (a: A) => Effect.Effect): Sink; }; /** * Transforms the errors emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const mapError: { /** * Transforms the errors emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (f: (error: E) => E2): (self: Sink) => Sink; /** * Transforms the errors emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, f: (error: E) => E2): Sink; }; /** * Transforms the leftovers emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const mapLeftover: { /** * Transforms the leftovers emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (f: (leftover: L) => L2): (self: Sink) => Sink; /** * Transforms the leftovers emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Sink, f: (leftover: L) => L2): Sink; }; /** - * @since 2.0.0 + * Collects up to `n` input elements into an array. + * + * **Details** + * + * If `n` is less than or equal to zero, the sink completes with an empty array. + * If more elements are pulled than needed, the remaining elements from the same + * array are returned as leftovers. + * * @category collecting + * @since 2.0.0 */ export declare const take: (n: number) => Sink, In, In>; /** @@ -705,10 +973,21 @@ export declare const take: (n: number) => Sink, In, In>; * another sink from the provided function which will continue to run until it * yields a result. * - * This function essentially runs sinks in sequence. + * **When to use** + * + * Use to compose sinks when the next sink depends on the result produced by the + * previous sink. + * + * **Details** + * + * Leftovers from the first sink are fed to the sink returned by `f` before more + * upstream input is pulled. + * + * @see {@link map} for transforming the result without switching sinks + * @see {@link mapEffect} for effectfully transforming the result without switching sinks * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const flatMap: { /** @@ -716,10 +995,21 @@ export declare const flatMap: { * another sink from the provided function which will continue to run until it * yields a result. * - * This function essentially runs sinks in sequence. + * **When to use** + * + * Use to compose sinks when the next sink depends on the result produced by the + * previous sink. + * + * **Details** + * + * Leftovers from the first sink are fed to the sink returned by `f` before more + * upstream input is pulled. + * + * @see {@link map} for transforming the result without switching sinks + * @see {@link mapEffect} for effectfully transforming the result without switching sinks * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (f: (a: A) => Sink): (self: Sink) => Sink; /** @@ -727,187 +1017,353 @@ export declare const flatMap: { * another sink from the provided function which will continue to run until it * yields a result. * - * This function essentially runs sinks in sequence. + * **When to use** + * + * Use to compose sinks when the next sink depends on the result produced by the + * previous sink. + * + * **Details** + * + * Leftovers from the first sink are fed to the sink returned by `f` before more + * upstream input is pulled. + * + * @see {@link map} for transforming the result without switching sinks + * @see {@link mapEffect} for effectfully transforming the result without switching sinks * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Sink, f: (a: A) => Sink): Sink; }; /** - * A sink that reduces its inputs using the provided function `f` starting from - * the provided `initial` state while the specified `predicate` returns `true`. + * A sink that reduces input elements from the provided `initial` state with + * `f` while the specified `predicate` returns `true`. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceWhile: (initial: LazyArg, predicate: Predicate, f: (s: S, input: In) => S) => Sink; /** - * A sink that reduces its inputs using the provided effectful function `f` - * starting from the provided `initial` state while the specified `predicate` - * returns `true`. + * A sink that effectfully reduces input elements from the provided `initial` + * state with `f` while the specified `predicate` returns `true`. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceWhileEffect: (initial: LazyArg, predicate: Predicate, f: (s: S, input: In) => Effect.Effect) => Sink; /** - * A sink that reduces its inputs using the provided function `f` starting from - * the provided `initial` state while the specified `predicate` returns `true`. + * A sink that reduces non-empty input arrays from the provided `initial` state + * with `f` while the specified `predicate` returns `true`. * - * @since 4.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceWhileArray: (initial: LazyArg, contFn: Predicate, f: (s: S, input: NonEmptyReadonlyArray) => S) => Sink; /** - * A sink that reduces its inputs using the provided effectful function `f` - * starting from the provided `initial` state while the specified `predicate` - * returns `true`. + * A sink that effectfully reduces non-empty input arrays from the provided + * `initial` state with `f` while the specified `predicate` returns `true`. * - * @since 4.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceWhileArrayEffect: (initial: LazyArg, predicate: Predicate, f: (s: S, input: NonEmptyReadonlyArray) => Effect.Effect) => Sink; /** * A sink that reduces its inputs using the provided function `f` starting from * the provided `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduce: (initial: LazyArg, f: (s: S, input: In) => S) => Sink; /** * A sink that reduces its inputs using the provided function `f` starting from * the specified `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceArray: (initial: LazyArg, f: (s: S, input: NonEmptyReadonlyArray) => S) => Sink; /** * A sink that reduces its inputs using the provided effectful function `f` * starting from the specified `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export declare const reduceEffect: (initial: LazyArg, f: (s: S, input: In) => Effect.Effect) => Sink; /** * Creates a sink containing the first value. * - * @since 2.0.0 + * **Details** + * + * Returns `Option.some(first)` for non-empty input, or `Option.none` when the + * upstream ends without input. The first element is consumed; later elements + * from the same pulled array are emitted as leftovers. + * * @category constructors + * @since 2.0.0 */ export declare const head: () => Sink, In, In>; /** * Creates a sink containing the last value. * - * @since 2.0.0 + * **When to use** + * + * Use when you need to consume all upstream input and keep only the final + * element. + * + * **Details** + * + * Returns `Option.some(last)` with the final input value, or `Option.none` when + * the upstream ends without input. + * + * **Gotchas** + * + * This sink produces a result only when the upstream ends, so it does not + * complete for a stream that does not end. + * + * @see {@link head} for taking the first input value instead + * * @category constructors + * @since 2.0.0 */ export declare const last: () => Sink, In>; /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by a synchronous predicate. + * + * **When to use** + * + * Use to scan stream input until the first matching element is found and return + * that element as an `Option`. + * + * **Details** + * + * Returns `Option.none` if the upstream stream ends before a match is found. + * Refinement predicates narrow the returned value type. The matching input is + * consumed; any later elements from the same pulled array are returned as + * leftovers. + * + * @see {@link findEffect} for an effectful predicate that can fail or require services * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const find: { /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by a synchronous predicate. + * + * **When to use** + * + * Use to scan stream input until the first matching element is found and return + * that element as an `Option`. + * + * **Details** + * + * Returns `Option.none` if the upstream stream ends before a match is found. + * Refinement predicates narrow the returned value type. The matching input is + * consumed; any later elements from the same pulled array are returned as + * leftovers. + * + * @see {@link findEffect} for an effectful predicate that can fail or require services * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ (refinement: Refinement): Sink, In, In>; /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by a synchronous predicate. + * + * **When to use** + * + * Use to scan stream input until the first matching element is found and return + * that element as an `Option`. + * + * **Details** + * + * Returns `Option.none` if the upstream stream ends before a match is found. + * Refinement predicates narrow the returned value type. The matching input is + * consumed; any later elements from the same pulled array are returned as + * leftovers. + * + * @see {@link findEffect} for an effectful predicate that can fail or require services * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ (predicate: Predicate): Sink, In, In>; }; /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by an effectful predicate. + * + * **When to use** + * + * Use when you need to run effects, fail, or use services while searching for + * the first matching input. + * + * **Details** + * + * Returns `Option.some` with the first input whose predicate result is `true`, + * or `Option.none` if the upstream stream ends first. If the predicate effect + * fails, the sink fails with the same error. + * + * @see {@link find} for the synchronous predicate variant * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const findEffect: (predicate: (input: In) => Effect.Effect) => Sink, In, In, E, R>; /** * Creates a sink which sums up its inputs. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const sum: Sink; /** * A sink that counts the number of elements fed to it. * - * @since 2.0.0 + * **When to use** + * + * Use to consume input and return only the number of elements received. + * * @category constructors + * @since 2.0.0 */ export declare const count: Sink; /** * Accumulates incoming elements into an array. * - * @since 2.0.0 + * **When to use** + * + * Use when you need a sink result containing all upstream input elements. + * + * @see {@link take} for collecting only a fixed number of input elements + * * @category constructors + * @since 4.0.0 */ export declare const collect: () => Sink, In>; /** - * @since 4.0.0 + * Collects the longest input prefix whose elements satisfy the predicate or + * refinement. + * + * **Details** + * + * The first failing input is consumed and excluded from the result. Any later + * elements from the same pulled array are returned as leftovers. + * * @category constructors + * @since 4.0.0 */ export declare const takeWhile: { /** - * @since 4.0.0 + * Collects the longest input prefix whose elements satisfy the predicate or + * refinement. + * + * **Details** + * + * The first failing input is consumed and excluded from the result. Any later + * elements from the same pulled array are returned as leftovers. + * * @category constructors + * @since 4.0.0 */ (refinement: Refinement): Sink, In, In>; /** - * @since 4.0.0 + * Collects the longest input prefix whose elements satisfy the predicate or + * refinement. + * + * **Details** + * + * The first failing input is consumed and excluded from the result. Any later + * elements from the same pulled array are returned as leftovers. + * * @category constructors + * @since 4.0.0 */ (predicate: Predicate): Sink, In, In>; }; /** - * @since 4.0.0 + * Applies a `Filter` to input elements while it succeeds, collecting each + * successful output. + * + * **Details** + * + * The first input for which the filter fails is consumed and excluded from the + * result. Any later elements from the same pulled array are returned as + * leftovers. + * * @category constructors + * @since 4.0.0 */ export declare const takeWhileFilter: (filter: Filter.Filter) => Sink, In, In>; /** - * @since 4.0.0 + * Collects input elements effectfully while the predicate succeeds. + * + * **Details** + * + * The first input for which the predicate returns `false` is consumed and + * excluded from the result. Any later elements from the same pulled array are + * returned as leftovers. + * * @category constructors + * @since 4.0.0 */ export declare const takeWhileEffect: { /** - * @since 4.0.0 + * Collects input elements effectfully while the predicate succeeds. + * + * **Details** + * + * The first input for which the predicate returns `false` is consumed and + * excluded from the result. Any later elements from the same pulled array are + * returned as leftovers. + * * @category constructors + * @since 4.0.0 */ (predicate: (input: In) => Effect.Effect): Sink, In, In, E, R>; }; /** - * @since 4.0.0 + * Applies a `FilterEffect` to input elements effectfully while it succeeds, + * collecting each successful output. + * + * **Details** + * + * The first input for which the filter fails is consumed and excluded from the + * result. Any later elements from the same pulled array are returned as + * leftovers. + * * @category constructors + * @since 4.0.0 */ export declare const takeWhileFilterEffect: (filter: Filter.FilterEffect) => Sink, In, In, E, R>; /** - * @since 4.0.0 + * Collects input elements until the predicate returns `true`, including the + * matching element in the result. + * * @category constructors + * @since 4.0.0 */ export declare const takeUntil: (predicate: Predicate) => Sink, In, In>; /** - * @since 4.0.0 + * Collects input elements effectfully until the predicate returns `true`, + * including the matching element in the result. + * + * **Details** + * + * If the predicate effect fails, the sink fails with the same error. + * * @category constructors + * @since 4.0.0 */ export declare const takeUntilEffect: (predicate: (input: In) => Effect.Effect) => Sink, In, In, E, R>; /** * A sink that executes the provided effectful function for every item fed * to it. * - * @example + * **Example** (Running effects for each item) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -925,15 +1381,16 @@ export declare const takeUntilEffect: (predicate: (input: In) => Effec * // Processing: 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const forEach: (f: (input: In) => Effect.Effect) => Sink; /** * A sink that executes the provided effectful function for every Chunk fed * to it. * - * @example + * **Example** (Running effects for each chunk) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -952,24 +1409,40 @@ export declare const forEach: (f: (input: In) => Effect.Effect(f: (input: NonEmptyReadonlyArray) => Effect.Effect) => Sink; /** - * @since 2.0.0 + * Runs an effectful function for each input element while it returns `true`. + * + * **Details** + * + * The sink stops consuming input when the function returns `false` or when the + * upstream stream ends, and completes with `void`. + * * @category constructors + * @since 2.0.0 */ export declare const forEachWhile: (f: (input: In) => Effect.Effect) => Sink; /** - * @since 2.0.0 + * Runs an effectful function for each non-empty input array while it returns + * `true`. + * + * **Details** + * + * The sink stops consuming input when the function returns `false` or when the + * upstream stream ends, and completes with `void`. + * * @category constructors + * @since 4.0.0 */ export declare const forEachWhileArray: (f: (input: NonEmptyReadonlyArray) => Effect.Effect) => Sink; /** * Creates a sink produced from a scoped effect. * - * @example + * **Example** (Unwrapping a sink effect) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -990,108 +1463,221 @@ export declare const forEachWhileArray: (f: (input: NonEmptyReadonlyAr * // Item: 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const unwrap: (effect: Effect.Effect, E, R>) => Sink | R2>; /** - * Summarize a sink by running an effect when the sink starts and again when - * it completes. + * Runs a summary effect when the sink starts and again when it completes. * + * @category mapping * @since 2.0.0 - * @category utils */ export declare const summarized: { /** - * Summarize a sink by running an effect when the sink starts and again when - * it completes. + * Runs a summary effect when the sink starts and again when it completes. * + * @category mapping * @since 2.0.0 - * @category utils */ (summary: Effect.Effect, f: (start: A2, end: A2) => A3): (self: Sink) => Sink<[A, A3], In, L, E2 | E, R2 | R>; /** - * Summarize a sink by running an effect when the sink starts and again when - * it completes. + * Runs a summary effect when the sink starts and again when it completes. * + * @category mapping * @since 2.0.0 - * @category utils */ (self: Sink, summary: Effect.Effect, f: (start: A2, end: A2) => A3): Sink<[A, A3], In, L, E | E2, R | R2>; }; /** * Returns the sink that executes this one and times its execution. * + * @category mapping * @since 2.0.0 - * @category utils */ export declare const withDuration: (self: Sink) => Sink<[A, Duration.Duration], In, L, E, R>; /** - * @since 2.0.0 + * A sink that drains all input and returns the elapsed duration. + * * @category constructors + * @since 2.0.0 */ export declare const timed: Sink; /** - * @since 4.0.0 - * @category Services + * Provides a `Context` to this sink. + * + * **Details** + * + * Services contained in the provided context are removed from the sink's + * service requirements. + * + * @category services + * @since 2.0.0 */ export declare const provideContext: { /** - * @since 4.0.0 - * @category Services + * Provides a `Context` to this sink. + * + * **Details** + * + * Services contained in the provided context are removed from the sink's + * service requirements. + * + * @category services + * @since 2.0.0 */ (context: Context.Context): (self: Sink) => Sink>; /** - * @since 4.0.0 - * @category Services + * Provides a `Context` to this sink. + * + * **Details** + * + * Services contained in the provided context are removed from the sink's + * service requirements. + * + * @category services + * @since 2.0.0 */ (self: Sink, context: Context.Context): Sink>; }; /** + * Provides a single service implementation to this sink. + * + * **Details** + * + * The service identified by `key` is removed from the sink's service + * requirements. + * + * @category services * @since 4.0.0 - * @category Services */ export declare const provideService: { /** + * Provides a single service implementation to this sink. + * + * **Details** + * + * The service identified by `key` is removed from the sink's service + * requirements. + * + * @category services * @since 4.0.0 - * @category Services */ (key: Context.Key, value: Types.NoInfer): (self: Sink) => Sink>; /** + * Provides a single service implementation to this sink. + * + * **Details** + * + * The service identified by `key` is removed from the sink's service + * requirements. + * + * @category services * @since 4.0.0 - * @category Services */ (self: Sink, key: Context.Key, value: Types.NoInfer): Sink>; }; /** + * Runs a fallback sink if this sink fails with a typed error. + * + * **Details** + * + * The fallback is built from the error and continues consuming from the same + * upstream stream. If the upstream stream had already ended, the fallback sees + * the upstream end instead. + * + * @category error handling * @since 2.0.0 - * @category Error handling */ export declare const orElse: { /** + * Runs a fallback sink if this sink fails with a typed error. + * + * **Details** + * + * The fallback is built from the error and continues consuming from the same + * upstream stream. If the upstream stream had already ended, the fallback sees + * the upstream end instead. + * + * @category error handling * @since 2.0.0 - * @category Error handling */ (f: (error: Types.NoInfer) => Sink): (self: Sink) => Sink; /** + * Runs a fallback sink if this sink fails with a typed error. + * + * **Details** + * + * The fallback is built from the error and continues consuming from the same + * upstream stream. If the upstream stream had already ended, the fallback sees + * the upstream end instead. + * + * @category error handling * @since 2.0.0 - * @category Error handling */ (self: Sink, f: (error: E) => Sink): Sink; }; /** + * Handles failures from this sink by inspecting the full `Cause`. + * + * **When to use** + * + * Use to recover from a sink failure based on the full `Cause` instead of only + * the typed error value. + * + * **Details** + * + * When this sink fails, the handler effect is run and its success value + * becomes the sink result. If the handler fails, the returned sink fails with + * that error. + * + * @see {@link catch_ catch} for recovering from typed errors only + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchCause: { /** + * Handles failures from this sink by inspecting the full `Cause`. + * + * **When to use** + * + * Use to recover from a sink failure based on the full `Cause` instead of only + * the typed error value. + * + * **Details** + * + * When this sink fails, the handler effect is run and its success value + * becomes the sink result. If the handler fails, the returned sink fails with + * that error. + * + * @see {@link catch_ catch} for recovering from typed errors only + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (f: (error: Cause.Cause>) => Effect.Effect): (self: Sink) => Sink; /** + * Handles failures from this sink by inspecting the full `Cause`. + * + * **When to use** + * + * Use to recover from a sink failure based on the full `Cause` instead of only + * the typed error value. + * + * **Details** + * + * When this sink fails, the handler effect is run and its success value + * becomes the sink result. If the handler fails, the returned sink fails with + * that error. + * + * @see {@link catch_ catch} for recovering from typed errors only + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (self: Sink, f: (error: Cause.Cause) => Effect.Effect): Sink; }; @@ -1101,39 +1687,91 @@ declare const catch_: { }; export { /** + * Handles typed errors from this sink with an effectful fallback value. + * + * **When to use** + * + * Use to recover from a typed sink failure by producing the replacement + * result with an `Effect`. + * + * @see {@link catchCause} for recovering from the full failure cause + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ catch_ as catch }; /** - * @since 4.0.0 + * Runs an effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The effect receives the sink's `Exit` for the result value. The original + * sink result and leftovers are preserved unless the finalizer itself fails. + * * @category Finalization + * @since 4.0.0 */ export declare const onExit: { /** - * @since 4.0.0 + * Runs an effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The effect receives the sink's `Exit` for the result value. The original + * sink result and leftovers are preserved unless the finalizer itself fails. + * * @category Finalization + * @since 4.0.0 */ (f: (exit: Exit.Exit) => Effect.Effect): (self: Sink) => Sink; /** - * @since 4.0.0 + * Runs an effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The effect receives the sink's `Exit` for the result value. The original + * sink result and leftovers are preserved unless the finalizer itself fails. + * * @category Finalization + * @since 4.0.0 */ (self: Sink, f: (exit: Exit.Exit) => Effect.Effect): Sink; }; /** - * @since 4.0.0 + * Runs a finalizer effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The original sink result and leftovers are preserved unless the finalizer + * itself fails. + * * @category Finalization + * @since 2.0.0 */ export declare const ensuring: { /** - * @since 4.0.0 + * Runs a finalizer effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The original sink result and leftovers are preserved unless the finalizer + * itself fails. + * * @category Finalization + * @since 2.0.0 */ (effect: Effect.Effect): (self: Sink) => Sink; /** - * @since 4.0.0 + * Runs a finalizer effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The original sink result and leftovers are preserved unless the finalizer + * itself fails. + * * @category Finalization + * @since 2.0.0 */ (self: Sink, effect: Effect.Effect): Sink; }; diff --git a/.opencode/node_modules/effect/dist/Sink.d.ts.map b/.opencode/node_modules/effect/dist/Sink.d.ts.map index c35bd925ecf5ab3196b881c3b5df00e88fdc02ce..374e1906c6c12509a9a3c9a2b16e618e130074e8 100644 --- a/.opencode/node_modules/effect/dist/Sink.d.ts.map +++ b/.opencode/node_modules/effect/dist/Sink.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Sink.d.ts","sourceRoot":"","sources":["../src/Sink.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,K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E,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;CAI3D,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Sink.js b/.opencode/node_modules/effect/dist/Sink.js index 00447f92bbd81ee1656feaa68e2a35d9e85f15c0..b08d05966a4ef0b76719c9599aaf9b904e445b32 100644 --- a/.opencode/node_modules/effect/dist/Sink.js +++ b/.opencode/node_modules/effect/dist/Sink.js @@ -31,9 +31,10 @@ const SinkProto = { } }; /** - * Checks if a value is a Sink. + * Checks whether a value is a Sink. + * + * **Example** (Checking for a sink) * - * @example * ```ts * import { Sink } from "effect" * @@ -44,22 +45,36 @@ const SinkProto = { * console.log(Sink.isSink(notStream)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export const isSink = u => hasProperty(u, TypeId); /** * Creates a sink from a `Channel`. * - * @since 2.0.0 + * **When to use** + * + * Use to create a `Sink` from a `Channel` that processes non-empty arrays of + * input values. + * + * @see {@link toChannel} for converting a `Sink` back to a `Channel` * @category constructors + * @since 2.0.0 */ export const fromChannel = channel => fromTransform((upstream, scope) => Channel.toTransform(channel)(upstream, scope).pipe(Effect.flatMap(Effect.forever({ disableYield: true })), Pull.catchDone(Effect.succeed))); /** - * @since 4.0.0 + * Creates a `Sink` from a low-level transform function. + * + * **Details** + * + * The transform receives the upstream pull of non-empty input arrays and the + * active scope, and returns an effect that completes with the sink's `End` + * value. + * * @category constructors + * @since 4.0.0 */ export const fromTransform = transform => { const self = Object.create(SinkProto); @@ -69,7 +84,8 @@ export const fromTransform = transform => { /** * Creates a `Channel` from a Sink. * - * @example + * **Example** (Converting a sink to a channel) + * * ```ts * import { Sink } from "effect" * @@ -78,28 +94,58 @@ export const fromTransform = transform => { * const channel = Sink.toChannel(sink) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const toChannel = self => Channel.fromTransform((upstream, scope) => Effect.succeed(Effect.flatMap(self.transform(upstream, scope), Cause.done))); /** - * @since 4.0.0 + * Creates a pipe-style constructor for sinks over input type `In`. + * + * **Details** + * + * The returned function exposes the sink input as a `Stream`, applies the + * provided pipeline, and uses the final effect's success value as the sink + * result. + * * @category constructors + * @since 4.0.0 */ export const make = () => (...fns) => fromTransform((upstream, scope) => pipe(internalStream.fromChannel(Channel.fromPull(Effect.succeed(upstream))), ...fns, Effect.flatMap(a => Cause.done([a])), Scope.provide(scope))); /** - * @since 4.0.0 + * Creates a sink that ignores upstream input and completes from an effect that + * already returns an `End`. + * + * **When to use** + * + * Use when you need to create a sink from an effect that returns both the sink + * result value and optional leftovers. + * * @category constructors + * @since 4.0.0 */ export const fromEffectEnd = effect => fromTransform(() => effect); /** - * @since 4.0.0 + * Creates a sink that ignores upstream input and completes with the success + * value of the provided effect. + * + * **Details** + * + * If the effect fails, the sink fails with the same error. + * * @category constructors + * @since 2.0.0 */ export const fromEffect = effect => fromEffectEnd(Effect.map(effect, a => [a])); /** - * @since 2.0.0 + * Creates a sink that offers every consumed input element to a queue. + * + * **Details** + * + * When the upstream stream ends, the sink ends the queue and completes with + * `void`. + * * @category constructors + * @since 2.0.0 */ export const fromQueue = queue => fromTransform(upstream => upstream.pipe(Effect.flatMap(arr => Queue.offerAll(queue, arr)), Effect.forever({ disableYield: true @@ -108,14 +154,21 @@ export const fromQueue = queue => fromTransform(upstream => upstream.pipe(Effect return endVoid; }))); /** - * @since 2.0.0 + * Creates a sink that publishes every consumed input element to a `PubSub`. + * + * **Details** + * + * The sink completes with `void` when the upstream stream ends. + * * @category constructors + * @since 2.0.0 */ export const fromPubSub = pubsub => forEachArray(arr => PubSub.publishAll(pubsub, arr)); /** * A sink that immediately ends with the specified value. * - * @example + * **Example** (Succeeding with a value) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -130,28 +183,29 @@ export const fromPubSub = pubsub => forEachArray(arr => PubSub.publishAll(pubsub * // Output: 42 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const succeed = (a, leftovers) => fromEffectEnd(Effect.succeed([a, leftovers])); /** * A sink that immediately ends with the specified lazily evaluated value. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const sync = a => fromEffect(Effect.sync(a)); /** * A sink that is created from a lazily evaluated sink. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const suspend = evaluate => fromTransform((upstream, scope) => evaluate().transform(upstream, scope)); /** * A sink that always fails with the specified error. * - * @example + * **Example** (Failing with an error) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -166,14 +220,15 @@ export const suspend = evaluate => fromTransform((upstream, scope) => evaluate() * // Output: Error: Sink failed * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fail = e => fromEffectEnd(Effect.fail(e)); /** * A sink that always fails with the specified lazily evaluated error. * - * @example + * **Example** (Failing with a lazy error) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -188,14 +243,15 @@ export const fail = e => fromEffectEnd(Effect.fail(e)); * // Output: Error: Lazy error * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failSync = evaluate => fromEffectEnd(Effect.failSync(evaluate)); /** * Creates a sink halting with a specified `Cause`. * - * @example + * **Example** (Failing with a cause) + * * ```ts * import { Cause, Effect, Sink, Stream } from "effect" * @@ -210,14 +266,15 @@ export const failSync = evaluate => fromEffectEnd(Effect.failSync(evaluate)); * // Output: Error: Custom cause * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failCause = cause => fromEffectEnd(Effect.failCause(cause)); /** * Creates a sink halting with a specified lazily evaluated `Cause`. * - * @example + * **Example** (Failing with a lazy cause) + * * ```ts * import { Cause, Effect, Sink, Stream } from "effect" * @@ -232,14 +289,15 @@ export const failCause = cause => fromEffectEnd(Effect.failCause(cause)); * // Output: Error: Lazy cause * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failCauseSync = evaluate => fromEffectEnd(Effect.failCauseSync(evaluate)); /** * Creates a sink halting with a specified defect. * - * @example + * **Example** (Dying with a defect) + * * ```ts * import { Effect, Sink, Stream } from "effect" * @@ -254,29 +312,43 @@ export const failCauseSync = evaluate => fromEffectEnd(Effect.failCauseSync(eval * // Output: Error: Defect error * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const die = defect => fromEffectEnd(Effect.die(defect)); /** * A sink that never completes. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const never = /*#__PURE__*/fromEffectEnd(Effect.never); /** - * Drains the remaining elements from the stream after the sink finishes + * Drops leftovers produced by a sink. * + * **Details** + * + * The sink result is preserved, but any leftover elements are discarded + * instead of being returned to downstream sink composition. This does not + * continue pulling additional elements from the upstream stream. + * + * @category filtering * @since 2.0.0 - * @category utils */ export const ignoreLeftover = self => mapEnd(self, ([a]) => [a]); /** - * Drains elements from the stream by ignoring all inputs. + * Consumes and ignores all stream inputs. + * + * **When to use** + * + * Use to consume all upstream input and complete with void when the input + * values and any aggregate result are not needed. + * + * @see {@link count} for consuming all input while returning the number of elements + * @see {@link forEach} for consuming all input while running an effect for each element * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const drain = /*#__PURE__*/fromTransform(upstream => Pull.catchDone(Effect.forever(upstream, { disableYield: true @@ -285,8 +357,23 @@ export const drain = /*#__PURE__*/fromTransform(upstream => Pull.catchDone(Effec * A sink that folds its inputs with the provided function, termination * predicate and initial state. * - * @since 2.0.0 + * **When to use** + * + * Use to accumulate stream input element by element with an effectful step and + * stop based on the accumulated state. + * + * **Details** + * + * The initial state is evaluated lazily. Each input element is folded with the + * effectful function, and the sink continues while `contFn` returns `true`. If + * the sink stops in the middle of a pulled array, the remaining elements from + * that array are returned as leftovers. + * + * @see {@link foldArray} for folding each pulled non-empty input array at once + * @see {@link foldUntil} for folding until a fixed maximum number of elements is consumed + * * @category folding + * @since 2.0.0 */ export const fold = (s, contFn, f) => fromTransform(upstream => { let state = s(); @@ -302,8 +389,24 @@ export const fold = (s, contFn, f) => fromTransform(upstream => { }).pipe(Pull.catchDone(() => Effect.succeed([state]))); }); /** - * @since 2.0.0 + * Folds non-empty input arrays into state with an effectful function. + * + * **When to use** + * + * Use to update state with an effectful function once per pulled non-empty + * input array when batch-level processing is the natural unit. + * + * **Details** + * + * The initial state is evaluated lazily. After each pulled array is folded, + * the sink continues while `contFn` returns `true`; otherwise it completes + * with the current state. + * + * @see {@link fold} for folding element by element and returning leftovers when stopping mid-array + * @see {@link reduceWhileArrayEffect} for array-level effectful reducing that checks the predicate before consuming input + * * @category folding + * @since 4.0.0 */ export const foldArray = (s, contFn, f) => fromTransform(upstream => { let state = s(); @@ -317,105 +420,181 @@ export const foldArray = (s, contFn, f) => fromTransform(upstream => { }).pipe(Pull.catchDone(() => Effect.succeed([state]))); }); /** - * @since 2.0.0 + * Folds input elements into state until the specified maximum number of + * elements has been consumed or the upstream stream ends. + * + * **Details** + * + * If the sink stops in the middle of a pulled array, the remaining elements + * from that array are returned as leftovers. + * * @category folding + * @since 2.0.0 */ export const foldUntil = (s, max, f) => fold(() => [s(), 0], tuple => tuple[1] < max, ([output, count], input) => Effect.map(f(output, input), s => [s, count + 1])).pipe(map(tuple => tuple[0])); /** * A sink that returns whether all elements satisfy the specified predicate. * - * @since 2.0.0 + * **When to use** + * + * Use to reduce a stream to a boolean that is true only when every input + * satisfies a pure predicate. + * + * @see {@link some} for the dual any-match check + * * @category constructors + * @since 2.0.0 */ export const every = predicate => fold(constTrue, identity, (_, a) => Effect.succeed(predicate(a))); /** * A sink that returns whether an element satisfies the specified predicate. * - * @since 2.0.0 + * **When to use** + * + * Use to reduce a stream to a boolean that is true when any input satisfies a + * pure predicate. + * + * @see {@link every} for the all-match check + * * @category constructors + * @since 2.0.0 */ export const some = predicate => fold(constFalse, b => !b, (_, a) => Effect.succeed(predicate(a))); /** * Transforms this sink's result. * - * @since 2.0.0 + * **When to use** + * + * Use to compute a new result from the original sink result while preserving + * the sink's input consumption behavior. + * + * **Details** + * + * The transformed sink preserves the original sink's input type, leftovers, + * errors, and requirements. + * + * @see {@link mapEffect} for effectful result transformations + * @see {@link as} for replacing the result with a constant value + * @see {@link mapEnd} for transforming both the result and leftovers + * * @category mapping + * @since 2.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => mapEnd(self, ([a, l]) => [f(a), l])); /** - * Set the sink's result to a constant value. + * Sets the sink's result to a constant value. + * + * **When to use** + * + * Use to keep a sink's input consumption, errors, requirements, and leftovers + * while replacing only its result with a known value. + * + * @see {@link map} for computing the replacement from the original result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const as = /*#__PURE__*/dual(2, (self, a2) => map(self, () => a2)); /** * Transforms this sink's input elements. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const mapInput = /*#__PURE__*/dual(2, (self, f) => mapInputArray(self, Arr.map(f))); /** - * Effectfully transforms this sink's input elements. + * Transforms this sink's input elements effectfully. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const mapInputEffect = /*#__PURE__*/dual(2, (self, f) => mapInputArrayEffect(self, Effect.forEach(f))); /** - * Transforms this sink's input elements. + * Transforms each non-empty array of upstream input before it is fed to this + * sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export const mapInputArray = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => self.transform(Effect.map(upstream, f), scope))); /** - * Effectfully transforms this sink's input elements. + * Transforms each non-empty array of upstream input effectfully before it is + * fed to this sink. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export const mapInputArrayEffect = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => self.transform(Effect.flatMap(upstream, f), scope))); /** - * Transforms this sink's result. + * Transforms the full `End` produced by this sink. + * + * **Details** + * + * This can change both the result value and the optional leftovers. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export const mapEnd = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => Effect.map(self.transform(upstream, scope), f))); const transformEffect = (self, f) => fromTransform((upstream, scope) => f(self.transform(upstream, scope))); /** - * Effectfully transforms this sink's result. + * Transforms the full `End` produced by this sink effectfully. + * + * **Details** + * + * This can change both the result value and the optional leftovers, and the + * transformation can fail or require services. * - * @since 4.0.0 * @category mapping + * @since 4.0.0 */ export const mapEffectEnd = /*#__PURE__*/dual(2, (self, f) => transformEffect(self, Effect.flatMap(f))); /** - * Effectfully transforms this sink's result. + * Transforms this sink's result effectfully. + * + * **When to use** + * + * Use when you need a sink result transformation that is effectful, can fail, + * or requires services. + * + * **Details** + * + * The transformed sink preserves the original sink's input consumption and + * leftovers while adding the errors and requirements of the transformation. + * + * @see {@link map} for pure result transformations + * @see {@link mapEffectEnd} for effectfully transforming both the result and leftovers + * @see {@link flatMap} for continuing with another sink based on the result * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const mapEffect = /*#__PURE__*/dual(2, (self, f) => mapEffectEnd(self, ([a, l]) => Effect.map(f(a), a2 => [a2, l]))); /** * Transforms the errors emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const mapError = /*#__PURE__*/dual(2, (self, f) => transformEffect(self, Effect.mapError(f))); /** * Transforms the leftovers emitted by this sink using `f`. * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const mapLeftover = /*#__PURE__*/dual(2, (self, f) => mapEnd(self, ([a, l]) => [a, l && Arr.map(l, f)])); /** - * @since 2.0.0 + * Collects up to `n` input elements into an array. + * + * **Details** + * + * If `n` is less than or equal to zero, the sink completes with an empty array. + * If more elements are pulled than needed, the remaining elements from the same + * array are returned as leftovers. + * * @category collecting + * @since 2.0.0 */ export const take = n => fromTransform(upstream => { const taken = []; @@ -450,10 +629,21 @@ export const take = n => fromTransform(upstream => { * another sink from the provided function which will continue to run until it * yields a result. * - * This function essentially runs sinks in sequence. + * **When to use** + * + * Use to compose sinks when the next sink depends on the result produced by the + * previous sink. + * + * **Details** + * + * Leftovers from the first sink are fed to the sink returned by `f` before more + * upstream input is pulled. + * + * @see {@link map} for transforming the result without switching sinks + * @see {@link mapEffect} for effectfully transforming the result without switching sinks * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const flatMap = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => { let upstreamDone = false; @@ -473,11 +663,11 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream }), scope)); })); /** - * A sink that reduces its inputs using the provided function `f` starting from - * the provided `initial` state while the specified `predicate` returns `true`. + * A sink that reduces input elements from the provided `initial` state with + * `f` while the specified `predicate` returns `true`. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export const reduceWhile = (initial, predicate, f) => fromTransform(upstream => { let state = initial(); @@ -501,12 +691,11 @@ export const reduceWhile = (initial, predicate, f) => fromTransform(upstream => }), Pull.catchDone(() => Effect.succeed([state, leftover]))); }); /** - * A sink that reduces its inputs using the provided effectful function `f` - * starting from the provided `initial` state while the specified `predicate` - * returns `true`. + * A sink that effectfully reduces input elements from the provided `initial` + * state with `f` while the specified `predicate` returns `true`. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export const reduceWhileEffect = (initial, predicate, f) => fromTransform(upstream => { let state = initial(); @@ -535,11 +724,11 @@ export const reduceWhileEffect = (initial, predicate, f) => fromTransform(upstre }), Pull.catchDone(() => Effect.succeed([state, leftover]))); }); /** - * A sink that reduces its inputs using the provided function `f` starting from - * the provided `initial` state while the specified `predicate` returns `true`. + * A sink that reduces non-empty input arrays from the provided `initial` state + * with `f` while the specified `predicate` returns `true`. * - * @since 4.0.0 * @category reducing + * @since 4.0.0 */ export const reduceWhileArray = (initial, contFn, f) => fromTransform(upstream => { let state = initial(); @@ -559,12 +748,11 @@ export const reduceWhileArray = (initial, contFn, f) => fromTransform(upstream = }), Pull.catchDone(() => Effect.succeed([state]))); }); /** - * A sink that reduces its inputs using the provided effectful function `f` - * starting from the provided `initial` state while the specified `predicate` - * returns `true`. + * A sink that effectfully reduces non-empty input arrays from the provided + * `initial` state with `f` while the specified `predicate` returns `true`. * - * @since 4.0.0 * @category reducing + * @since 4.0.0 */ export const reduceWhileArrayEffect = (initial, predicate, f) => fromTransform(upstream => { let state = initial(); @@ -585,8 +773,8 @@ export const reduceWhileArrayEffect = (initial, predicate, f) => fromTransform(u * A sink that reduces its inputs using the provided function `f` starting from * the provided `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export const reduce = (initial, f) => reduceArray(initial, (s, arr) => { for (let i = 0; i < arr.length; i++) { @@ -598,8 +786,8 @@ export const reduce = (initial, f) => reduceArray(initial, (s, arr) => { * A sink that reduces its inputs using the provided function `f` starting from * the specified `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export const reduceArray = (initial, f) => fromTransform(upstream => { let state = initial(); @@ -614,45 +802,95 @@ export const reduceArray = (initial, f) => fromTransform(upstream => { * A sink that reduces its inputs using the provided effectful function `f` * starting from the specified `initial` state. * - * @since 2.0.0 * @category reducing + * @since 4.0.0 */ export const reduceEffect = (initial, f) => reduceWhileEffect(initial, constTrue, f); const head_ = /*#__PURE__*/reduceWhile(Option.none, Option.isNone, (_, in_) => Option.some(in_)); /** * Creates a sink containing the first value. * - * @since 2.0.0 + * **Details** + * + * Returns `Option.some(first)` for non-empty input, or `Option.none` when the + * upstream ends without input. The first element is consumed; later elements + * from the same pulled array are emitted as leftovers. + * * @category constructors + * @since 2.0.0 */ export const head = () => head_; const last_ = /*#__PURE__*/reduceArray(Option.none, (_, arr) => Arr.last(arr)); /** * Creates a sink containing the last value. * - * @since 2.0.0 + * **When to use** + * + * Use when you need to consume all upstream input and keep only the final + * element. + * + * **Details** + * + * Returns `Option.some(last)` with the final input value, or `Option.none` when + * the upstream ends without input. + * + * **Gotchas** + * + * This sink produces a result only when the upstream ends, so it does not + * complete for a stream that does not end. + * + * @see {@link head} for taking the first input value instead + * * @category constructors + * @since 2.0.0 */ export const last = () => last_; /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by a synchronous predicate. + * + * **When to use** + * + * Use to scan stream input until the first matching element is found and return + * that element as an `Option`. + * + * **Details** + * + * Returns `Option.none` if the upstream stream ends before a match is found. + * Refinement predicates narrow the returned value type. The matching input is + * consumed; any later elements from the same pulled array are returned as + * leftovers. + * + * @see {@link findEffect} for an effectful predicate that can fail or require services * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const find = predicate => reduceWhile(Option.none, Option.isNone, (acc, in_) => predicate(in_) ? Option.some(in_) : acc); /** - * Creates a sink containing the first matching value. + * Creates a sink containing the first value matched by an effectful predicate. + * + * **When to use** + * + * Use when you need to run effects, fail, or use services while searching for + * the first matching input. + * + * **Details** + * + * Returns `Option.some` with the first input whose predicate result is `true`, + * or `Option.none` if the upstream stream ends first. If the predicate effect + * fails, the sink fails with the same error. + * + * @see {@link find} for the synchronous predicate variant * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const findEffect = predicate => reduceWhileEffect(Option.none, Option.isNone, (acc, in_) => Effect.map(predicate(in_), b => b ? Option.some(in_) : acc)); /** * Creates a sink which sums up its inputs. * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const sum = /*#__PURE__*/reduceArray(() => 0, (s, arr) => { for (let i = 0; i < arr.length; i++) { @@ -663,23 +901,41 @@ export const sum = /*#__PURE__*/reduceArray(() => 0, (s, arr) => { /** * A sink that counts the number of elements fed to it. * - * @since 2.0.0 + * **When to use** + * + * Use to consume input and return only the number of elements received. + * * @category constructors + * @since 2.0.0 */ export const count = /*#__PURE__*/reduceArray(() => 0, (s, arr) => s + arr.length); /** * Accumulates incoming elements into an array. * - * @since 2.0.0 + * **When to use** + * + * Use when you need a sink result containing all upstream input elements. + * + * @see {@link take} for collecting only a fixed number of input elements + * * @category constructors + * @since 4.0.0 */ export const collect = () => reduceArray(Arr.empty, (s, arr) => { s.push(...arr); return s; }); /** - * @since 4.0.0 + * Collects the longest input prefix whose elements satisfy the predicate or + * refinement. + * + * **Details** + * + * The first failing input is consumed and excluded from the result. Any later + * elements from the same pulled array are returned as leftovers. + * * @category constructors + * @since 4.0.0 */ export const takeWhile = predicate => fromTransform(upstream => { const out = Arr.empty(); @@ -697,8 +953,17 @@ export const takeWhile = predicate => fromTransform(upstream => { }), Pull.catchDone(end => Effect.succeed(end ?? [out]))); }); /** - * @since 4.0.0 + * Applies a `Filter` to input elements while it succeeds, collecting each + * successful output. + * + * **Details** + * + * The first input for which the filter fails is consumed and excluded from the + * result. Any later elements from the same pulled array are returned as + * leftovers. + * * @category constructors + * @since 4.0.0 */ export const takeWhileFilter = filter => fromTransform(upstream => { const out = Arr.empty(); @@ -717,8 +982,16 @@ export const takeWhileFilter = filter => fromTransform(upstream => { }), Pull.catchDone(end => Effect.succeed(end ?? [out]))); }); /** - * @since 4.0.0 + * Collects input elements effectfully while the predicate succeeds. + * + * **Details** + * + * The first input for which the predicate returns `false` is consumed and + * excluded from the result. Any later elements from the same pulled array are + * returned as leftovers. + * * @category constructors + * @since 4.0.0 */ export const takeWhileEffect = predicate => fromTransform(upstream => { const out = Arr.empty(); @@ -747,8 +1020,17 @@ export const takeWhileEffect = predicate => fromTransform(upstream => { }), Pull.catchDone(() => Effect.succeed([out, leftover]))); }); /** - * @since 4.0.0 + * Applies a `FilterEffect` to input elements effectfully while it succeeds, + * collecting each successful output. + * + * **Details** + * + * The first input for which the filter fails is consumed and excluded from the + * result. Any later elements from the same pulled array are returned as + * leftovers. + * * @category constructors + * @since 4.0.0 */ export const takeWhileFilterEffect = filter => fromTransform(upstream => { const out = Arr.empty(); @@ -774,8 +1056,11 @@ export const takeWhileFilterEffect = filter => fromTransform(upstream => { }), Pull.catchDone(() => Effect.succeed([out, leftover]))); }); /** - * @since 4.0.0 + * Collects input elements until the predicate returns `true`, including the + * matching element in the result. + * * @category constructors + * @since 4.0.0 */ export const takeUntil = predicate => suspend(() => { let done = false; @@ -786,8 +1071,15 @@ export const takeUntil = predicate => suspend(() => { }); }); /** - * @since 4.0.0 + * Collects input elements effectfully until the predicate returns `true`, + * including the matching element in the result. + * + * **Details** + * + * If the predicate effect fails, the sink fails with the same error. + * * @category constructors + * @since 4.0.0 */ export const takeUntilEffect = predicate => suspend(() => { let done = false; @@ -805,7 +1097,8 @@ export const takeUntilEffect = predicate => suspend(() => { * A sink that executes the provided effectful function for every item fed * to it. * - * @example + * **Example** (Running effects for each item) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -823,8 +1116,8 @@ export const takeUntilEffect = predicate => suspend(() => { * // Processing: 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const forEach = f => forEachArray(Effect.forEach(_ => f(_), { discard: true @@ -833,7 +1126,8 @@ export const forEach = f => forEachArray(Effect.forEach(_ => f(_), { * A sink that executes the provided effectful function for every Chunk fed * to it. * - * @example + * **Example** (Running effects for each chunk) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -852,15 +1146,22 @@ export const forEach = f => forEachArray(Effect.forEach(_ => f(_), { * // Output: Processing chunk of 5 items: [1, 2, 3, 4, 5] * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const forEachArray = f => fromTransform(upstream => upstream.pipe(Effect.flatMap(f), Effect.forever({ disableYield: true }), Pull.catchDone(() => endVoid))); /** - * @since 2.0.0 + * Runs an effectful function for each input element while it returns `true`. + * + * **Details** + * + * The sink stops consuming input when the function returns `false` or when the + * upstream stream ends, and completes with `void`. + * * @category constructors + * @since 2.0.0 */ export const forEachWhile = f => forEachWhileArray(Effect.fnUntraced(function* (input) { for (let i = 0; i < input.length; i++) { @@ -870,8 +1171,16 @@ export const forEachWhile = f => forEachWhileArray(Effect.fnUntraced(function* ( return true; })); /** - * @since 2.0.0 + * Runs an effectful function for each non-empty input array while it returns + * `true`. + * + * **Details** + * + * The sink stops consuming input when the function returns `false` or when the + * upstream stream ends, and completes with `void`. + * * @category constructors + * @since 4.0.0 */ export const forEachWhileArray = f => fromTransform(upstream => upstream.pipe(Effect.flatMap(f), Effect.flatMap(cont => cont ? Effect.void : Cause.done()), Effect.forever({ disableYield: true @@ -879,7 +1188,8 @@ export const forEachWhileArray = f => fromTransform(upstream => upstream.pipe(Ef /** * Creates a sink produced from a scoped effect. * - * @example + * **Example** (Unwrapping a sink effect) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -900,16 +1210,15 @@ export const forEachWhileArray = f => fromTransform(upstream => upstream.pipe(Ef * // Item: 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const unwrap = effect => fromChannel(Channel.unwrap(Effect.map(effect, toChannel))); /** - * Summarize a sink by running an effect when the sink starts and again when - * it completes. + * Runs a summary effect when the sink starts and again when it completes. * + * @category mapping * @since 2.0.0 - * @category utils */ export const summarized = /*#__PURE__*/dual(3, (self, summary, f) => fromTransform(Effect.fnUntraced(function* (upstream, scope) { const start = yield* summary; @@ -920,28 +1229,52 @@ export const summarized = /*#__PURE__*/dual(3, (self, summary, f) => fromTransfo /** * Returns the sink that executes this one and times its execution. * + * @category mapping * @since 2.0.0 - * @category utils */ export const withDuration = self => summarized(self, Clock.currentTimeNanos, (start, end) => Duration.nanos(end - start)); /** - * @since 2.0.0 + * A sink that drains all input and returns the elapsed duration. + * * @category constructors + * @since 2.0.0 */ export const timed = /*#__PURE__*/map(/*#__PURE__*/withDuration(drain), ([, duration]) => duration); /** - * @since 4.0.0 - * @category Services + * Provides a `Context` to this sink. + * + * **Details** + * + * Services contained in the provided context are removed from the sink's + * service requirements. + * + * @category services + * @since 2.0.0 */ export const provideContext = /*#__PURE__*/dual(2, (self, context) => fromTransform((upstream, scope) => self.transform(upstream, scope).pipe(Effect.provideContext(context)))); /** + * Provides a single service implementation to this sink. + * + * **Details** + * + * The service identified by `key` is removed from the sink's service + * requirements. + * + * @category services * @since 4.0.0 - * @category Services */ export const provideService = /*#__PURE__*/dual(3, (self, key, value) => fromTransform((upstream, scope) => self.transform(upstream, scope).pipe(Effect.provideService(key, value)))); /** + * Runs a fallback sink if this sink fails with a typed error. + * + * **Details** + * + * The fallback is built from the error and continues consuming from the same + * upstream stream. If the upstream stream had already ended, the fallback sees + * the upstream end instead. + * + * @category error handling * @since 2.0.0 - * @category Error handling */ export const orElse = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => { let upstreamDone = false; @@ -957,25 +1290,65 @@ export const orElse = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, }), scope)); })); /** + * Handles failures from this sink by inspecting the full `Cause`. + * + * **When to use** + * + * Use to recover from a sink failure based on the full `Cause` instead of only + * the typed error value. + * + * **Details** + * + * When this sink fails, the handler effect is run and its success value + * becomes the sink result. If the handler fails, the returned sink fails with + * that error. + * + * @see {@link catch_ catch} for recovering from typed errors only + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchCause = /*#__PURE__*/dual(2, (self, f) => transformEffect(self, Effect.catchCause(cause => Effect.map(f(cause), a2 => [a2])))); const catch_ = /*#__PURE__*/dual(2, (self, f) => transformEffect(self, Effect.catch(error => Effect.map(f(error), a2 => [a2])))); export { /** + * Handles typed errors from this sink with an effectful fallback value. + * + * **When to use** + * + * Use to recover from a typed sink failure by producing the replacement + * result with an `Effect`. + * + * @see {@link catchCause} for recovering from the full failure cause + * @see {@link orElse} for recovering by switching to another sink + * + * @category error handling * @since 4.0.0 - * @category Error handling */ catch_ as catch }; /** - * @since 4.0.0 + * Runs an effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The effect receives the sink's `Exit` for the result value. The original + * sink result and leftovers are preserved unless the finalizer itself fails. + * * @category Finalization + * @since 4.0.0 */ export const onExit = /*#__PURE__*/dual(2, (self, f) => transformEffect(self, Effect.onExit(exit => f(Exit.map(exit, ([a]) => a))))); /** - * @since 4.0.0 + * Runs a finalizer effect after this sink completes, fails, or is interrupted. + * + * **Details** + * + * The original sink result and leftovers are preserved unless the finalizer + * itself fails. + * * @category Finalization + * @since 2.0.0 */ export const ensuring = /*#__PURE__*/dual(2, (self, effect) => onExit(self, () => effect)); //# sourceMappingURL=Sink.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Sink.js.map b/.opencode/node_modules/effect/dist/Sink.js.map index 92fe65df6538081da13bfffc5f9086e31e6a2a78..dae9ff9e3a99d8968dd26420145c8bfc90727af7 100644 --- a/.opencode/node_modules/effect/dist/Sink.js.map +++ b/.opencode/node_modules/effect/dist/Sink.js.map @@ -1 +1 @@ -{"version":3,"file":"Sink.js","names":["Arr","Cause","Channel","Clock","Duration","Effect","Exit","constant","constFalse","constTrue","constVoid","dual","identity","pipe","internalStream","Option","pipeArguments","hasProperty","PubSub","Pull","Queue","Result","Scope","TypeId","endVoid","succeed","sinkVariance","_A","_In","_L","_E","_R","SinkProto","arguments","isSink","u","fromChannel","channel","fromTransform","upstream","scope","toTransform","flatMap","forever","disableYield","catchDone","transform","self","Object","create","toChannel","done","make","fns","fromPull","a","provide","fromEffectEnd","effect","fromEffect","map","fromQueue","queue","arr","offerAll","_","endUnsafe","fromPubSub","pubsub","forEachArray","publishAll","leftovers","sync","suspend","evaluate","fail","e","failSync","failCause","cause","failCauseSync","die","defect","never","ignoreLeftover","mapEnd","drain","fold","s","contFn","f","state","gen","i","length","slice","undefined","foldArray","foldUntil","max","tuple","output","count","input","every","predicate","some","b","l","as","a2","mapInput","mapInputArray","mapInputEffect","mapInputArrayEffect","forEach","transformEffect","mapEffectEnd","mapEffect","mapError","mapLeftover","take","n","taken","leftover","push","void","upstreamDone","pull","catchCause","reduceWhile","initial","reduceWhileEffect","whileLoop","while","body","step","reduceWhileArray","reduceWhileArrayEffect","reduce","reduceArray","reduceEffect","head_","none","isNone","in_","head","last_","last","find","acc","findEffect","sum","collect","empty","takeWhile","out","end","takeWhileFilter","filter","result","isFailure","success","takeWhileEffect","passes","takeWhileFilterEffect","takeUntil","takeUntilEffect","discard","forEachWhile","forEachWhileArray","fnUntraced","cont","unwrap","summarized","summary","start","withDuration","currentTimeNanos","nanos","timed","duration","provideContext","context","provideService","key","value","orElse","catch","error","catch_","onExit","exit","ensuring"],"sources":["../src/Sink.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAGjC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,eAAe;AAChG,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AACtD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAAwBC,aAAa,QAAQ,eAAe;AAE5D,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAKnC,MAAMC,MAAM,GAAG,cAAc;AA+C7B,MAAMC,OAAO,gBAAGnB,MAAM,CAACoB,OAAO,CAAC,CAAC,KAAK,CAAC,CAAqB,CAAC;AAmH5D,MAAMC,YAAY,GAAG;EACnBC,EAAE,EAAEf,QAAQ;EACZgB,GAAG,EAAEhB,QAAQ;EACbiB,EAAE,EAAEjB,QAAQ;EACZkB,EAAE,EAAElB,QAAQ;EACZmB,EAAE,EAAEnB;CACL;AAED,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C;AAEL;;;;AAIA,OAAO,MAAMyF,UAAU,gBAcnBtH,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1B2C,CAAuD,KAEvD0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAAC4H,UAAU,CAAElD,KAAK,IAAK1E,MAAM,CAACuD,GAAG,CAAC8B,CAAC,CAACX,KAAK,CAAC,EAAG+B,EAAE,IAAK,CAACA,EAAY,CAAU,CAAC,CAAC,CACpF,CAAC;AAEJ,MAAMgF,MAAM,gBAQRnL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1B2C,CAA0C,KAE1C0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAACuL,KAAK,CAAEC,KAAK,IAAKxL,MAAM,CAACuD,GAAG,CAAC8B,CAAC,CAACmG,KAAK,CAAC,EAAG/E,EAAE,IAAK,CAACA,EAAY,CAAU,CAAC,CAAC,CAC/E,CAAC;AAEJ;AACE;;;;AAIAgF,MAAM,IAAIF,KAAK;AAGjB;;;;AAIA,OAAO,MAAMG,MAAM,gBAcfpL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1B2C,CAAsD,KAEtD0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAAC0L,MAAM,CAAEC,IAAI,IAAKtG,CAAC,CAACpF,IAAI,CAACsD,GAAG,CAACoI,IAAI,EAAE,CAAC,CAACzI,CAAC,CAAC,KAAKA,CAAC,CAAC,CAAC,CAAC,CACvD,CAAC;AAEJ;;;;AAIA,OAAO,MAAM0I,QAAQ,gBAWjBtL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1BW,MAAgC,KACGqI,MAAM,CAAChJ,IAAI,EAAE,MAAMW,MAAM,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Sink.js","names":["Arr","Cause","Channel","Clock","Duration","Effect","Exit","constant","constFalse","constTrue","constVoid","dual","identity","pipe","internalStream","Option","pipeArguments","hasProperty","PubSub","Pull","Queue","Result","Scope","TypeId","endVoid","succeed","sinkVariance","_A","_In","_L","_E","_R","SinkProto","arguments","isSink","u","fromChannel","channel","fromTransform","upstream","scope","toTransform","flatMap","forever","disableYield","catchDone","transform","self","Object","create","toChannel","done","make","fns","fromPull","a","provide","fromEffectEnd","effect","fromEffect","map","fromQueue","queue","arr","offerAll","_","endUnsafe","fromPubSub","pubsub","forEachArray","publishAll","leftovers","sync","suspend","evaluate","fail","e","failSync","failCause","cause","failCauseSync","die","defect","never","ignoreLeftover","mapEnd","drain","fold","s","contFn","f","state","gen","i","length","slice","undefined","foldArray","foldUntil","max","tuple","output","count","input","every","predicate","some","b","l","as","a2","mapInput","mapInputArray","mapInputEffect","mapInputArrayEffect","forEach","transformEffect","mapEffectEnd","mapEffect","mapError","mapLeftover","take","n","taken","leftover","push","void","upstreamDone","pull","catchCause","reduceWhile","initial","reduceWhileEffect","whileLoop","while","body","step","reduceWhileArray","reduceWhileArrayEffect","reduce","reduceArray","reduceEffect","head_","none","isNone","in_","head","last_","last","find","acc","findEffect","sum","collect","empty","takeWhile","out","end","takeWhileFilter","filter","result","isFailure","success","takeWhileEffect","passes","takeWhileFilterEffect","takeUntil","takeUntilEffect","discard","forEachWhile","forEachWhileArray","fnUntraced","cont","unwrap","summarized","summary","start","withDuration","currentTimeNanos","nanos","timed","duration","provideContext","context","provideService","key","value","orElse","catch","error","catch_","onExit","exit","ensuring"],"sources":["../src/Sink.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAGjC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC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CAAuD,KAEvD0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAAC4H,UAAU,CAAElD,KAAK,IAAK1E,MAAM,CAACuD,GAAG,CAAC8B,CAAC,CAACX,KAAK,CAAC,EAAG+B,EAAE,IAAK,CAACA,EAAY,CAAU,CAAC,CAAC,CACpF,CAAC;AAEJ,MAAMgF,MAAM,gBAQRnL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1B2C,CAA0C,KAE1C0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAACuL,KAAK,CAAEC,KAAK,IAAKxL,MAAM,CAACuD,GAAG,CAAC8B,CAAC,CAACmG,KAAK,CAAC,EAAG/E,EAAE,IAAK,CAACA,EAAY,CAAU,CAAC,CAAC,CAC/E,CAAC;AAEJ;AACE;;;;;;;;;;;;;;AAcAgF,MAAM,IAAIF,KAAK;AAGjB;;;;;;;;;;;AAWA,OAAO,MAAMG,MAAM,gBA4BfpL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1B2C,CAAsD,KAEtD0B,eAAe,CACbrE,IAAI,EACJ1C,MAAM,CAAC0L,MAAM,CAAEC,IAAI,IAAKtG,CAAC,CAACpF,IAAI,CAACsD,GAAG,CAACoI,IAAI,EAAE,CAAC,CAACzI,CAAC,CAAC,KAAKA,CAAC,CAAC,CAAC,CAAC,CACvD,CAAC;AAEJ;;;;;;;;;;;AAWA,OAAO,MAAM0I,QAAQ,gBAyBjBtL,IAAI,CAAC,CAAC,EAAE,CACVoC,IAA0B,EAC1BW,MAAgC,KACGqI,MAAM,CAAChJ,IAAI,EAAE,MAAMW,MAAM,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stdio.d.ts b/.opencode/node_modules/effect/dist/Stdio.d.ts index 8f62709e51e784d65c60cee91d4c6889bea92630..413f1e5507d9e07cb9679e9e08b303440e60497c 100644 --- a/.opencode/node_modules/effect/dist/Stdio.d.ts +++ b/.opencode/node_modules/effect/dist/Stdio.d.ts @@ -1,4 +1,14 @@ /** + * Service contract for command-line arguments and standard input, output, and + * error output. It lets programs depend on standard I/O through the Effect + * environment instead of reading from or writing to global process handles + * directly. + * + * The service exposes arguments as an `Effect`, stdout and stderr as `Sink`s + * that accept strings or bytes, and stdin as a byte `Stream`. This module also + * provides a constructor for service values and a small test layer with + * overridable defaults. + * * @since 4.0.0 */ import * as Context from "./Context.ts"; @@ -8,18 +18,44 @@ import type { PlatformError } from "./PlatformError.ts"; import * as Sink from "./Sink.ts"; import * as Stream from "./Stream.ts"; /** + * String literal type used as the unique brand for the `Stdio` service. + * + * **When to use** + * + * Use to type the runtime identifier stored on `Stdio` service implementations. + * + * @category type IDs * @since 4.0.0 - * @category Type IDs */ export type TypeId = "~effect/Stdio"; /** + * Runtime identifier stored on `Stdio` service implementations. + * + * **Details** + * + * This marker is part of the runtime representation of `Stdio` service + * implementations. + * + * @category type IDs * @since 4.0.0 - * @category Type IDs */ export declare const TypeId: TypeId; /** + * Defines the service interface for process standard I/O. + * + * **When to use** + * + * Use to depend on command-line arguments and standard I/O through the Effect + * environment. + * + * **Details** + * + * The service provides command-line arguments, sinks for standard output and + * standard error, and a stream of standard input bytes. I/O operations can fail + * with `PlatformError`. + * + * @category models * @since 4.0.0 - * @category Models */ export interface Stdio { readonly [TypeId]: TypeId; @@ -33,18 +69,58 @@ export interface Stdio { readonly stdin: Stream.Stream; } /** + * Service tag for process standard I/O. + * + * **When to use** + * + * Use when you need command-line arguments or standard I/O streams supplied by + * an effect's environment. + * + * @see {@link make} for constructing a `Stdio` service directly + * @see {@link layerTest} for a test layer with defaults and overrides + * + * @category services * @since 4.0.0 - * @category Services */ export declare const Stdio: Context.Service; /** + * Creates a `Stdio` service implementation from the provided fields and + * attaches the `Stdio` type identifier. + * + * **When to use** + * + * Use when you need to assemble a concrete `Stdio` service from command-line + * arguments and standard I/O implementations. + * + * **Details** + * + * The returned service reuses the supplied fields unchanged and only adds the + * `Stdio` type identifier; it does not create a `Layer` or provide defaults. + * + * @see {@link layerTest} for a test layer with default fields that can be overridden + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const make: (options: Omit) => Stdio; /** + * Creates a test layer for `Stdio`. + * + * **When to use** + * + * Use to provide deterministic standard I/O in tests while overriding only the + * command-line arguments, input stream, or output sinks relevant to the case. + * + * **Details** + * + * Any provided fields override defaults. By default, arguments are empty, + * standard output and error are draining sinks, and standard input is an empty + * stream. + * + * @see {@link make} for constructing a `Stdio` service directly without a `Layer` or defaults + * + * @category layers * @since 4.0.0 - * @category Layers */ export declare const layerTest: (impl: Partial) => Layer.Layer; //# sourceMappingURL=Stdio.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stdio.d.ts.map b/.opencode/node_modules/effect/dist/Stdio.d.ts.map index 292b532210aad8e2e35c1f1901ba9a296cc4e51c..68dd5e2a1b8e72bbf45d2e48e61fa63aacf54c1d 100644 --- a/.opencode/node_modules/effect/dist/Stdio.d.ts.map +++ b/.opencode/node_modules/effect/dist/Stdio.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Stdio.d.ts","sourceRoot":"","sources":["../src/Stdio.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,eAAe,CAAA;AAEpC;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,MAAwB,CAAA;AAE7C;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,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 No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stdio.js b/.opencode/node_modules/effect/dist/Stdio.js index 1b6e92c9a2ad505baeee8249d23150c115e4ecdb..4afaa1f5f53b36d6c640eea52621efcfa95fdea0 100644 --- a/.opencode/node_modules/effect/dist/Stdio.js +++ b/.opencode/node_modules/effect/dist/Stdio.js @@ -1,4 +1,14 @@ /** + * Service contract for command-line arguments and standard input, output, and + * error output. It lets programs depend on standard I/O through the Effect + * environment instead of reading from or writing to global process handles + * directly. + * + * The service exposes arguments as an `Effect`, stdout and stderr as `Sink`s + * that accept strings or bytes, and stdin as a byte `Stream`. This module also + * provides a constructor for service values and a small test layer with + * overridable defaults. + * * @since 4.0.0 */ import * as Context from "./Context.js"; @@ -7,26 +17,73 @@ import * as Layer from "./Layer.js"; import * as Sink from "./Sink.js"; import * as Stream from "./Stream.js"; /** + * Runtime identifier stored on `Stdio` service implementations. + * + * **Details** + * + * This marker is part of the runtime representation of `Stdio` service + * implementations. + * + * @category type IDs * @since 4.0.0 - * @category Type IDs */ export const TypeId = "~effect/Stdio"; /** + * Service tag for process standard I/O. + * + * **When to use** + * + * Use when you need command-line arguments or standard I/O streams supplied by + * an effect's environment. + * + * @see {@link make} for constructing a `Stdio` service directly + * @see {@link layerTest} for a test layer with defaults and overrides + * + * @category services * @since 4.0.0 - * @category Services */ export const Stdio = /*#__PURE__*/Context.Service(TypeId); /** + * Creates a `Stdio` service implementation from the provided fields and + * attaches the `Stdio` type identifier. + * + * **When to use** + * + * Use when you need to assemble a concrete `Stdio` service from command-line + * arguments and standard I/O implementations. + * + * **Details** + * + * The returned service reuses the supplied fields unchanged and only adds the + * `Stdio` type identifier; it does not create a `Layer` or provide defaults. + * + * @see {@link layerTest} for a test layer with default fields that can be overridden + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const make = options => ({ [TypeId]: TypeId, ...options }); /** + * Creates a test layer for `Stdio`. + * + * **When to use** + * + * Use to provide deterministic standard I/O in tests while overriding only the + * command-line arguments, input stream, or output sinks relevant to the case. + * + * **Details** + * + * Any provided fields override defaults. By default, arguments are empty, + * standard output and error are draining sinks, and standard input is an empty + * stream. + * + * @see {@link make} for constructing a `Stdio` service directly without a `Layer` or defaults + * + * @category layers * @since 4.0.0 - * @category Layers */ export const layerTest = impl => Layer.succeed(Stdio, make({ args: Effect.succeed([]), diff --git a/.opencode/node_modules/effect/dist/Stdio.js.map b/.opencode/node_modules/effect/dist/Stdio.js.map index 831a81736944099258cb77dfff349fc3be6ffcfd..d0013bb6ccf3c1c127f76e2bce74d3da8a1cff34 100644 --- a/.opencode/node_modules/effect/dist/Stdio.js.map +++ b/.opencode/node_modules/effect/dist/Stdio.js.map @@ -1 +1 @@ -{"version":3,"file":"Stdio.js","names":["Context","Effect","Layer","Sink","Stream","TypeId","Stdio","Service","make","options","layerTest","impl","succeed","args","stdout","drain","stderr","stdin","empty"],"sources":["../src/Stdio.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAQrC;;;;AAIA,OAAO,MAAMC,MAAM,GAAW,eAAe;AAiB7C;;;;AAIA,OAAO,MAAMC,KAAK,gBAAkCN,OAAO,CAACO,OAAO,CAAQF,MAAM,CAAC;AAElF;;;;AAIA,OAAO,MAAMG,IAAI,GAAIC,OAA4B,KAAa;EAC5D,CAACJ,MAAM,GAAGA,MAAM;EAChB,GAAGI;CACJ,CAAC;AAEF;;;;AAIA,OAAO,MAAMC,SAAS,GAAIC,IAAoB,IAC5CT,KAAK,CAACU,OAAO,CACXN,KAAK,EACLE,IAAI,CAAC;EACHK,IAAI,EAAEZ,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;EACxBE,MAAM,EAAEA,CAAA,KAAMX,IAAI,CAACY,KAAK;EACxBC,MAAM,EAAEA,CAAA,KAAMb,IAAI,CAACY,KAAK;EACxBE,KAAK,EAAEb,MAAM,CAACc,KAAK;EACnB,GAAGP;CACJ,CAAC,CACH","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Stdio.js","names":["Context","Effect","Layer","Sink","Stream","TypeId","Stdio","Service","make","options","layerTest","impl","succeed","args","stdout","drain","stderr","stdin","empty"],"sources":["../src/Stdio.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAaA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAcrC;;;;;;;;;;;AAWA,OAAO,MAAMC,MAAM,GAAW,eAAe;AA8B7C;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,KAAK,gBAAkCN,OAAO,CAACO,OAAO,CAAQF,MAAM,CAAC;AAElF;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMG,IAAI,GAAIC,OAA4B,KAAa;EAC5D,CAACJ,MAAM,GAAGA,MAAM;EAChB,GAAGI;CACJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,SAAS,GAAIC,IAAoB,IAC5CT,KAAK,CAACU,OAAO,CACXN,KAAK,EACLE,IAAI,CAAC;EACHK,IAAI,EAAEZ,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;EACxBE,MAAM,EAAEA,CAAA,KAAMX,IAAI,CAACY,KAAK;EACxBC,MAAM,EAAEA,CAAA,KAAMb,IAAI,CAACY,KAAK;EACxBE,KAAK,EAAEb,MAAM,CAACc,KAAK;EACnB,GAAGP;CACJ,CAAC,CACH","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stream.d.ts b/.opencode/node_modules/effect/dist/Stream.d.ts index eda6abfae068570fab551e01cfa3ab6a5773ad72..6c0579768d84f71708b1d50c99c386d97364c6bb 100644 --- a/.opencode/node_modules/effect/dist/Stream.d.ts +++ b/.opencode/node_modules/effect/dist/Stream.d.ts @@ -1,4 +1,13 @@ /** + * Describes effectful sources that emit values over time. + * + * A `Stream` can emit many `A` values, fail with `E`, and require + * services `R` while it is being consumed. Streams are useful for data that is + * pulled in steps, such as values from collections, queues, pubsubs, schedules, + * callbacks, async iterables, or platform streams. The APIs here cover the full + * stream lifecycle: create a stream, transform or combine it, control buffering + * and timing, handle failures, and finally consume it. + * * @since 2.0.0 */ import * as Arr from "./Array.ts"; @@ -17,7 +26,7 @@ import type { Severity } from "./LogLevel.ts"; import * as Option from "./Option.ts"; import type { Pipeable } from "./Pipeable.ts"; import type { Predicate, Refinement } from "./Predicate.ts"; -import type * as PubSub from "./PubSub.ts"; +import * as PubSub from "./PubSub.ts"; import * as Pull from "./Pull.ts"; import * as Queue from "./Queue.ts"; import * as Result from "./Result.ts"; @@ -26,27 +35,42 @@ import * as Scope from "./Scope.ts"; import * as Sink from "./Sink.ts"; import type * as Take from "./Take.ts"; import type { ParentSpan, SpanOptions } from "./Tracer.ts"; -import type { Covariant, ExcludeReason, ExcludeTag, ExtractReason, ExtractTag, NarrowReason, NoInfer, OmitReason, ReasonTags, Tags, unassigned } from "./Types.ts"; +import type { Covariant, ExcludeReason, ExcludeTag, ExtractReason, ExtractTag, NarrowReason, NoInfer, OmitReason, ReasonTags, Tags, TupleOf, unassigned } from "./Types.ts"; import type * as Unify from "./Unify.ts"; /** + * String literal type used as the unique brand for `Stream` values. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export type TypeId = "~effect/Stream"; /** + * Runtime identifier stored on `Stream` values and used by `isStream` to + * recognize them. + * + * **Details** + * + * This marker is part of the runtime representation of `Stream` values. Prefer + * `isStream` when narrowing unknown values. + * + * @see {@link isStream} for the public guard that checks this identifier + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export declare const TypeId: TypeId; /** * A `Stream` describes a program that can emit many `A` values, fail * with `E`, and require `R`. * + * **Details** + * * Streams are pull-based with backpressure and emit chunks to amortize effect * evaluation. They support monadic composition and error handling similar to * `Effect`, adapted for multiple values. * - * @example + * **Example** (Creating and consuming streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -64,8 +88,8 @@ export declare const TypeId: TypeId; * // 6 * ``` * + * @category models * @since 2.0.0 - * @category Models */ export interface Stream extends Variance, Pipeable { readonly channel: Channel.Channel, E, void, unknown, unknown, unknown, R>; @@ -76,20 +100,8 @@ export interface Stream extends Variance - * declare const effect: Effect.Effect - * - * // The unification system handles mixed operations - * const combined = Effect.zip(stream.pipe(Stream.runCollect), effect) - * ``` - * + * @category models * @since 2.0.0 - * @category Models */ export interface StreamUnify + * type NumberStream = HKT.Kind * // Equivalent to: Stream * ``` * - * @category Type Lambdas + * @category type lambdas * @since 2.0.0 */ export interface StreamTypeLambda extends TypeLambda { readonly type: Stream; } /** - * Variance markers for Stream type parameters. + * Type-level variance marker for `Stream`. * + * **Details** + * + * The emitted value `A`, error `E`, and service requirement `R` type + * parameters are covariant. + * + * @category models * @since 2.0.0 - * @category Models */ export interface Variance { readonly [TypeId]: VarianceStruct; } /** - * Structural encoding of Stream type parameter variance. + * Structural encoding used by `Variance` to record each `Stream` type + * parameter's variance. * - * @since 2.0.0 - * @category Models + * **Details** + * + * `_A`, `_E`, and `_R` are covariant markers. + * + * @category models + * @since 3.4.0 */ export interface VarianceStruct { readonly _A: Covariant; @@ -156,7 +169,8 @@ export interface VarianceStruct { /** * Extract the success type from a Stream type. * - * @example + * **Example** (Extracting the success type from a Stream type) + * * ```ts * import type { Stream } from "effect" * @@ -165,14 +179,15 @@ export interface VarianceStruct { * // SuccessType is number * ``` * + * @category utility types * @since 3.4.0 - * @category Type-Level */ export type Success> = [T] extends [Stream] ? _A : never; /** * Extract the error type from a Stream type. * - * @example + * **Example** (Extracting the error type from a Stream type) + * * ```ts * import type { Stream } from "effect" * @@ -181,18 +196,15 @@ export type Success> = [T] extends [Stream> = [T] extends [Stream] ? _E : never; /** * Extract the services type from a Stream type. * - * **Previously Known As:** + * **Example** (Extracting the services type from a Stream type) * - * This type alias was named `Context` in Effect 3.x. - * - * @example * ```ts * import type { Stream } from "effect" * @@ -204,14 +216,15 @@ export type Error> = [T] extends [Stream> = [T] extends [Stream] ? _R : never; /** * Checks whether a value is a Stream. * - * @example + * **Example** (Checking whether a value is a Stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -228,14 +241,15 @@ export type Services> = [T] extends [Stream u is Stream; /** * The default chunk size used by Stream constructors and combinators. * - * @example + * **Example** (Reading the default chunk size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -247,27 +261,22 @@ export declare const isStream: (u: unknown) => u is Stream, E, R>(channel: Channel.Channel) => Stream ? A : never, E, R>; /** - * Either emits the success value of this effect or terminates the stream - * with the failure value of this effect. + * Creates a stream from an effect. + * + * **Example** (Creating a stream from an effect) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -303,16 +312,17 @@ export declare const fromChannel: , E * // Output: [ 42 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromEffect: (effect: Effect.Effect) => Stream; /** * Accesses a service from the context and emits it as a single element. * - * @example + * **Example** (Accessing a service as a stream) + * * ```ts - * import { Effect, Context, Stream } from "effect" + * import { Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -335,17 +345,23 @@ export declare const fromEffect: (effect: Effect.Effect) => St * // Output: [ "Hello, World!" ] * ``` * + * @category context * @since 4.0.0 - * @category Context */ export declare const service: (service: Context.Key) => Stream; /** * Optionally accesses a service from the context and emits the result as a * single element. * - * @example + * **When to use** + * + * Use when you need a stream that emits an optional service from the context + * without requiring that service to be present. + * + * **Example** (Accessing an optional service as a stream) + * * ```ts - * import { Effect, Option, Context, Stream } from "effect" + * import { Context, Effect, Option, Stream } from "effect" * * class Greeter extends Context.Service string @@ -373,14 +389,15 @@ export declare const service: (service: Context.Key) => Stream(service: Context.Key) => Stream>; /** * Creates a stream that runs the effect and emits no elements. * - * @example + * **Example** (Draining an effect into a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -394,20 +411,15 @@ export declare const serviceOption: (service: Context.Key) => Stream * // Output: Draining side effect * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromEffectDrain: (effect: Effect.Effect) => Stream; /** * Creates a stream from an effect producing a value of type `A` which repeats forever. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an effect forever) * - * - `Stream.repeatEffect` - * - * @example * ```ts * import { Console, Effect, Random, Stream } from "effect" * @@ -423,21 +435,16 @@ export declare const fromEffectDrain: (effect: Effect.Effect) * // Output: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromEffectRepeat: (effect: Effect.Effect) => Stream, R>; /** * Creates a stream from an effect producing a value of type `A`, which is * repeated using the specified schedule. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an effect with a schedule) * - * - `Stream.repeatEffectWithSchedule` - * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -454,14 +461,16 @@ export declare const fromEffectRepeat: (effect: Effect.Effect) * // Output: [ "ping", "ping", "ping" ] * ``` * - * @since 2.0.0 - * @category Constructors + * @category constructors + * @since 4.0.0 */ export declare const fromEffectSchedule: (effect: Effect.Effect, schedule: Schedule.Schedule) => Stream; /** - * Creates a stream that emits void values spaced by the specified duration. + * Creates a stream that emits `void` immediately once, then emits another + * `void` after each specified interval. + * + * **Example** (Emitting ticks on an interval) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -477,17 +486,20 @@ export declare const fromEffectSchedule: (effe * // Output: [ undefined, undefined, undefined ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const tick: (interval: Duration.Input) => Stream; /** * Creates a stream from a pull effect, such as one produced by `Stream.toPull`. * + * **Details** + * * A pull effect yields chunks on demand and completes when the upstream stream ends. * See `Stream.toPull` for a matching producer. * - * @example + * **Example** (Creating a stream from a pull effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -505,14 +517,15 @@ export declare const tick: (interval: Duration.Input) => Stream; * // Output: [1, 2, 3] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromPull: (pull: Effect.Effect, E, void, R>, EX, RX>) => Stream | EX, R | RX>; /** - * Derive a stream by transforming its pull effect. + * Derives a stream by transforming its pull effect. + * + * **Example** (Transforming a pull effect) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -529,17 +542,20 @@ export declare const fromPull: (pull: Effect.Effect(self: Stream, f: (pull: Pull.Pull, E, void>, scope: Scope.Scope) => Effect.Effect, E2, void, R2>, EX, RX>) => Stream, R | R2 | RX>; /** * Transforms a stream by effectfully transforming its pull effect. * + * **Details** + * * A forked scope is also provided to the transformation function, which is * closed once the resulting stream has finished processing. * - * @example + * **Example** (Transforming a stream by effectfully transforming its pull effect) + * * ```ts * import { Console, Effect, Scope, Stream } from "effect" * @@ -564,14 +580,15 @@ export declare const transformPull: (self: Stream(self: Stream, f: (pull: Pull.Pull, E, void, R>, scope: Scope.Scope, forkedScope: Scope.Scope) => Effect.Effect, E2, void, R2>, EX, RX>) => Stream, R | R2 | RX>; /** * Creates a channel from a stream. * - * @example + * **Example** (Converting a stream to a channel) + * * ```ts * import { Channel, Console, Effect, Stream } from "effect" * @@ -586,30 +603,24 @@ export declare const transformPullBracket: (self: St * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const toChannel: (stream: Stream) => Channel.Channel, E, void, unknown, unknown, unknown, R>; /** * Creates a stream from a callback that can emit values into a queue. * - * You can use the `Queue` with the apis from the `Queue` module to emit - * values to the stream or to signal the stream ending. + * **When to use** + * + * Use when you need callback-based code to emit stream values by offering to a + * `Queue`, or signal stream completion through the `Queue` module APIs. * * By default it uses an "unbounded" buffer size. * You can customize the buffer size and strategy by passing an object as the * second argument with the `bufferSize` and `strategy` fields. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Creating a stream from a callback that can emit values into a queue) * - * - `Stream.async` - * - `Stream.asyncEffect` - * - `Stream.asyncPush` - * - `Stream.asyncScoped` - * - * @example * ```ts * import { Console, Effect, Queue, Stream } from "effect" * @@ -633,8 +644,8 @@ export declare const toChannel: (stream: Stream) => Channel.Ch * Effect.runPromise(program) * ``` * - * @since 2.0.0 - * @category Constructors + * @category constructors + * @since 4.0.0 */ export declare const callback: (f: (queue: Queue.Queue) => Effect.Effect, options?: { readonly bufferSize?: number | undefined; @@ -643,7 +654,8 @@ export declare const callback: (f: (queue: Queue.Queue< /** * Creates an empty stream. * - * @example + * **Example** (Creating an empty stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -656,14 +668,15 @@ export declare const callback: (f: (queue: Queue.Queue< * // [] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const empty: Stream; /** * Creates a single-valued pure stream. * - * @example + * **Example** (Creating a single-valued pure stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -676,14 +689,15 @@ export declare const empty: Stream; * // [ 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const succeed: (value: A) => Stream; /** * Creates a stream from a sequence of values. * - * @example + * **Example** (Creating a stream from a sequence of values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -697,16 +711,19 @@ export declare const succeed: (value: A) => Stream; * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const make: >(...values: As) => Stream; /** * Creates a stream that synchronously evaluates a function and emits the result as a single value. * + * **Details** + * * The function is evaluated each time the stream is run. * - * @example + * **Example** (Evaluating a value synchronously) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -719,16 +736,19 @@ export declare const make: >(...values: As) * // Output: [ 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const sync: (evaluate: LazyArg) => Stream; /** * Creates a lazily constructed stream. * + * **Details** + * * The stream factory is evaluated each time the stream is run. * - * @example + * **Example** (Creating a lazily constructed stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -741,14 +761,15 @@ export declare const sync: (evaluate: LazyArg) => Stream; * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const suspend: (stream: LazyArg>) => Stream; /** * Terminates with the specified error. * - * @example + * **Example** (Failing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -762,14 +783,15 @@ export declare const suspend: (stream: LazyArg>) => Str * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fail: (error: E) => Stream; /** * Terminates with the specified lazily evaluated error. * - * @example + * **Example** (Failing a stream lazily) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -785,14 +807,15 @@ export declare const fail: (error: E) => Stream; * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Uh oh!' } } * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const failSync: (evaluate: LazyArg) => Stream; /** * Creates a stream that fails with the specified `Cause`. * - * @example + * **Example** (Failing with a cause) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -809,14 +832,15 @@ export declare const failSync: (evaluate: LazyArg) => Stream; * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const failCause: (cause: Cause.Cause) => Stream; /** * The stream that dies with the specified defect. * - * @example + * **Example** (Dying with a defect) + * * ```ts * import { Cause, Console, Effect, Exit, Stream } from "effect" * @@ -840,14 +864,15 @@ export declare const failCause: (cause: Cause.Cause) => Stream; * // Output: Exit.Failure(Error: Boom) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const die: (defect: unknown) => Stream; /** * The stream that always fails with the specified lazily evaluated `Cause`. * - * @example + * **Example** (Failing with a lazy cause) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -865,16 +890,19 @@ export declare const die: (defect: unknown) => Stream; * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Connection timeout after retries' } } * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const failCauseSync: (evaluate: LazyArg>) => Stream; /** * Creates a stream that consumes values from an iterator. * + * **Details** + * * The `maxChunkSize` parameter controls how many values are pulled per chunk. * - * @example + * **Example** (Consuming values from an iterator) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -895,18 +923,19 @@ export declare const failCauseSync: (evaluate: LazyArg>) => St * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromIteratorSucceed: (iterator: IterableIterator, maxChunkSize?: number) => Stream; /** * Creates a new `Stream` from an iterable collection of values. * - * **Options** + * **Details** * * - `chunkSize`: Maximum number of values emitted per chunk. * - * @example + * **Example** (Creating a stream from an iterable) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -922,8 +951,8 @@ export declare const fromIteratorSucceed: (iterator: IterableIterator, max * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromIterable: (iterable: Iterable, options?: { readonly chunkSize?: number | undefined; @@ -931,9 +960,15 @@ export declare const fromIterable: (iterable: Iterable, options?: { /** * Creates a stream from an effect producing an iterable of values. * - * @example + * **When to use** + * + * Use when the iterable must be acquired from an Effect before the stream emits, + * and acquisition services or failures should be part of the stream. + * + * **Example** (Creating a stream from an iterable effect) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class UserRepo extends Context.Service> @@ -959,20 +994,15 @@ export declare const fromIterable: (iterable: Iterable, options?: { * // Output: [ "user1", "user2" ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromIterableEffect: (iterable: Effect.Effect, E, R>) => Stream; /** * Creates a stream by repeatedly running an effect that yields an iterable of values. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an iterable effect) * - * - `Stream.repeatEffectChunk` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -988,20 +1018,15 @@ export declare const fromIterableEffect: (iterable: Effect.Effect(iterable: Effect.Effect, E, R>) => Stream, R>; /** * Creates a stream from an array of values. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Creating a stream from an array of values) * - * - `Stream.fromChunk` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1015,14 +1040,20 @@ export declare const fromIterableEffectRepeat: (iterable: Effect.Effect * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromArray: (array: ReadonlyArray) => Stream; /** * Creates a stream from an effect that produces an array of values. * - * @example + * **When to use** + * + * Use when the array must be acquired from an Effect before the stream emits, + * and acquisition services or failures should be part of the stream. + * + * **Example** (Creating a stream from an effect that produces an array of values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1036,20 +1067,15 @@ export declare const fromArray: (array: ReadonlyArray) => Stream; * // Output: [ "Ada", "Grace" ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromArrayEffect: (effect: Effect.Effect, E, R>) => Stream, R>; /** * Creates a stream from an arbitrary number of arrays. * - * **Previously Known As** + * **Example** (Creating a stream from an arbitrary number of arrays) * - * This API replaces the following from Effect 3.x: - * - * - `Stream.fromChunks` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1063,19 +1089,20 @@ export declare const fromArrayEffect: (effect: Effect.Effect>>(...arrays: Arr) => Stream; /** - * Creates a stream from a queue of values. + * Creates a stream that pulls values from a `Queue.Dequeue`. * - * **Options** + * **Details** * - * - `maxChunkSize`: The maximum number of queued elements to put in one chunk in the stream - * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`) + * The stream emits non-empty batches of queued values and ends when the queue + * fails with `Cause.Done`; other queue failures are propagated. + * + * **Example** (Creating a stream from a queue of values) * - * @example * ```ts * import { Console, Effect, Queue, Stream } from "effect" * @@ -1095,14 +1122,15 @@ export declare const fromArrays: >> * // Output: [ 1, 2, 3 ] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const fromQueue: (queue: Queue.Dequeue) => Stream>; /** * Creates a stream from a subscription to a `PubSub`. * - * @example + * **Example** (Creating a stream from a subscription to a PubSub) + * * ```ts * import { Console, Effect, Fiber, PubSub, Stream } from "effect" * @@ -1127,16 +1155,19 @@ export declare const fromQueue: (queue: Queue.Dequeue) => Stream(pubsub: PubSub.PubSub) => Stream; /** * Creates a stream from a PubSub of `Take` values. * + * **Details** + * * `Take` values include end and failure signals. * - * @example + * **Example** (Creating a stream from PubSub takes) + * * ```ts * import { Console, Effect, Exit, PubSub, Stream, Take } from "effect" * @@ -1157,16 +1188,21 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Stream; * // Output: [ 1, 2 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromPubSubTake: (pubsub: PubSub.PubSub>) => Stream; /** - * Creates a stream from a `ReadableStream`. + * Creates a stream from a lazily supplied Web `ReadableStream`. * - * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. + * **Details** + * + * The stream reads from a `ReadableStreamDefaultReader`, maps read failures + * with `onError`, and closes the reader when the stream finalizes. By default + * the reader is canceled; set `releaseLockOnEnd` to release the lock instead. + * + * **Example** (Creating a stream from a ReadableStream) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -1194,8 +1230,8 @@ export declare const fromPubSubTake: (pubsub: PubSub.PubSub(options: { readonly evaluate: LazyArg>; @@ -1205,9 +1241,10 @@ export declare const fromReadableStream: (options: { /** * Creates a stream from an AsyncIterable. * - * @example + * **Example** (Creating a stream from an AsyncIterable) + * * ```ts - * import { Console, Data, Effect, Stream } from "effect" + * import { Data, Effect, Stream } from "effect" * * class StreamError extends Data.TaggedError("StreamError")<{ readonly cause: unknown }> {} * @@ -1217,25 +1254,25 @@ export declare const fromReadableStream: (options: { * yield 3 * })() * - * const program = Effect.gen(function*() { + * Effect.runPromise(Effect.gen(function*() { * const stream = Stream.fromAsyncIterable(iterable, (cause) => new StreamError({ cause })) * const values = yield* Stream.runCollect(stream) - * yield* Console.log(values) - * }) + * yield* Effect.sync(() => console.log(values)) + * })) * - * Effect.runPromise(program) - * // Output: [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromAsyncIterable: (iterable: AsyncIterable, onError: (error: unknown) => E) => Stream; /** * Creates a stream that emits each output of a schedule that does not require input, * for as long as the schedule continues. * - * @example + * **Example** (Creating a stream from a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -1252,17 +1289,21 @@ export declare const fromAsyncIterable: (iterable: AsyncIterable, onErr * // Output: [ 0, 1, 2 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const fromSchedule: (schedule: Schedule.Schedule) => Stream; /** * Creates a stream from a PubSub subscription. * - * Use `PubSub.subscribe` to create the subscription and `Stream.take` or - * cancellation to control how many values are consumed. + * **When to use** + * + * Use when you already have a `PubSub.Subscription` and want to expose its + * messages as a `Stream`, with `Stream.take` or cancellation controlling how + * many values are consumed. + * + * **Example** (Creating a stream from a PubSub subscription) * - * @example * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -1282,15 +1323,15 @@ export declare const fromSchedule: (schedule: Schedule.Schedule(pubsub: PubSub.Subscription) => Stream; /** * Interface representing an event listener target. * + * @category models * @since 3.4.0 - * @category Models */ export interface EventListener { addEventListener(event: string, f: (event: A) => void, options?: { @@ -1306,26 +1347,35 @@ export interface EventListener { /** * Creates a stream from an event listener. * - * @example + * **Example** (Creating a stream from an event listener) + * * ```ts - * import { Console, Effect, Stream } from "effect" + * import { Effect, Stream } from "effect" * - * declare const target: Stream.EventListener + * class NumberTarget implements Stream.EventListener { + * addEventListener(event: string, f: (event: number) => void) { + * if (event === "data") { + * f(1) + * f(2) + * f(3) + * } + * } + * removeEventListener(_event: string, _f: (event: number) => void) {} + * } * - * const program = Effect.gen(function*() { - * const stream = Stream.fromEventListener(target, "data").pipe( + * Effect.runPromise(Effect.gen(function*() { + * const stream = Stream.fromEventListener(new NumberTarget(), "data").pipe( * Stream.take(3) * ) * const values = yield* Stream.runCollect(stream) - * yield* Console.log(values) - * }) + * yield* Effect.sync(() => console.log(values)) + * })) * - * Effect.runPromise(program) - * // Output: [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * + * @category constructors * @since 3.1.0 - * @category Constructors */ export declare const fromEventListener: (target: EventListener, type: string, options?: boolean | { readonly capture?: boolean; @@ -1334,9 +1384,16 @@ export declare const fromEventListener: (target: EventListener, readonly bufferSize?: number | undefined; } | undefined) => Stream; /** - * Creates a stream by peeling off successive layers of a state value. + * Creates a stream by repeatedly applying an effectful step function to a + * state. + * + * **Details** + * + * Each `readonly [value, nextState]` result emits `value` and continues with + * `nextState`; returning `undefined` ends the stream. + * + * **Example** (Unfolding stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1350,19 +1407,27 @@ export declare const fromEventListener: (target: EventListener, * // Output: [ 1, 2, 3, 4, 5 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const unfold: (s: S, f: (s: S) => Effect.Effect) => Stream; /** - * Like `Stream.unfold`, but allows the emission of values to end one step further - * than the unfolding of the state. This is useful for embedding paginated APIs, - * hence the name. + * Creates a stream by repeatedly evaluating an effectful page function. + * + * **When to use** + * + * Use to consume paginated APIs where each step returns a batch of values + * together with an optional next state. + * + * **Details** + * + * This is similar to {@link unfold}, but each step can emit zero or more values + * and independently decide whether another state should be requested. + * + * **Example** (Paginating stream state) * - * @example * ```ts - * import { Console, Effect, Stream } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Stream } from "effect" * * const stream = Stream.paginate(0, (n: number) => * Effect.succeed( @@ -1376,14 +1441,15 @@ export declare const unfold: (s: S, f: (s: S) => Effect.Effect(s: S, f: (s: S) => Effect.Effect, Option.Option], E, R>) => Stream; /** * Creates an infinite stream by repeatedly applying a function to a seed value. * - * @example + * **Example** (Iterating from a seed value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1398,17 +1464,20 @@ export declare const paginate: (s: S, f: (s: S) => E * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const iterate: (value: A, next: (value: A) => A) => Stream; /** * Constructs a stream from a range of integers, including both endpoints. * + * **Details** + * * If the provided `min` is greater than `max`, the stream will not emit any * values. * - * @example + * **Example** (Creating a numeric range) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1420,14 +1489,16 @@ export declare const iterate: (value: A, next: (value: A) => A) => Stream; * Effect.runPromise(program) * // Output: [ 1, 2, 3, 4, 5 ] * ``` - * @since 4.0.0 - * @category Constructors + * + * @category constructors + * @since 2.0.0 */ export declare const range: (min: number, max: number, chunkSize?: number) => Stream; /** * The stream that never produces any value or fails with any error. * - * @example + * **Example** (Creating a never-ending stream) + * * ```ts * import { Effect, Stream } from "effect" * @@ -1440,14 +1511,15 @@ export declare const range: (min: number, max: number, chunkSize?: number) => St * // [] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const never: Stream; /** * Creates a stream produced from an `Effect`. * - * @example + * **Example** (Unwrapping a stream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1462,15 +1534,16 @@ export declare const never: Stream; * // [1, 2, 3] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const unwrap: (effect: Effect.Effect, E, R>) => Stream>; /** * Runs a stream that requires `Scope` in a managed scope, ensuring its * finalizers are run when the stream completes. * - * @example + * **Example** (Scoping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1489,14 +1562,15 @@ export declare const unwrap: (effect: Effect.Effect(self: Stream) => Stream>; /** * Transforms the elements of this stream using the supplied function. * - * @example + * **Example** (Mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1509,14 +1583,15 @@ export declare const scoped: (self: Stream) => Stream(f: (a: A, i: number) => B): (self: Stream) => Stream; /** * Transforms the elements of this stream using the supplied function. * - * @example + * **Example** (Mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1549,15 +1625,16 @@ export declare const map: { * // [ 1, 3, 5 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, f: (a: A, i: number) => B): Stream; }; /** * Maps both the failure and success channels of a stream. * - * @example + * **Example** (Mapping both the failure and success channels of a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1586,14 +1663,15 @@ export declare const map: { * // Output: [ "error: boom" ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const mapBoth: { /** * Maps both the failure and success channels of a stream. * - * @example + * **Example** (Mapping both the failure and success channels of a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1622,8 +1700,8 @@ export declare const mapBoth: { * // Output: [ "error: boom" ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (options: { readonly onFailure: (e: E) => E2; @@ -1632,7 +1710,8 @@ export declare const mapBoth: { /** * Maps both the failure and success channels of a stream. * - * @example + * **Example** (Mapping both the failure and success channels of a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1661,8 +1740,8 @@ export declare const mapBoth: { * // Output: [ "error: boom" ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, options: { readonly onFailure: (e: E) => E2; @@ -1672,13 +1751,8 @@ export declare const mapBoth: { /** * Transforms each emitted chunk using the provided function, which receives the chunk and its index. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Mapping stream chunks) * - * - `Stream.mapChunks` - * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1695,20 +1769,15 @@ export declare const mapBoth: { * // Output: [ 1, 2, 4, 5 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export declare const mapArray: { /** * Transforms each emitted chunk using the provided function, which receives the chunk and its index. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Mapping stream chunks) * - * - `Stream.mapChunks` - * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1725,20 +1794,15 @@ export declare const mapArray: { * // Output: [ 1, 2, 4, 5 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (f: (a: Arr.NonEmptyReadonlyArray, i: number) => Arr.NonEmptyReadonlyArray): (self: Stream) => Stream; /** * Transforms each emitted chunk using the provided function, which receives the chunk and its index. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Mapping stream chunks) * - * - `Stream.mapChunks` - * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1755,15 +1819,21 @@ export declare const mapArray: { * // Output: [ 1, 2, 4, 5 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (self: Stream, f: (a: Arr.NonEmptyReadonlyArray, i: number) => Arr.NonEmptyReadonlyArray): Stream; }; /** * Maps over elements of the stream with the specified effectful function. * - * @example + * **When to use** + * + * Use when each stream element transformation needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Example** (Effectfully mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1791,14 +1861,20 @@ export declare const mapArray: { * // [2, 4, 6] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const mapEffect: { /** * Maps over elements of the stream with the specified effectful function. * - * @example + * **When to use** + * + * Use when each stream element transformation needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Example** (Effectfully mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1826,8 +1902,8 @@ export declare const mapEffect: { * // [2, 4, 6] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (f: (a: A, i: number) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -1836,7 +1912,13 @@ export declare const mapEffect: { /** * Maps over elements of the stream with the specified effectful function. * - * @example + * **When to use** + * + * Use when each stream element transformation needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Example** (Effectfully mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1864,8 +1946,8 @@ export declare const mapEffect: { * // [2, 4, 6] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, f: (a: A, i: number) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -1875,7 +1957,13 @@ export declare const mapEffect: { /** * Flattens a stream of `Effect` values into a stream of their results. * - * @example + * **When to use** + * + * Use when stream elements already are effects and their successes should become + * stream elements while their failures enter the stream error channel. + * + * **Example** (Flattening a stream of Effect values into a stream of their results) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1890,8 +1978,8 @@ export declare const mapEffect: { * // Output: [1, 2, 3] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const flattenEffect: , any, any> | { readonly concurrency?: number | "unbounded" | undefined; @@ -1904,15 +1992,15 @@ export declare const flattenEffect: [Arg] extends [Stream, infer _E, infer _R>] ? Stream<_A, _EX | _E, _RX | _R> : (self: Stream, E, R>) => Stream; /** - * Effectfully maps over non-empty array chunks emitted by the stream. + * Maps over non-empty array chunks emitted by the stream effectfully. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when transformation needs to see and replace each non-empty emitted chunk + * effectfully instead of mapping individual stream elements. * - * - `Stream.mapChunksEffect` + * **Example** (Effectfully mapping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1931,20 +2019,20 @@ export declare const flattenEffect: (f: (a: Arr.NonEmptyReadonlyArray, i: number) => Effect.Effect, E2, R2>): (self: Stream) => Stream; /** - * Effectfully maps over non-empty array chunks emitted by the stream. + * Maps over non-empty array chunks emitted by the stream effectfully. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when transformation needs to see and replace each non-empty emitted chunk + * effectfully instead of mapping individual stream elements. * - * - `Stream.mapChunksEffect` + * **Example** (Effectfully mapping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1995,23 +2083,20 @@ export declare const mapArrayEffect: { * // Output: [1, 2, 13, 14] * ``` * + * @category mapping * @since 4.0.0 - * @category Mapping */ (self: Stream, f: (a: Arr.NonEmptyReadonlyArray, i: number) => Effect.Effect, E2, R2>): Stream; }; /** * Lifts failures and successes into a `Result`, yielding a stream that cannot fail. * - * The stream ends after the first failure, emitting a `Result.fail` value. - * - * **Previously Known As:** + * **Details** * - * This API replaces the following from Effect 3.x: + * The stream ends after the first failure, emitting a `Result.fail` value. * - * - `Stream.either` + * **Example** (Converting failures to results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -2032,14 +2117,15 @@ export declare const mapArrayEffect: { * // Output: [ "success: 1", "success: 2", "failure: boom" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const result: (self: Stream) => Stream, never, R>; /** * Runs the provided effect for each element while preserving the elements. * - * @example + * **Example** (Tapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2065,14 +2151,15 @@ export declare const result: (self: Stream) => Stream(f: (a: NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -2107,7 +2194,8 @@ export declare const tap: { /** * Runs the provided effect for each element while preserving the elements. * - * @example + * **Example** (Tapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2133,8 +2221,8 @@ export declare const tap: { * // [ 2, 4, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, f: (a: NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -2143,7 +2231,8 @@ export declare const tap: { /** * Returns a stream that effectfully "peeks" at elements and failures. * - * @example + * **Example** (Tapping values and errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2168,14 +2257,15 @@ export declare const tap: { * // [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const tapBoth: { /** * Returns a stream that effectfully "peeks" at elements and failures. * - * @example + * **Example** (Tapping values and errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2200,8 +2290,8 @@ export declare const tapBoth: { * // [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (options: { readonly onElement: (a: NoInfer) => Effect.Effect; @@ -2211,7 +2301,8 @@ export declare const tapBoth: { /** * Returns a stream that effectfully "peeks" at elements and failures. * - * @example + * **Example** (Tapping values and errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2236,8 +2327,8 @@ export declare const tapBoth: { * // [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, options: { readonly onElement: (a: NoInfer) => Effect.Effect; @@ -2246,10 +2337,10 @@ export declare const tapBoth: { }): Stream; }; /** - * Sends all elements emitted by this stream to the specified sink in addition - * to emitting them. + * Runs a sink for all stream elements while still emitting them downstream. + * + * **Example** (Tapping values with a sink) * - * @example * ```ts * import { Console, Effect, Ref, Sink, Stream } from "effect" * @@ -2272,15 +2363,15 @@ export declare const tapBoth: { * // Output: [1, 2, 3] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const tapSink: { /** - * Sends all elements emitted by this stream to the specified sink in addition - * to emitting them. + * Runs a sink for all stream elements while still emitting them downstream. + * + * **Example** (Tapping values with a sink) * - * @example * ```ts * import { Console, Effect, Ref, Sink, Stream } from "effect" * @@ -2303,15 +2394,15 @@ export declare const tapSink: { * // Output: [1, 2, 3] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (sink: Sink.Sink): (self: Stream) => Stream; /** - * Sends all elements emitted by this stream to the specified sink in addition - * to emitting them. + * Runs a sink for all stream elements while still emitting them downstream. + * + * **Example** (Tapping values with a sink) * - * @example * ```ts * import { Console, Effect, Ref, Sink, Stream } from "effect" * @@ -2334,15 +2425,23 @@ export declare const tapSink: { * // Output: [1, 2, 3] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, sink: Sink.Sink): Stream; }; /** - * Maps each element to a stream and concatenates the results in order. + * Maps each element to a stream and flattens the resulting streams. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * input order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (FlatMapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2358,14 +2457,22 @@ export declare const tapSink: { * // Output: [ 1, 2, 2, 4, 3, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const flatMap: { /** - * Maps each element to a stream and concatenates the results in order. + * Maps each element to a stream and flattens the resulting streams. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * input order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (FlatMapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2381,17 +2488,25 @@ export declare const flatMap: { * // Output: [ 1, 2, 2, 4, 3, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (f: (a: A) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined; } | undefined): (self: Stream) => Stream; /** - * Maps each element to a stream and concatenates the results in order. + * Maps each element to a stream and flattens the resulting streams. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * input order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (FlatMapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2407,8 +2522,8 @@ export declare const flatMap: { * // Output: [ 1, 2, 2, 4, 3, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, f: (a: A) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -2419,7 +2534,8 @@ export declare const flatMap: { * Switches to the latest stream produced by the mapping function, interrupting * the previous stream when a new element arrives. * - * @example + * **Example** (Switching to the latest stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2435,15 +2551,16 @@ export declare const flatMap: { * }) * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export declare const switchMap: { /** * Switches to the latest stream produced by the mapping function, interrupting * the previous stream when a new element arrives. * - * @example + * **Example** (Switching to the latest stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2459,8 +2576,8 @@ export declare const switchMap: { * }) * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (f: (a: A) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -2470,7 +2587,8 @@ export declare const switchMap: { * Switches to the latest stream produced by the mapping function, interrupting * the previous stream when a new element arrives. * - * @example + * **Example** (Switching to the latest stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2486,8 +2604,8 @@ export declare const switchMap: { * }) * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (self: Stream, f: (a: A) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -2495,10 +2613,17 @@ export declare const switchMap: { } | undefined): Stream; }; /** - * Flattens a stream of streams into a single stream by concatenating the - * inner streams in strict order. + * Flattens a stream of streams into a single stream. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * strict order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (Flattening nested streams) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2517,8 +2642,8 @@ export declare const switchMap: { * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const flatten: , any, any> | { readonly concurrency?: number | "unbounded" | undefined; @@ -2533,13 +2658,8 @@ export declare const flatten: , any, an /** * Flattens a stream of non-empty arrays into a stream of elements. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.flattenChunks` + * **Example** (Flattening a stream of non-empty arrays into a stream of elements) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -2554,14 +2674,15 @@ export declare const flatten: , any, an * // Output: [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export declare const flattenArray: (self: Stream, E, R>) => Stream; /** * Converts this stream to one that runs its effects but emits no elements. * - * @example + * **Example** (Draining stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2574,15 +2695,16 @@ export declare const flattenArray: (self: Stream(self: Stream) => Stream; /** * Runs the provided stream in the background while this stream runs, interrupting it * when this stream completes and failing if the background stream fails or defects. * - * @example + * **Example** (Draining a stream in the background) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2602,15 +2724,16 @@ export declare const drain: (self: Stream) => Stream(that: Stream): (self: Stream) => Stream; /** * Runs the provided stream in the background while this stream runs, interrupting it * when this stream completes and failing if the background stream fails or defects. * - * @example + * **Example** (Draining a stream in the background) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2658,15 +2782,16 @@ export declare const drainFork: { * // Output: [ 1, 2 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, that: Stream): Stream; }; /** * Repeats the entire stream according to the provided schedule. * - * @example + * **Example** (Repeating a stream on a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2683,14 +2808,15 @@ export declare const drainFork: { * // Output: [ 1, 1, 1, 1, 1 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const repeat: { /** * Repeats the entire stream according to the provided schedule. * - * @example + * **Example** (Repeating a stream on a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2707,14 +2833,15 @@ export declare const repeat: { * // Output: [ 1, 1, 1, 1, 1 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (schedule: Schedule.Schedule | (($: (_: Schedule.Schedule) => Schedule.Schedule) => Schedule.Schedule)): (self: Stream) => Stream; /** * Repeats the entire stream according to the provided schedule. * - * @example + * **Example** (Repeating a stream on a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2731,15 +2858,16 @@ export declare const repeat: { * // Output: [ 1, 1, 1, 1, 1 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, schedule: Schedule.Schedule | (($: (_: Schedule.Schedule) => Schedule.Schedule) => Schedule.Schedule)): Stream; }; /** - * Spaces the stream's elements according to the provided `schedule`. + * Schedules the stream's elements according to the provided schedule. + * + * **Example** (Scheduling stream elements) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2756,14 +2884,15 @@ export declare const repeat: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const schedule: { /** - * Spaces the stream's elements according to the provided `schedule`. + * Schedules the stream's elements according to the provided schedule. + * + * **Example** (Scheduling stream elements) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2780,14 +2909,15 @@ export declare const schedule: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (schedule: Schedule.Schedule, E2, R2>): (self: Stream) => Stream; /** - * Spaces the stream's elements according to the provided `schedule`. + * Schedules the stream's elements according to the provided schedule. + * + * **Example** (Scheduling stream elements) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2804,15 +2934,16 @@ export declare const schedule: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, schedule: Schedule.Schedule, E2, R2>): Stream; }; /** * Ends the stream if it does not produce a value within the specified duration. * - * @example + * **Example** (Timing out a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2829,14 +2960,15 @@ export declare const schedule: { * // Output: [ 1 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const timeout: { /** * Ends the stream if it does not produce a value within the specified duration. * - * @example + * **Example** (Timing out a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2853,14 +2985,15 @@ export declare const timeout: { * // Output: [ 1 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (duration: Duration.Input): (self: Stream) => Stream; /** * Ends the stream if it does not produce a value within the specified duration. * - * @example + * **Example** (Timing out a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2877,27 +3010,87 @@ export declare const timeout: { * // Output: [ 1 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, duration: Duration.Input): Stream; }; /** - * @since 2.0.0 - * @category Rate Limiting + * Switches to a fallback stream if this stream does not emit a value within + * the specified duration. + * + * **When to use** + * + * Use when a stream should continue with another stream if an upstream pull + * waits longer than the allowed duration. + * + * **Details** + * + * The timeout is checked for each pull. A zero duration uses `orElse` + * immediately, while an infinite duration leaves the original stream + * unchanged. + * + * **Gotchas** + * + * The fallback stream is not timed after the switch. + * + * @see {@link timeout} for ending the stream instead of switching to a fallback stream + * + * @category rate limiting + * @since 4.0.0 */ export declare const timeoutOrElse: { /** - * @since 2.0.0 - * @category Rate Limiting + * Switches to a fallback stream if this stream does not emit a value within + * the specified duration. + * + * **When to use** + * + * Use when a stream should continue with another stream if an upstream pull + * waits longer than the allowed duration. + * + * **Details** + * + * The timeout is checked for each pull. A zero duration uses `orElse` + * immediately, while an infinite duration leaves the original stream + * unchanged. + * + * **Gotchas** + * + * The fallback stream is not timed after the switch. + * + * @see {@link timeout} for ending the stream instead of switching to a fallback stream + * + * @category rate limiting + * @since 4.0.0 */ (options: { readonly duration: Duration.Input; readonly orElse: () => Stream; }): (self: Stream) => Stream; /** - * @since 2.0.0 - * @category Rate Limiting + * Switches to a fallback stream if this stream does not emit a value within + * the specified duration. + * + * **When to use** + * + * Use when a stream should continue with another stream if an upstream pull + * waits longer than the allowed duration. + * + * **Details** + * + * The timeout is checked for each pull. A zero duration uses `orElse` + * immediately, while an infinite duration leaves the original stream + * unchanged. + * + * **Gotchas** + * + * The fallback stream is not timed after the switch. + * + * @see {@link timeout} for ending the stream instead of switching to a fallback stream + * + * @category rate limiting + * @since 4.0.0 */ (self: Stream, options: { readonly duration: Duration.Input; @@ -2908,9 +3101,8 @@ export declare const timeoutOrElse: { * Repeats each element of the stream according to the provided schedule, * including the original emission. * - * @since 2.0.0 - * @category Sequencing - * @example + * **Example** (Repeating stream elements) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2925,15 +3117,17 @@ export declare const timeoutOrElse: { * Effect.runPromise(program) * // Output: [ "A", "A", "B", "B", "C", "C" ] * ``` + * + * @category sequencing + * @since 2.0.0 */ export declare const repeatElements: { /** * Repeats each element of the stream according to the provided schedule, * including the original emission. * - * @since 2.0.0 - * @category Sequencing - * @example + * **Example** (Repeating stream elements) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2948,15 +3142,17 @@ export declare const repeatElements: { * Effect.runPromise(program) * // Output: [ "A", "A", "B", "B", "C", "C" ] * ``` + * + * @category sequencing + * @since 2.0.0 */ (schedule: Schedule.Schedule): (self: Stream) => Stream; /** * Repeats each element of the stream according to the provided schedule, * including the original emission. * - * @since 2.0.0 - * @category Sequencing - * @example + * **Example** (Repeating stream elements) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2971,13 +3167,17 @@ export declare const repeatElements: { * Effect.runPromise(program) * // Output: [ "A", "A", "B", "B", "C", "C" ] * ``` + * + * @category sequencing + * @since 2.0.0 */ (self: Stream, schedule: Schedule.Schedule): Stream; }; /** * Repeats this stream forever. * - * @example + * **Example** (Repeating a stream forever) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2995,20 +3195,15 @@ export declare const repeatElements: { * // Output: [ "A", "B", "A", "B", "A" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const forever: (self: Stream) => Stream; /** - * Submerges the iterables emitted by this stream into the stream's structure. + * Flattens the iterables emitted by this stream into the stream's structure. * - * **Previously Known As** + * **Example** (Flattening iterable values) * - * This API replaces the following from Effect 3.x: - * - * - `Stream.flattenIterables` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3022,15 +3217,16 @@ export declare const forever: (self: Stream) => Stream(self: Stream, E, R>) => Stream; /** * Unwraps `Take` values, emitting elements from non-empty arrays and ending or * failing when the `Exit` signals completion. * - * @example + * **Example** (Flattening Take values) + * * ```ts * import { Array, Console, Effect, Exit, Stream } from "effect" * @@ -3049,15 +3245,16 @@ export declare const flattenIterable: (self: Stream, E, R>) * // Output: [ 1, 2, 3 ] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 2.0.0 */ export declare const flattenTake: (self: Stream, E2, R>) => Stream; /** * Concatenates two streams, emitting all elements from the first stream * followed by all elements from the second stream. * - * @example + * **Example** (Concatenating streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3070,15 +3267,16 @@ export declare const flattenTake: (self: Stream, E2 * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const concat: { /** * Concatenates two streams, emitting all elements from the first stream * followed by all elements from the second stream. * - * @example + * **Example** (Concatenating streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3091,15 +3289,16 @@ export declare const concat: { * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (that: Stream): (self: Stream) => Stream; /** * Concatenates two streams, emitting all elements from the first stream * followed by all elements from the second stream. * - * @example + * **Example** (Concatenating streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3112,15 +3311,16 @@ export declare const concat: { * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, that: Stream): Stream; }; /** * Prepends the values from the provided iterable before the stream's elements. * - * @example + * **Example** (Prepending values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3137,14 +3337,15 @@ export declare const concat: { * Effect.runPromise(program) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const prepend: { /** * Prepends the values from the provided iterable before the stream's elements. * - * @example + * **Example** (Prepending values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3161,14 +3362,15 @@ export declare const prepend: { * Effect.runPromise(program) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (values: Iterable): (self: Stream) => Stream; /** * Prepends the values from the provided iterable before the stream's elements. * - * @example + * **Example** (Prepending values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3185,18 +3387,21 @@ export declare const prepend: { * Effect.runPromise(program) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, values: Iterable): Stream; }; /** * Merges two streams, emitting elements from both as they arrive. * + * **Details** + * * By default, the merged stream ends when both streams end. Use * `haltStrategy` to change the termination behavior. * - * @example + * **Example** (Merging stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3212,17 +3417,20 @@ export declare const prepend: { * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const merge: { /** * Merges two streams, emitting elements from both as they arrive. * + * **Details** + * * By default, the merged stream ends when both streams end. Use * `haltStrategy` to change the termination behavior. * - * @example + * **Example** (Merging stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3238,8 +3446,8 @@ export declare const merge: { * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (that: Stream, options?: { readonly haltStrategy?: HaltStrategy | undefined; @@ -3247,10 +3455,13 @@ export declare const merge: { /** * Merges two streams, emitting elements from both as they arrive. * + * **Details** + * * By default, the merged stream ends when both streams end. Use * `haltStrategy` to change the termination behavior. * - * @example + * **Example** (Merging stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3266,8 +3477,8 @@ export declare const merge: { * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (self: Stream, that: Stream, options?: { readonly haltStrategy?: HaltStrategy | undefined; @@ -3276,12 +3487,18 @@ export declare const merge: { /** * Merges this stream with a background effect, keeping the stream's elements. * + * **When to use** + * + * Use when an effect should run concurrently for the lifetime of a stream while + * only the stream's elements remain in the output. + * + * **Details** + * * The effect runs concurrently, fails the stream if it fails, and is interrupted * when the stream completes. * - * @since 4.0.0 - * @category Merging - * @example + * **Example** (Merging with a background effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3298,17 +3515,26 @@ export declare const merge: { * // Output: side task * // Output: [ 1, 2, 3 ] * ``` + * + * @category merging + * @since 4.0.0 */ export declare const mergeEffect: { /** * Merges this stream with a background effect, keeping the stream's elements. * + * **When to use** + * + * Use when an effect should run concurrently for the lifetime of a stream while + * only the stream's elements remain in the output. + * + * **Details** + * * The effect runs concurrently, fails the stream if it fails, and is interrupted * when the stream completes. * - * @since 4.0.0 - * @category Merging - * @example + * **Example** (Merging with a background effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3325,17 +3551,26 @@ export declare const mergeEffect: { * // Output: side task * // Output: [ 1, 2, 3 ] * ``` + * + * @category merging + * @since 4.0.0 */ (effect: Effect.Effect): (self: Stream) => Stream; /** * Merges this stream with a background effect, keeping the stream's elements. * + * **When to use** + * + * Use when an effect should run concurrently for the lifetime of a stream while + * only the stream's elements remain in the output. + * + * **Details** + * * The effect runs concurrently, fails the stream if it fails, and is interrupted * when the stream completes. * - * @since 4.0.0 - * @category Merging - * @example + * **Example** (Merging with a background effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3352,6 +3587,9 @@ export declare const mergeEffect: { * // Output: side task * // Output: [ 1, 2, 3 ] * ``` + * + * @category merging + * @since 4.0.0 */ (self: Stream, effect: Effect.Effect): Stream; }; @@ -3359,13 +3597,14 @@ export declare const mergeEffect: { * Merges this stream and the specified stream together, tagging values from the * left stream as `Result.succeed` and values from the right stream as `Result.fail`. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when values from both streams should be emitted and downstream code needs + * left values wrapped as successful `Result` values and right values wrapped as + * failed `Result` values. * - * - `Stream.mergeEither` + * **Example** (Merging streams into results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -3391,21 +3630,22 @@ export declare const mergeEffect: { * // Output: [ "left:left", "right:right" ] * ``` * - * @since 2.0.0 - * @category Merging + * @category merging + * @since 4.0.0 */ export declare const mergeResult: { /** * Merges this stream and the specified stream together, tagging values from the * left stream as `Result.succeed` and values from the right stream as `Result.fail`. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when values from both streams should be emitted and downstream code needs + * left values wrapped as successful `Result` values and right values wrapped as + * failed `Result` values. * - * - `Stream.mergeEither` + * **Example** (Merging streams into results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -3431,21 +3671,22 @@ export declare const mergeResult: { * // Output: [ "left:left", "right:right" ] * ``` * - * @since 2.0.0 - * @category Merging + * @category merging + * @since 4.0.0 */ (that: Stream): (self: Stream) => Stream, E2 | E, R2 | R>; /** * Merges this stream and the specified stream together, tagging values from the * left stream as `Result.succeed` and values from the right stream as `Result.fail`. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when values from both streams should be emitted and downstream code needs + * left values wrapped as successful `Result` values and right values wrapped as + * failed `Result` values. * - * - `Stream.mergeEither` + * **Example** (Merging streams into results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -3471,19 +3712,27 @@ export declare const mergeResult: { * // Output: [ "left:left", "right:right" ] * ``` * - * @since 2.0.0 - * @category Merging + * @category merging + * @since 4.0.0 */ (self: Stream, that: Stream): Stream, E | E2, R | R2>; }; /** * Merges two streams while emitting only the values from the left stream. * + * **When to use** + * + * Use when the right stream is needed for its effects or failures, but downstream + * consumers should only receive values from the left stream. + * + * **Details** + * * The right stream still runs for its effects, and any failures from the right * stream are propagated. The merged stream completes when the left stream * completes, interrupting the right stream. * - * @example + * **Example** (Merging streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3498,18 +3747,26 @@ export declare const mergeResult: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const mergeLeft: { /** * Merges two streams while emitting only the values from the left stream. * + * **When to use** + * + * Use when the right stream is needed for its effects or failures, but downstream + * consumers should only receive values from the left stream. + * + * **Details** + * * The right stream still runs for its effects, and any failures from the right * stream are propagated. The merged stream completes when the left stream * completes, interrupting the right stream. * - * @example + * **Example** (Merging streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3524,18 +3781,26 @@ export declare const mergeLeft: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (right: Stream): (left: Stream) => Stream; /** * Merges two streams while emitting only the values from the left stream. * + * **When to use** + * + * Use when the right stream is needed for its effects or failures, but downstream + * consumers should only receive values from the left stream. + * + * **Details** + * * The right stream still runs for its effects, and any failures from the right * stream are propagated. The merged stream completes when the left stream * completes, interrupting the right stream. * - * @example + * **Example** (Merging streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3550,8 +3815,8 @@ export declare const mergeLeft: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (left: Stream, right: Stream): Stream; }; @@ -3559,10 +3824,18 @@ export declare const mergeLeft: { * Merges this stream and the specified stream together, emitting only the * values from the right stream while the left stream runs for its effects. * + * **When to use** + * + * Use when the left stream is needed for its effects or failures, but downstream + * consumers should only receive values from the right stream. + * + * **Details** + * * The merged stream ends when the right stream completes, interrupting the * left stream. Failures from the left stream still fail the merged stream. * - * @example + * **Example** (Merging streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3582,18 +3855,26 @@ export declare const mergeLeft: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const mergeRight: { /** * Merges this stream and the specified stream together, emitting only the * values from the right stream while the left stream runs for its effects. * + * **When to use** + * + * Use when the left stream is needed for its effects or failures, but downstream + * consumers should only receive values from the right stream. + * + * **Details** + * * The merged stream ends when the right stream completes, interrupting the * left stream. Failures from the left stream still fail the merged stream. * - * @example + * **Example** (Merging streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3613,18 +3894,26 @@ export declare const mergeRight: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (right: Stream): (left: Stream) => Stream; /** * Merges this stream and the specified stream together, emitting only the * values from the right stream while the left stream runs for its effects. * + * **When to use** + * + * Use when the left stream is needed for its effects or failures, but downstream + * consumers should only receive values from the right stream. + * + * **Details** + * * The merged stream ends when the right stream completes, interrupting the * left stream. Failures from the left stream still fail the merged stream. * - * @example + * **Example** (Merging streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3644,18 +3933,27 @@ export declare const mergeRight: { * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (left: Stream, right: Stream): Stream; }; /** * Merges a collection of streams, running up to the specified number concurrently. * - * @since 2.0.0 - * @category Merging + * **When to use** + * + * Use to merge an iterable of already-created streams while bounding how many + * inner streams may run at the same time. + * + * **Details** + * + * The `concurrency` option is required and may be a number or `"unbounded"`. + * `bufferSize` controls buffering between inner streams, and outputs are + * emitted as they arrive under concurrent merging. + * + * **Example** (Merging streams with bounded concurrency) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3674,15 +3972,30 @@ export declare const mergeRight: { * Effect.runPromise(program) * // Output: [ "B", "A" ] * ``` + * + * @see {@link merge} for merging exactly two streams and choosing a halt strategy + * @see {@link flatten} for flattening a stream that already emits streams + * + * @category merging + * @since 2.0.0 */ export declare const mergeAll: { /** * Merges a collection of streams, running up to the specified number concurrently. * - * @since 2.0.0 - * @category Merging + * **When to use** + * + * Use to merge an iterable of already-created streams while bounding how many + * inner streams may run at the same time. + * + * **Details** + * + * The `concurrency` option is required and may be a number or `"unbounded"`. + * `bufferSize` controls buffering between inner streams, and outputs are + * emitted as they arrive under concurrent merging. + * + * **Example** (Merging streams with bounded concurrency) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3701,6 +4014,12 @@ export declare const mergeAll: { * Effect.runPromise(program) * // Output: [ "B", "A" ] * ``` + * + * @see {@link merge} for merging exactly two streams and choosing a halt strategy + * @see {@link flatten} for flattening a stream that already emits streams + * + * @category merging + * @since 2.0.0 */ (options: { readonly concurrency: number | "unbounded"; @@ -3709,10 +4028,19 @@ export declare const mergeAll: { /** * Merges a collection of streams, running up to the specified number concurrently. * - * @since 2.0.0 - * @category Merging + * **When to use** + * + * Use to merge an iterable of already-created streams while bounding how many + * inner streams may run at the same time. + * + * **Details** + * + * The `concurrency` option is required and may be a number or `"unbounded"`. + * `bufferSize` controls buffering between inner streams, and outputs are + * emitted as they arrive under concurrent merging. + * + * **Example** (Merging streams with bounded concurrency) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3731,6 +4059,12 @@ export declare const mergeAll: { * Effect.runPromise(program) * // Output: [ "B", "A" ] * ``` + * + * @see {@link merge} for merging exactly two streams and choosing a halt strategy + * @see {@link flatten} for flattening a stream that already emits streams + * + * @category merging + * @since 2.0.0 */ (streams: Iterable>, options: { readonly concurrency: number | "unbounded"; @@ -3741,9 +4075,12 @@ export declare const mergeAll: { * Creates the cartesian product of two streams, running the `right` stream for * each element in the `left` stream. * + * **Details** + * * See also `Stream.zip` for the more common point-wise variant. * - * @example + * **Example** (Computing cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3758,17 +4095,20 @@ export declare const mergeAll: { * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const cross: { /** * Creates the cartesian product of two streams, running the `right` stream for * each element in the `left` stream. * + * **Details** + * * See also `Stream.zip` for the more common point-wise variant. * - * @example + * **Example** (Computing cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3783,17 +4123,20 @@ export declare const cross: { * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream): (left: Stream) => Stream<[AL, AR], EL | ER, RL | RR>; /** * Creates the cartesian product of two streams, running the `right` stream for * each element in the `left` stream. * + * **Details** + * * See also `Stream.zip` for the more common point-wise variant. * - * @example + * **Example** (Computing cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3808,19 +4151,22 @@ export declare const cross: { * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream): Stream<[AL, AR], EL | ER, RL | RR>; }; /** * Creates a cartesian product of elements from two streams using a function. * + * **Details** + * * The `right` stream is rerun for every element in the `left` stream. * * See also `Stream.zipWith` for the more common point-wise variant. * - * @example + * **Example** (Combining cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3836,18 +4182,21 @@ export declare const cross: { * // Output: [ "1-a", "1-b", "2-a", "2-b" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const crossWith: { /** * Creates a cartesian product of elements from two streams using a function. * + * **Details** + * * The `right` stream is rerun for every element in the `left` stream. * * See also `Stream.zipWith` for the more common point-wise variant. * - * @example + * **Example** (Combining cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3863,18 +4212,21 @@ export declare const crossWith: { * // Output: [ "1-a", "1-b", "2-a", "2-b" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream, f: (left: AL, right: AR) => A): (left: Stream) => Stream; /** * Creates a cartesian product of elements from two streams using a function. * + * **Details** + * * The `right` stream is rerun for every element in the `left` stream. * * See also `Stream.zipWith` for the more common point-wise variant. * - * @example + * **Example** (Combining cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3890,15 +4242,16 @@ export declare const crossWith: { * // Output: [ "1-a", "1-b", "2-a", "2-b" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream, f: (left: AL, right: AR) => A): Stream; }; /** * Zips two streams point-wise with a combining function, ending when either stream ends. * - * @example + * **Example** (Zipping streams with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3916,14 +4269,15 @@ export declare const crossWith: { * // Output: [ "1-a", "2-b", "3-c" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWith: { /** * Zips two streams point-wise with a combining function, ending when either stream ends. * - * @example + * **Example** (Zipping streams with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3941,14 +4295,15 @@ export declare const zipWith: { * // Output: [ "1-a", "2-b", "3-c" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream, f: (left: AL, right: AR) => A): (left: Stream) => Stream; /** * Zips two streams point-wise with a combining function, ending when either stream ends. * - * @example + * **Example** (Zipping streams with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3966,23 +4321,20 @@ export declare const zipWith: { * // Output: [ "1-a", "2-b", "3-c" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream, f: (left: AL, right: AR) => A): Stream; }; /** * Zips two streams by applying a function to non-empty arrays of elements. * - * The function returns output plus leftover arrays that carry into the next pull. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The function returns output plus leftover arrays that carry into the next pull. * - * - `Stream.zipWithChunks` + * **Example** (Zipping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -4005,22 +4357,19 @@ export declare const zipWith: { * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 4.0.0 */ export declare const zipWithArray: { /** * Zips two streams by applying a function to non-empty arrays of elements. * - * The function returns output plus leftover arrays that carry into the next pull. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The function returns output plus leftover arrays that carry into the next pull. * - * - `Stream.zipWithChunks` + * **Example** (Zipping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -4043,8 +4392,8 @@ export declare const zipWithArray: { * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 4.0.0 */ (right: Stream, f: (left: Arr.NonEmptyReadonlyArray, right: Arr.NonEmptyReadonlyArray) => readonly [ output: Arr.NonEmptyReadonlyArray, @@ -4054,15 +4403,12 @@ export declare const zipWithArray: { /** * Zips two streams by applying a function to non-empty arrays of elements. * - * The function returns output plus leftover arrays that carry into the next pull. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The function returns output plus leftover arrays that carry into the next pull. * - * - `Stream.zipWithChunks` + * **Example** (Zipping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -4085,8 +4431,8 @@ export declare const zipWithArray: { * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 4.0.0 */ (left: Stream, right: Stream, f: (left: Arr.NonEmptyReadonlyArray, right: Arr.NonEmptyReadonlyArray) => readonly [ output: Arr.NonEmptyReadonlyArray, @@ -4098,7 +4444,8 @@ export declare const zipWithArray: { * Zips this stream with another point-wise and emits tuples of elements from * both streams. The new stream ends when either stream ends. * - * @example + * **Example** (Zipping streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4116,15 +4463,16 @@ export declare const zipWithArray: { * // Output: [[1, "a"], [2, "b"], [3, "c"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zip: { /** * Zips this stream with another point-wise and emits tuples of elements from * both streams. The new stream ends when either stream ends. * - * @example + * **Example** (Zipping streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4142,15 +4490,16 @@ export declare const zip: { * // Output: [[1, "a"], [2, "b"], [3, "c"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (that: Stream): (self: Stream) => Stream<[A, A2], E2 | E, R2 | R>; /** * Zips this stream with another point-wise and emits tuples of elements from * both streams. The new stream ends when either stream ends. * - * @example + * **Example** (Zipping streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4168,8 +4517,8 @@ export declare const zip: { * // Output: [[1, "a"], [2, "b"], [3, "c"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (self: Stream, that: Stream): Stream<[A, A2], E | E2, R | R2>; }; @@ -4177,9 +4526,12 @@ export declare const zip: { * Zips this stream with another point-wise and keeps only the values from * the left stream. * + * **Details** + * * The resulting stream ends when either side ends. * - * @example + * **Example** (Zipping streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4195,17 +4547,20 @@ export declare const zip: { * // Output: [1, 2] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipLeft: { /** * Zips this stream with another point-wise and keeps only the values from * the left stream. * + * **Details** + * * The resulting stream ends when either side ends. * - * @example + * **Example** (Zipping streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4221,17 +4576,20 @@ export declare const zipLeft: { * // Output: [1, 2] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream): (left: Stream) => Stream; /** * Zips this stream with another point-wise and keeps only the values from * the left stream. * + * **Details** + * * The resulting stream ends when either side ends. * - * @example + * **Example** (Zipping streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4247,15 +4605,16 @@ export declare const zipLeft: { * // Output: [1, 2] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream): Stream; }; /** * Zips this stream with another point-wise, keeping only right values and ending when either stream ends. * - * @example + * **Example** (Zipping streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4271,14 +4630,15 @@ export declare const zipLeft: { * // Output: ["a", "b"] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipRight: { /** * Zips this stream with another point-wise, keeping only right values and ending when either stream ends. * - * @example + * **Example** (Zipping streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4294,14 +4654,15 @@ export declare const zipRight: { * // Output: ["a", "b"] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream): (left: Stream) => Stream; /** * Zips this stream with another point-wise, keeping only right values and ending when either stream ends. * - * @example + * **Example** (Zipping streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4317,8 +4678,8 @@ export declare const zipRight: { * // Output: ["a", "b"] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream): Stream; }; @@ -4326,9 +4687,12 @@ export declare const zipRight: { * Zips this stream with another point-wise and emits tuples of elements from * both streams, flattening the left tuple. * + * **Details** + * * The new stream will end when one of the sides ends. * - * @example + * **Example** (Zipping and flattening tuples) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4348,17 +4712,20 @@ export declare const zipRight: { * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipFlatten: { /** * Zips this stream with another point-wise and emits tuples of elements from * both streams, flattening the left tuple. * + * **Details** + * * The new stream will end when one of the sides ends. * - * @example + * **Example** (Zipping and flattening tuples) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4378,17 +4745,20 @@ export declare const zipFlatten: { * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (that: Stream): , E, R>(self: Stream) => Stream<[...A, A2], E2 | E, R2 | R>; /** * Zips this stream with another point-wise and emits tuples of elements from * both streams, flattening the left tuple. * + * **Details** + * * The new stream will end when one of the sides ends. * - * @example + * **Example** (Zipping and flattening tuples) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4408,15 +4778,16 @@ export declare const zipFlatten: { * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ , E, R, A2, E2, R2>(self: Stream, that: Stream): Stream<[...A, A2], E | E2, R | R2>; }; /** * Zips this stream together with the index of elements. * - * @example + * **Example** (Zipping elements with indices) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4432,15 +4803,16 @@ export declare const zipFlatten: { * // Output: [["a", 0], ["b", 1], ["c", 2], ["d", 3]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWithIndex: (self: Stream) => Stream<[A, number], E, R>; /** * Zips each element with the next element, pairing the final element with * `Option.none()`. * - * @example + * **Example** (Zipping elements with next values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4458,14 +4830,15 @@ export declare const zipWithIndex: (self: Stream) => Stream<[A * // ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWithNext: (self: Stream) => Stream<[A, Option.Option], E, R>; /** * Zips each element with its previous element, starting with `None`. * - * @example + * **Example** (Zipping elements with previous values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4485,14 +4858,15 @@ export declare const zipWithNext: (self: Stream) => Stream<[A, * // ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWithPrevious: (self: Stream) => Stream<[Option.Option, A], E, R>; /** * Zips each element with its previous and next values. * - * @example + * **Example** (Zipping elements with neighbors) + * * ```ts * import { Console, Effect, Option, Stream } from "effect" * @@ -4508,19 +4882,27 @@ export declare const zipWithPrevious: (self: Stream) => Stream * // Output: [ [Option.none(), 1, Option.some(2)], [Option.some(1), 2, Option.some(3)], [Option.some(2), 3, Option.none()] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWithPreviousAndNext: (self: Stream) => Stream<[Option.Option, A, Option.Option], E, R>; /** * Zips multiple streams so that when a value is emitted by any stream, it is * combined with the latest values from the other streams to produce a result. * + * **When to use** + * + * Use when each stream should contribute its latest value after all streams have + * emitted at least once. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values from many streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4539,18 +4921,26 @@ export declare const zipWithPreviousAndNext: (self: Stream) => * // Output: [ [ 1, "a", true ], [ 2, "a", true ], [ 3, "a", true ], [ 3, "b", true ], [ 3, "c", true ], [ 3, "c", false ], [ 3, "c", true ] ] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 3.3.0 */ export declare const zipLatestAll: >>(...streams: T) => Stream<[T[number]] extends [never] ? never : { [K in keyof T]: T[K] extends Stream ? A : never; }, [T[number]] extends [never] ? never : T[number] extends Stream ? _E_1 : never, [T[number]] extends [never] ? never : T[number] extends Stream ? _R_2 : never>; /** * Combines two streams by emitting each new element with the latest value from the other stream. * + * **When to use** + * + * Use when two streams should start emitting combined pairs after both have + * produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4565,18 +4955,26 @@ export declare const zipLatestAll: (right: Stream): (left: Stream) => Stream<[AL, AR], EL | ER, RL | RR>; /** * Combines two streams by emitting each new element with the latest value from the other stream. * + * **When to use** + * + * Use when two streams should start emitting combined pairs after both have + * produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4617,8 +5023,8 @@ export declare const zipLatest: { * // Output: [ [1, "a"] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream): Stream<[AL, AR], EL | ER, RL | RR>; }; @@ -4626,11 +5032,19 @@ export declare const zipLatest: { * Combines the latest values from both streams whenever either emits, using * the provided function. * + * **When to use** + * + * Use when two streams should start emitting custom combined values after both + * have produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4649,19 +5063,27 @@ export declare const zipLatest: { * }) * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipLatestWith: { /** * Combines the latest values from both streams whenever either emits, using * the provided function. * + * **When to use** + * + * Use when two streams should start emitting custom combined values after both + * have produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4680,19 +5102,27 @@ export declare const zipLatestWith: { * }) * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (right: Stream, f: (left: AL, right: AR) => A): (left: Stream) => Stream; /** * Combines the latest values from both streams whenever either emits, using * the provided function. * + * **When to use** + * + * Use when two streams should start emitting custom combined values after both + * have produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4711,18 +5141,23 @@ export declare const zipLatestWith: { * }) * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (left: Stream, right: Stream, f: (left: AL, right: AR) => A): Stream; }; /** - * Races multiple streams and emits values from the first stream to produce a value, interrupting the rest. + * Runs all streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the rest. * - * @since 3.7.0 - * @category Racing + * **Details** + * + * Failures or completion from losing streams before a winner is chosen are + * ignored unless every stream fails or completes before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing multiple streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4737,13 +5172,23 @@ export declare const zipLatestWith: { * Effect.runPromise(program) * // Output: [ 0, 1, 2 ] * ``` + * + * @category racing + * @since 3.5.0 */ export declare const raceAll: >>(...streams: S) => Stream, Error, Services>; /** - * Returns a stream that mirrors the first upstream to emit an item. - * As soon as one stream emits, the other is interrupted and failures propagate. + * Runs both streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the other. + * + * **Details** + * + * A failure or completion from one side before the other side emits does not + * win the race unless both sides fail or complete before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing two streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4761,15 +5206,22 @@ export declare const raceAll: >>(. * // Output: [ 0, 1, 2 ] * ``` * + * @category racing * @since 3.7.0 - * @category Racing */ export declare const race: { /** - * Returns a stream that mirrors the first upstream to emit an item. - * As soon as one stream emits, the other is interrupted and failures propagate. + * Runs both streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the other. + * + * **Details** + * + * A failure or completion from one side before the other side emits does not + * win the race unless both sides fail or complete before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing two streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4787,15 +5239,22 @@ export declare const race: { * // Output: [ 0, 1, 2 ] * ``` * + * @category racing * @since 3.7.0 - * @category Racing */ (right: Stream): (left: Stream) => Stream; /** - * Returns a stream that mirrors the first upstream to emit an item. - * As soon as one stream emits, the other is interrupted and failures propagate. + * Runs both streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the other. + * + * **Details** + * + * A failure or completion from one side before the other side emits does not + * win the race unless both sides fail or complete before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing two streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4813,15 +5272,16 @@ export declare const race: { * // Output: [ 0, 1, 2 ] * ``` * + * @category racing * @since 3.7.0 - * @category Racing */ (left: Stream, right: Stream): Stream; }; /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4837,14 +5297,15 @@ export declare const race: { * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const filter: { /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4860,14 +5321,15 @@ export declare const filter: { * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: Refinement, B>): (self: Stream) => Stream; /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4883,14 +5345,15 @@ export declare const filter: { * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: Predicate>): (self: Stream) => Stream; /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4906,14 +5369,15 @@ export declare const filter: { * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, refinement: Refinement): Stream; /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4929,37 +5393,77 @@ export declare const filter: { * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: Predicate): Stream; }; /** * Filters and maps stream elements in one pass using a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to keep only stream elements accepted by a `Filter` and emit each filter + * success value. + * + * **Details** + * + * `Result.succeed` values are emitted and `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMapEffect} for an effectful `Filter` + * @see {@link partition} for consuming both filter success and failure values + * + * @category filtering + * @since 2.0.0 */ export declare const filterMap: { /** * Filters and maps stream elements in one pass using a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to keep only stream elements accepted by a `Filter` and emit each filter + * success value. + * + * **Details** + * + * `Result.succeed` values are emitted and `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMapEffect} for an effectful `Filter` + * @see {@link partition} for consuming both filter success and failure values + * + * @category filtering + * @since 2.0.0 */ (filter: Filter.Filter, B, X>): (self: Stream) => Stream; /** * Filters and maps stream elements in one pass using a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to keep only stream elements accepted by a `Filter` and emit each filter + * success value. + * + * **Details** + * + * `Result.succeed` values are emitted and `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMapEffect} for an effectful `Filter` + * @see {@link partition} for consuming both filter success and failure values + * + * @category filtering + * @since 2.0.0 */ (self: Stream, filter: Filter.Filter): Stream; }; /** - * Effectfully filters elements in a single pass. + * Filters elements in a single pass effectfully. + * + * **Example** (Effectfully filtering stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4974,14 +5478,15 @@ export declare const filterMap: { * // Output: [ 3, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const filterEffect: { /** - * Effectfully filters elements in a single pass. + * Filters elements in a single pass effectfully. + * + * **Example** (Effectfully filtering stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4996,14 +5501,15 @@ export declare const filterEffect: { * // Output: [ 3, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, i: number) => Effect.Effect): (self: Stream) => Stream; /** - * Effectfully filters elements in a single pass. + * Filters elements in a single pass effectfully. + * + * **Example** (Effectfully filtering stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5018,39 +5524,87 @@ export declare const filterEffect: { * // Output: [ 3, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: NoInfer, i: number) => Effect.Effect): Stream; }; /** - * Effectfully filters and maps elements in a single pass. + * Filters and maps elements in one pass effectfully using a `FilterEffect`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to apply effectful logic that can reject stream elements or emit + * transformed values before they continue downstream. + * + * **Details** + * + * `Result.succeed` values are emitted, `Result.fail` values are skipped, and + * effect failures fail the stream. + * + * @see {@link filterMap} for the synchronous `Filter` variant + * @see {@link filterEffect} for effectfully keeping original elements + * @see {@link mapEffect} for effectfully transforming every element + * + * @category filtering + * @since 2.0.0 */ export declare const filterMapEffect: { /** - * Effectfully filters and maps elements in a single pass. + * Filters and maps elements in one pass effectfully using a `FilterEffect`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to apply effectful logic that can reject stream elements or emit + * transformed values before they continue downstream. + * + * **Details** + * + * `Result.succeed` values are emitted, `Result.fail` values are skipped, and + * effect failures fail the stream. + * + * @see {@link filterMap} for the synchronous `Filter` variant + * @see {@link filterEffect} for effectfully keeping original elements + * @see {@link mapEffect} for effectfully transforming every element + * + * @category filtering + * @since 2.0.0 */ (filter: Filter.FilterEffect, B, X, EX, RX>): (self: Stream) => Stream; /** - * Effectfully filters and maps elements in a single pass. + * Filters and maps elements in one pass effectfully using a `FilterEffect`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to apply effectful logic that can reject stream elements or emit + * transformed values before they continue downstream. + * + * **Details** + * + * `Result.succeed` values are emitted, `Result.fail` values are skipped, and + * effect failures fail the stream. + * + * @see {@link filterMap} for the synchronous `Filter` variant + * @see {@link filterEffect} for effectfully keeping original elements + * @see {@link mapEffect} for effectfully transforming every element + * + * @category filtering + * @since 2.0.0 */ (self: Stream, filter: Filter.FilterEffect): Stream; }; /** - * Partitions a stream using a `Filter` and exposes passing and failing values as queues. + * Partitions a stream using a `Filter` and exposes passing and failing values + * as scoped queues. * - * Each queue fails with the stream error or `Cause.Done` when the source ends. + * **Details** + * + * The queues are backed by a fiber in the current scope and should be consumed + * while that scope remains open. Each queue fails with the stream error or + * `Cause.Done` when the source ends. + * + * **Example** (Partitioning a stream into queues) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5071,16 +5625,22 @@ export declare const filterMapEffect: { * Effect.runPromise(Effect.scoped(program)) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const partitionQueue: { /** - * Partitions a stream using a `Filter` and exposes passing and failing values as queues. + * Partitions a stream using a `Filter` and exposes passing and failing values + * as scoped queues. + * + * **Details** + * + * The queues are backed by a fiber in the current scope and should be consumed + * while that scope remains open. Each queue fails with the stream error or + * `Cause.Done` when the source ends. * - * Each queue fails with the stream error or `Cause.Done` when the source ends. + * **Example** (Partitioning a stream into queues) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5101,8 +5661,8 @@ export declare const partitionQueue: { * Effect.runPromise(Effect.scoped(program)) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, Pass, Fail>, options?: { readonly capacity?: number | "unbounded" | undefined; @@ -5111,11 +5671,17 @@ export declare const partitionQueue: { fails: Queue.Dequeue ], never, R | Scope.Scope>; /** - * Partitions a stream using a `Filter` and exposes passing and failing values as queues. + * Partitions a stream using a `Filter` and exposes passing and failing values + * as scoped queues. * - * Each queue fails with the stream error or `Cause.Done` when the source ends. + * **Details** + * + * The queues are backed by a fiber in the current scope and should be consumed + * while that scope remains open. Each queue fails with the stream error or + * `Cause.Done` when the source ends. + * + * **Example** (Partitioning a stream into queues) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5136,8 +5702,8 @@ export declare const partitionQueue: { * Effect.runPromise(Effect.scoped(program)) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Stream, filter: Filter.Filter, Pass, Fail>, options?: { readonly capacity?: number | "unbounded" | undefined; @@ -5147,17 +5713,49 @@ export declare const partitionQueue: { ], never, R | Scope.Scope>; }; /** - * Splits a stream using an effectful `Filter`, producing pass and fail streams. + * Splits a stream with an effectful `Filter`, returning scoped streams for + * filter successes and failures. * - * @since 4.0.0 - * @category Filtering - */ + * **When to use** + * + * Use when you need to classify each stream element with an effectful `Filter` + * and consume both passing and failing mapped values as streams. + * + * **Details** + * + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The first stream emits success values + * from the filter, and the second emits failure values. + * + * @see {@link partition} for the pure `Filter` variant, which returns the failing stream before the passing stream + * @see {@link partitionQueue} for the lower-level queue result + * @see {@link filterMapEffect} for effectful filtering that discards failed filter results + * + * @category filtering + * @since 4.0.0 + */ export declare const partitionEffect: { /** - * Splits a stream using an effectful `Filter`, producing pass and fail streams. + * Splits a stream with an effectful `Filter`, returning scoped streams for + * filter successes and failures. + * + * **When to use** * + * Use when you need to classify each stream element with an effectful `Filter` + * and consume both passing and failing mapped values as streams. + * + * **Details** + * + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The first stream emits success values + * from the filter, and the second emits failure values. + * + * @see {@link partition} for the pure `Filter` variant, which returns the failing stream before the passing stream + * @see {@link partitionQueue} for the lower-level queue result + * @see {@link filterMapEffect} for effectful filtering that discards failed filter results + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.FilterEffect, Pass, Fail, EX, RX>, options?: { readonly capacity?: number | "unbounded" | undefined; @@ -5167,10 +5765,26 @@ export declare const partitionEffect: { fails: Stream ], never, R | RX | Scope.Scope>; /** - * Splits a stream using an effectful `Filter`, producing pass and fail streams. + * Splits a stream with an effectful `Filter`, returning scoped streams for + * filter successes and failures. + * + * **When to use** + * + * Use when you need to classify each stream element with an effectful `Filter` + * and consume both passing and failing mapped values as streams. + * + * **Details** + * + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The first stream emits success values + * from the filter, and the second emits failure values. * + * @see {@link partition} for the pure `Filter` variant, which returns the failing stream before the passing stream + * @see {@link partitionQueue} for the lower-level queue result + * @see {@link filterMapEffect} for effectful filtering that discards failed filter results + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Stream, filter: Filter.FilterEffect, Pass, Fail, EX, RX>, options?: { readonly capacity?: number | "unbounded" | undefined; @@ -5181,15 +5795,17 @@ export declare const partitionEffect: { ], never, R | RX | Scope.Scope>; }; /** - * Splits a stream into excluded and satisfying substreams using a `Filter`. + * Splits a stream into scoped excluded and satisfying substreams using a + * `Filter`. * - * The faster stream may advance up to `bufferSize` elements ahead of the slower - * one. + * **Details** * - * @since 4.0.0 - * @category Filtering + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The faster stream may advance up to + * `bufferSize` elements ahead of the slower one. + * + * **Example** (Partitioning a stream) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5206,18 +5822,23 @@ export declare const partitionEffect: { * // Output: [ 2, 4 ] * }) * ``` + * + * @category filtering + * @since 2.0.0 */ export declare const partition: { /** - * Splits a stream into excluded and satisfying substreams using a `Filter`. + * Splits a stream into scoped excluded and satisfying substreams using a + * `Filter`. * - * The faster stream may advance up to `bufferSize` elements ahead of the slower - * one. + * **Details** * - * @since 4.0.0 - * @category Filtering + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The faster stream may advance up to + * `bufferSize` elements ahead of the slower one. + * + * **Example** (Partitioning a stream) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5234,6 +5855,9 @@ export declare const partition: { * // Output: [ 2, 4 ] * }) * ``` + * + * @category filtering + * @since 2.0.0 */ (filter: Filter.Filter, Pass, Fail>, options?: { readonly bufferSize?: number | undefined; @@ -5242,15 +5866,17 @@ export declare const partition: { satisfying: Stream ], never, R | Scope.Scope>; /** - * Splits a stream into excluded and satisfying substreams using a `Filter`. + * Splits a stream into scoped excluded and satisfying substreams using a + * `Filter`. * - * The faster stream may advance up to `bufferSize` elements ahead of the slower - * one. + * **Details** * - * @since 4.0.0 - * @category Filtering + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The faster stream may advance up to + * `bufferSize` elements ahead of the slower one. + * + * **Example** (Partitioning a stream) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -5267,6 +5893,9 @@ export declare const partition: { * // Output: [ 2, 4 ] * }) * ``` + * + * @category filtering + * @since 2.0.0 */ (self: Stream, filter: Filter.Filter, Pass, Fail>, options?: { readonly bufferSize?: number | undefined; @@ -5279,7 +5908,8 @@ export declare const partition: { * Returns the specified stream if the given condition is satisfied, otherwise * returns an empty stream. * - * @example + * **Example** (Conditionally keeping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5294,15 +5924,16 @@ export declare const partition: { * // Output: [] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const when: { /** * Returns the specified stream if the given condition is satisfied, otherwise * returns an empty stream. * - * @example + * **Example** (Conditionally keeping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5317,15 +5948,16 @@ export declare const when: { * // Output: [] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (test: Effect.Effect): (self: Stream) => Stream; /** * Returns the specified stream if the given condition is satisfied, otherwise * returns an empty stream. * - * @example + * **Example** (Conditionally keeping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5340,8 +5972,8 @@ export declare const when: { * // Output: [] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, test: Effect.Effect): Stream; }; @@ -5349,9 +5981,12 @@ export declare const when: { * Runs a sink to peel off enough elements to produce a value and returns that * value with the remaining stream in a scope. * + * **Details** + * * The returned stream is only valid within the scope. * - * @example + * **Example** (Peeling a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5370,17 +6005,20 @@ export declare const when: { * // Output: [ [1, 2, 3], [4, 5, 6] ] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const peel: { /** * Runs a sink to peel off enough elements to produce a value and returns that * value with the remaining stream in a scope. * + * **Details** + * * The returned stream is only valid within the scope. * - * @example + * **Example** (Peeling a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5399,17 +6037,20 @@ export declare const peel: { * // Output: [ [1, 2, 3], [4, 5, 6] ] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (sink: Sink.Sink): (self: Stream) => Effect.Effect<[A2, Stream], E2 | E, Scope.Scope | R2 | R>; /** * Runs a sink to peel off enough elements to produce a value and returns that * value with the remaining stream in a scope. * + * **Details** + * * The returned stream is only valid within the scope. * - * @example + * **Example** (Peeling a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5428,8 +6069,8 @@ export declare const peel: { * // Output: [ [1, 2, 3], [4, 5, 6] ] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, sink: Sink.Sink): Effect.Effect<[A2, Stream], E | E2, Scope.Scope | R | R2>; }; @@ -5437,10 +6078,15 @@ export declare const peel: { * Buffers up to `capacity` elements so a faster producer can progress * independently of a slower consumer. * - * Note: This combinator destroys chunking. Use `Stream.rechunk` afterwards if - * you need fixed chunk sizes. + * **Details** + * + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard elements when + * the buffer is full. This combinator destroys chunking; use `Stream.rechunk` + * afterward if you need fixed chunk sizes. + * + * **Example** (Buffering stream elements) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5456,18 +6102,23 @@ export declare const peel: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const buffer: { /** * Buffers up to `capacity` elements so a faster producer can progress * independently of a slower consumer. * - * Note: This combinator destroys chunking. Use `Stream.rechunk` afterwards if - * you need fixed chunk sizes. + * **Details** + * + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard elements when + * the buffer is full. This combinator destroys chunking; use `Stream.rechunk` + * afterward if you need fixed chunk sizes. + * + * **Example** (Buffering stream elements) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5483,8 +6134,8 @@ export declare const buffer: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (options: { readonly capacity: "unbounded"; @@ -5496,10 +6147,15 @@ export declare const buffer: { * Buffers up to `capacity` elements so a faster producer can progress * independently of a slower consumer. * - * Note: This combinator destroys chunking. Use `Stream.rechunk` afterwards if - * you need fixed chunk sizes. + * **Details** + * + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard elements when + * the buffer is full. This combinator destroys chunking; use `Stream.rechunk` + * afterward if you need fixed chunk sizes. + * + * **Example** (Buffering stream elements) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5515,8 +6171,8 @@ export declare const buffer: { * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -5529,15 +6185,15 @@ export declare const buffer: { * Allows a faster producer to progress independently of a slower consumer by * buffering up to `capacity` chunks in a queue. * - * This combinator preserves chunking and is best with power-of-2 capacities. + * **Details** * - * **Previously Known As** + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard chunks when the + * buffer is full. This combinator preserves chunking and is best with + * power-of-2 capacities. * - * This API replaces the following from Effect 3.x: + * **Example** (Buffering stream chunks) * - * - `Stream.bufferChunks` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5552,23 +6208,23 @@ export declare const buffer: { * // Output: [ 1, 2, 3, 4 ] * ``` * - * @since 2.0.0 - * @category Rate Limiting + * @category rate limiting + * @since 4.0.0 */ export declare const bufferArray: { /** * Allows a faster producer to progress independently of a slower consumer by * buffering up to `capacity` chunks in a queue. * - * This combinator preserves chunking and is best with power-of-2 capacities. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard chunks when the + * buffer is full. This combinator preserves chunking and is best with + * power-of-2 capacities. * - * - `Stream.bufferChunks` + * **Example** (Buffering stream chunks) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5583,8 +6239,8 @@ export declare const bufferArray: { * // Output: [ 1, 2, 3, 4 ] * ``` * - * @since 2.0.0 - * @category Rate Limiting + * @category rate limiting + * @since 4.0.0 */ (options: { readonly capacity: "unbounded"; @@ -5596,15 +6252,15 @@ export declare const bufferArray: { * Allows a faster producer to progress independently of a slower consumer by * buffering up to `capacity` chunks in a queue. * - * This combinator preserves chunking and is best with power-of-2 capacities. + * **Details** * - * **Previously Known As** + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard chunks when the + * buffer is full. This combinator preserves chunking and is best with + * power-of-2 capacities. * - * This API replaces the following from Effect 3.x: + * **Example** (Buffering stream chunks) * - * - `Stream.bufferChunks` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5619,8 +6275,8 @@ export declare const bufferArray: { * // Output: [ 1, 2, 3, 4 ] * ``` * - * @since 2.0.0 - * @category Rate Limiting + * @category rate limiting + * @since 4.0.0 */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -5634,13 +6290,8 @@ export declare const bufferArray: { * one fails. Allows recovery from all causes of failure, including * interruption if the stream is uninterruptible. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream causes) * - * - `Stream.catchAllCause` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5662,8 +6313,8 @@ export declare const bufferArray: { * // Output: [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export declare const catchCause: { /** @@ -5671,13 +6322,8 @@ export declare const catchCause: { * one fails. Allows recovery from all causes of failure, including * interruption if the stream is uninterruptible. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream causes) * - * - `Stream.catchAllCause` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5699,8 +6345,8 @@ export declare const catchCause: { * // Output: [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (f: (cause: Cause.Cause) => Stream): (self: Stream) => Stream; /** @@ -5708,13 +6354,8 @@ export declare const catchCause: { * one fails. Allows recovery from all causes of failure, including * interruption if the stream is uninterruptible. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream causes) * - * - `Stream.catchAllCause` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5736,8 +6377,8 @@ export declare const catchCause: { * // Output: [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (self: Stream, f: (cause: Cause.Cause) => Stream): Stream; }; @@ -5745,13 +6386,8 @@ export declare const catchCause: { * Runs an effect when the stream fails without changing its values or error, * unless the tap effect itself fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Tapping stream causes) * - * - `Stream.tapErrorCause` - * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -5771,21 +6407,16 @@ export declare const catchCause: { * // Output: [ 1, 2, 0 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export declare const tapCause: { /** * Runs an effect when the stream fails without changing its values or error, * unless the tap effect itself fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Tapping stream causes) * - * - `Stream.tapErrorCause` - * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -5805,21 +6436,16 @@ export declare const tapCause: { * // Output: [ 1, 2, 0 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (f: (cause: Cause.Cause) => Effect.Effect): (self: Stream) => Stream; /** * Runs an effect when the stream fails without changing its values or error, * unless the tap effect itself fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Tapping stream causes) * - * - `Stream.tapErrorCause` - * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -5839,8 +6465,8 @@ export declare const tapCause: { * // Output: [ 1, 2, 0 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (self: Stream, f: (cause: Cause.Cause) => Effect.Effect): Stream; }; @@ -5852,13 +6478,8 @@ export { /** * Switches over to the stream produced by the provided function if this one fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream failures) * - * - `Stream.catchAll` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5876,14 +6497,15 @@ export { * // Output: [ 1, 2, 999 ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ catch_ as catch }; /** - * Effectfully peeks at errors without changing the stream unless the tap fails. + * Peeks at errors effectfully without changing the stream unless the tap fails. + * + * **Example** (Effectfully peeking at errors) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5904,14 +6526,15 @@ catch_ as catch }; * // [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export declare const tapError: { /** - * Effectfully peeks at errors without changing the stream unless the tap fails. + * Peeks at errors effectfully without changing the stream unless the tap fails. + * + * **Example** (Effectfully peeking at errors) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5932,14 +6555,15 @@ export declare const tapError: { * // [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (f: (error: E) => Effect.Effect): (self: Stream) => Stream; /** - * Effectfully peeks at errors without changing the stream unless the tap fails. + * Peeks at errors effectfully without changing the stream unless the tap fails. + * + * **Example** (Effectfully peeking at errors) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5960,25 +6584,22 @@ export declare const tapError: { * // [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ (self: Stream, f: (error: E) => Effect.Effect): Stream; }; /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching matching failures) * - * - `Stream.catchSome` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5999,24 +6620,21 @@ export declare const tapError: { * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchIf: { /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** + * **Example** (Catching matching failures) * - * This API replaces the following from Effect 3.x: - * - * - `Stream.catchSome` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6037,24 +6655,21 @@ export declare const catchIf: { * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , R3 = never>(refinement: Refinement, EB>, f: (e: EB) => Stream, orElse?: ((e: Exclude) => Stream) | undefined): (self: Stream) => Stream; + (refinement: Refinement, EB>, f: (e: EB) => Stream, orElse?: ((e: Exclude) => Stream) | undefined): (self: Stream) => Stream, E2 | E3 | (A3 extends unassigned ? Exclude : never), R | R2 | R3>; /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching matching failures) * - * - `Stream.catchSome` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6075,24 +6690,21 @@ export declare const catchIf: { * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (predicate: Predicate>, f: (e: NoInfer) => Stream, orElse?: ((e: NoInfer) => Stream) | undefined): (self: Stream) => Stream; + (predicate: Predicate>, f: (e: NoInfer) => Stream, orElse?: ((e: NoInfer) => Stream) | undefined): (self: Stream) => Stream, E2 | E3 | (A3 extends unassigned ? E : never), R | R2 | R3>; /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.catchSome` + * **Example** (Catching matching failures) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6113,24 +6725,21 @@ export declare const catchIf: { * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , R3 = never>(self: Stream, refinement: Refinement, f: (e: EB) => Stream, orElse?: ((e: Exclude) => Stream) | undefined): Stream; + (self: Stream, refinement: Refinement, f: (e: EB) => Stream, orElse?: ((e: Exclude) => Stream) | undefined): Stream, E2 | E3 | (A3 extends unassigned ? Exclude : never), R | R2 | R3>; /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching matching failures) * - * - `Stream.catchSome` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6151,46 +6760,92 @@ export declare const catchIf: { * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (self: Stream, predicate: Predicate, f: (e: E) => Stream, orElse?: ((e: E) => Stream) | undefined): Stream; + (self: Stream, predicate: Predicate, f: (e: E) => Stream, orElse?: ((e: E) => Stream) | undefined): Stream, E2 | E3 | (A3 extends unassigned ? E : never), R | R2 | R3>; }; /** * Recovers from errors that match a `Filter` by switching to a recovery * stream. * + * **When to use** + * + * Use to recover from stream errors with a reusable `Filter` when matching can + * also narrow or transform the error before choosing the recovery stream. + * + * **Details** + * + * Successful filter results are passed to `f`. Failed filter results go to + * `orElse` when provided; otherwise the filter failure is re-failed. + * + * @see {@link catchIf} for predicate or refinement based recovery + * @see {@link catchTag} for `_tag` based recovery from one tagged error + * @see {@link catchTags} for `_tag` based recovery from multiple tagged errors + * @see {@link catchCauseFilter} for filtering full causes + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchFilter: { /** * Recovers from errors that match a `Filter` by switching to a recovery * stream. * + * **When to use** + * + * Use to recover from stream errors with a reusable `Filter` when matching can + * also narrow or transform the error before choosing the recovery stream. + * + * **Details** + * + * Successful filter results are passed to `f`. Failed filter results go to + * `orElse` when provided; otherwise the filter failure is re-failed. + * + * @see {@link catchIf} for predicate or refinement based recovery + * @see {@link catchTag} for `_tag` based recovery from one tagged error + * @see {@link catchTags} for `_tag` based recovery from multiple tagged errors + * @see {@link catchCauseFilter} for filtering full causes + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (filter: Filter.Filter, EB, X>, f: (failure: EB) => Stream, orElse?: ((failure: X) => Stream) | undefined): (self: Stream) => Stream; + (filter: Filter.Filter, EB, X>, f: (failure: EB) => Stream, orElse?: ((failure: X) => Stream) | undefined): (self: Stream) => Stream, E2 | E3 | (A3 extends unassigned ? X : never), R | R2 | R3>; /** * Recovers from errors that match a `Filter` by switching to a recovery * stream. * + * **When to use** + * + * Use to recover from stream errors with a reusable `Filter` when matching can + * also narrow or transform the error before choosing the recovery stream. + * + * **Details** + * + * Successful filter results are passed to `f`. Failed filter results go to + * `orElse` when provided; otherwise the filter failure is re-failed. + * + * @see {@link catchIf} for predicate or refinement based recovery + * @see {@link catchTag} for `_tag` based recovery from one tagged error + * @see {@link catchTags} for `_tag` based recovery from multiple tagged errors + * @see {@link catchCauseFilter} for filtering full causes + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (self: Stream, filter: Filter.Filter, EB, X>, f: (failure: EB) => Stream, orElse?: ((failure: X) => Stream) | undefined): Stream; + (self: Stream, filter: Filter.Filter, EB, X>, f: (failure: EB) => Stream, orElse?: ((failure: X) => Stream) | undefined): Stream, E2 | E3 | (A3 extends unassigned ? X : never), R | R2 | R3>; }; /** * Recovers from failures whose `_tag` matches the provided value by switching to * the stream returned by `f`. * - * **When to Use** + * **When to use** * - * Use `catchTag` when your error type is a tagged union with a readonly `_tag` - * field and you want to handle a specific error case. + * Use when you need to handle a specific error case from a stream whose error + * type is a tagged union with a readonly `_tag` field. + * + * **Example** (Catching tagged failures) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6211,20 +6866,21 @@ export declare const catchFilter: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export declare const catchTag: { /** * Recovers from failures whose `_tag` matches the provided value by switching to * the stream returned by `f`. * - * **When to Use** + * **When to use** + * + * Use when you need to handle a specific error case from a stream whose error + * type is a tagged union with a readonly `_tag` field. * - * Use `catchTag` when your error type is a tagged union with a readonly `_tag` - * field and you want to handle a specific error case. + * **Example** (Catching tagged failures) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6245,20 +6901,21 @@ export declare const catchTag: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ - | Arr.NonEmptyReadonlyArray>, E, A1, E1, R1, A2 = never, E2 = ExcludeTag ? K[number] : K>, R2 = never>(k: K, f: (e: ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Stream, orElse?: ((e: ExcludeTag ? K[number] : K>) => Stream) | undefined): (self: Stream) => Stream; + | Arr.NonEmptyReadonlyArray>, E, A1, E1, R1, A2 = unassigned, E2 = never, R2 = never>(k: K, f: (e: ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Stream, orElse?: ((e: ExcludeTag ? K[number] : K>) => Stream) | undefined): (self: Stream) => Stream, E1 | E2 | (A2 extends unassigned ? ExcludeTag ? K[number] : K> : never), R | R1 | R2>; /** * Recovers from failures whose `_tag` matches the provided value by switching to * the stream returned by `f`. * - * **When to Use** + * **When to use** * - * Use `catchTag` when your error type is a tagged union with a readonly `_tag` - * field and you want to handle a specific error case. + * Use when you need to handle a specific error case from a stream whose error + * type is a tagged union with a readonly `_tag` field. + * + * **Example** (Catching tagged failures) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6279,15 +6936,16 @@ export declare const catchTag: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ - | Arr.NonEmptyReadonlyArray>, R1, E1, A1, A2 = never, E2 = ExcludeTag ? K[number] : K>, R2 = never>(self: Stream, k: K, f: (e: ExtractTag ? K[number] : K>) => Stream, orElse?: ((e: ExcludeTag ? K[number] : K>) => Stream) | undefined): Stream; + | Arr.NonEmptyReadonlyArray>, R1, E1, A1, A2 = unassigned, E2 = never, R2 = never>(self: Stream, k: K, f: (e: ExtractTag ? K[number] : K>) => Stream, orElse?: ((e: ExcludeTag ? K[number] : K>) => Stream) | undefined): Stream, E1 | E2 | (A2 extends unassigned ? ExcludeTag ? K[number] : K> : never), R | R1 | R2>; }; /** * Switches to a recovery stream based on matching `_tag` handlers. * - * @example + * **Example** (Catching tagged failures with handlers) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6317,14 +6975,15 @@ export declare const catchTag: { * // Output: [ "fallback" ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export declare const catchTags: { /** * Switches to a recovery stream based on matching `_tag` handlers. * - * @example + * **Example** (Catching tagged failures with handlers) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6354,8 +7013,8 @@ export declare const catchTags: { * // Output: [ "fallback" ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ ) => Stream; - } : {}), A2 = never, E2 = Exclude, R2 = never>(cases: Cases, orElse?: ((e: Exclude(cases: Cases, orElse?: ((e: Exclude) => Stream) | undefined): (self: Stream) => Stream) => Stream) | undefined): (self: Stream) => Stream | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? A : never; - }[keyof Cases], E2 | { + }[keyof Cases], E2 | (A2 extends unassigned ? Exclude : never) | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? E : never; }[keyof Cases], R | R2 | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? R : never; @@ -6377,7 +7036,8 @@ export declare const catchTags: { /** * Switches to a recovery stream based on matching `_tag` handlers. * - * @example + * **Example** (Catching tagged failures with handlers) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6407,8 +7067,8 @@ export declare const catchTags: { * // Output: [ "fallback" ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ ) => Stream; - } : {}), A2 = never, E2 = Exclude(self: Stream, cases: Cases, orElse?: ((e: Exclude, R2 = never>(self: Stream, cases: Cases, orElse?: ((e: Exclude) => Stream) | undefined): Stream) => Stream) | undefined): Stream | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? A : never; - }[keyof Cases], E2 | { + }[keyof Cases], E2 | (A2 extends unassigned ? Exclude : never) | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? E : never; }[keyof Cases], R | R2 | { [K in keyof Cases]: Cases[K] extends ((...args: Array) => Stream) ? R : never; @@ -6431,10 +7091,17 @@ export declare const catchTags: { /** * Catches a specific reason within a tagged error. * - * Use this to handle nested error causes without removing the parent error - * from the error channel. The handler receives the unwrapped reason. + * **When to use** + * + * Use to handle nested error causes without removing the parent error + * from the error channel. + * + * **Details** + * + * The handler receives the unwrapped reason. + * + * **Example** (Catching a tagged error reason) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6468,17 +7135,24 @@ export declare const catchTags: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchReason: { /** * Catches a specific reason within a tagged error. * - * Use this to handle nested error causes without removing the parent error - * from the error channel. The handler receives the unwrapped reason. + * **When to use** + * + * Use to handle nested error causes without removing the parent error + * from the error channel. + * + * **Details** + * + * The handler receives the unwrapped reason. + * + * **Example** (Catching a tagged error reason) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6512,17 +7186,24 @@ export declare const catchReason: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , E, RK extends ReasonTags, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(errorTag: K, reasonTag: RK, f: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Stream, orElse?: ((reason: ExcludeReason, K>, RK>, error: OmitReason, K>, RK>) => Stream) | undefined): (self: Stream) => Stream, (A3 extends unassigned ? E : ExcludeTag) | E2 | E3, R | R2 | R3>; + , E, RK extends ReasonTags, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(errorTag: K, reasonTag: RK, f: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Stream, orElse?: ((reason: ExcludeReason, K>, RK>, error: OmitReason, K>, RK>) => Stream) | undefined): (self: Stream) => Stream, ExcludeTag | E2 | E3 | (A3 extends unassigned ? ExtractTag : never), R | R2 | R3>; /** * Catches a specific reason within a tagged error. * - * Use this to handle nested error causes without removing the parent error - * from the error channel. The handler receives the unwrapped reason. + * **When to use** + * + * Use to handle nested error causes without removing the parent error + * from the error channel. + * + * **Details** + * + * The handler receives the unwrapped reason. + * + * **Example** (Catching a tagged error reason) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6556,15 +7237,16 @@ export declare const catchReason: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , RK extends ReasonTags>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(self: Stream, errorTag: K, reasonTag: RK, f: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Stream, orElse?: ((reason: ExcludeReason, RK>, error: OmitReason, RK>) => Stream) | undefined): Stream, (A3 extends unassigned ? E : ExcludeTag) | E2 | E3, R | R2 | R3>; + , RK extends ReasonTags>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(self: Stream, errorTag: K, reasonTag: RK, f: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Stream, orElse?: ((reason: ExcludeReason, RK>, error: OmitReason, RK>) => Stream) | undefined): Stream, ExcludeTag | E2 | E3 | (A3 extends unassigned ? ExtractTag : never), R | R2 | R3>; }; /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Catching tagged error reasons) + * * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6599,14 +7281,15 @@ export declare const catchReason: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Catching tagged error reasons) + * * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6641,14 +7324,14 @@ export declare const catchReasons: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ , E, Cases extends { [RK in ReasonTags, K>>]+?: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Stream; }, A2 = unassigned, E2 = never, R2 = never>(errorTag: K, cases: Cases, orElse?: ((reason: ExcludeReason, K>, Extract>, error: OmitReason, K>, Extract>) => Stream) | undefined): (self: Stream) => Stream | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? A : never; - }[keyof Cases], (A2 extends unassigned ? E : ExcludeTag) | E2 | { + }[keyof Cases], ExcludeTag | E2 | (A2 extends unassigned ? ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? E : never; }[keyof Cases], R | R2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? R : never; @@ -6656,7 +7339,8 @@ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Catching tagged error reasons) + * * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -6691,14 +7375,14 @@ export declare const catchReasons: { * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ , Cases extends { [RK in ReasonTags>]+?: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Stream; }, A2 = unassigned, E2 = never, R2 = never>(self: Stream, errorTag: K, cases: Cases, orElse?: ((reason: ExcludeReason, K>, Extract>, error: OmitReason, K>, Extract>) => Stream) | undefined): Stream | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? A : never; - }[keyof Cases], (A2 extends unassigned ? E : ExcludeTag) | E2 | { + }[keyof Cases], ExcludeTag | E2 | (A2 extends unassigned ? ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? E : never; }[keyof Cases], R | R2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Stream ? R : never; @@ -6707,7 +7391,8 @@ export declare const catchReasons: { /** * Transforms the errors emitted by this stream using `f`. * - * @example + * **Example** (Mapping stream errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6724,14 +7409,15 @@ export declare const catchReasons: { * // Output: [ "recovered from mapped: bad" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const mapError: { /** * Transforms the errors emitted by this stream using `f`. * - * @example + * **Example** (Mapping stream errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6748,14 +7434,15 @@ export declare const mapError: { * // Output: [ "recovered from mapped: bad" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (f: (error: E) => E2): (self: Stream) => Stream; /** * Transforms the errors emitted by this stream using `f`. * - * @example + * **Example** (Mapping stream errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6772,8 +7459,8 @@ export declare const mapError: { * // Output: [ "recovered from mapped: bad" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Stream, f: (error: E) => E2): Stream; }; @@ -6781,13 +7468,8 @@ export declare const mapError: { * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream. * Non-matching causes are re-emitted as failures. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.catchSomeCause` + * **Example** (Catching matching causes) * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -6807,21 +7489,16 @@ export declare const mapError: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchCauseIf: { /** * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream. * Non-matching causes are re-emitted as failures. * - * **Previously Known As** + * **Example** (Catching matching causes) * - * This API replaces the following from Effect 3.x: - * - * - `Stream.catchSomeCause` - * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -6841,21 +7518,16 @@ export declare const catchCauseIf: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (predicate: Predicate>, f: (cause: Cause.Cause) => Stream): (self: Stream) => Stream; /** * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream. * Non-matching causes are re-emitted as failures. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.catchSomeCause` + * **Example** (Catching matching causes) * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -6875,8 +7547,8 @@ export declare const catchCauseIf: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (self: Stream, predicate: Predicate>, f: (cause: Cause.Cause) => Stream): Stream; }; @@ -6884,31 +7556,80 @@ export declare const catchCauseIf: { * Recovers from stream failures by filtering the `Cause` and switching to a * recovery stream. * + * **When to use** + * + * Use when you need to recover a stream only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. A successful filter result is + * passed to `f` together with the original cause; a failed filter result + * re-fails with the residual cause. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchCauseFilter: { /** * Recovers from stream failures by filtering the `Cause` and switching to a * recovery stream. * + * **When to use** + * + * Use when you need to recover a stream only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. A successful filter result is + * passed to `f` together with the original cause; a failed filter result + * re-fails with the residual cause. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ >(filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Stream): (self: Stream) => Stream | E2, R2 | R>; /** * Recovers from stream failures by filtering the `Cause` and switching to a * recovery stream. * + * **When to use** + * + * Use when you need to recover a stream only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. A successful filter result is + * passed to `f` together with the original cause; a failed filter result + * re-fails with the residual cause. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ >(self: Stream, filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Stream): Stream | E2, R | R2>; }; /** * Switches to a fallback stream if this stream is empty. * - * @example + * **Example** (Switching on empty streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6924,14 +7645,15 @@ export declare const catchCauseFilter: { * // Output: [ 1, 2 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const orElseIfEmpty: { /** * Switches to a fallback stream if this stream is empty. * - * @example + * **Example** (Switching on empty streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6947,14 +7669,15 @@ export declare const orElseIfEmpty: { * // Output: [ 1, 2 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (orElse: LazyArg>): (self: Stream) => Stream; /** * Switches to a fallback stream if this stream is empty. * - * @example + * **Example** (Switching on empty streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6970,15 +7693,16 @@ export declare const orElseIfEmpty: { * // Output: [ 1, 2 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Stream, orElse: LazyArg>): Stream; }; /** * Returns a stream that emits a fallback value when this stream fails. * - * @example + * **Example** (Recovering with a fallback value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6995,14 +7719,15 @@ export declare const orElseIfEmpty: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const orElseSucceed: { /** * Returns a stream that emits a fallback value when this stream fails. * - * @example + * **Example** (Recovering with a fallback value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7019,14 +7744,15 @@ export declare const orElseSucceed: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (f: (error: E) => A2): (self: Stream) => Stream; /** * Returns a stream that emits a fallback value when this stream fails. * - * @example + * **Example** (Recovering with a fallback value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7043,15 +7769,16 @@ export declare const orElseSucceed: { * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Stream, f: (error: E) => A2): Stream; }; /** * Turns typed failures into defects, making the stream infallible. * - * @example + * **Example** (Turning failures into defects) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7068,16 +7795,25 @@ export declare const orElseSucceed: { * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const orDie: (self: Stream) => Stream; /** * Ignores failures and ends the stream on error. * - * Use the `log` option to emit the full {@link Cause} when the stream fails. + * **When to use** + * + * Use when you want a failing stream to end gracefully rather than propagate + * the error. + * + * **Details** + * + * The `log` option controls whether the failure is logged before the stream + * terminates. + * + * **Example** (Ignoring stream failures) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7094,17 +7830,26 @@ export declare const orDie: (self: Stream) => Stream console.log(values)) + * })) * - * const program = stream.pipe(Stream.ignore({ log: "Error" })) + * // [] * ``` * + * @see {@link ignoreCause} for a variant that also ignores defects, not just typed failures + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const ignore: | { readonly log?: boolean | Severity | undefined; @@ -7114,22 +7859,32 @@ export declare const ignore: | { /** * Ignores the stream's failure cause, including defects, and ends the stream. * - * Use the `log` option to emit the full {@link Cause} when the stream fails. + * **When to use** + * + * Use when you need to silently suppress a stream's entire failure cause, + * including both typed errors and defects, rather than propagate it downstream. + * + * **Example** (Ignoring stream failure causes) * - * @example * ```ts * import { Effect, Stream } from "effect" * - * const stream = Stream.make(1, 2).pipe( - * Stream.concat(Stream.fail("boom")), - * Stream.ignoreCause({ log: "Error" }) - * ) + * Effect.runPromise(Effect.gen(function*() { + * const values = yield* Stream.make(1, 2).pipe( + * Stream.concat(Stream.die("boom")), + * Stream.ignoreCause({ log: false }), + * Stream.runCollect + * ) + * yield* Effect.sync(() => console.log(values)) + * })) * - * const program = Stream.runCollect(stream) + * // [ 1, 2 ] * ``` * + * @see {@link ignore} to ignore only typed failures without suppressing defects + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const ignoreCause: | { readonly log?: boolean | Severity | undefined; @@ -7137,7 +7892,9 @@ export declare const ignoreCause: | { readonly log?: boolean | Severity | undefined; } | undefined) => [Arg] extends [Stream] ? Stream : (self: Stream) => Stream; /** - * When the stream fails, retry it according to the given schedule. + * Retries the stream according to the given schedule when it fails. + * + * **Details** * * This retries the entire stream, so will re-execute all of the stream's * acquire operations. @@ -7145,7 +7902,8 @@ export declare const ignoreCause: | { * The schedule is reset as soon as the first element passes through the * stream again. * - * @example + * **Example** (Retrying stream failures) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -7164,12 +7922,14 @@ export declare const ignoreCause: | { * // Output: [ 1, 1 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const retry: { /** - * When the stream fails, retry it according to the given schedule. + * Retries the stream according to the given schedule when it fails. + * + * **Details** * * This retries the entire stream, so will re-execute all of the stream's * acquire operations. @@ -7177,7 +7937,8 @@ export declare const retry: { * The schedule is reset as soon as the first element passes through the * stream again. * - * @example + * **Example** (Retrying stream failures) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -7196,12 +7957,14 @@ export declare const retry: { * // Output: [ 1, 1 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (policy: Schedule.Schedule, E2, R2> | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, E2, R2>)): (self: Stream) => Stream; /** - * When the stream fails, retry it according to the given schedule. + * Retries the stream according to the given schedule when it fails. + * + * **Details** * * This retries the entire stream, so will re-execute all of the stream's * acquire operations. @@ -7209,7 +7972,8 @@ export declare const retry: { * The schedule is reset as soon as the first element passes through the * stream again. * - * @example + * **Example** (Retrying stream failures) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -7228,22 +7992,25 @@ export declare const retry: { * // Output: [ 1, 1 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Stream, policy: Schedule.Schedule, E2, R2> | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, E2, R2>)): Stream; }; /** - * Apply an `ExecutionPlan` to a stream, retrying with step-provided resources + * Applies an `ExecutionPlan` to a stream, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * By default, a failing step can fallback even after emitting elements; set * `preventFallbackOnPartialStream` to fail instead of mixing partial output with * a later fallback. * - * @example + * **Example** (Applying an execution plan) + * * ```ts - * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect" * * class Service extends Context.Service()("Service", { * make: Effect.succeed({ @@ -7259,7 +8026,7 @@ export declare const retry: { * { provide: Service.Good } * ) * - * const stream = Stream.unwrap(Effect.map(Service.asEffect(), (_) => _.stream)) + * const stream = Stream.unwrap(Effect.map(Service, (_) => _.stream)) * * const program = Effect.gen(function*() { * const items = yield* stream.pipe(Stream.withExecutionPlan(plan), Stream.runCollect) @@ -7270,22 +8037,24 @@ export declare const retry: { * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 3.16.0 - * @category Error Handling - * @experimental */ export declare const withExecutionPlan: { /** - * Apply an `ExecutionPlan` to a stream, retrying with step-provided resources + * Applies an `ExecutionPlan` to a stream, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * By default, a failing step can fallback even after emitting elements; set * `preventFallbackOnPartialStream` to fail instead of mixing partial output with * a later fallback. * - * @example + * **Example** (Applying an execution plan) + * * ```ts - * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect" * * class Service extends Context.Service()("Service", { * make: Effect.succeed({ @@ -7301,7 +8070,7 @@ export declare const withExecutionPlan: { * { provide: Service.Good } * ) * - * const stream = Stream.unwrap(Effect.map(Service.asEffect(), (_) => _.stream)) + * const stream = Stream.unwrap(Effect.map(Service, (_) => _.stream)) * * const program = Effect.gen(function*() { * const items = yield* stream.pipe(Stream.withExecutionPlan(plan), Stream.runCollect) @@ -7312,9 +8081,8 @@ export declare const withExecutionPlan: { * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 3.16.0 - * @category Error Handling - * @experimental */ (policy: ExecutionPlan.ExecutionPlan<{ provides: Provides; @@ -7325,16 +8093,19 @@ export declare const withExecutionPlan: { readonly preventFallbackOnPartialStream?: boolean | undefined; }): (self: Stream) => Stream>; /** - * Apply an `ExecutionPlan` to a stream, retrying with step-provided resources + * Applies an `ExecutionPlan` to a stream, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * By default, a failing step can fallback even after emitting elements; set * `preventFallbackOnPartialStream` to fail instead of mixing partial output with * a later fallback. * - * @example + * **Example** (Applying an execution plan) + * * ```ts - * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect" * * class Service extends Context.Service()("Service", { * make: Effect.succeed({ @@ -7350,7 +8121,7 @@ export declare const withExecutionPlan: { * { provide: Service.Good } * ) * - * const stream = Stream.unwrap(Effect.map(Service.asEffect(), (_) => _.stream)) + * const stream = Stream.unwrap(Effect.map(Service, (_) => _.stream)) * * const program = Effect.gen(function*() { * const items = yield* stream.pipe(Stream.withExecutionPlan(plan), Stream.runCollect) @@ -7361,9 +8132,8 @@ export declare const withExecutionPlan: { * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 3.16.0 - * @category Error Handling - * @experimental */ (self: Stream, policy: ExecutionPlan.ExecutionPlan<{ provides: Provides; @@ -7377,7 +8147,8 @@ export declare const withExecutionPlan: { /** * Takes the first `n` elements from this stream, returning `Stream.empty` when `n < 1`. * - * @example + * **Example** (Taking values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7393,14 +8164,15 @@ export declare const withExecutionPlan: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const take: { /** * Takes the first `n` elements from this stream, returning `Stream.empty` when `n < 1`. * - * @example + * **Example** (Taking values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7416,14 +8188,15 @@ export declare const take: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (n: number): (self: Stream) => Stream; /** * Takes the first `n` elements from this stream, returning `Stream.empty` when `n < 1`. * - * @example + * **Example** (Taking values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7439,15 +8212,16 @@ export declare const take: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, n: number): Stream; }; /** * Keeps the last `n` elements from this stream. * - * @example + * **Example** (Taking elements from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7463,14 +8237,15 @@ export declare const take: { * // Output: [ 4, 5, 6 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const takeRight: { /** * Keeps the last `n` elements from this stream. * - * @example + * **Example** (Taking elements from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7486,14 +8261,15 @@ export declare const takeRight: { * // Output: [ 4, 5, 6 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (n: number): (self: Stream) => Stream; /** * Keeps the last `n` elements from this stream. * - * @example + * **Example** (Taking elements from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7509,17 +8285,20 @@ export declare const takeRight: { * // Output: [ 4, 5, 6 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, n: number): Stream; }; /** * Takes elements until the predicate matches. * + * **Details** + * * When `excludeLast` is `true`, the matching element is dropped. * - * @example + * **Example** (Taking until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7542,16 +8321,19 @@ export declare const takeRight: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const takeUntil: { /** * Takes elements until the predicate matches. * + * **Details** + * * When `excludeLast` is `true`, the matching element is dropped. * - * @example + * **Example** (Taking until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7574,8 +8356,8 @@ export declare const takeUntil: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, n: number) => boolean, options?: { readonly excludeLast?: boolean | undefined; @@ -7583,9 +8365,12 @@ export declare const takeUntil: { /** * Takes elements until the predicate matches. * + * **Details** + * * When `excludeLast` is `true`, the matching element is dropped. * - * @example + * **Example** (Taking until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7608,17 +8393,23 @@ export declare const takeUntil: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: A, n: number) => boolean, options?: { readonly excludeLast?: boolean | undefined; }): Stream; }; /** - * Effectful predicate version of `takeUntil`. + * Takes stream elements until an effectful predicate returns `true`. + * + * **When to use** + * + * Use when the stopping condition needs an Effect or service and predicate + * failure should fail the stream. + * + * **Example** (Taking until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7634,14 +8425,20 @@ export declare const takeUntil: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const takeUntilEffect: { /** - * Effectful predicate version of `takeUntil`. + * Takes stream elements until an effectful predicate returns `true`. + * + * **When to use** + * + * Use when the stopping condition needs an Effect or service and predicate + * failure should fail the stream. + * + * **Example** (Taking until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7657,16 +8454,22 @@ export declare const takeUntilEffect: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, n: number) => Effect.Effect, options?: { readonly excludeLast?: boolean | undefined; }): (self: Stream) => Stream; /** - * Effectful predicate version of `takeUntil`. + * Takes stream elements until an effectful predicate returns `true`. + * + * **When to use** + * + * Use when the stopping condition needs an Effect or service and predicate + * failure should fail the stream. + * + * **Example** (Taking until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7682,8 +8485,8 @@ export declare const takeUntilEffect: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: A, n: number) => Effect.Effect, options?: { readonly excludeLast?: boolean | undefined; @@ -7692,7 +8495,8 @@ export declare const takeUntilEffect: { /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7709,14 +8513,15 @@ export declare const takeUntilEffect: { * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const takeWhile: { /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7733,14 +8538,15 @@ export declare const takeWhile: { * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: (a: NoInfer, n: number) => a is B): (self: Stream) => Stream; /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7757,14 +8563,15 @@ export declare const takeWhile: { * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, n: number) => boolean): (self: Stream) => Stream; /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7781,14 +8588,15 @@ export declare const takeWhile: { * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, refinement: (a: NoInfer, n: number) => a is B): Stream; /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7805,37 +8613,85 @@ export declare const takeWhile: { * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: NoInfer, n: number) => boolean): Stream; }; /** - * Takes the longest initial prefix of elements that satisfy the filter. + * Takes the longest initial prefix accepted by a `Filter` and emits the + * filter's success values. + * + * **When to use** * + * Use to keep the leading stream elements that a `Filter` accepts, emit the + * filter's success values, and stop at the first filter failure. + * + * **Details** + * + * The stream stops at the first `Result.fail` returned by the filter. + * + * @see {@link takeWhile} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMap} for filtering across the whole stream instead of only the leading prefix + * @see {@link dropWhileFilter} for dropping the accepted prefix and keeping the remaining original elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const takeWhileFilter: { /** - * Takes the longest initial prefix of elements that satisfy the filter. + * Takes the longest initial prefix accepted by a `Filter` and emits the + * filter's success values. * - * @since 4.0.0 - * @category Filtering - */ - (f: Filter.Filter, B, X>): (self: Stream) => Stream; - /** - * Takes the longest initial prefix of elements that satisfy the filter. + * **When to use** * + * Use to keep the leading stream elements that a `Filter` accepts, emit the + * filter's success values, and stop at the first filter failure. + * + * **Details** + * + * The stream stops at the first `Result.fail` returned by the filter. + * + * @see {@link takeWhile} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMap} for filtering across the whole stream instead of only the leading prefix + * @see {@link dropWhileFilter} for dropping the accepted prefix and keeping the remaining original elements + * + * @category filtering + * @since 4.0.0 + */ + (f: Filter.Filter, B, X>): (self: Stream) => Stream; + /** + * Takes the longest initial prefix accepted by a `Filter` and emits the + * filter's success values. + * + * **When to use** + * + * Use to keep the leading stream elements that a `Filter` accepts, emit the + * filter's success values, and stop at the first filter failure. + * + * **Details** + * + * The stream stops at the first `Result.fail` returned by the filter. + * + * @see {@link takeWhile} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMap} for filtering across the whole stream instead of only the leading prefix + * @see {@link dropWhileFilter} for dropping the accepted prefix and keeping the remaining original elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Stream, f: Filter.Filter, B, X>): Stream; }; /** * Takes elements from the stream while the effectful predicate is `true`. * - * @example + * **When to use** + * + * Use when the leading-prefix predicate needs an Effect or service and the + * stream should stop before the first false result. + * + * **Example** (Effectfully taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7851,14 +8707,20 @@ export declare const takeWhileFilter: { * // Output: [ 1, 2 ] * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ export declare const takeWhileEffect: { /** * Takes elements from the stream while the effectful predicate is `true`. * - * @example + * **When to use** + * + * Use when the leading-prefix predicate needs an Effect or service and the + * stream should stop before the first false result. + * + * **Example** (Effectfully taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7874,14 +8736,20 @@ export declare const takeWhileEffect: { * // Output: [ 1, 2 ] * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (predicate: (a: NoInfer, n: number) => Effect.Effect): (self: Stream) => Stream; /** * Takes elements from the stream while the effectful predicate is `true`. * - * @example + * **When to use** + * + * Use when the leading-prefix predicate needs an Effect or service and the + * stream should stop before the first false result. + * + * **Example** (Effectfully taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7897,15 +8765,16 @@ export declare const takeWhileEffect: { * // Output: [ 1, 2 ] * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (self: Stream, predicate: (a: NoInfer, n: number) => Effect.Effect): Stream; }; /** * Drops the first `n` elements from this stream. * - * @example + * **Example** (Dropping values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7921,14 +8790,15 @@ export declare const takeWhileEffect: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const drop: { /** * Drops the first `n` elements from this stream. * - * @example + * **Example** (Dropping values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7944,14 +8814,15 @@ export declare const drop: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (n: number): (self: Stream) => Stream; /** * Drops the first `n` elements from this stream. * - * @example + * **Example** (Dropping values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7967,8 +8838,8 @@ export declare const drop: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, n: number): Stream; }; @@ -7976,7 +8847,8 @@ export declare const drop: { * Drops elements until the specified predicate evaluates to `true`, then drops * that matching element. * - * @example + * **Example** (Dropping until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -7989,15 +8861,16 @@ export declare const drop: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const dropUntil: { /** * Drops elements until the specified predicate evaluates to `true`, then drops * that matching element. * - * @example + * **Example** (Dropping until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8010,15 +8883,16 @@ export declare const dropUntil: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, index: number) => boolean): (self: Stream) => Stream; /** * Drops elements until the specified predicate evaluates to `true`, then drops * that matching element. * - * @example + * **Example** (Dropping until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8031,8 +8905,8 @@ export declare const dropUntil: { * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: NoInfer, index: number) => boolean): Stream; }; @@ -8040,9 +8914,13 @@ export declare const dropUntil: { * Drops all elements of the stream until the specified effectful predicate * evaluates to `true`. * - * The first element that satisfies the predicate is also dropped. + * **When to use** + * + * Use when dropping the leading prefix requires an Effect or service and the + * first matching element should also be dropped. + * + * **Example** (Dropping until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8058,17 +8936,21 @@ export declare const dropUntil: { * // Output: [ 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const dropUntilEffect: { /** * Drops all elements of the stream until the specified effectful predicate * evaluates to `true`. * - * The first element that satisfies the predicate is also dropped. + * **When to use** + * + * Use when dropping the leading prefix requires an Effect or service and the + * first matching element should also be dropped. + * + * **Example** (Dropping until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8084,17 +8966,21 @@ export declare const dropUntilEffect: { * // Output: [ 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, index: number) => Effect.Effect): (self: Stream) => Stream; /** * Drops all elements of the stream until the specified effectful predicate * evaluates to `true`. * - * The first element that satisfies the predicate is also dropped. + * **When to use** + * + * Use when dropping the leading prefix requires an Effect or service and the + * first matching element should also be dropped. + * + * **Example** (Dropping until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8110,15 +8996,16 @@ export declare const dropUntilEffect: { * // Output: [ 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: NoInfer, index: number) => Effect.Effect): Stream; }; /** * Drops elements from the stream while the specified predicate evaluates to `true`. * - * @example + * **Example** (Dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8134,14 +9021,15 @@ export declare const dropUntilEffect: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const dropWhile: { /** * Drops elements from the stream while the specified predicate evaluates to `true`. * - * @example + * **Example** (Dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8157,14 +9045,15 @@ export declare const dropWhile: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, index: number) => boolean): (self: Stream) => Stream; /** * Drops elements from the stream while the specified predicate evaluates to `true`. * - * @example + * **Example** (Dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8180,37 +9069,83 @@ export declare const dropWhile: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: NoInfer, index: number) => boolean): Stream; }; /** * Drops elements while the filter succeeds. * + * **When to use** + * + * Use when you need to remove a leading stream prefix based on a synchronous + * `Filter` result while preserving the remaining original stream elements. + * + * **Details** + * + * `Result.succeed` drops the current element. The first `Result.fail` stops + * dropping, emits that original element, and the rest of the source stream is + * emitted without further filtering. + * + * @see {@link dropWhile} for boolean predicate prefix dropping + * @see {@link takeWhileFilter} for keeping the accepted prefix as filter success values + * @see {@link dropWhileEffect} for effectful predicate prefix dropping + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const dropWhileFilter: { /** * Drops elements while the filter succeeds. * + * **When to use** + * + * Use when you need to remove a leading stream prefix based on a synchronous + * `Filter` result while preserving the remaining original stream elements. + * + * **Details** + * + * `Result.succeed` drops the current element. The first `Result.fail` stops + * dropping, emits that original element, and the rest of the source stream is + * emitted without further filtering. + * + * @see {@link dropWhile} for boolean predicate prefix dropping + * @see {@link takeWhileFilter} for keeping the accepted prefix as filter success values + * @see {@link dropWhileEffect} for effectful predicate prefix dropping + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, B, X>): (self: Stream) => Stream; /** * Drops elements while the filter succeeds. * + * **When to use** + * + * Use when you need to remove a leading stream prefix based on a synchronous + * `Filter` result while preserving the remaining original stream elements. + * + * **Details** + * + * `Result.succeed` drops the current element. The first `Result.fail` stops + * dropping, emits that original element, and the rest of the source stream is + * emitted without further filtering. + * + * @see {@link dropWhile} for boolean predicate prefix dropping + * @see {@link takeWhileFilter} for keeping the accepted prefix as filter success values + * @see {@link dropWhileEffect} for effectful predicate prefix dropping + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Stream, filter: Filter.Filter, B, X>): Stream; }; /** * Drops elements while the specified effectful predicate evaluates to `true`. * - * @example + * **Example** (Effectfully dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8226,14 +9161,15 @@ export declare const dropWhileFilter: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const dropWhileEffect: { /** * Drops elements while the specified effectful predicate evaluates to `true`. * - * @example + * **Example** (Effectfully dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8249,14 +9185,15 @@ export declare const dropWhileEffect: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, index: number) => Effect.Effect): (self: Stream) => Stream; /** * Drops elements while the specified effectful predicate evaluates to `true`. * - * @example + * **Example** (Effectfully dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8272,17 +9209,20 @@ export declare const dropWhileEffect: { * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, predicate: (a: A, index: number) => Effect.Effect): Stream; }; /** * Drops the last specified number of elements from this stream. * + * **Details** + * * Keeps the last `n` elements in memory to drop them on completion. * - * @example + * **Example** (Dropping values from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8298,16 +9238,19 @@ export declare const dropWhileEffect: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const dropRight: { /** * Drops the last specified number of elements from this stream. * + * **Details** + * * Keeps the last `n` elements in memory to drop them on completion. * - * @example + * **Example** (Dropping values from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8323,16 +9266,19 @@ export declare const dropRight: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (n: number): (self: Stream) => Stream; /** * Drops the last specified number of elements from this stream. * + * **Details** + * * Keeps the last `n` elements in memory to drop them on completion. * - * @example + * **Example** (Dropping values from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8348,15 +9294,16 @@ export declare const dropRight: { * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Stream, n: number): Stream; }; /** * Exposes the underlying chunks as a stream of non-empty arrays. * - * @example + * **Example** (Exposing stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8373,16 +9320,19 @@ export declare const dropRight: { * // Output: [ [ 1, 2 ], [ 3, 4 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const chunks: (self: Stream) => Stream, E, R>; /** - * Re-chunks the stream into arrays of the specified size, preserving element order. + * Groups the stream into arrays of the specified size, preserving element order. + * + * **Details** * * The size is clamped to at least 1. * - * @example + * **Example** (Rechunking stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8399,16 +9349,19 @@ export declare const chunks: (self: Stream) => Stream(self: Stream) => Stream; /** - * Re-chunks the stream into arrays of the specified size, preserving element order. + * Groups the stream into arrays of the specified size, preserving element order. + * + * **Details** * * The size is clamped to at least 1. * - * @example + * **Example** (Rechunking stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8451,17 +9407,18 @@ export declare const rechunk: { * // Output: [ [ 1, 2 ], [ 3, 4 ], [ 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, size: number): Stream; }; /** * Emits a sliding window of `n` elements. * - * @example + * **Example** (Emitting sliding windows) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * Effect.gen(function*() { * const result = yield* pipe( @@ -8474,16 +9431,17 @@ export declare const rechunk: { * // Output: [ [1, 2], [2, 3], [3, 4], [4, 5] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const sliding: { /** * Emits a sliding window of `n` elements. * - * @example + * **Example** (Emitting sliding windows) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * Effect.gen(function*() { * const result = yield* pipe( @@ -8496,16 +9454,17 @@ export declare const sliding: { * // Output: [ [1, 2], [2, 3], [3, 4], [4, 5] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (chunkSize: number): (self: Stream) => Stream, E, R>; /** * Emits a sliding window of `n` elements. * - * @example + * **Example** (Emitting sliding windows) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * Effect.gen(function*() { * const result = yield* pipe( @@ -8518,14 +9477,16 @@ export declare const sliding: { * // Output: [ [1, 2], [2, 3], [3, 4], [4, 5] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, chunkSize: number): Stream, E, R>; }; /** * Emits sliding windows of `chunkSize` elements, advancing by `stepSize`. * + * **Example** (Emitting sliding windows with a step size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8541,13 +9502,15 @@ export declare const sliding: { * // Output: [ [ 1, 2, 3 ], [ 3, 4, 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const slidingSize: { /** * Emits sliding windows of `chunkSize` elements, advancing by `stepSize`. * + * **Example** (Emitting sliding windows with a step size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8563,13 +9526,15 @@ export declare const slidingSize: { * // Output: [ [ 1, 2, 3 ], [ 3, 4, 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (chunkSize: number, stepSize: number): (self: Stream) => Stream, E, R>; /** * Emits sliding windows of `chunkSize` elements, advancing by `stepSize`. * + * **Example** (Emitting sliding windows with a step size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8585,17 +9550,20 @@ export declare const slidingSize: { * // Output: [ [ 1, 2, 3 ], [ 3, 4, 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, chunkSize: number, stepSize: number): Stream, E, R>; }; /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8611,16 +9579,19 @@ export declare const slidingSize: { * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const split: { /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8636,16 +9607,19 @@ export declare const split: { * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (refinement: Refinement, B>): (self: Stream) => Stream>, E, R>; /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8661,16 +9635,19 @@ export declare const split: { * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (predicate: Predicate>): (self: Stream) => Stream, E, R>; /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8686,16 +9663,19 @@ export declare const split: { * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, refinement: Refinement): Stream>, E, R>; /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8711,8 +9691,8 @@ export declare const split: { * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, predicate: Predicate): Stream, E, R>; }; @@ -8720,10 +9700,13 @@ export declare const split: { * Combines elements from this stream and the specified stream by repeatedly * applying a stateful function that can pull from either side. * + * **Details** + * * Where possible, prefer `Stream.combineArray` for a more efficient * implementation. * - * @example + * **Example** (Combining streams with state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8746,18 +9729,21 @@ export declare const split: { * // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const combine: { /** * Combines elements from this stream and the specified stream by repeatedly * applying a stateful function that can pull from either side. * + * **Details** + * * Where possible, prefer `Stream.combineArray` for a more efficient * implementation. * - * @example + * **Example** (Combining streams with state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8780,18 +9766,21 @@ export declare const combine: { * // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (that: Stream, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, pullRight: Pull.Pull) => Effect.Effect): (self: Stream) => Stream; /** * Combines elements from this stream and the specified stream by repeatedly * applying a stateful function that can pull from either side. * + * **Details** + * * Where possible, prefer `Stream.combineArray` for a more efficient * implementation. * - * @example + * **Example** (Combining streams with state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8814,25 +9803,27 @@ export declare const combine: { * // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (self: Stream, that: Stream, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, pullRight: Pull.Pull) => Effect.Effect): Stream; }; /** - * Combines the arrays (chunks) from this stream and the specified stream by - * repeatedly applying the function `f` to extract an array using both sides and - * conceptually "offer" it to the destination stream. `f` can maintain some - * internal state to control the combining process, with the initial state - * being specified by `s`. + * Combines two streams chunk-by-chunk with a stateful pull function. + * + * **When to use** * - * **Previously Known As** + * Use to coordinate pulling chunks from two streams when each emitted chunk + * depends on both sides and local state. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Stream.combineChunks` + * The combining function receives the current state and pull functions for the + * left and right streams. It returns the next non-empty chunk together with the + * next state. + * + * **Example** (Combining stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8857,24 +9848,26 @@ export declare const combine: { * // Output: [ 1, 2, 10, 20 ] * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const combineArray: { /** - * Combines the arrays (chunks) from this stream and the specified stream by - * repeatedly applying the function `f` to extract an array using both sides and - * conceptually "offer" it to the destination stream. `f` can maintain some - * internal state to control the combining process, with the initial state - * being specified by `s`. + * Combines two streams chunk-by-chunk with a stateful pull function. + * + * **When to use** * - * **Previously Known As** + * Use to coordinate pulling chunks from two streams when each emitted chunk + * depends on both sides and local state. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Stream.combineChunks` + * The combining function receives the current state and pull functions for the + * left and right streams. It returns the next non-empty chunk together with the + * next state. + * + * **Example** (Combining stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8899,24 +9892,26 @@ export declare const combineArray: { * // Output: [ 1, 2, 10, 20 ] * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (that: Stream, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, E, void>, pullRight: Pull.Pull, E2, void>) => Effect.Effect, S], E3, R3>): (self: Stream) => Stream, R2 | R3 | R>; /** - * Combines the arrays (chunks) from this stream and the specified stream by - * repeatedly applying the function `f` to extract an array using both sides and - * conceptually "offer" it to the destination stream. `f` can maintain some - * internal state to control the combining process, with the initial state - * being specified by `s`. + * Combines two streams chunk-by-chunk with a stateful pull function. + * + * **When to use** * - * **Previously Known As** + * Use to coordinate pulling chunks from two streams when each emitted chunk + * depends on both sides and local state. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Stream.combineChunks` + * The combining function receives the current state and pull functions for the + * left and right streams. It returns the next non-empty chunk together with the + * next state. + * + * **Example** (Combining stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8941,15 +9936,16 @@ export declare const combineArray: { * // Output: [ 1, 2, 10, 20 ] * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Stream, that: Stream, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, E, void>, pullRight: Pull.Pull, E2, void>) => Effect.Effect, S], E3, R3>): Stream, R | R2 | R3>; }; /** - * Statefully maps elements, emitting zero or more outputs per input. + * Maps elements statefully, emitting zero or more outputs per input. + * + * **Example** (Statefully mapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8969,14 +9965,15 @@ export declare const combineArray: { * // Output: [ 0, 1, 3, 6, 10, 15, 21 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const mapAccum: { /** - * Statefully maps elements, emitting zero or more outputs per input. + * Maps elements statefully, emitting zero or more outputs per input. + * + * **Example** (Statefully mapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -8996,16 +9993,17 @@ export declare const mapAccum: { * // Output: [ 0, 1, 3, 6, 10, 15, 21 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (initial: LazyArg, f: (s: S, a: A) => readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): (self: Stream) => Stream; /** - * Statefully maps elements, emitting zero or more outputs per input. + * Maps elements statefully, emitting zero or more outputs per input. + * + * **Example** (Statefully mapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9025,19 +10023,22 @@ export declare const mapAccum: { * // Output: [ 0, 1, 3, 6, 10, 15, 21 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, initial: LazyArg, f: (s: S, a: A) => readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): Stream; }; /** - * Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk. + * Maps over non-empty chunk arrays statefully, emitting zero or more values per chunk. + * + * **Details** * * The mapping function runs once per chunk and the state is threaded across chunks. * - * @example + * **Example** (Statefully mapping stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9057,16 +10058,19 @@ export declare const mapAccum: { * // Output: [ 3, 10, 21 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export declare const mapAccumArray: { /** - * Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk. + * Maps over non-empty chunk arrays statefully, emitting zero or more values per chunk. + * + * **Details** * * The mapping function runs once per chunk and the state is threaded across chunks. * - * @example + * **Example** (Statefully mapping stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9086,18 +10090,21 @@ export declare const mapAccumArray: { * // Output: [ 3, 10, 21 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (initial: LazyArg, f: (s: S, a: Arr.NonEmptyReadonlyArray) => readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): (self: Stream) => Stream; /** - * Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk. + * Maps over non-empty chunk arrays statefully, emitting zero or more values per chunk. + * + * **Details** * * The mapping function runs once per chunk and the state is threaded across chunks. * - * @example + * **Example** (Statefully mapping stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9117,17 +10124,30 @@ export declare const mapAccumArray: { * // Output: [ 3, 10, 21 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (self: Stream, initial: LazyArg, f: (s: S, a: Arr.NonEmptyReadonlyArray) => readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => Array) | undefined; }): Stream; }; /** - * Statefully and effectfully maps over the elements of this stream to produce new elements. + * Maps each element statefully and effectfully, emitting zero or more output + * values per input. + * + * **When to use** + * + * Use when stateful element mapping needs Effects or can fail while emitting + * zero or more values per input element. + * + * **Details** + * + * The mapping effect receives the current state and element, then returns the + * next state plus the values to emit. The state is threaded through the + * stream. + * + * **Example** (Effectfully mapping stream values with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9146,14 +10166,27 @@ export declare const mapAccumArray: { * // Output: [ 1, 2, 3 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const mapAccumEffect: { /** - * Statefully and effectfully maps over the elements of this stream to produce new elements. + * Maps each element statefully and effectfully, emitting zero or more output + * values per input. + * + * **When to use** + * + * Use when stateful element mapping needs Effects or can fail while emitting + * zero or more values per input element. + * + * **Details** + * + * The mapping effect receives the current state and element, then returns the + * next state plus the values to emit. The state is threaded through the + * stream. + * + * **Example** (Effectfully mapping stream values with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9172,16 +10205,29 @@ export declare const mapAccumEffect: { * // Output: [ 1, 2, 3 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (initial: LazyArg, f: (s: S, a: A) => Effect.Effect], E2, R2>, options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): (self: Stream) => Stream; /** - * Statefully and effectfully maps over the elements of this stream to produce new elements. + * Maps each element statefully and effectfully, emitting zero or more output + * values per input. + * + * **When to use** + * + * Use when stateful element mapping needs Effects or can fail while emitting + * zero or more values per input element. + * + * **Details** + * + * The mapping effect receives the current state and element, then returns the + * next state plus the values to emit. The state is threaded through the + * stream. + * + * **Example** (Effectfully mapping stream values with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9200,17 +10246,29 @@ export declare const mapAccumEffect: { * // Output: [ 1, 2, 3 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Stream, initial: LazyArg, f: (s: S, a: A) => Effect.Effect], E2, R2>, options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): Stream; }; /** - * Statefully and effectfully maps over chunks of this stream to emit new values. + * Maps each non-empty input chunk statefully and effectfully, emitting zero or + * more output values per chunk. + * + * **When to use** + * + * Use when stateful mapping should process each emitted non-empty chunk with an + * Effect instead of each element separately. + * + * **Details** + * + * The mapping effect receives the current state and chunk, then returns the + * next state plus the values to emit. The state is threaded across chunks. + * + * **Example** (Effectfully mapping stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9232,14 +10290,26 @@ export declare const mapAccumEffect: { * // Output: [ 3, 10 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export declare const mapAccumArrayEffect: { /** - * Statefully and effectfully maps over chunks of this stream to emit new values. + * Maps each non-empty input chunk statefully and effectfully, emitting zero or + * more output values per chunk. + * + * **When to use** + * + * Use when stateful mapping should process each emitted non-empty chunk with an + * Effect instead of each element separately. + * + * **Details** + * + * The mapping effect receives the current state and chunk, then returns the + * next state plus the values to emit. The state is threaded across chunks. + * + * **Example** (Effectfully mapping stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9261,16 +10331,28 @@ export declare const mapAccumArrayEffect: { * // Output: [ 3, 10 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (initial: LazyArg, f: (s: S, a: Arr.NonEmptyReadonlyArray) => Effect.Effect], E2, R2>, options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; }): (self: Stream) => Stream; /** - * Statefully and effectfully maps over chunks of this stream to emit new values. + * Maps each non-empty input chunk statefully and effectfully, emitting zero or + * more output values per chunk. + * + * **When to use** + * + * Use when stateful mapping should process each emitted non-empty chunk with an + * Effect instead of each element separately. + * + * **Details** + * + * The mapping effect receives the current state and chunk, then returns the + * next state plus the values to emit. The state is threaded across chunks. + * + * **Example** (Effectfully mapping stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9292,8 +10374,8 @@ export declare const mapAccumArrayEffect: { * // Output: [ 3, 10 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ (self: Stream, initial: LazyArg, f: (s: S, a: Arr.NonEmptyReadonlyArray) => Effect.Effect], E2, R2>, options?: { readonly onHalt?: ((state: S) => ReadonlyArray) | undefined; @@ -9302,7 +10384,8 @@ export declare const mapAccumArrayEffect: { /** * Accumulates state across the stream, emitting the initial state and each updated state. * - * @example + * **Example** (Scanning stream state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9318,14 +10401,15 @@ export declare const mapAccumArrayEffect: { * // Output: [ 0, 1, 3, 6 ] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export declare const scan: { /** * Accumulates state across the stream, emitting the initial state and each updated state. * - * @example + * **Example** (Scanning stream state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9341,14 +10425,15 @@ export declare const scan: { * // Output: [ 0, 1, 3, 6 ] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ (initial: S, f: (s: S, a: A) => S): (self: Stream) => Stream; /** * Accumulates state across the stream, emitting the initial state and each updated state. * - * @example + * **Example** (Scanning stream state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9364,15 +10449,16 @@ export declare const scan: { * // Output: [ 0, 1, 3, 6 ] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ (self: Stream, initial: S, f: (s: S, a: A) => S): Stream; }; /** - * Effectfully accumulates state and emits the initial state plus each accumulated state. + * Accumulates state effectfully and emits the initial state plus each accumulated state. + * + * **Example** (Effectfully scanning stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9386,14 +10472,15 @@ export declare const scan: { * }) * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export declare const scanEffect: { /** - * Effectfully accumulates state and emits the initial state plus each accumulated state. + * Accumulates state effectfully and emits the initial state plus each accumulated state. + * + * **Example** (Effectfully scanning stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9407,14 +10494,15 @@ export declare const scanEffect: { * }) * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ (initial: S, f: (s: S, a: A) => Effect.Effect): (self: Stream) => Stream; /** - * Effectfully accumulates state and emits the initial state plus each accumulated state. + * Accumulates state effectfully and emits the initial state plus each accumulated state. + * + * **Example** (Effectfully scanning stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9428,15 +10516,16 @@ export declare const scanEffect: { * }) * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ (self: Stream, initial: S, f: (s: S, a: A) => Effect.Effect): Stream; }; /** * Drops earlier elements within the debounce window and emits only the latest element after the pause. * - * @example + * **Example** (Debouncing stream elements) + * * ```ts * import { Console, Duration, Effect, Stream } from "effect" * @@ -9453,14 +10542,15 @@ export declare const scanEffect: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const debounce: { /** * Drops earlier elements within the debounce window and emits only the latest element after the pause. * - * @example + * **Example** (Debouncing stream elements) + * * ```ts * import { Console, Duration, Effect, Stream } from "effect" * @@ -9477,14 +10567,15 @@ export declare const debounce: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (duration: Duration.Input): (self: Stream) => Stream; /** * Drops earlier elements within the debounce window and emits only the latest element after the pause. * - * @example + * **Example** (Debouncing stream elements) + * * ```ts * import { Console, Duration, Effect, Stream } from "effect" * @@ -9501,16 +10592,22 @@ export declare const debounce: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, duration: Duration.Input): Stream; }; /** - * Delays the arrays of this stream according to the given bandwidth - * parameters using the token bucket algorithm. Allows for burst processing by - * allowing the bucket to accumulate tokens up to a `units + burst` threshold. - * The weight of each array is determined by the effectful `cost` function. + * Rate-limits stream chunks with an effectful cost function. + * + * **When to use** + * + * Use to throttle chunks when computing each chunk's cost requires an effect. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by the effectful `cost` function. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9518,7 +10615,8 @@ export declare const debounce: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks effectfully) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9539,15 +10637,21 @@ export declare const debounce: { * // Output: [0, 1, 2, 3, 4, 5] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const throttleEffect: { /** - * Delays the arrays of this stream according to the given bandwidth - * parameters using the token bucket algorithm. Allows for burst processing by - * allowing the bucket to accumulate tokens up to a `units + burst` threshold. - * The weight of each array is determined by the effectful `cost` function. + * Rate-limits stream chunks with an effectful cost function. + * + * **When to use** + * + * Use to throttle chunks when computing each chunk's cost requires an effect. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by the effectful `cost` function. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9555,7 +10659,8 @@ export declare const throttleEffect: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks effectfully) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9576,8 +10681,8 @@ export declare const throttleEffect: { * // Output: [0, 1, 2, 3, 4, 5] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (options: { readonly cost: (arr: Arr.NonEmptyReadonlyArray) => Effect.Effect; @@ -9587,10 +10692,16 @@ export declare const throttleEffect: { readonly strategy?: "enforce" | "shape" | undefined; }): (self: Stream) => Stream; /** - * Delays the arrays of this stream according to the given bandwidth - * parameters using the token bucket algorithm. Allows for burst processing by - * allowing the bucket to accumulate tokens up to a `units + burst` threshold. - * The weight of each array is determined by the effectful `cost` function. + * Rate-limits stream chunks with an effectful cost function. + * + * **When to use** + * + * Use to throttle chunks when computing each chunk's cost requires an effect. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by the effectful `cost` function. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9598,7 +10709,8 @@ export declare const throttleEffect: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks effectfully) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9619,8 +10731,8 @@ export declare const throttleEffect: { * // Output: [0, 1, 2, 3, 4, 5] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, options: { readonly cost: (arr: Arr.NonEmptyReadonlyArray) => Effect.Effect; @@ -9631,9 +10743,16 @@ export declare const throttleEffect: { }): Stream; }; /** - * Delays the arrays of this stream using a token bucket and a per-array cost. - * Allows bursts by letting the bucket accumulate up to a `units + burst` - * threshold. The weight of each array is determined by the `cost` function. + * Rate-limits stream chunks with a synchronous cost function. + * + * **When to use** + * + * Use to throttle chunks when each chunk's cost can be computed synchronously. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by `cost`. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9641,7 +10760,8 @@ export declare const throttleEffect: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9662,14 +10782,21 @@ export declare const throttleEffect: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export declare const throttle: { /** - * Delays the arrays of this stream using a token bucket and a per-array cost. - * Allows bursts by letting the bucket accumulate up to a `units + burst` - * threshold. The weight of each array is determined by the `cost` function. + * Rate-limits stream chunks with a synchronous cost function. + * + * **When to use** + * + * Use to throttle chunks when each chunk's cost can be computed synchronously. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by `cost`. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9677,7 +10804,8 @@ export declare const throttle: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9698,8 +10826,8 @@ export declare const throttle: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (options: { readonly cost: (arr: Arr.NonEmptyReadonlyArray) => number; @@ -9709,9 +10837,16 @@ export declare const throttle: { readonly strategy?: "enforce" | "shape" | undefined; }): (self: Stream) => Stream; /** - * Delays the arrays of this stream using a token bucket and a per-array cost. - * Allows bursts by letting the bucket accumulate up to a `units + burst` - * threshold. The weight of each array is determined by the `cost` function. + * Rate-limits stream chunks with a synchronous cost function. + * + * **When to use** + * + * Use to throttle chunks when each chunk's cost can be computed synchronously. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by `cost`. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -9719,7 +10854,8 @@ export declare const throttle: { * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -9740,8 +10876,8 @@ export declare const throttle: { * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ (self: Stream, options: { readonly cost: (arr: Arr.NonEmptyReadonlyArray) => number; @@ -9754,9 +10890,12 @@ export declare const throttle: { /** * Partitions the stream into non-empty arrays of the specified size. * + * **Details** + * * The final array may be smaller if there are not enough elements to fill it. * - * @example + * **Example** (Grouping elements by size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9772,16 +10911,19 @@ export declare const throttle: { * // Output: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const grouped: { /** * Partitions the stream into non-empty arrays of the specified size. * + * **Details** + * * The final array may be smaller if there are not enough elements to fill it. * - * @example + * **Example** (Grouping elements by size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9797,16 +10939,19 @@ export declare const grouped: { * // Output: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (n: number): (self: Stream) => Stream, E, R>; /** * Partitions the stream into non-empty arrays of the specified size. * + * **Details** + * * The final array may be smaller if there are not enough elements to fill it. * - * @example + * **Example** (Grouping elements by size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9822,8 +10967,8 @@ export declare const grouped: { * // Output: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, n: number): Stream, E, R>; }; @@ -9831,7 +10976,8 @@ export declare const grouped: { * Partitions the stream into arrays, emitting when the chunk size is reached * or the duration passes. * - * @example + * **Example** (Grouping elements by size or time) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9847,15 +10993,16 @@ export declare const grouped: { * // Output: [ [ 1, 2 ], [ 3 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const groupedWithin: { /** * Partitions the stream into arrays, emitting when the chunk size is reached * or the duration passes. * - * @example + * **Example** (Grouping elements by size or time) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9871,15 +11018,16 @@ export declare const groupedWithin: { * // Output: [ [ 1, 2 ], [ 3 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (chunkSize: number, duration: Duration.Input): (self: Stream) => Stream, E, R>; /** * Partitions the stream into arrays, emitting when the chunk size is reached * or the duration passes. * - * @example + * **Example** (Grouping elements by size or time) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9895,15 +11043,16 @@ export declare const groupedWithin: { * // Output: [ [ 1, 2 ], [ 3 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, chunkSize: number, duration: Duration.Input): Stream, E, R>; }; /** * Groups elements into keyed substreams using an effectful classifier. * - * @example + * **Example** (Grouping elements into keyed substreams using an effectful classifier) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9928,14 +11077,15 @@ export declare const groupedWithin: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const groupBy: { /** * Groups elements into keyed substreams using an effectful classifier. * - * @example + * **Example** (Grouping elements into keyed substreams using an effectful classifier) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9960,8 +11110,8 @@ export declare const groupBy: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (f: (a: NoInfer) => Effect.Effect, options?: { readonly bufferSize?: number | undefined; @@ -9970,7 +11120,8 @@ export declare const groupBy: { /** * Groups elements into keyed substreams using an effectful classifier. * - * @example + * **Example** (Grouping elements into keyed substreams using an effectful classifier) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -9995,8 +11146,8 @@ export declare const groupBy: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, f: (a: NoInfer) => Effect.Effect, options?: { readonly bufferSize?: number | undefined; @@ -10006,7 +11157,8 @@ export declare const groupBy: { /** * Groups elements by a key and emits a stream per key. * - * @example + * **Example** (Grouping elements by key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10029,14 +11181,15 @@ export declare const groupBy: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const groupByKey: { /** * Groups elements by a key and emits a stream per key. * - * @example + * **Example** (Grouping elements by key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10059,8 +11212,8 @@ export declare const groupByKey: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (f: (a: NoInfer) => K, options?: { readonly bufferSize?: number | undefined; @@ -10069,7 +11222,8 @@ export declare const groupByKey: { /** * Groups elements by a key and emits a stream per key. * - * @example + * **Example** (Grouping elements by key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10092,8 +11246,8 @@ export declare const groupByKey: { * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, f: (a: NoInfer) => K, options?: { readonly bufferSize?: number | undefined; @@ -10101,25 +11255,77 @@ export declare const groupByKey: { }): Stream], E, R>; }; /** + * Groups consecutive elements that have equal keys into non-empty arrays. + * + * **When to use** + * + * Use when you already have a stream ordered by the grouping key and want to + * emit each consecutive run as a non-empty array while keeping later + * non-adjacent runs separate. + * + * **Details** + * + * The key is computed with `f`; adjacent elements whose keys are equal by + * `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs + * with the same key are emitted separately. + * + * @see {@link groupByKey} for grouping all elements with the same key across the stream + * @see {@link groupBy} for custom grouped stream construction + * + * @category grouping * @since 2.0.0 - * @category Grouping */ export declare const groupAdjacentBy: { /** + * Groups consecutive elements that have equal keys into non-empty arrays. + * + * **When to use** + * + * Use when you already have a stream ordered by the grouping key and want to + * emit each consecutive run as a non-empty array while keeping later + * non-adjacent runs separate. + * + * **Details** + * + * The key is computed with `f`; adjacent elements whose keys are equal by + * `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs + * with the same key are emitted separately. + * + * @see {@link groupByKey} for grouping all elements with the same key across the stream + * @see {@link groupBy} for custom grouped stream construction + * + * @category grouping * @since 2.0.0 - * @category Grouping */ (f: (a: NoInfer) => K): (self: Stream) => Stream], E, R>; /** + * Groups consecutive elements that have equal keys into non-empty arrays. + * + * **When to use** + * + * Use when you already have a stream ordered by the grouping key and want to + * emit each consecutive run as a non-empty array while keeping later + * non-adjacent runs separate. + * + * **Details** + * + * The key is computed with `f`; adjacent elements whose keys are equal by + * `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs + * with the same key are emitted separately. + * + * @see {@link groupByKey} for grouping all elements with the same key across the stream + * @see {@link groupBy} for custom grouped stream construction + * + * @category grouping * @since 2.0.0 - * @category Grouping */ (self: Stream, f: (a: NoInfer) => K): Stream], E, R>; }; /** * Applies a sink transducer to the stream and emits each sink result. * - * @example + * **Example** (Transducing with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10134,17 +11340,20 @@ export declare const groupAdjacentBy: { * }) * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ export declare const transduce: ((sink: Sink.Sink) => (self: Stream) => Stream) & ((self: Stream, sink: Sink.Sink) => Stream); /** * Aggregates elements using the provided sink and emits each sink result as a stream element. * + * **Details** + * * The stream runs the upstream and downstream in separate fibers, so the sink can keep * consuming input while downstream is busy processing the previous output. * - * @example + * **Example** (Aggregating with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10161,17 +11370,20 @@ export declare const transduce: ((sink: Sink.Sink(sink: Sink.Sink): (self: Stream) => Stream; /** * Aggregates elements using the provided sink and emits each sink result as a stream element. * + * **Details** + * * The stream runs the upstream and downstream in separate fibers, so the sink can keep * consuming input while downstream is busy processing the previous output. * - * @example + * **Example** (Aggregating with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10215,17 +11430,20 @@ export declare const aggregate: { * // [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ (self: Stream, sink: Sink.Sink): Stream; }; /** * Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers. * + * **Details** + * * The schedule can flush the current aggregation even if the sink has not finished. * - * @example + * **Example** (Aggregating with a sink and schedule) + * * ```ts * import { Console, Effect, Schedule, Sink, Stream } from "effect" * @@ -10243,16 +11461,19 @@ export declare const aggregate: { * // Output: [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ export declare const aggregateWithin: { /** * Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers. * + * **Details** + * * The schedule can flush the current aggregation even if the sink has not finished. * - * @example + * **Example** (Aggregating with a sink and schedule) + * * ```ts * import { Console, Effect, Schedule, Sink, Stream } from "effect" * @@ -10270,16 +11491,19 @@ export declare const aggregateWithin: { * // Output: [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ (sink: Sink.Sink, schedule: Schedule.Schedule, E3, R3>): (self: Stream) => Stream; /** * Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers. * + * **Details** + * * The schedule can flush the current aggregation even if the sink has not finished. * - * @example + * **Example** (Aggregating with a sink and schedule) + * * ```ts * import { Console, Effect, Schedule, Sink, Stream } from "effect" * @@ -10297,17 +11521,159 @@ export declare const aggregateWithin: { * // Output: [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ (self: Stream, sink: Sink.Sink, schedule: Schedule.Schedule, E3, R3>): Stream; }; +/** + * Creates a fixed-size tuple of streams that each emit + * the same elements as the source stream. + * + * **Details** + * + * The source stream starts after all downstream streams have been subscribed. + * With the default suspend strategy, the source can only advance `capacity` + * chunks ahead of the slowest downstream stream. If a downstream stream is + * interrupted, it unsubscribes from the broadcast so it no longer contributes + * backpressure. + * + * **Example** (Broadcasting to two consumers) + * + * ```ts + * import { Console, Effect, Stream } from "effect" + * + * const program = Effect.scoped( + * Effect.gen(function*() { + * const [left, right] = yield* Stream.make(1, 2, 3).pipe( + * Stream.broadcastN({ n: 2, capacity: 8 }) + * ) + * + * const values = yield* Effect.all([ + * Stream.runCollect(left), + * Stream.runCollect(right) + * ], { concurrency: "unbounded" }) + * + * yield* Console.log(values) + * }) + * ) + * + * Effect.runPromise(program) + * // Output: [[1, 2, 3], [1, 2, 3]] + * ``` + * + * @category Broadcast + * @since 4.0.0 + */ +export declare const broadcastN: { + /** + * Creates a fixed-size tuple of streams that each emit + * the same elements as the source stream. + * + * **Details** + * + * The source stream starts after all downstream streams have been subscribed. + * With the default suspend strategy, the source can only advance `capacity` + * chunks ahead of the slowest downstream stream. If a downstream stream is + * interrupted, it unsubscribes from the broadcast so it no longer contributes + * backpressure. + * + * **Example** (Broadcasting to two consumers) + * + * ```ts + * import { Console, Effect, Stream } from "effect" + * + * const program = Effect.scoped( + * Effect.gen(function*() { + * const [left, right] = yield* Stream.make(1, 2, 3).pipe( + * Stream.broadcastN({ n: 2, capacity: 8 }) + * ) + * + * const values = yield* Effect.all([ + * Stream.runCollect(left), + * Stream.runCollect(right) + * ], { concurrency: "unbounded" }) + * + * yield* Console.log(values) + * }) + * ) + * + * Effect.runPromise(program) + * // Output: [[1, 2, 3], [1, 2, 3]] + * ``` + * + * @category Broadcast + * @since 4.0.0 + */ + (options: { + readonly n: N; + readonly capacity: "unbounded"; + readonly replay?: number | undefined; + } | { + readonly n: N; + readonly capacity: number; + readonly strategy?: "sliding" | "dropping" | "suspend" | undefined; + readonly replay?: number | undefined; + }): (self: Stream) => Effect.Effect>, never, Scope.Scope | R>; + /** + * Creates a fixed-size tuple of streams that each emit + * the same elements as the source stream. + * + * **Details** + * + * The source stream starts after all downstream streams have been subscribed. + * With the default suspend strategy, the source can only advance `capacity` + * chunks ahead of the slowest downstream stream. If a downstream stream is + * interrupted, it unsubscribes from the broadcast so it no longer contributes + * backpressure. + * + * **Example** (Broadcasting to two consumers) + * + * ```ts + * import { Console, Effect, Stream } from "effect" + * + * const program = Effect.scoped( + * Effect.gen(function*() { + * const [left, right] = yield* Stream.make(1, 2, 3).pipe( + * Stream.broadcastN({ n: 2, capacity: 8 }) + * ) + * + * const values = yield* Effect.all([ + * Stream.runCollect(left), + * Stream.runCollect(right) + * ], { concurrency: "unbounded" }) + * + * yield* Console.log(values) + * }) + * ) + * + * Effect.runPromise(program) + * // Output: [[1, 2, 3], [1, 2, 3]] + * ``` + * + * @category Broadcast + * @since 4.0.0 + */ + (self: Stream, options: { + readonly n: N; + readonly capacity: "unbounded"; + readonly replay?: number | undefined; + } | { + readonly capacity: number; + readonly n: N; + readonly strategy?: "sliding" | "dropping" | "suspend" | undefined; + readonly replay?: number | undefined; + }): Effect.Effect>, never, Scope.Scope | R>; +}; /** * Creates a PubSub-backed stream that multicasts the source to all subscribers. * + * **Details** + * * The returned stream is scoped and uses the provided PubSub capacity and replay settings. * - * @example + * **Example** (Broadcasting a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10331,16 +11697,19 @@ export declare const aggregateWithin: { * // Output: [[1, 2, 3], [1, 2, 3]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 2.0.0 */ export declare const broadcast: { /** * Creates a PubSub-backed stream that multicasts the source to all subscribers. * + * **Details** + * * The returned stream is scoped and uses the provided PubSub capacity and replay settings. * - * @example + * **Example** (Broadcasting a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10364,8 +11733,8 @@ export declare const broadcast: { * // Output: [[1, 2, 3], [1, 2, 3]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 2.0.0 */ (options: { readonly capacity: "unbounded"; @@ -10378,9 +11747,12 @@ export declare const broadcast: { /** * Creates a PubSub-backed stream that multicasts the source to all subscribers. * + * **Details** + * * The returned stream is scoped and uses the provided PubSub capacity and replay settings. * - * @example + * **Example** (Broadcasting a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10404,8 +11776,8 @@ export declare const broadcast: { * // Output: [[1, 2, 3], [1, 2, 3]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 2.0.0 */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -10419,11 +11791,14 @@ export declare const broadcast: { /** * Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts. * + * **Details** + * * The upstream continues running while there is at least one consumer and is finalized after the last one exits. * If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from * the next element instead of restarting. * - * @example + * **Example** (Sharing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10444,18 +11819,21 @@ export declare const broadcast: { * // output: [[1], [1]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 3.8.0 */ export declare const share: { /** * Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts. * + * **Details** + * * The upstream continues running while there is at least one consumer and is finalized after the last one exits. * If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from * the next element instead of restarting. * - * @example + * **Example** (Sharing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10476,8 +11854,8 @@ export declare const share: { * // output: [[1], [1]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 3.8.0 */ (options: { readonly capacity: "unbounded"; @@ -10492,11 +11870,14 @@ export declare const share: { /** * Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts. * + * **Details** + * * The upstream continues running while there is at least one consumer and is finalized after the last one exits. * If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from * the next element instead of restarting. * - * @example + * **Example** (Sharing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10517,8 +11898,8 @@ export declare const share: { * // output: [[1], [1]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 3.8.0 */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -10534,10 +11915,13 @@ export declare const share: { /** * Pipes this stream through a channel that consumes and emits chunked elements. * + * **Details** + * * The channel receives `NonEmptyReadonlyArray` chunks and can transform both the * output elements and error type. * - * @example + * **Example** (Piping through a channel) + * * ```ts * import { Array, Channel, Console, Effect, Stream } from "effect" * @@ -10560,17 +11944,20 @@ export declare const share: { * // => [2, 4, 6] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export declare const pipeThroughChannel: { /** * Pipes this stream through a channel that consumes and emits chunked elements. * + * **Details** + * * The channel receives `NonEmptyReadonlyArray` chunks and can transform both the * output elements and error type. * - * @example + * **Example** (Piping through a channel) + * * ```ts * import { Array, Channel, Console, Effect, Stream } from "effect" * @@ -10593,17 +11980,20 @@ export declare const pipeThroughChannel: { * // => [2, 4, 6] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (channel: Channel.Channel, E2, unknown, Arr.NonEmptyReadonlyArray, E, unknown, R2>): (self: Stream) => Stream; /** * Pipes this stream through a channel that consumes and emits chunked elements. * + * **Details** + * * The channel receives `NonEmptyReadonlyArray` chunks and can transform both the * output elements and error type. * - * @example + * **Example** (Piping through a channel) + * * ```ts * import { Array, Channel, Console, Effect, Stream } from "effect" * @@ -10626,8 +12016,8 @@ export declare const pipeThroughChannel: { * // => [2, 4, 6] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (self: Stream, channel: Channel.Channel, E2, unknown, Arr.NonEmptyReadonlyArray, E, unknown, R2>): Stream; }; @@ -10635,123 +12025,120 @@ export declare const pipeThroughChannel: { * Pipes values through the provided channel while preserving this stream's * failures alongside any channel failures. * + * **Details** + * * Upstream failures are not passed to the channel, so the resulting stream can * fail with either the original stream error or the channel error. * - * @example + * **Example** (Piping through a channel with failures) + * * ```ts - * import type { Channel } from "effect" - * import { Console, Effect, Stream } from "effect" + * import { Array, Channel, Effect, Stream } from "effect" * - * declare const transformChannel: Channel.Channel< - * readonly [string, ...Array], - * "ChannelError", - * unknown, - * readonly [number, ...Array], - * "StreamError", - * unknown, - * never - * > + * type NumberChunk = readonly [number, ...Array] + * + * const stringifyChunks = Channel.identity().pipe( + * Channel.map((chunk) => Array.map(chunk, String)) + * ) * * Effect.runPromise(Effect.gen(function*() { * const result = yield* Stream.make(1, 2, 3).pipe( - * Stream.pipeThroughChannelOrFail(transformChannel), + * Stream.rechunk(2), + * Stream.pipeThroughChannelOrFail(stringifyChunks), * Stream.runCollect * ) * - * yield* Console.log(result) + * yield* Effect.sync(() => console.log(result)) * })) - * // Output: - * // ["1", "2", "3"] + * // [ "1", "2", "3" ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export declare const pipeThroughChannelOrFail: { /** * Pipes values through the provided channel while preserving this stream's * failures alongside any channel failures. * + * **Details** + * * Upstream failures are not passed to the channel, so the resulting stream can * fail with either the original stream error or the channel error. * - * @example + * **Example** (Piping through a channel with failures) + * * ```ts - * import type { Channel } from "effect" - * import { Console, Effect, Stream } from "effect" + * import { Array, Channel, Effect, Stream } from "effect" + * + * type NumberChunk = readonly [number, ...Array] * - * declare const transformChannel: Channel.Channel< - * readonly [string, ...Array], - * "ChannelError", - * unknown, - * readonly [number, ...Array], - * "StreamError", - * unknown, - * never - * > + * const stringifyChunks = Channel.identity().pipe( + * Channel.map((chunk) => Array.map(chunk, String)) + * ) * * Effect.runPromise(Effect.gen(function*() { * const result = yield* Stream.make(1, 2, 3).pipe( - * Stream.pipeThroughChannelOrFail(transformChannel), + * Stream.rechunk(2), + * Stream.pipeThroughChannelOrFail(stringifyChunks), * Stream.runCollect * ) * - * yield* Console.log(result) + * yield* Effect.sync(() => console.log(result)) * })) - * // Output: - * // ["1", "2", "3"] + * // [ "1", "2", "3" ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (channel: Channel.Channel, E2, unknown, Arr.NonEmptyReadonlyArray, E, unknown, R2>): (self: Stream) => Stream; /** * Pipes values through the provided channel while preserving this stream's * failures alongside any channel failures. * + * **Details** + * * Upstream failures are not passed to the channel, so the resulting stream can * fail with either the original stream error or the channel error. * - * @example + * **Example** (Piping through a channel with failures) + * * ```ts - * import type { Channel } from "effect" - * import { Console, Effect, Stream } from "effect" + * import { Array, Channel, Effect, Stream } from "effect" + * + * type NumberChunk = readonly [number, ...Array] * - * declare const transformChannel: Channel.Channel< - * readonly [string, ...Array], - * "ChannelError", - * unknown, - * readonly [number, ...Array], - * "StreamError", - * unknown, - * never - * > + * const stringifyChunks = Channel.identity().pipe( + * Channel.map((chunk) => Array.map(chunk, String)) + * ) * * Effect.runPromise(Effect.gen(function*() { * const result = yield* Stream.make(1, 2, 3).pipe( - * Stream.pipeThroughChannelOrFail(transformChannel), + * Stream.rechunk(2), + * Stream.pipeThroughChannelOrFail(stringifyChunks), * Stream.runCollect * ) * - * yield* Console.log(result) + * yield* Effect.sync(() => console.log(result)) * })) - * // Output: - * // ["1", "2", "3"] + * // [ "1", "2", "3" ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (self: Stream, channel: Channel.Channel, E2, unknown, Arr.NonEmptyReadonlyArray, E, unknown, R2>): Stream; }; /** * Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers. * + * **Details** + * * If the sink completes mid-chunk, the remaining elements become the output stream. * - * @example + * **Example** (Piping through a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10768,16 +12155,19 @@ export declare const pipeThroughChannelOrFail: { * //=> [ 3, 4 ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export declare const pipeThrough: { /** * Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers. * + * **Details** + * * If the sink completes mid-chunk, the remaining elements become the output stream. * - * @example + * **Example** (Piping through a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10794,16 +12184,19 @@ export declare const pipeThrough: { * //=> [ 3, 4 ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (sink: Sink.Sink): (self: Stream) => Stream; /** * Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers. * + * **Details** + * * If the sink completes mid-chunk, the remaining elements become the output stream. * - * @example + * **Example** (Piping through a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -10820,15 +12213,16 @@ export declare const pipeThrough: { * //=> [ 3, 4 ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ (self: Stream, sink: Sink.Sink): Stream; }; /** * Collects all elements into an array and emits it as a single element. * - * @example + * **Example** (Collecting values into a stream element) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10843,14 +12237,15 @@ export declare const pipeThrough: { * // [1, 2, 3] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 4.0.0 */ export declare const collect: (self: Stream) => Stream, E, R>; /** * Accumulates elements into a growing array, emitting the cumulative array for each input chunk. * - * @example + * **Example** (Accumulating stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10868,14 +12263,15 @@ export declare const collect: (self: Stream) => Stream { _id: 'Chunk', values: [ [ 1 ], [ 1, 2 ], [ 1, 2, 3 ] ] } * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export declare const accumulate: (self: Stream) => Stream, E, R>; /** * Emits only elements that differ from the previous one. * - * @example + * **Example** (Emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10892,14 +12288,15 @@ export declare const accumulate: (self: Stream) => Stream(self: Stream) => Stream; /** * Returns a stream that only emits elements that are not equal to the previously emitted element, as determined by the specified predicate. * - * @example + * **Example** (Emitting values that changed by equivalence) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10916,14 +12313,15 @@ export declare const changes: (self: Stream) => Stream(f: (x: A, y: A) => boolean): (self: Stream) => Stream; /** * Returns a stream that only emits elements that are not equal to the previously emitted element, as determined by the specified predicate. * - * @example + * **Example** (Emitting values that changed by equivalence) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10964,17 +12363,20 @@ export declare const changesWith: { * // ["A", "B"] * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ (self: Stream, f: (x: A, y: A) => boolean): Stream; }; /** * Emits only elements that differ from the previous element, using an effectful equality check. * + * **Details** + * * The predicate runs for each element after the first; returning `true` treats it as equal and skips it. * - * @example + * **Example** (Effectfully emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -10990,16 +12392,19 @@ export declare const changesWith: { * // { _id: "Chunk", values: [ 1, 2, 3 ] } * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ export declare const changesWithEffect: { /** * Emits only elements that differ from the previous element, using an effectful equality check. * + * **Details** + * * The predicate runs for each element after the first; returning `true` treats it as equal and skips it. * - * @example + * **Example** (Effectfully emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11015,16 +12420,19 @@ export declare const changesWithEffect: { * // { _id: "Chunk", values: [ 1, 2, 3 ] } * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ (f: (x: A, y: A) => Effect.Effect): (self: Stream) => Stream; /** * Emits only elements that differ from the previous element, using an effectful equality check. * + * **Details** + * * The predicate runs for each element after the first; returning `true` treats it as equal and skips it. * - * @example + * **Example** (Effectfully emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11040,15 +12448,16 @@ export declare const changesWithEffect: { * // { _id: "Chunk", values: [ 1, 2, 3 ] } * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ (self: Stream, f: (x: A, y: A) => Effect.Effect): Stream; }; /** * Decodes Uint8Array chunks into strings using TextDecoder with an optional encoding. * - * @example + * **Example** (Decoding Uint8Array chunks into strings using TextDecoder with an optional encoding) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11070,8 +12479,8 @@ export declare const changesWithEffect: { * // ["Hello", " World"] * ``` * + * @category encoding * @since 2.0.0 - * @category Encoding */ export declare const decodeText: | { readonly encoding?: string | undefined; @@ -11083,7 +12492,8 @@ export declare const decodeText: | { /** * Encodes a stream of strings into UTF-8 `Uint8Array` chunks. * - * @example + * **Example** (Encoding a stream of strings into UTF-8 Uint8Array chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11099,14 +12509,15 @@ export declare const decodeText: | { * // [[72, 101, 108, 108, 111], [32], [87, 111, 114, 108, 100]] * ``` * + * @category encoding * @since 2.0.0 - * @category Encoding */ export declare const encodeText: (self: Stream) => Stream; /** * Splits a stream of strings into lines, handling `\n`, `\r`, and `\r\n` delimiters across chunks. * - * @example + * **Example** (Splitting streamed text into lines) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11119,14 +12530,15 @@ export declare const encodeText: (self: Stream) => Stream(self: Stream) => Stream; /** * Inserts the provided element between emitted elements. * - * @example + * **Example** (Interspersing stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11140,14 +12552,15 @@ export declare const splitLines: (self: Stream) => Stream(element: A2): (self: Stream) => Stream; /** * Inserts the provided element between emitted elements. * - * @example + * **Example** (Interspersing stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11182,17 +12596,20 @@ export declare const intersperse: { * // [1, 0, 2, 0, 3, 0, 4] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, element: A2): Stream; }; /** - * Intersperse stream elements with a middle value, adding a start and end value. + * Adds a start value, middle value, and end value around stream elements. + * + * **Details** * * The start and end values are always emitted, even when the stream is empty. * - * @example + * **Example** (Interspersing stream affixes) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11209,16 +12626,19 @@ export declare const intersperse: { * // [ "[", "a", ",", "b", ",", "c", "]" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const intersperseAffixes: { /** - * Intersperse stream elements with a middle value, adding a start and end value. + * Adds a start value, middle value, and end value around stream elements. + * + * **Details** * * The start and end values are always emitted, even when the stream is empty. * - * @example + * **Example** (Interspersing stream affixes) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11235,8 +12655,8 @@ export declare const intersperseAffixes: { * // [ "[", "a", ",", "b", ",", "c", "]" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (options: { readonly start: A2; @@ -11244,11 +12664,14 @@ export declare const intersperseAffixes: { readonly end: A4; }): (self: Stream) => Stream; /** - * Intersperse stream elements with a middle value, adding a start and end value. + * Adds a start value, middle value, and end value around stream elements. + * + * **Details** * * The start and end values are always emitted, even when the stream is empty. * - * @example + * **Example** (Interspersing stream affixes) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11265,8 +12688,8 @@ export declare const intersperseAffixes: { * // [ "[", "a", ",", "b", ",", "c", "]" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Stream, options: { readonly start: A2; @@ -11279,7 +12702,8 @@ export declare const intersperseAffixes: { * each stream; when one ends, the remaining values from the other stream are * emitted. * - * @example + * **Example** (Interleaving streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11296,8 +12720,9 @@ export declare const intersperseAffixes: { * Effect.runPromise(program) * // [2, 5, 3, 6, 7] * ``` + * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const interleave: { /** @@ -11305,7 +12730,8 @@ export declare const interleave: { * each stream; when one ends, the remaining values from the other stream are * emitted. * - * @example + * **Example** (Interleaving streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11322,8 +12748,9 @@ export declare const interleave: { * Effect.runPromise(program) * // [2, 5, 3, 6, 7] * ``` + * + * @category merging * @since 2.0.0 - * @category Merging */ (that: Stream): (self: Stream) => Stream; /** @@ -11331,7 +12758,8 @@ export declare const interleave: { * each stream; when one ends, the remaining values from the other stream are * emitted. * - * @example + * **Example** (Interleaving streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11348,18 +12776,22 @@ export declare const interleave: { * Effect.runPromise(program) * // [2, 5, 3, 6, 7] * ``` + * + * @category merging * @since 2.0.0 - * @category Merging */ (self: Stream, that: Stream): Stream; }; /** * Interleaves two streams deterministically by following a boolean decider stream. * + * **Details** + * * The decider controls how many elements are pulled; if one side ends, pulls for * that side are ignored. * - * @example + * **Example** (Interleaving two streams deterministically by following a boolean decider stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11379,17 +12811,20 @@ export declare const interleave: { * // [ 1, 2, 4, 3, 5 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export declare const interleaveWith: { /** * Interleaves two streams deterministically by following a boolean decider stream. * + * **Details** + * * The decider controls how many elements are pulled; if one side ends, pulls for * that side are ignored. * - * @example + * **Example** (Interleaving two streams deterministically by following a boolean decider stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11409,17 +12844,20 @@ export declare const interleaveWith: { * // [ 1, 2, 4, 3, 5 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (that: Stream, decider: Stream): (self: Stream) => Stream; /** * Interleaves two streams deterministically by following a boolean decider stream. * + * **Details** + * * The decider controls how many elements are pulled; if one side ends, pulls for * that side are ignored. * - * @example + * **Example** (Interleaving two streams deterministically by following a boolean decider stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11439,8 +12877,8 @@ export declare const interleaveWith: { * // [ 1, 2, 4, 3, 5 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ (self: Stream, that: Stream, decider: Stream): Stream; }; @@ -11450,10 +12888,13 @@ export declare const interleaveWith: { * success will be discarded. This combinator will also interrupt any * in-progress element being pulled from upstream. * + * **Details** + * * If the effect completes with a failure before the stream completes, the * returned stream will emit that failure. * - * @example + * **Example** (Interrupting when an effect completes) + * * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11476,8 +12917,8 @@ export declare const interleaveWith: { * // => [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const interruptWhen: { /** @@ -11486,10 +12927,13 @@ export declare const interruptWhen: { * success will be discarded. This combinator will also interrupt any * in-progress element being pulled from upstream. * + * **Details** + * * If the effect completes with a failure before the stream completes, the * returned stream will emit that failure. * - * @example + * **Example** (Interrupting when an effect completes) + * * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11512,8 +12956,8 @@ export declare const interruptWhen: { * // => [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ (effect: Effect.Effect): (self: Stream) => Stream; /** @@ -11522,10 +12966,13 @@ export declare const interruptWhen: { * success will be discarded. This combinator will also interrupt any * in-progress element being pulled from upstream. * + * **Details** + * * If the effect completes with a failure before the stream completes, the * returned stream will emit that failure. * - * @example + * **Example** (Interrupting when an effect completes) + * * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11548,15 +12995,30 @@ export declare const interruptWhen: { * // => [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ (self: Stream, effect: Effect.Effect): Stream; }; /** - * Halts evaluation after the current element once the provided effect completes; the effect is forked, its success is discarded, failures fail the stream, and it does not interrupt an in-progress pull (use `interruptWhen` for that). + * Stops a stream after the current element when an effect completes. + * + * **When to use** + * + * Use to stop before the next pull after an external signal completes. + * + * **Details** + * + * The effect is forked, its success value is discarded, and its failure fails + * the stream. + * + * **Gotchas** + * + * This does not interrupt an in-progress pull. Use {@link interruptWhen} when + * the stream should be interrupted immediately. + * + * **Example** (Halting a stream after an effect completes) * - * @example * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11575,14 +13037,29 @@ export declare const interruptWhen: { * // [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const haltWhen: { /** - * Halts evaluation after the current element once the provided effect completes; the effect is forked, its success is discarded, failures fail the stream, and it does not interrupt an in-progress pull (use `interruptWhen` for that). + * Stops a stream after the current element when an effect completes. + * + * **When to use** + * + * Use to stop before the next pull after an external signal completes. + * + * **Details** + * + * The effect is forked, its success value is discarded, and its failure fails + * the stream. + * + * **Gotchas** + * + * This does not interrupt an in-progress pull. Use {@link interruptWhen} when + * the stream should be interrupted immediately. + * + * **Example** (Halting a stream after an effect completes) * - * @example * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11601,14 +13078,29 @@ export declare const haltWhen: { * // [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ (effect: Effect.Effect): (self: Stream) => Stream; /** - * Halts evaluation after the current element once the provided effect completes; the effect is forked, its success is discarded, failures fail the stream, and it does not interrupt an in-progress pull (use `interruptWhen` for that). + * Stops a stream after the current element when an effect completes. + * + * **When to use** + * + * Use to stop before the next pull after an external signal completes. + * + * **Details** + * + * The effect is forked, its success value is discarded, and its failure fails + * the stream. + * + * **Gotchas** + * + * This does not interrupt an in-progress pull. Use {@link interruptWhen} when + * the stream should be interrupted immediately. + * + * **Example** (Halting a stream after an effect completes) * - * @example * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -11627,15 +13119,16 @@ export declare const haltWhen: { * // [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ (self: Stream, effect: Effect.Effect): Stream; }; /** * Runs the provided finalizer when the stream exits, passing the exit value. * - * @example + * **Example** (Running a finalizer on exit) + * * ```ts * import { Console, Effect, Exit, Stream } from "effect" * @@ -11654,14 +13147,15 @@ export declare const haltWhen: { * // Stream completed successfully * ``` * - * @since 4.0.0 * @category Finalization + * @since 4.0.0 */ export declare const onExit: { /** * Runs the provided finalizer when the stream exits, passing the exit value. * - * @example + * **Example** (Running a finalizer on exit) + * * ```ts * import { Console, Effect, Exit, Stream } from "effect" * @@ -11680,14 +13174,15 @@ export declare const onExit: { * // Stream completed successfully * ``` * - * @since 4.0.0 * @category Finalization + * @since 4.0.0 */ (finalizer: (exit: Exit.Exit) => Effect.Effect): (self: Stream) => Stream; /** * Runs the provided finalizer when the stream exits, passing the exit value. * - * @example + * **Example** (Running a finalizer on exit) + * * ```ts * import { Console, Effect, Exit, Stream } from "effect" * @@ -11706,18 +13201,21 @@ export declare const onExit: { * // Stream completed successfully * ``` * - * @since 4.0.0 * @category Finalization + * @since 4.0.0 */ (self: Stream, finalizer: (exit: Exit.Exit) => Effect.Effect): Stream; }; /** * Runs the provided effect when the stream fails, passing the failure cause. * + * **Gotchas** + * * Note: Unlike `Effect.onError` there is no guarantee that the provided * effect will not be interrupted. * - * @example + * **Example** (Running an effect on errors) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -11735,17 +13233,20 @@ export declare const onExit: { * // Stream failed: boom * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const onError: { /** * Runs the provided effect when the stream fails, passing the failure cause. * + * **Gotchas** + * * Note: Unlike `Effect.onError` there is no guarantee that the provided * effect will not be interrupted. * - * @example + * **Example** (Running an effect on errors) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -11763,17 +13264,20 @@ export declare const onError: { * // Stream failed: boom * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (cleanup: (cause: Cause.Cause) => Effect.Effect): (self: Stream) => Stream; /** * Runs the provided effect when the stream fails, passing the failure cause. * + * **Gotchas** + * * Note: Unlike `Effect.onError` there is no guarantee that the provided * effect will not be interrupted. * - * @example + * **Example** (Running an effect on errors) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -11791,15 +13295,16 @@ export declare const onError: { * // Stream failed: boom * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Stream, cleanup: (cause: Cause.Cause) => Effect.Effect): Stream; }; /** * Runs the provided effect before this stream starts. * - * @example + * **Example** (Running an effect on start) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11818,14 +13323,15 @@ export declare const onError: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ export declare const onStart: { /** * Runs the provided effect before this stream starts. * - * @example + * **Example** (Running an effect on start) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11844,14 +13350,15 @@ export declare const onStart: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ (onStart: Effect.Effect): (self: Stream) => Stream; /** * Runs the provided effect before this stream starts. * - * @example + * **Example** (Running an effect on start) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11870,15 +13377,16 @@ export declare const onStart: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ (self: Stream, onStart: Effect.Effect): Stream; }; /** * Runs the provided effect with the first element emitted by the stream. * - * @example + * **Example** (Running an effect on the first value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11891,14 +13399,15 @@ export declare const onStart: { * // Output: first=1 * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export declare const onFirst: { /** * Runs the provided effect with the first element emitted by the stream. * - * @example + * **Example** (Running an effect on the first value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11911,14 +13420,15 @@ export declare const onFirst: { * // Output: first=1 * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (onFirst: (element: NoInfer) => Effect.Effect): (self: Stream) => Stream; /** * Runs the provided effect with the first element emitted by the stream. * - * @example + * **Example** (Running an effect on the first value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11931,15 +13441,16 @@ export declare const onFirst: { * // Output: first=1 * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (self: Stream, onFirst: (element: NoInfer) => Effect.Effect): Stream; }; /** * Runs the provided effect when the stream ends successfully. * - * @example + * **Example** (Running an effect on end) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11956,14 +13467,15 @@ export declare const onFirst: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ export declare const onEnd: { /** * Runs the provided effect when the stream ends successfully. * - * @example + * **Example** (Running an effect on end) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -11980,14 +13492,15 @@ export declare const onEnd: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ (onEnd: Effect.Effect): (self: Stream) => Stream; /** * Runs the provided effect when the stream ends successfully. * - * @example + * **Example** (Running an effect on end) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12004,15 +13517,16 @@ export declare const onEnd: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ (self: Stream, onEnd: Effect.Effect): Stream; }; /** * Executes the provided finalizer after this stream's finalizers run. * - * @example + * **Example** (Ensuring finalization) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12030,14 +13544,15 @@ export declare const onEnd: { * //=> [1, 2] * ``` * - * @since 4.0.0 * @category Finalization + * @since 2.0.0 */ export declare const ensuring: { /** * Executes the provided finalizer after this stream's finalizers run. * - * @example + * **Example** (Ensuring finalization) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12055,14 +13570,15 @@ export declare const ensuring: { * //=> [1, 2] * ``` * - * @since 4.0.0 * @category Finalization + * @since 2.0.0 */ (finalizer: Effect.Effect): (self: Stream) => Stream; /** * Executes the provided finalizer after this stream's finalizers run. * - * @example + * **Example** (Ensuring finalization) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12080,8 +13596,8 @@ export declare const ensuring: { * //=> [1, 2] * ``` * - * @since 4.0.0 * @category Finalization + * @since 2.0.0 */ (self: Stream, finalizer: Effect.Effect): Stream; }; @@ -12090,11 +13606,10 @@ export declare const ensuring: { * service requirements. Use `options.local` to build the layer every time; by * default, layers are shared between provide calls. * - * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`. + * **Example** (Providing stream requirements) * - * @example * ```ts - * import { Console, Effect, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, Layer, Stream } from "effect" * * class Env extends Context.Service()("Env") {} * @@ -12118,8 +13633,8 @@ export declare const ensuring: { * // ["Hello, Ada"] * ``` * + * @category services * @since 4.0.0 - * @category Services */ export declare const provide: { /** @@ -12127,11 +13642,10 @@ export declare const provide: { * service requirements. Use `options.local` to build the layer every time; by * default, layers are shared between provide calls. * - * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`. + * **Example** (Providing stream requirements) * - * @example * ```ts - * import { Console, Effect, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, Layer, Stream } from "effect" * * class Env extends Context.Service()("Env") {} * @@ -12155,8 +13669,8 @@ export declare const provide: { * // ["Hello, Ada"] * ``` * + * @category services * @since 4.0.0 - * @category Services */ (layer: Layer.Layer | Context.Context, options?: { readonly local?: boolean | undefined; @@ -12166,11 +13680,10 @@ export declare const provide: { * service requirements. Use `options.local` to build the layer every time; by * default, layers are shared between provide calls. * - * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`. + * **Example** (Providing stream requirements) * - * @example * ```ts - * import { Console, Effect, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, Layer, Stream } from "effect" * * class Env extends Context.Service()("Env") {} * @@ -12194,8 +13707,8 @@ export declare const provide: { * // ["Hello, Ada"] * ``` * + * @category services * @since 4.0.0 - * @category Services */ (self: Stream, layer: Layer.Layer | Context.Context, options?: { readonly local?: boolean | undefined; @@ -12204,9 +13717,10 @@ export declare const provide: { /** * Provides multiple services to the stream using a context. * - * @example + * **Example** (Providing multiple services to the stream using a context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Config extends Context.Service()("Config") {} * class Greeter extends Context.Service string }>()("Greeter") {} @@ -12232,16 +13746,17 @@ export declare const provide: { * // ["Hello!"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export declare const provideContext: { /** * Provides multiple services to the stream using a context. * - * @example + * **Example** (Providing multiple services to the stream using a context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Config extends Context.Service()("Config") {} * class Greeter extends Context.Service string }>()("Greeter") {} @@ -12267,16 +13782,17 @@ export declare const provideContext: { * // ["Hello!"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (context: Context.Context): (self: Stream) => Stream>; /** * Provides multiple services to the stream using a context. * - * @example + * **Example** (Providing multiple services to the stream using a context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Config extends Context.Service()("Config") {} * class Greeter extends Context.Service string }>()("Greeter") {} @@ -12302,8 +13818,8 @@ export declare const provideContext: { * // ["Hello!"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (self: Stream, context: Context.Context): Stream>; }; @@ -12311,9 +13827,10 @@ export declare const provideContext: { * Provides the stream with a single required service, eliminating that * requirement from its environment. * - * @example + * **Example** (Providing a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -12340,17 +13857,18 @@ export declare const provideContext: { * //=> ["Hello, Ada"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export declare const provideService: { /** * Provides the stream with a single required service, eliminating that * requirement from its environment. * - * @example + * **Example** (Providing a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -12377,17 +13895,18 @@ export declare const provideService: { * //=> ["Hello, Ada"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (key: Context.Key, service: NoInfer): (self: Stream) => Stream>; /** * Provides the stream with a single required service, eliminating that * requirement from its environment. * - * @example + * **Example** (Providing a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -12414,17 +13933,18 @@ export declare const provideService: { * //=> ["Hello, Ada"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (self: Stream, key: Context.Key, service: NoInfer): Stream>; }; /** * Provides a service to the stream using an effect, removing the requirement and adding the effect's error and environment. * - * @example + * **Example** (Providing a stream service effectfully) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class ApiConfig extends Context.Service()("ApiConfig") {} * @@ -12454,16 +13974,17 @@ export declare const provideService: { * // ["https://example.com"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export declare const provideServiceEffect: { /** * Provides a service to the stream using an effect, removing the requirement and adding the effect's error and environment. * - * @example + * **Example** (Providing a stream service effectfully) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class ApiConfig extends Context.Service()("ApiConfig") {} * @@ -12493,16 +14014,17 @@ export declare const provideServiceEffect: { * // ["https://example.com"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (key: Context.Key, service: Effect.Effect, ES, RS>): (self: Stream) => Stream | RS>; /** * Provides a service to the stream using an effect, removing the requirement and adding the effect's error and environment. * - * @example + * **Example** (Providing a stream service effectfully) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class ApiConfig extends Context.Service()("ApiConfig") {} * @@ -12532,8 +14054,8 @@ export declare const provideServiceEffect: { * // ["https://example.com"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (self: Stream, key: Context.Key, service: Effect.Effect, ES, RS>): Stream | RS>; }; @@ -12541,9 +14063,10 @@ export declare const provideServiceEffect: { * Transforms the stream's required services by mapping the current context * to a new one. * - * @example + * **Example** (Updating the stream context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Logger extends Context.Service()("Logger") {} * class Config extends Context.Service()("Config") {} @@ -12573,17 +14096,18 @@ export declare const provideServiceEffect: { * //=> [ "Hello World" ] * ``` * - * @since 2.0.0 - * @category Services + * @category services + * @since 4.0.0 */ export declare const updateContext: { /** * Transforms the stream's required services by mapping the current context * to a new one. * - * @example + * **Example** (Updating the stream context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Logger extends Context.Service()("Logger") {} * class Config extends Context.Service()("Config") {} @@ -12613,17 +14137,18 @@ export declare const updateContext: { * //=> [ "Hello World" ] * ``` * - * @since 2.0.0 - * @category Services + * @category services + * @since 4.0.0 */ (f: (context: Context.Context) => Context.Context): (self: Stream) => Stream; /** * Transforms the stream's required services by mapping the current context * to a new one. * - * @example + * **Example** (Updating the stream context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Logger extends Context.Service()("Logger") {} * class Config extends Context.Service()("Config") {} @@ -12653,17 +14178,18 @@ export declare const updateContext: { * //=> [ "Hello World" ] * ``` * - * @since 2.0.0 - * @category Services + * @category services + * @since 4.0.0 */ (self: Stream, f: (context: Context.Context) => Context.Context): Stream; }; /** * Updates a single service in the stream environment by applying a function. * - * @example + * **Example** (Updating a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Counter extends Context.Service()("Counter") {} * @@ -12680,16 +14206,17 @@ export declare const updateContext: { * // Output: Updated count: 1 * ``` * + * @category services * @since 2.0.0 - * @category Services */ export declare const updateService: { /** * Updates a single service in the stream environment by applying a function. * - * @example + * **Example** (Updating a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Counter extends Context.Service()("Counter") {} * @@ -12706,16 +14233,17 @@ export declare const updateService: { * // Output: Updated count: 1 * ``` * + * @category services * @since 2.0.0 - * @category Services */ (key: Context.Key, f: (service: NoInfer) => S): (self: Stream) => Stream; /** * Updates a single service in the stream environment by applying a function. * - * @example + * **Example** (Updating a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Counter extends Context.Service()("Counter") {} * @@ -12732,15 +14260,16 @@ export declare const updateService: { * // Output: Updated count: 1 * ``` * + * @category services * @since 2.0.0 - * @category Services */ (self: Stream, key: Context.Key, f: (service: NoInfer) => S): Stream; }; /** * Wraps the stream with a new span for tracing. * - * @example + * **Example** (Wrapping a stream in a span) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12755,14 +14284,15 @@ export declare const updateService: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Tracing + * @category tracing + * @since 2.0.0 */ export declare const withSpan: { /** * Wraps the stream with a new span for tracing. * - * @example + * **Example** (Wrapping a stream in a span) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12777,14 +14307,15 @@ export declare const withSpan: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Tracing + * @category tracing + * @since 2.0.0 */ (name: string, options?: SpanOptions): (self: Stream) => Stream>; /** * Wraps the stream with a new span for tracing. * - * @example + * **Example** (Wrapping a stream in a span) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12799,17 +14330,18 @@ export declare const withSpan: { * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Tracing + * @category tracing + * @since 2.0.0 */ (self: Stream, name: string, options?: SpanOptions): Stream>; }; /** * Provides the entry point for do-notation style stream composition. * - * @example + * **Example** (Starting stream do notation) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * const program = pipe( * Stream.Do, @@ -12826,8 +14358,8 @@ export declare const withSpan: { * //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export declare const Do: Stream<{}>; declare const let_: { @@ -12842,7 +14374,8 @@ export { /** * Adds a computed field to the current Do-notation record. * - * @example + * **Example** (Adding a computed field) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12860,14 +14393,15 @@ export { * // [{ x: 2, y: 6 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ let_ as let }; /** * Binds the result of a stream to a field in the do-notation record. * - * @example + * **Example** (Binding a stream value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12882,14 +14416,15 @@ let_ as let }; * // [{ a: 1, b: 2 }, { a: 2, b: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export declare const bind: { /** * Binds the result of a stream to a field in the do-notation record. * - * @example + * **Example** (Binding a stream value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12904,8 +14439,8 @@ export declare const bind: { * // [{ a: 1, b: 2 }, { a: 2, b: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ (tag: Exclude, f: (_: NoInfer) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -12916,7 +14451,8 @@ export declare const bind: { /** * Binds the result of a stream to a field in the do-notation record. * - * @example + * **Example** (Binding a stream value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12931,8 +14467,8 @@ export declare const bind: { * // [{ a: 1, b: 2 }, { a: 2, b: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ (self: Stream, tag: Exclude, f: (_: NoInfer) => Stream, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -12944,7 +14480,8 @@ export declare const bind: { /** * Binds an Effect-produced value into the do-notation record for each stream element. * - * @example + * **Example** (Binding an effect value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12962,14 +14499,15 @@ export declare const bind: { * // [{ value: 1, double: 2 }, { value: 2, double: 4 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export declare const bindEffect: { /** * Binds an Effect-produced value into the do-notation record for each stream element. * - * @example + * **Example** (Binding an effect value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -12987,8 +14525,8 @@ export declare const bindEffect: { * // [{ value: 1, double: 2 }, { value: 2, double: 4 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ (tag: Exclude, f: (_: NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -13000,7 +14538,8 @@ export declare const bindEffect: { /** * Binds an Effect-produced value into the do-notation record for each stream element. * - * @example + * **Example** (Binding an effect value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13018,8 +14557,8 @@ export declare const bindEffect: { * // [{ value: 1, double: 2 }, { value: 2, double: 4 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ (self: Stream, tag: Exclude, f: (_: NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -13032,7 +14571,8 @@ export declare const bindEffect: { /** * Maps each element into a record keyed by the provided name. * - * @example + * **Example** (Binding values to a record key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13044,14 +14584,15 @@ export declare const bindEffect: { * // [{ value: 1 }, { value: 2 }, { value: 3 }] * ``` * - * @category Do Notation - * @since 4.0.0 + * @category do notation + * @since 2.0.0 */ export declare const bindTo: { /** * Maps each element into a record keyed by the provided name. * - * @example + * **Example** (Binding values to a record key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13063,8 +14604,8 @@ export declare const bindTo: { * // [{ value: 1 }, { value: 2 }, { value: 3 }] * ``` * - * @category Do Notation - * @since 4.0.0 + * @category do notation + * @since 2.0.0 */ (name: N): (self: Stream) => Stream<{ [K in N]: A; @@ -13072,7 +14613,8 @@ export declare const bindTo: { /** * Maps each element into a record keyed by the provided name. * - * @example + * **Example** (Binding values to a record key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13084,8 +14626,8 @@ export declare const bindTo: { * // [{ value: 1 }, { value: 2 }, { value: 3 }] * ``` * - * @category Do Notation - * @since 4.0.0 + * @category do notation + * @since 2.0.0 */ (self: Stream, name: N): Stream<{ [K in N]: A; @@ -13094,7 +14636,8 @@ export declare const bindTo: { /** * Runs a stream with a sink and returns the sink result. * - * @example + * **Example** (Running a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -13104,14 +14647,15 @@ export declare const bindTo: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const run: { /** * Runs a stream with a sink and returns the sink result. * - * @example + * **Example** (Running a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -13121,14 +14665,15 @@ export declare const run: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (sink: Sink.Sink): (self: Stream) => Effect.Effect; /** * Runs a stream with a sink and returns the sink result. * - * @example + * **Example** (Running a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -13138,15 +14683,16 @@ export declare const run: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, sink: Sink.Sink): Effect.Effect; }; /** * Runs the stream and collects all elements into an array. * - * @example + * **Example** (Collecting stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13161,14 +14707,15 @@ export declare const run: { * // [1, 2, 3, 4, 5] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runCollect: (self: Stream) => Effect.Effect, E, R>; /** * Runs the stream and returns the number of elements emitted. * - * @example + * **Example** (Counting stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13183,14 +14730,15 @@ export declare const runCollect: (self: Stream) => Effect.Effe * // 5 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runCount: (self: Stream) => Effect.Effect; /** * Runs the stream and returns the numeric sum of its elements. * - * @example + * **Example** (Summing stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13203,14 +14751,15 @@ export declare const runCount: (self: Stream) => Effect.Effect * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runSum: (self: Stream) => Effect.Effect; /** * Runs the stream and folds elements using a pure reducer. * - * @example + * **Example** (Folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13227,14 +14776,15 @@ export declare const runSum: (self: Stream) => Effect.Effect * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runFold: { /** * Runs the stream and folds elements using a pure reducer. * - * @example + * **Example** (Folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13251,14 +14801,15 @@ export declare const runFold: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (initial: LazyArg, f: (acc: Z, a: A) => Z): (self: Stream) => Effect.Effect; /** * Runs the stream and folds elements using a pure reducer. * - * @example + * **Example** (Folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13275,15 +14826,21 @@ export declare const runFold: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, initial: LazyArg, f: (acc: Z, a: A) => Z): Effect.Effect; }; /** * Runs the stream and folds elements using an effectful reducer. * - * @example + * **When to use** + * + * Use when reducing stream elements needs Effects, services, or failures in the + * reducer. + * + * **Example** (Effectfully folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13300,14 +14857,20 @@ export declare const runFold: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runFoldEffect: { /** * Runs the stream and folds elements using an effectful reducer. * - * @example + * **When to use** + * + * Use when reducing stream elements needs Effects, services, or failures in the + * reducer. + * + * **Example** (Effectfully folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13324,14 +14887,20 @@ export declare const runFoldEffect: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (initial: LazyArg, f: (acc: Z, a: A) => Effect.Effect): (self: Stream) => Effect.Effect; /** * Runs the stream and folds elements using an effectful reducer. * - * @example + * **When to use** + * + * Use when reducing stream elements needs Effects, services, or failures in the + * reducer. + * + * **Example** (Effectfully folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13348,15 +14917,16 @@ export declare const runFoldEffect: { * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, initial: LazyArg, f: (acc: Z, a: A) => Effect.Effect): Effect.Effect; }; /** * Runs the stream and returns the first element as an `Option`. * - * @example + * **Example** (Getting the first stream value) + * * ```ts * import { Console, Effect, Option, Stream } from "effect" * @@ -13369,21 +14939,40 @@ export declare const runFoldEffect: { * // 1 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runHead: (self: Stream) => Effect.Effect, E, R>; /** * Runs the stream and returns the last element as an `Option`. * + * **When to use** + * + * Use to consume a finite stream when only the final emitted element matters. + * + * **Details** + * + * `Option.some` contains the last emitted element. `Option.none` means the + * stream completed without emitting. + * + * **Gotchas** + * + * The returned effect waits for the stream to complete before it can produce a + * value. + * + * @see {@link runHead} for consuming only the first emitted element + * @see {@link runCollect} for collecting every emitted element + * @see {@link runDrain} for consuming the stream while discarding emitted elements + * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runLast: (self: Stream) => Effect.Effect, E, R>; /** * Runs the provided effectful callback for each element of the stream. * - * @example + * **Example** (Running an effect for each value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13399,14 +14988,15 @@ export declare const runLast: (self: Stream) => Effect.Effect< * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runForEach: { /** * Runs the provided effectful callback for each element of the stream. * - * @example + * **Example** (Running an effect for each value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13422,14 +15012,15 @@ export declare const runForEach: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (f: (a: A) => Effect.Effect): (self: Stream) => Effect.Effect; /** * Runs the provided effectful callback for each element of the stream. * - * @example + * **Example** (Running an effect for each value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13445,8 +15036,8 @@ export declare const runForEach: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, f: (a: A) => Effect.Effect): Effect.Effect; }; @@ -13454,7 +15045,8 @@ export declare const runForEach: { * Runs the stream, applying the effectful predicate to each element and * stopping when it returns `false`. * - * @example + * **Example** (Running effects while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13475,15 +15067,16 @@ export declare const runForEach: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runForEachWhile: { /** * Runs the stream, applying the effectful predicate to each element and * stopping when it returns `false`. * - * @example + * **Example** (Running effects while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13504,15 +15097,16 @@ export declare const runForEachWhile: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (f: (a: A) => Effect.Effect): (self: Stream) => Effect.Effect; /** * Runs the stream, applying the effectful predicate to each element and * stopping when it returns `false`. * - * @example + * **Example** (Running effects while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13533,15 +15127,16 @@ export declare const runForEachWhile: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, f: (a: A) => Effect.Effect): Effect.Effect; }; /** * Consumes the stream in chunks, passing each non-empty array to the callback. * - * @example + * **Example** (Consuming stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13557,14 +15152,15 @@ export declare const runForEachWhile: { * // Processing chunk: 1, 2, 3, 4, 5 * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export declare const runForEachArray: { /** * Consumes the stream in chunks, passing each non-empty array to the callback. * - * @example + * **Example** (Consuming stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13580,14 +15176,15 @@ export declare const runForEachArray: { * // Processing chunk: 1, 2, 3, 4, 5 * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ (f: (a: Arr.NonEmptyReadonlyArray) => Effect.Effect): (self: Stream) => Effect.Effect; /** * Consumes the stream in chunks, passing each non-empty array to the callback. * - * @example + * **Example** (Consuming stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13603,15 +15200,16 @@ export declare const runForEachArray: { * // Processing chunk: 1, 2, 3, 4, 5 * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ (self: Stream, f: (a: Arr.NonEmptyReadonlyArray) => Effect.Effect): Effect.Effect; }; /** * Runs the stream for its effects, discarding emitted elements. * - * @example + * **Example** (Draining a stream run) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13629,17 +15227,20 @@ export declare const runForEachArray: { * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runDrain: (self: Stream) => Effect.Effect; /** * Returns a scoped pull for manually consuming the stream's output chunks. * + * **Details** + * * The pull fails with `Cause.Done` when the stream ends and with the stream * error on failure. * - * @example + * **Example** (Creating a scoped pull) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13657,14 +15258,15 @@ export declare const runDrain: (self: Stream) => Effect.Effect * // [1, 2, 3] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toPull: (self: Stream) => Effect.Effect, E>, never, R | Scope.Scope>; /** * Concatenates all emitted strings into a single string. * - * @example + * **Example** (Joining strings from a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13678,14 +15280,15 @@ export declare const toPull: (self: Stream) => Effect.Effect

(self: Stream) => Effect.Effect; /** * Concatenates the stream's `Uint8Array` chunks into a single `Uint8Array`. * - * @example + * **Example** (Joining Uint8Array chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13699,16 +15302,24 @@ export declare const mkString: (self: Stream) => Effect.Effe * // [1, 2, 3, 4] * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const mkUint8Array: (self: Stream) => Effect.Effect; /** * Converts the stream to a `ReadableStream` using the provided services. * + * **When to use** + * + * Use when bridging to Web Streams and you already have the `Context` required + * to run the stream outside an `Effect`. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting to a ReadableStream with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -13716,8 +15327,8 @@ export declare const mkUint8Array: (self: Stream) => Eff * const readableStream = Stream.toReadableStreamWith(stream, Context.empty()) * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export declare const toReadableStreamWith: ((context: Context.Context, options?: { readonly strategy?: QueuingStrategy | undefined; @@ -13727,9 +15338,12 @@ export declare const toReadableStreamWith: ((context: Context.Context /** * Converts a stream to a `ReadableStream`. * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting a stream to a ReadableStream) + * * ```ts * import { Stream } from "effect" * @@ -13737,16 +15351,19 @@ export declare const toReadableStreamWith: ((context: Context.Context * const reader = readableStream.getReader() * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toReadableStream: { /** * Converts a stream to a `ReadableStream`. * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting a stream to a ReadableStream) + * * ```ts * import { Stream } from "effect" * @@ -13754,8 +15371,8 @@ export declare const toReadableStream: { * const reader = readableStream.getReader() * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (options?: { readonly strategy?: QueuingStrategy | undefined; @@ -13763,9 +15380,12 @@ export declare const toReadableStream: { /** * Converts a stream to a `ReadableStream`. * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting a stream to a ReadableStream) + * * ```ts * import { Stream } from "effect" * @@ -13773,8 +15393,8 @@ export declare const toReadableStream: { * const reader = readableStream.getReader() * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, options?: { readonly strategy?: QueuingStrategy | undefined; @@ -13783,9 +15403,17 @@ export declare const toReadableStream: { /** * Creates an Effect that builds a ReadableStream from the stream. * + * **When to use** + * + * Use when bridging to Web Streams from inside an `Effect` so the required + * services can be captured from the current context. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Creating a ReadableStream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13799,16 +15427,24 @@ export declare const toReadableStream: { * Effect.runPromise(effect) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toReadableStreamEffect: { /** * Creates an Effect that builds a ReadableStream from the stream. * + * **When to use** + * + * Use when bridging to Web Streams from inside an `Effect` so the required + * services can be captured from the current context. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Creating a ReadableStream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13822,8 +15458,8 @@ export declare const toReadableStreamEffect: { * Effect.runPromise(effect) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (options?: { readonly strategy?: QueuingStrategy | undefined; @@ -13831,9 +15467,17 @@ export declare const toReadableStreamEffect: { /** * Creates an Effect that builds a ReadableStream from the stream. * + * **When to use** + * + * Use when bridging to Web Streams from inside an `Effect` so the required + * services can be captured from the current context. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Creating a ReadableStream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -13847,8 +15491,8 @@ export declare const toReadableStreamEffect: { * Effect.runPromise(effect) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, options?: { readonly strategy?: QueuingStrategy | undefined; @@ -13857,7 +15501,13 @@ export declare const toReadableStreamEffect: { /** * Converts the stream to an `AsyncIterable` using the provided services. * - * @example + * **When to use** + * + * Use when converting outside an Effect and you already have the `Context` + * needed to run the stream. + * + * **Example** (Converting to an AsyncIterable with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -13869,18 +15519,27 @@ export declare const toReadableStreamEffect: { * for await (const value of iterable) { * results.push(value) * } - * return results + * console.log(results) * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export declare const toAsyncIterableWith: { /** * Converts the stream to an `AsyncIterable` using the provided services. * - * @example + * **When to use** + * + * Use when converting outside an Effect and you already have the `Context` + * needed to run the stream. + * + * **Example** (Converting to an AsyncIterable with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -13892,18 +15551,27 @@ export declare const toAsyncIterableWith: { * for await (const value of iterable) { * results.push(value) * } - * return results + * console.log(results) * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ (context: Context.Context): (self: Stream) => AsyncIterable; /** * Converts the stream to an `AsyncIterable` using the provided services. * - * @example + * **When to use** + * + * Use when converting outside an Effect and you already have the `Context` + * needed to run the stream. + * + * **Example** (Converting to an AsyncIterable with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -13915,21 +15583,30 @@ export declare const toAsyncIterableWith: { * for await (const value of iterable) { * results.push(value) * } - * return results + * console.log(results) * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ (self: Stream, context: Context.Context): AsyncIterable; }; /** * Creates an effect that yields an `AsyncIterable` using the current services. * - * @example + * **When to use** + * + * Use when the `AsyncIterable` should be created inside Effect with the current + * context supplying the stream's services. + * + * **Example** (Creating an AsyncIterable effect) + * * ```ts - * import { Console, Effect, Stream } from "effect" + * import { Effect, Stream } from "effect" * * const stream = Stream.make(1, 2, 3) * @@ -13942,50 +15619,54 @@ export declare const toAsyncIterableWith: { * } * return collected * }) - * yield* Console.log(values) + * yield* Effect.sync(() => console.log(values)) * }) * * Effect.runPromise(program) - * //=> [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 3.15.0 */ export declare const toAsyncIterableEffect: (self: Stream) => Effect.Effect, never, R>; /** * Converts a stream to an `AsyncIterable` for `for await...of` consumption. * - * @example + * **Example** (Converting to an async iterable) + * * ```ts - * import { Effect, Stream } from "effect" + * import { Stream } from "effect" * * const stream = Stream.make(1, 2, 3) * - * const program = Effect.gen(function* () { + * const collect = async () => { * const iterable = Stream.toAsyncIterable(stream) - * const results = yield* Effect.promise(async () => { - * const values: Array = [] - * for await (const value of iterable) { - * values.push(value) - * } - * return values - * }) - * return results - * }) + * const values: Array = [] + * for await (const value of iterable) { + * values.push(value) + * } + * console.log(values) + * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 3.15.0 */ export declare const toAsyncIterable: (self: Stream) => AsyncIterable; /** * Runs the stream, publishing elements into the provided PubSub. * + * **Details** + * * `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends. * It only shuts down when set to `true`. * - * @example + * **Example** (Running a stream into a PubSub) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14007,17 +15688,20 @@ export declare const toAsyncIterable: (self: Stream) => AsyncIterabl * //=> 2 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runIntoPubSub: { /** * Runs the stream, publishing elements into the provided PubSub. * + * **Details** + * * `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends. * It only shuts down when set to `true`. * - * @example + * **Example** (Running a stream into a PubSub) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14039,8 +15723,8 @@ export declare const runIntoPubSub: { * //=> 2 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; @@ -14048,10 +15732,13 @@ export declare const runIntoPubSub: { /** * Runs the stream, publishing elements into the provided PubSub. * + * **Details** + * * `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends. * It only shuts down when set to `true`. * - * @example + * **Example** (Running a stream into a PubSub) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14073,20 +15760,23 @@ export declare const runIntoPubSub: { * //=> 2 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; } | undefined): Effect.Effect; }; /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of emitted values for concurrent consumption. + * + * **Details** * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * stream ends. By default this is `true`. * - * @example + * **Example** (Converting a stream to a PubSub for concurrent consumption) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14101,17 +15791,20 @@ export declare const runIntoPubSub: { * })) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toPubSub: { /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of emitted values for concurrent consumption. + * + * **Details** * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * stream ends. By default this is `true`. * - * @example + * **Example** (Converting a stream to a PubSub for concurrent consumption) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14126,8 +15819,8 @@ export declare const toPubSub: { * })) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -14140,12 +15833,15 @@ export declare const toPubSub: { readonly shutdownOnEnd?: boolean | undefined; }): (self: Stream) => Effect.Effect, never, R | Scope.Scope>; /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of emitted values for concurrent consumption. + * + * **Details** * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * stream ends. By default this is `true`. * - * @example + * **Example** (Converting a stream to a PubSub for concurrent consumption) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14160,8 +15856,8 @@ export declare const toPubSub: { * })) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -14175,11 +15871,14 @@ export declare const toPubSub: { }): Effect.Effect, never, R | Scope.Scope>; }; /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of `Take` values for concurrent consumption. + * + * **Details** * * `Take` values include the stream's end and failure signals. * - * @example + * **Example** (Converting to a PubSub of takes) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14196,16 +15895,19 @@ export declare const toPubSub: { * }) * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const toPubSubTake: { /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of `Take` values for concurrent consumption. + * + * **Details** * * `Take` values include the stream's end and failure signals. * - * @example + * **Example** (Converting to a PubSub of takes) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14222,8 +15924,8 @@ export declare const toPubSubTake: { * }) * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -14234,11 +15936,14 @@ export declare const toPubSubTake: { readonly replay?: number | undefined; }): (self: Stream) => Effect.Effect>, never, R | Scope.Scope>; /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of `Take` values for concurrent consumption. + * + * **Details** * * `Take` values include the stream's end and failure signals. * - * @example + * **Example** (Converting to a PubSub of takes) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -14255,8 +15960,8 @@ export declare const toPubSubTake: { * }) * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -14268,9 +15973,17 @@ export declare const toPubSubTake: { }): Effect.Effect>, never, R | Scope.Scope>; }; /** - * Converts a stream to a Queue for concurrent consumption. + * Creates a scoped dequeue that is fed by the stream for concurrent + * consumption. + * + * **Details** + * + * Elements are offered to the queue as the stream runs. Stream completion is + * signaled with `Cause.Done`, stream failures fail the queue, and the queue is + * shut down when the surrounding scope closes. + * + * **Example** (Converting a stream to a Queue for concurrent consumption) * - * @example * ```ts * import { Effect, Queue, Stream } from "effect" * @@ -14281,14 +15994,22 @@ export declare const toPubSubTake: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toQueue: { /** - * Converts a stream to a Queue for concurrent consumption. + * Creates a scoped dequeue that is fed by the stream for concurrent + * consumption. + * + * **Details** + * + * Elements are offered to the queue as the stream runs. Stream completion is + * signaled with `Cause.Done`, stream failures fail the queue, and the queue is + * shut down when the surrounding scope closes. + * + * **Example** (Converting a stream to a Queue for concurrent consumption) * - * @example * ```ts * import { Effect, Queue, Stream } from "effect" * @@ -14299,8 +16020,8 @@ export declare const toQueue: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -14309,9 +16030,17 @@ export declare const toQueue: { readonly strategy?: "dropping" | "sliding" | "suspend" | undefined; }): (self: Stream) => Effect.Effect, never, R | Scope.Scope>; /** - * Converts a stream to a Queue for concurrent consumption. + * Creates a scoped dequeue that is fed by the stream for concurrent + * consumption. + * + * **Details** + * + * Elements are offered to the queue as the stream runs. Stream completion is + * signaled with `Cause.Done`, stream failures fail the queue, and the queue is + * shut down when the surrounding scope closes. + * + * **Example** (Converting a stream to a Queue for concurrent consumption) * - * @example * ```ts * import { Effect, Queue, Stream } from "effect" * @@ -14322,8 +16051,8 @@ export declare const toQueue: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, options: { readonly capacity: "unbounded"; @@ -14336,7 +16065,8 @@ export declare const toQueue: { * Runs the stream, offering each element to the provided queue and ending it * with `Cause.Done` when the stream completes. * - * @example + * **Example** (Running a stream into a queue) + * * ```ts * import { Cause, Effect, Queue, Stream } from "effect" * @@ -14358,15 +16088,16 @@ export declare const toQueue: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const runIntoQueue: { /** * Runs the stream, offering each element to the provided queue and ending it * with `Cause.Done` when the stream completes. * - * @example + * **Example** (Running a stream into a queue) + * * ```ts * import { Cause, Effect, Queue, Stream } from "effect" * @@ -14388,15 +16119,16 @@ export declare const runIntoQueue: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (queue: Queue.Queue): (self: Stream) => Effect.Effect; /** * Runs the stream, offering each element to the provided queue and ending it * with `Cause.Done` when the stream completes. * - * @example + * **Example** (Running a stream into a queue) + * * ```ts * import { Cause, Effect, Queue, Stream } from "effect" * @@ -14418,8 +16150,8 @@ export declare const runIntoQueue: { * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ (self: Stream, queue: Queue.Queue): Effect.Effect; }; diff --git a/.opencode/node_modules/effect/dist/Stream.d.ts.map b/.opencode/node_modules/effect/dist/Stream.d.ts.map index 5c5a8b422f49236fcd5534d872b2cd8b4762cab9..d65b97df67f64072ecc0b3a6874b91c3b7885433 100644 --- a/.opencode/node_modules/effect/dist/Stream.d.ts.map +++ b/.opencode/node_modules/effect/dist/Stream.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../src/Stream.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,GAAG,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAM1C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,MAAM,MAAM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AE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;KACnE,GACA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;CAa3E,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,YAAY,EAAE;IACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;IAC1G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;CAIrB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stream.js b/.opencode/node_modules/effect/dist/Stream.js index 6608904757836524927c080f33d1c348e7b459e2..8b21d29f4c728c7e76dc47d96c10c3531e88f149 100644 --- a/.opencode/node_modules/effect/dist/Stream.js +++ b/.opencode/node_modules/effect/dist/Stream.js @@ -1,4 +1,13 @@ /** + * Describes effectful sources that emit values over time. + * + * A `Stream` can emit many `A` values, fail with `E`, and require + * services `R` while it is being consumed. Streams are useful for data that is + * pulled in steps, such as values from collections, queues, pubsubs, schedules, + * callbacks, async iterables, or platform streams. The APIs here cover the full + * stream lifecycle: create a stream, transform or combine it, control buffering + * and timing, handle failures, and finally consume it. + * * @since 2.0.0 */ // @effect-diagnostics returnEffectInGen:off @@ -23,6 +32,7 @@ import * as MutableHashMap from "./MutableHashMap.js"; import * as MutableList from "./MutableList.js"; import * as Option from "./Option.js"; import { hasProperty, isNotUndefined, isTagged } from "./Predicate.js"; +import * as PubSub from "./PubSub.js"; import * as Pull from "./Pull.js"; import * as Queue from "./Queue.js"; import * as RcMap from "./RcMap.js"; @@ -33,14 +43,25 @@ import * as Scope from "./Scope.js"; import * as Sink from "./Sink.js"; import { isString } from "./String.js"; /** + * Runtime identifier stored on `Stream` values and used by `isStream` to + * recognize them. + * + * **Details** + * + * This marker is part of the runtime representation of `Stream` values. Prefer + * `isStream` when narrowing unknown values. + * + * @see {@link isStream} for the public guard that checks this identifier + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export const TypeId = "~effect/Stream"; /** * Checks whether a value is a Stream. * - * @example + * **Example** (Checking whether a value is a Stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -57,14 +78,15 @@ export const TypeId = "~effect/Stream"; * Effect.runPromise(program) * ``` * - * @since 2.0.0 - * @category Guards + * @category guards + * @since 4.0.0 */ export const isStream = u => hasProperty(u, TypeId); /** * The default chunk size used by Stream constructors and combinators. * - * @example + * **Example** (Reading the default chunk size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -76,14 +98,15 @@ export const isStream = u => hasProperty(u, TypeId); * // Output: 4096 * ``` * - * @category Constants + * @category constants * @since 2.0.0 */ export const DefaultChunkSize = Channel.DefaultChunkSize; /** * Creates a stream from a array-emitting `Channel`. * - * @example + * **Example** (Creating a stream from an array-emitting channel) + * * ```ts * import { Channel, Console, Effect, Stream } from "effect" * @@ -97,15 +120,15 @@ export const DefaultChunkSize = Channel.DefaultChunkSize; * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromChannel = internal.fromChannel; /** - * Either emits the success value of this effect or terminates the stream - * with the failure value of this effect. + * Creates a stream from an effect. + * + * **Example** (Creating a stream from an effect) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -119,16 +142,17 @@ export const fromChannel = internal.fromChannel; * // Output: [ 42 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromEffect = effect => fromChannel(Channel.fromEffect(Effect.map(effect, Arr.of))); /** * Accesses a service from the context and emits it as a single element. * - * @example + * **Example** (Accessing a service as a stream) + * * ```ts - * import { Effect, Context, Stream } from "effect" + * import { Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -151,17 +175,23 @@ export const fromEffect = effect => fromChannel(Channel.fromEffect(Effect.map(ef * // Output: [ "Hello, World!" ] * ``` * + * @category context * @since 4.0.0 - * @category Context */ export const service = service => fromEffect(Effect.service(service)); /** * Optionally accesses a service from the context and emits the result as a * single element. * - * @example + * **When to use** + * + * Use when you need a stream that emits an optional service from the context + * without requiring that service to be present. + * + * **Example** (Accessing an optional service as a stream) + * * ```ts - * import { Effect, Option, Context, Stream } from "effect" + * import { Context, Effect, Option, Stream } from "effect" * * class Greeter extends Context.Service string @@ -189,14 +219,15 @@ export const service = service => fromEffect(Effect.service(service)); * // Output: [ "Hello, World!" ] * ``` * + * @category context * @since 4.0.0 - * @category Context */ export const serviceOption = service => fromEffect(Effect.serviceOption(service)); /** * Creates a stream that runs the effect and emits no elements. * - * @example + * **Example** (Draining an effect into a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -210,20 +241,15 @@ export const serviceOption = service => fromEffect(Effect.serviceOption(service) * // Output: Draining side effect * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromEffectDrain = effect => fromPull(Effect.succeed(Effect.flatMap(effect, () => Cause.done()))); /** * Creates a stream from an effect producing a value of type `A` which repeats forever. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an effect forever) * - * - `Stream.repeatEffect` - * - * @example * ```ts * import { Console, Effect, Random, Stream } from "effect" * @@ -239,21 +265,16 @@ export const fromEffectDrain = effect => fromPull(Effect.succeed(Effect.flatMap( * // Output: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromEffectRepeat = effect => fromPull(Effect.succeed(Effect.map(effect, Arr.of))); /** * Creates a stream from an effect producing a value of type `A`, which is * repeated using the specified schedule. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an effect with a schedule) * - * - `Stream.repeatEffectWithSchedule` - * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -270,8 +291,8 @@ export const fromEffectRepeat = effect => fromPull(Effect.succeed(Effect.map(eff * // Output: [ "ping", "ping", "ping" ] * ``` * - * @since 2.0.0 - * @category Constructors + * @category constructors + * @since 4.0.0 */ export const fromEffectSchedule = (effect, schedule) => fromPull(Effect.gen(function* () { const step = yield* Schedule.toStepWithMetadata(schedule); @@ -290,9 +311,11 @@ export const fromEffectSchedule = (effect, schedule) => fromPull(Effect.gen(func }); })); /** - * Creates a stream that emits void values spaced by the specified duration. + * Creates a stream that emits `void` immediately once, then emits another + * `void` after each specified interval. + * + * **Example** (Emitting ticks on an interval) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -308,8 +331,8 @@ export const fromEffectSchedule = (effect, schedule) => fromPull(Effect.gen(func * // Output: [ undefined, undefined, undefined ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const tick = interval => fromPull(Effect.sync(() => { let first = true; @@ -326,10 +349,13 @@ export const tick = interval => fromPull(Effect.sync(() => { /** * Creates a stream from a pull effect, such as one produced by `Stream.toPull`. * + * **Details** + * * A pull effect yields chunks on demand and completes when the upstream stream ends. * See `Stream.toPull` for a matching producer. * - * @example + * **Example** (Creating a stream from a pull effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -347,14 +373,15 @@ export const tick = interval => fromPull(Effect.sync(() => { * // Output: [1, 2, 3] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromPull = pull => fromChannel(Channel.fromPull(pull)); /** - * Derive a stream by transforming its pull effect. + * Derives a stream by transforming its pull effect. + * + * **Example** (Transforming a pull effect) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -371,17 +398,20 @@ export const fromPull = pull => fromChannel(Channel.fromPull(pull)); * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const transformPull = (self, f) => fromChannel(Channel.fromTransform((_, scope) => Effect.flatMap(Channel.toPullScoped(self.channel, scope), pull => f(pull, scope)))); /** * Transforms a stream by effectfully transforming its pull effect. * + * **Details** + * * A forked scope is also provided to the transformation function, which is * closed once the resulting stream has finished processing. * - * @example + * **Example** (Transforming a stream by effectfully transforming its pull effect) + * * ```ts * import { Console, Effect, Scope, Stream } from "effect" * @@ -406,14 +436,15 @@ export const transformPull = (self, f) => fromChannel(Channel.fromTransform((_, * // Releasing scope * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const transformPullBracket = (self, f) => fromChannel(Channel.fromTransformBracket((_, scope, forkedScope) => Effect.flatMap(Channel.toPullScoped(self.channel, scope), pull => f(pull, scope, forkedScope)))); /** * Creates a channel from a stream. * - * @example + * **Example** (Converting a stream to a channel) + * * ```ts * import { Channel, Console, Effect, Stream } from "effect" * @@ -428,30 +459,24 @@ export const transformPullBracket = (self, f) => fromChannel(Channel.fromTransfo * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const toChannel = stream => stream.channel; /** * Creates a stream from a callback that can emit values into a queue. * - * You can use the `Queue` with the apis from the `Queue` module to emit - * values to the stream or to signal the stream ending. + * **When to use** + * + * Use when you need callback-based code to emit stream values by offering to a + * `Queue`, or signal stream completion through the `Queue` module APIs. * * By default it uses an "unbounded" buffer size. * You can customize the buffer size and strategy by passing an object as the * second argument with the `bufferSize` and `strategy` fields. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Creating a stream from a callback that can emit values into a queue) * - * - `Stream.async` - * - `Stream.asyncEffect` - * - `Stream.asyncPush` - * - `Stream.asyncScoped` - * - * @example * ```ts * import { Console, Effect, Queue, Stream } from "effect" * @@ -475,14 +500,15 @@ export const toChannel = stream => stream.channel; * Effect.runPromise(program) * ``` * - * @since 2.0.0 - * @category Constructors + * @category constructors + * @since 4.0.0 */ export const callback = (f, options) => fromChannel(Channel.callbackArray(f, options)); /** * Creates an empty stream. * - * @example + * **Example** (Creating an empty stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -495,14 +521,15 @@ export const callback = (f, options) => fromChannel(Channel.callbackArray(f, opt * // [] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const empty = /*#__PURE__*/fromChannel(Channel.empty); /** * Creates a single-valued pure stream. * - * @example + * **Example** (Creating a single-valued pure stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -515,14 +542,15 @@ export const empty = /*#__PURE__*/fromChannel(Channel.empty); * // [ 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const succeed = value => fromChannel(Channel.succeed(Arr.of(value))); /** * Creates a stream from a sequence of values. * - * @example + * **Example** (Creating a stream from a sequence of values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -536,16 +564,19 @@ export const succeed = value => fromChannel(Channel.succeed(Arr.of(value))); * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const make = (...values) => fromArray(values); /** * Creates a stream that synchronously evaluates a function and emits the result as a single value. * + * **Details** + * * The function is evaluated each time the stream is run. * - * @example + * **Example** (Evaluating a value synchronously) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -558,16 +589,19 @@ export const make = (...values) => fromArray(values); * // Output: [ 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const sync = evaluate => fromChannel(Channel.sync(() => Arr.of(evaluate()))); /** * Creates a lazily constructed stream. * + * **Details** + * * The stream factory is evaluated each time the stream is run. * - * @example + * **Example** (Creating a lazily constructed stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -580,14 +614,15 @@ export const sync = evaluate => fromChannel(Channel.sync(() => Arr.of(evaluate() * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const suspend = stream => fromChannel(Channel.suspend(() => stream().channel)); /** * Terminates with the specified error. * - * @example + * **Example** (Failing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -601,14 +636,15 @@ export const suspend = stream => fromChannel(Channel.suspend(() => stream().chan * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fail = error => fromChannel(Channel.fail(error)); /** * Terminates with the specified lazily evaluated error. * - * @example + * **Example** (Failing a stream lazily) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -624,14 +660,15 @@ export const fail = error => fromChannel(Channel.fail(error)); * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Uh oh!' } } * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const failSync = evaluate => fromChannel(Channel.failSync(evaluate)); /** * Creates a stream that fails with the specified `Cause`. * - * @example + * **Example** (Failing with a cause) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -648,14 +685,15 @@ export const failSync = evaluate => fromChannel(Channel.failSync(evaluate)); * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const failCause = cause => fromChannel(Channel.failCause(cause)); /** * The stream that dies with the specified defect. * - * @example + * **Example** (Dying with a defect) + * * ```ts * import { Cause, Console, Effect, Exit, Stream } from "effect" * @@ -679,14 +717,15 @@ export const failCause = cause => fromChannel(Channel.failCause(cause)); * // Output: Exit.Failure(Error: Boom) * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const die = defect => fromChannel(Channel.die(defect)); /** * The stream that always fails with the specified lazily evaluated `Cause`. * - * @example + * **Example** (Failing with a lazy cause) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -704,16 +743,19 @@ export const die = defect => fromChannel(Channel.die(defect)); * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Connection timeout after retries' } } * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const failCauseSync = evaluate => fromChannel(Channel.failCauseSync(evaluate)); /** * Creates a stream that consumes values from an iterator. * + * **Details** + * * The `maxChunkSize` parameter controls how many values are pulled per chunk. * - * @example + * **Example** (Consuming values from an iterator) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -734,18 +776,19 @@ export const failCauseSync = evaluate => fromChannel(Channel.failCauseSync(evalu * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromIteratorSucceed = (iterator, maxChunkSize) => fromChannel(Channel.fromIteratorArray(() => iterator, maxChunkSize)); /** * Creates a new `Stream` from an iterable collection of values. * - * **Options** + * **Details** * * - `chunkSize`: Maximum number of values emitted per chunk. * - * @example + * **Example** (Creating a stream from an iterable) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -761,16 +804,22 @@ export const fromIteratorSucceed = (iterator, maxChunkSize) => fromChannel(Chann * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromIterable = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray(iterable) : fromChannel(Channel.fromIterableArray(iterable, options?.chunkSize)); /** * Creates a stream from an effect producing an iterable of values. * - * @example + * **When to use** + * + * Use when the iterable must be acquired from an Effect before the stream emits, + * and acquisition services or failures should be part of the stream. + * + * **Example** (Creating a stream from an iterable effect) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class UserRepo extends Context.Service> @@ -796,20 +845,15 @@ export const fromIterable = (iterable, options) => Array.isArray(iterable) && op * // Output: [ "user1", "user2" ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromIterableEffect = iterable => unwrap(Effect.map(iterable, fromIterable)); /** * Creates a stream by repeatedly running an effect that yields an iterable of values. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Repeating an iterable effect) * - * - `Stream.repeatEffectChunk` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -825,20 +869,15 @@ export const fromIterableEffect = iterable => unwrap(Effect.map(iterable, fromIt * // Output: [ 1, 2, 1, 2, 1 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromIterableEffectRepeat = iterable => flatMap(fromEffectRepeat(iterable), fromIterable); /** * Creates a stream from an array of values. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Creating a stream from an array of values) * - * - `Stream.fromChunk` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -852,14 +891,20 @@ export const fromIterableEffectRepeat = iterable => flatMap(fromEffectRepeat(ite * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromArray = array => Arr.isReadonlyArrayNonEmpty(array) ? fromChannel(Channel.succeed(array)) : empty; /** * Creates a stream from an effect that produces an array of values. * - * @example + * **When to use** + * + * Use when the array must be acquired from an Effect before the stream emits, + * and acquisition services or failures should be part of the stream. + * + * **Example** (Creating a stream from an effect that produces an array of values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -873,20 +918,15 @@ export const fromArray = array => Arr.isReadonlyArrayNonEmpty(array) ? fromChann * // Output: [ "Ada", "Grace" ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromArrayEffect = effect => unwrap(Effect.map(effect, fromArray)); /** * Creates a stream from an arbitrary number of arrays. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.fromChunks` + * **Example** (Creating a stream from an arbitrary number of arrays) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -900,19 +940,20 @@ export const fromArrayEffect = effect => unwrap(Effect.map(effect, fromArray)); * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromArrays = (...arrays) => fromChannel(Channel.fromArray(Arr.filter(arrays, Arr.isReadonlyArrayNonEmpty))); /** - * Creates a stream from a queue of values. + * Creates a stream that pulls values from a `Queue.Dequeue`. * - * **Options** + * **Details** * - * - `maxChunkSize`: The maximum number of queued elements to put in one chunk in the stream - * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`) + * The stream emits non-empty batches of queued values and ends when the queue + * fails with `Cause.Done`; other queue failures are propagated. + * + * **Example** (Creating a stream from a queue of values) * - * @example * ```ts * import { Console, Effect, Queue, Stream } from "effect" * @@ -932,14 +973,15 @@ export const fromArrays = (...arrays) => fromChannel(Channel.fromArray(Arr.filte * // Output: [ 1, 2, 3 ] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const fromQueue = queue => fromChannel(Channel.fromQueueArray(queue)); /** * Creates a stream from a subscription to a `PubSub`. * - * @example + * **Example** (Creating a stream from a subscription to a PubSub) + * * ```ts * import { Console, Effect, Fiber, PubSub, Stream } from "effect" * @@ -964,16 +1006,19 @@ export const fromQueue = queue => fromChannel(Channel.fromQueueArray(queue)); * // Output: [ 1, 2, 3 ] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const fromPubSub = pubsub => fromChannel(Channel.fromPubSubArray(pubsub)); /** * Creates a stream from a PubSub of `Take` values. * + * **Details** + * * `Take` values include end and failure signals. * - * @example + * **Example** (Creating a stream from PubSub takes) + * * ```ts * import { Console, Effect, Exit, PubSub, Stream, Take } from "effect" * @@ -994,16 +1039,21 @@ export const fromPubSub = pubsub => fromChannel(Channel.fromPubSubArray(pubsub)) * // Output: [ 1, 2 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromPubSubTake = pubsub => fromChannel(Channel.fromPubSubTake(pubsub)); /** - * Creates a stream from a `ReadableStream`. + * Creates a stream from a lazily supplied Web `ReadableStream`. * - * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. + * **Details** + * + * The stream reads from a `ReadableStreamDefaultReader`, maps read failures + * with `onError`, and closes the reader when the stream finalizes. By default + * the reader is canceled; set `releaseLockOnEnd` to release the lock instead. + * + * **Example** (Creating a stream from a ReadableStream) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -1031,12 +1081,12 @@ export const fromPubSubTake = pubsub => fromChannel(Channel.fromPubSubTake(pubsu * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromReadableStream = options => fromChannel(Channel.fromTransform(Effect.fnUntraced(function* (_, scope) { const reader = options.evaluate().getReader(); - yield* Scope.addFinalizer(scope, options.releaseLockOnEnd ? Effect.sync(() => reader.releaseLock()) : Effect.promise(() => reader.cancel())); + yield* Scope.addFinalizer(scope, options.releaseLockOnEnd ? Effect.sync(() => reader.releaseLock()) : Effect.promise(() => reader.cancel().catch(constVoid))); return Effect.flatMap(Effect.tryPromise({ try: () => reader.read(), catch: reason => options.onError(reason) @@ -1048,9 +1098,10 @@ export const fromReadableStream = options => fromChannel(Channel.fromTransform(E /** * Creates a stream from an AsyncIterable. * - * @example + * **Example** (Creating a stream from an AsyncIterable) + * * ```ts - * import { Console, Data, Effect, Stream } from "effect" + * import { Data, Effect, Stream } from "effect" * * class StreamError extends Data.TaggedError("StreamError")<{ readonly cause: unknown }> {} * @@ -1060,25 +1111,25 @@ export const fromReadableStream = options => fromChannel(Channel.fromTransform(E * yield 3 * })() * - * const program = Effect.gen(function*() { + * Effect.runPromise(Effect.gen(function*() { * const stream = Stream.fromAsyncIterable(iterable, (cause) => new StreamError({ cause })) * const values = yield* Stream.runCollect(stream) - * yield* Console.log(values) - * }) + * yield* Effect.sync(() => console.log(values)) + * })) * - * Effect.runPromise(program) - * // Output: [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromAsyncIterable = (iterable, onError) => fromChannel(Channel.fromAsyncIterableArray(iterable, onError)); /** * Creates a stream that emits each output of a schedule that does not require input, * for as long as the schedule continues. * - * @example + * **Example** (Creating a stream from a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -1095,17 +1146,21 @@ export const fromAsyncIterable = (iterable, onError) => fromChannel(Channel.from * // Output: [ 0, 1, 2 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const fromSchedule = schedule => fromPull(Effect.map(Schedule.toStepWithSleep(schedule), step => Pull.catchDone(Effect.map(step(void 0), Arr.of), () => Cause.done()))); /** * Creates a stream from a PubSub subscription. * - * Use `PubSub.subscribe` to create the subscription and `Stream.take` or - * cancellation to control how many values are consumed. + * **When to use** + * + * Use when you already have a `PubSub.Subscription` and want to expose its + * messages as a `Stream`, with `Stream.take` or cancellation controlling how + * many values are consumed. + * + * **Example** (Creating a stream from a PubSub subscription) * - * @example * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -1125,33 +1180,42 @@ export const fromSchedule = schedule => fromPull(Effect.map(Schedule.toStepWithS * // Output: [ 1, 2 ] * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromSubscription = pubsub => fromChannel(Channel.fromSubscriptionArray(pubsub)); /** * Creates a stream from an event listener. * - * @example + * **Example** (Creating a stream from an event listener) + * * ```ts - * import { Console, Effect, Stream } from "effect" + * import { Effect, Stream } from "effect" * - * declare const target: Stream.EventListener + * class NumberTarget implements Stream.EventListener { + * addEventListener(event: string, f: (event: number) => void) { + * if (event === "data") { + * f(1) + * f(2) + * f(3) + * } + * } + * removeEventListener(_event: string, _f: (event: number) => void) {} + * } * - * const program = Effect.gen(function*() { - * const stream = Stream.fromEventListener(target, "data").pipe( + * Effect.runPromise(Effect.gen(function*() { + * const stream = Stream.fromEventListener(new NumberTarget(), "data").pipe( * Stream.take(3) * ) * const values = yield* Stream.runCollect(stream) - * yield* Console.log(values) - * }) + * yield* Effect.sync(() => console.log(values)) + * })) * - * Effect.runPromise(program) - * // Output: [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * + * @category constructors * @since 3.1.0 - * @category Constructors */ export const fromEventListener = (target, type, options) => callback(queue => { function emit(event) { @@ -1162,9 +1226,16 @@ export const fromEventListener = (target, type, options) => callback(queue => { bufferSize: typeof options === "object" ? options.bufferSize : undefined }); /** - * Creates a stream by peeling off successive layers of a state value. + * Creates a stream by repeatedly applying an effectful step function to a + * state. + * + * **Details** + * + * Each `readonly [value, nextState]` result emits `value` and continues with + * `nextState`; returning `undefined` ends the stream. + * + * **Example** (Unfolding stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1178,8 +1249,8 @@ export const fromEventListener = (target, type, options) => callback(queue => { * // Output: [ 1, 2, 3, 4, 5 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const unfold = (s, f) => fromPull(Effect.sync(() => { let state = s; @@ -1190,14 +1261,22 @@ export const unfold = (s, f) => fromPull(Effect.sync(() => { }); })); /** - * Like `Stream.unfold`, but allows the emission of values to end one step further - * than the unfolding of the state. This is useful for embedding paginated APIs, - * hence the name. + * Creates a stream by repeatedly evaluating an effectful page function. + * + * **When to use** + * + * Use to consume paginated APIs where each step returns a batch of values + * together with an optional next state. + * + * **Details** + * + * This is similar to {@link unfold}, but each step can emit zero or more values + * and independently decide whether another state should be requested. + * + * **Example** (Paginating stream state) * - * @example * ```ts - * import { Console, Effect, Stream } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Stream } from "effect" * * const stream = Stream.paginate(0, (n: number) => * Effect.succeed( @@ -1211,8 +1290,8 @@ export const unfold = (s, f) => fromPull(Effect.sync(() => { * // Output: [ 0, 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const paginate = (s, f) => fromPull(Effect.sync(() => { let state = s; @@ -1233,7 +1312,8 @@ export const paginate = (s, f) => fromPull(Effect.sync(() => { /** * Creates an infinite stream by repeatedly applying a function to a seed value. * - * @example + * **Example** (Iterating from a seed value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1248,17 +1328,20 @@ export const paginate = (s, f) => fromPull(Effect.sync(() => { * // Output: [ 1, 2, 3 ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const iterate = (value, next) => unfold(value, a => Effect.succeed([a, next(a)])); /** * Constructs a stream from a range of integers, including both endpoints. * + * **Details** + * * If the provided `min` is greater than `max`, the stream will not emit any * values. * - * @example + * **Example** (Creating a numeric range) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1270,8 +1353,9 @@ export const iterate = (value, next) => unfold(value, a => Effect.succeed([a, ne * Effect.runPromise(program) * // Output: [ 1, 2, 3, 4, 5 ] * ``` - * @since 4.0.0 - * @category Constructors + * + * @category constructors + * @since 2.0.0 */ export const range = (min, max, chunkSize = Channel.DefaultChunkSize) => min > max ? empty : fromPull(Effect.sync(() => { let start = min; @@ -1292,7 +1376,8 @@ export const range = (min, max, chunkSize = Channel.DefaultChunkSize) => min > m /** * The stream that never produces any value or fails with any error. * - * @example + * **Example** (Creating a never-ending stream) + * * ```ts * import { Effect, Stream } from "effect" * @@ -1305,14 +1390,15 @@ export const range = (min, max, chunkSize = Channel.DefaultChunkSize) => min > m * // [] * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const never = /*#__PURE__*/fromChannel(Channel.never); /** * Creates a stream produced from an `Effect`. * - * @example + * **Example** (Unwrapping a stream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1327,15 +1413,16 @@ export const never = /*#__PURE__*/fromChannel(Channel.never); * // [1, 2, 3] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const unwrap = effect => fromChannel(Channel.unwrap(Effect.map(effect, toChannel))); /** * Runs a stream that requires `Scope` in a managed scope, ensuring its * finalizers are run when the stream completes. * - * @example + * **Example** (Scoping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1354,14 +1441,15 @@ export const unwrap = effect => fromChannel(Channel.unwrap(Effect.map(effect, to * // [ "resource" ] * ``` * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const scoped = self => fromChannel(Channel.scoped(self.channel)); /** * Transforms the elements of this stream using the supplied function. * - * @example + * **Example** (Mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1374,8 +1462,8 @@ export const scoped = self => fromChannel(Channel.scoped(self.channel)); * // [ 1, 3, 5 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const map = /*#__PURE__*/dual(2, (self, f) => suspend(() => { let i = 0; @@ -1384,7 +1472,8 @@ export const map = /*#__PURE__*/dual(2, (self, f) => suspend(() => { /** * Maps both the failure and success channels of a stream. * - * @example + * **Example** (Mapping both the failure and success channels of a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1413,20 +1502,15 @@ export const map = /*#__PURE__*/dual(2, (self, f) => suspend(() => { * // Output: [ "error: boom" ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const mapBoth = /*#__PURE__*/dual(2, (self, options) => self.pipe(map(options.onSuccess), mapError(options.onFailure))); /** * Transforms each emitted chunk using the provided function, which receives the chunk and its index. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Mapping stream chunks) * - * - `Stream.mapChunks` - * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1443,14 +1527,20 @@ export const mapBoth = /*#__PURE__*/dual(2, (self, options) => self.pipe(map(opt * // Output: [ 1, 2, 4, 5 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export const mapArray = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.map(self.channel, f))); /** * Maps over elements of the stream with the specified effectful function. * - * @example + * **When to use** + * + * Use when each stream element transformation needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Example** (Effectfully mapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1478,14 +1568,20 @@ export const mapArray = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.ma * // [2, 4, 6] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const mapEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => self.channel.pipe(Channel.flattenArray, Channel.mapEffect(f, options), Channel.map(Arr.of), fromChannel)); /** * Flattens a stream of `Effect` values into a stream of their results. * - * @example + * **When to use** + * + * Use when stream elements already are effects and their successes should become + * stream elements while their failures enter the stream error channel. + * + * **Example** (Flattening a stream of Effect values into a stream of their results) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1500,20 +1596,20 @@ export const mapEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, * // Output: [1, 2, 3] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const flattenEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => mapEffect(self, identity, options)); /** - * Effectfully maps over non-empty array chunks emitted by the stream. + * Maps over non-empty array chunks emitted by the stream effectfully. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when transformation needs to see and replace each non-empty emitted chunk + * effectfully instead of mapping individual stream elements. * - * - `Stream.mapChunksEffect` + * **Example** (Effectfully mapping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1532,22 +1628,19 @@ export const flattenEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, * // Output: [1, 2, 13, 14] * ``` * + * @category mapping * @since 4.0.0 - * @category Mapping */ export const mapArrayEffect = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.mapEffect(self.channel, f))); /** * Lifts failures and successes into a `Result`, yielding a stream that cannot fail. * - * The stream ends after the first failure, emitting a `Result.fail` value. - * - * **Previously Known As:** + * **Details** * - * This API replaces the following from Effect 3.x: + * The stream ends after the first failure, emitting a `Result.fail` value. * - * - `Stream.either` + * **Example** (Converting failures to results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -1568,14 +1661,15 @@ export const mapArrayEffect = /*#__PURE__*/dual(2, (self, f) => fromChannel(Chan * // Output: [ "success: 1", "success: 2", "failure: boom" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const result = self => self.pipe(map(Result.succeed), catch_(e => succeed(Result.fail(e)))); /** * Runs the provided effect for each element while preserving the elements. * - * @example + * **Example** (Tapping stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1601,14 +1695,15 @@ export const result = self => self.pipe(map(Result.succeed), catch_(e => succeed * // [ 2, 4, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => mapEffect(self, a => Effect.as(f(a), a), options)); /** * Returns a stream that effectfully "peeks" at elements and failures. * - * @example + * **Example** (Tapping values and errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1633,17 +1728,17 @@ export const tap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, option * // [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tapBoth = /*#__PURE__*/dual(2, (self, options) => self.pipe(tapError(options.onError), tap(options.onElement, { concurrency: options.concurrency }))); /** - * Sends all elements emitted by this stream to the specified sink in addition - * to emitting them. + * Runs a sink for all stream elements while still emitting them downstream. + * + * **Example** (Tapping values with a sink) * - * @example * ```ts * import { Console, Effect, Ref, Sink, Stream } from "effect" * @@ -1666,8 +1761,8 @@ export const tapBoth = /*#__PURE__*/dual(2, (self, options) => self.pipe(tapErro * // Output: [1, 2, 3] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tapSink = /*#__PURE__*/dual(2, (self, sink) => transformPullBracket(self, Effect.fnUntraced(function* (pull, _, scope) { const upstreamLatch = Latch.makeUnsafe(); @@ -1713,9 +1808,17 @@ export const tapSink = /*#__PURE__*/dual(2, (self, sink) => transformPullBracket }); }))); /** - * Maps each element to a stream and concatenates the results in order. + * Maps each element to a stream and flattens the resulting streams. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * input order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (FlatMapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1731,15 +1834,16 @@ export const tapSink = /*#__PURE__*/dual(2, (self, sink) => transformPullBracket * // Output: [ 1, 2, 2, 4, 3, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const flatMap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => self.channel.pipe(Channel.flattenArray, Channel.flatMap(a => f(a).channel, options), fromChannel)); /** * Switches to the latest stream produced by the mapping function, interrupting * the previous stream when a new element arrives. * - * @example + * **Example** (Switching to the latest stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1755,15 +1859,22 @@ export const flatMap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, op * }) * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export const switchMap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => self.channel.pipe(Channel.flattenArray, Channel.switchMap(a => f(a).channel, options), fromChannel)); /** - * Flattens a stream of streams into a single stream by concatenating the - * inner streams in strict order. + * Flattens a stream of streams into a single stream. + * + * **Details** + * + * With the default sequential concurrency, inner streams are concatenated in + * strict order. When `concurrency` is greater than `1` or `"unbounded"`, + * multiple inner streams may run at the same time and their outputs are merged + * as they arrive. + * + * **Example** (Flattening nested streams) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1782,20 +1893,15 @@ export const switchMap = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const flatten = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => flatMap(self, identity, options)); /** * Flattens a stream of non-empty arrays into a stream of elements. * - * **Previously Known As** + * **Example** (Flattening a stream of non-empty arrays into a stream of elements) * - * This API replaces the following from Effect 3.x: - * - * - `Stream.flattenChunks` - * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -1810,14 +1916,15 @@ export const flatten = /*#__PURE__*/dual(args => isStream(args[0]), (self, optio * // Output: [ 1, 2, 3 ] * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export const flattenArray = self => fromChannel(Channel.flattenArray(self.channel)); /** * Converts this stream to one that runs its effects but emits no elements. * - * @example + * **Example** (Draining stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1830,15 +1937,16 @@ export const flattenArray = self => fromChannel(Channel.flattenArray(self.channe * // Output: [] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const drain = self => fromChannel(Channel.drain(self.channel)); /** * Runs the provided stream in the background while this stream runs, interrupting it * when this stream completes and failing if the background stream fails or defects. * - * @example + * **Example** (Draining a stream in the background) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1858,14 +1966,15 @@ export const drain = self => fromChannel(Channel.drain(self.channel)); * // Output: [ 1, 2 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const drainFork = /*#__PURE__*/dual(2, (self, that) => mergeEffect(self, runDrain(that))); /** * Repeats the entire stream according to the provided schedule. * - * @example + * **Example** (Repeating a stream on a schedule) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -1882,14 +1991,15 @@ export const drainFork = /*#__PURE__*/dual(2, (self, that) => mergeEffect(self, * // Output: [ 1, 1, 1, 1, 1 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const repeat = /*#__PURE__*/dual(2, (self, schedule) => fromChannel(Channel.repeat(self.channel, schedule))); /** - * Spaces the stream's elements according to the provided `schedule`. + * Schedules the stream's elements according to the provided schedule. + * + * **Example** (Scheduling stream elements) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -1906,14 +2016,15 @@ export const repeat = /*#__PURE__*/dual(2, (self, schedule) => fromChannel(Chann * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => self.channel.pipe(Channel.flattenArray, Channel.schedule(schedule), Channel.map(Arr.of), fromChannel)); /** * Ends the stream if it does not produce a value within the specified duration. * - * @example + * **Example** (Timing out a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -1930,16 +2041,36 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => self.channel.pi * // Output: [ 1 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const timeout = /*#__PURE__*/dual(2, (self, duration) => timeoutOrElse(self, { duration, orElse: () => empty })); /** - * @since 2.0.0 - * @category Rate Limiting + * Switches to a fallback stream if this stream does not emit a value within + * the specified duration. + * + * **When to use** + * + * Use when a stream should continue with another stream if an upstream pull + * waits longer than the allowed duration. + * + * **Details** + * + * The timeout is checked for each pull. A zero duration uses `orElse` + * immediately, while an infinite duration leaves the original stream + * unchanged. + * + * **Gotchas** + * + * The fallback stream is not timed after the switch. + * + * @see {@link timeout} for ending the stream instead of switching to a fallback stream + * + * @category rate limiting + * @since 4.0.0 */ export const timeoutOrElse = /*#__PURE__*/dual(2, (self, options) => { const duration = Duration.fromInputUnsafe(options.duration); @@ -1983,9 +2114,8 @@ export const timeoutOrElse = /*#__PURE__*/dual(2, (self, options) => { * Repeats each element of the stream according to the provided schedule, * including the original emission. * - * @since 2.0.0 - * @category Sequencing - * @example + * **Example** (Repeating stream elements) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2000,6 +2130,9 @@ export const timeoutOrElse = /*#__PURE__*/dual(2, (self, options) => { * Effect.runPromise(program) * // Output: [ "A", "A", "B", "B", "C", "C" ] * ``` + * + * @category sequencing + * @since 2.0.0 */ export const repeatElements = /*#__PURE__*/dual(2, (self, schedule) => fromChannel(Channel.fromTransform((upstream, scope) => Effect.map(Channel.toTransform(Channel.flattenArray(self.channel))(upstream, scope), pullElement => { let pullRepeat = undefined; @@ -2018,7 +2151,8 @@ export const repeatElements = /*#__PURE__*/dual(2, (self, schedule) => fromChann /** * Repeats this stream forever. * - * @example + * **Example** (Repeating a stream forever) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2036,20 +2170,15 @@ export const repeatElements = /*#__PURE__*/dual(2, (self, schedule) => fromChann * // Output: [ "A", "B", "A", "B", "A" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const forever = self => fromChannel(Channel.forever(self.channel)); /** - * Submerges the iterables emitted by this stream into the stream's structure. - * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * Flattens the iterables emitted by this stream into the stream's structure. * - * - `Stream.flattenIterables` + * **Example** (Flattening iterable values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2063,15 +2192,16 @@ export const forever = self => fromChannel(Channel.forever(self.channel)); * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category mapping * @since 4.0.0 - * @category Mapping */ export const flattenIterable = self => flatMap(self, fromIterable); /** * Unwraps `Take` values, emitting elements from non-empty arrays and ending or * failing when the `Exit` signals completion. * - * @example + * **Example** (Flattening Take values) + * * ```ts * import { Array, Console, Effect, Exit, Stream } from "effect" * @@ -2090,15 +2220,16 @@ export const flattenIterable = self => flatMap(self, fromIterable); * // Output: [ 1, 2, 3 ] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 2.0.0 */ export const flattenTake = self => self.channel.pipe(Channel.flattenArray, Channel.flattenTake, fromChannel); /** * Concatenates two streams, emitting all elements from the first stream * followed by all elements from the second stream. * - * @example + * **Example** (Concatenating streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2111,14 +2242,15 @@ export const flattenTake = self => self.channel.pipe(Channel.flattenArray, Chann * // Output: [ 1, 2, 3, 4, 5, 6 ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const concat = /*#__PURE__*/dual(2, (self, that) => flatten(fromArray([self, that]))); /** * Prepends the values from the provided iterable before the stream's elements. * - * @example + * **Example** (Prepending values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2135,17 +2267,20 @@ export const concat = /*#__PURE__*/dual(2, (self, that) => flatten(fromArray([se * Effect.runPromise(program) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const prepend = /*#__PURE__*/dual(2, (self, values) => concat(fromIterable(values), self)); /** * Merges two streams, emitting elements from both as they arrive. * + * **Details** + * * By default, the merged stream ends when both streams end. Use * `haltStrategy` to change the termination behavior. * - * @example + * **Example** (Merging stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2161,19 +2296,25 @@ export const prepend = /*#__PURE__*/dual(2, (self, values) => concat(fromIterabl * // Output: [ 1, 2, 3, 4 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(args[1]), (self, that, options) => fromChannel(Channel.merge(toChannel(self), toChannel(that), options))); /** * Merges this stream with a background effect, keeping the stream's elements. * + * **When to use** + * + * Use when an effect should run concurrently for the lifetime of a stream while + * only the stream's elements remain in the output. + * + * **Details** + * * The effect runs concurrently, fails the stream if it fails, and is interrupted * when the stream completes. * - * @since 4.0.0 - * @category Merging - * @example + * **Example** (Merging with a background effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2190,19 +2331,23 @@ export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(arg * // Output: side task * // Output: [ 1, 2, 3 ] * ``` + * + * @category merging + * @since 4.0.0 */ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.pipe(Channel.mergeEffect(effect), fromChannel)); /** * Merges this stream and the specified stream together, tagging values from the * left stream as `Result.succeed` and values from the right stream as `Result.fail`. * - * **Previously Known As** + * **When to use** * - * This API replaces the following from Effect 3.x: + * Use when values from both streams should be emitted and downstream code needs + * left values wrapped as successful `Result` values and right values wrapped as + * failed `Result` values. * - * - `Stream.mergeEither` + * **Example** (Merging streams into results) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -2228,18 +2373,26 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.p * // Output: [ "left:left", "right:right" ] * ``` * - * @since 2.0.0 - * @category Merging + * @category merging + * @since 4.0.0 */ export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self, Result.succeed), map(that, Result.fail))); /** * Merges two streams while emitting only the values from the left stream. * + * **When to use** + * + * Use when the right stream is needed for its effects or failures, but downstream + * consumers should only receive values from the left stream. + * + * **Details** + * * The right stream still runs for its effects, and any failures from the right * stream are propagated. The merged stream completes when the left stream * completes, interrupting the right stream. * - * @example + * **Example** (Merging streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2254,18 +2407,26 @@ export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self, * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left, runDrain(right))); /** * Merges this stream and the specified stream together, emitting only the * values from the right stream while the left stream runs for its effects. * + * **When to use** + * + * Use when the left stream is needed for its effects or failures, but downstream + * consumers should only receive values from the right stream. + * + * **Details** + * * The merged stream ends when the right stream completes, interrupting the * left stream. Failures from the left stream still fail the merged stream. * - * @example + * **Example** (Merging streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2285,17 +2446,26 @@ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left, * // Output: [ 1, 2 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(right, runDrain(left))); /** * Merges a collection of streams, running up to the specified number concurrently. * - * @since 2.0.0 - * @category Merging + * **When to use** + * + * Use to merge an iterable of already-created streams while bounding how many + * inner streams may run at the same time. + * + * **Details** + * + * The `concurrency` option is required and may be a number or `"unbounded"`. + * `bufferSize` controls buffering between inner streams, and outputs are + * emitted as they arrive under concurrent merging. + * + * **Example** (Merging streams with bounded concurrency) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2314,15 +2484,24 @@ export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(righ * Effect.runPromise(program) * // Output: [ "B", "A" ] * ``` + * + * @see {@link merge} for merging exactly two streams and choosing a halt strategy + * @see {@link flatten} for flattening a stream that already emits streams + * + * @category merging + * @since 2.0.0 */ export const mergeAll = /*#__PURE__*/dual(2, (streams, options) => flatten(fromIterable(streams), options)); /** * Creates the cartesian product of two streams, running the `right` stream for * each element in the `left` stream. * + * **Details** + * * See also `Stream.zip` for the more common point-wise variant. * - * @example + * **Example** (Computing cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2337,18 +2516,21 @@ export const mergeAll = /*#__PURE__*/dual(2, (streams, options) => flatten(fromI * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const cross = /*#__PURE__*/dual(2, (left, right) => crossWith(left, right, (l, r) => [l, r])); /** * Creates a cartesian product of elements from two streams using a function. * + * **Details** + * * The `right` stream is rerun for every element in the `left` stream. * * See also `Stream.zipWith` for the more common point-wise variant. * - * @example + * **Example** (Combining cartesian products) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2364,14 +2546,15 @@ export const cross = /*#__PURE__*/dual(2, (left, right) => crossWith(left, right * // Output: [ "1-a", "1-b", "2-a", "2-b" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const crossWith = /*#__PURE__*/dual(3, (left, right, f) => flatMap(left, l => map(right, r => f(l, r)))); /** * Zips two streams point-wise with a combining function, ending when either stream ends. * - * @example + * **Example** (Zipping streams with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2389,8 +2572,8 @@ export const crossWith = /*#__PURE__*/dual(3, (left, right, f) => flatMap(left, * // Output: [ "1-a", "2-b", "3-c" ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWith = /*#__PURE__*/dual(3, (left, right, f) => zipWithArray(left, right, zipArrays(f))); const zipArrays = f => (leftArr, rightArr) => { @@ -2404,15 +2587,12 @@ const zipArrays = f => (leftArr, rightArr) => { /** * Zips two streams by applying a function to non-empty arrays of elements. * - * The function returns output plus leftover arrays that carry into the next pull. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The function returns output plus leftover arrays that carry into the next pull. * - * - `Stream.zipWithChunks` + * **Example** (Zipping stream chunks) * - * @example * ```ts * import { Array, Console, Effect, Stream } from "effect" * @@ -2435,8 +2615,8 @@ const zipArrays = f => (leftArr, rightArr) => { * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 4.0.0 */ export const zipWithArray = /*#__PURE__*/dual(3, (left, right, f) => fromChannel(Channel.fromTransformBracket(Effect.fnUntraced(function* (_, scope) { const pullLeft = yield* Channel.toPullScoped(left.channel, scope); @@ -2475,7 +2655,8 @@ export const zipWithArray = /*#__PURE__*/dual(3, (left, right, f) => fromChannel * Zips this stream with another point-wise and emits tuples of elements from * both streams. The new stream ends when either stream ends. * - * @example + * **Example** (Zipping streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2493,17 +2674,20 @@ export const zipWithArray = /*#__PURE__*/dual(3, (left, right, f) => fromChannel * // Output: [[1, "a"], [2, "b"], [3, "c"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a, a2) => [a, a2])); /** * Zips this stream with another point-wise and keeps only the values from * the left stream. * + * **Details** + * * The resulting stream ends when either side ends. * - * @example + * **Example** (Zipping streams while keeping left values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2519,8 +2703,8 @@ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a, * // Output: [1, 2] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipLeft = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, right, (leftArr, rightArr) => { const minLength = Math.min(leftArr.length, rightArr.length); @@ -2532,7 +2716,8 @@ export const zipLeft = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, /** * Zips this stream with another point-wise, keeping only right values and ending when either stream ends. * - * @example + * **Example** (Zipping streams while keeping right values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2548,8 +2733,8 @@ export const zipLeft = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, * // Output: ["a", "b"] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipRight = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, right, (leftArr, rightArr) => { const minLength = Math.min(leftArr.length, rightArr.length); @@ -2562,9 +2747,12 @@ export const zipRight = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, * Zips this stream with another point-wise and emits tuples of elements from * both streams, flattening the left tuple. * + * **Details** + * * The new stream will end when one of the sides ends. * - * @example + * **Example** (Zipping and flattening tuples) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2584,14 +2772,15 @@ export const zipRight = /*#__PURE__*/dual(2, (left, right) => zipWithArray(left, * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipFlatten = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a, a2) => [...a, a2])); /** * Zips this stream together with the index of elements. * - * @example + * **Example** (Zipping elements with indices) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2607,15 +2796,16 @@ export const zipFlatten = /*#__PURE__*/dual(2, (self, that) => zipWith(self, tha * // Output: [["a", 0], ["b", 1], ["c", 2], ["d", 3]] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWithIndex = self => map(self, (a, i) => [a, i]); /** * Zips each element with the next element, pairing the final element with * `Option.none()`. * - * @example + * **Example** (Zipping elements with next values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2633,8 +2823,8 @@ export const zipWithIndex = self => map(self, (a, i) => [a, i]); * // ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWithNext = self => mapAccumArray(self, Option.none, (acc, arr) => { let i = 0; @@ -2657,7 +2847,8 @@ export const zipWithNext = self => mapAccumArray(self, Option.none, (acc, arr) = /** * Zips each element with its previous element, starting with `None`. * - * @example + * **Example** (Zipping elements with previous values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2677,8 +2868,8 @@ export const zipWithNext = self => mapAccumArray(self, Option.none, (acc, arr) = * // ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWithPrevious = self => mapAccumArray(self, Option.none, (acc, arr) => { const pairs = Arr.empty(); @@ -2692,7 +2883,8 @@ export const zipWithPrevious = self => mapAccumArray(self, Option.none, (acc, ar /** * Zips each element with its previous and next values. * - * @example + * **Example** (Zipping elements with neighbors) + * * ```ts * import { Console, Effect, Option, Stream } from "effect" * @@ -2708,8 +2900,8 @@ export const zipWithPrevious = self => mapAccumArray(self, Option.none, (acc, ar * // Output: [ [Option.none(), 1, Option.some(2)], [Option.some(1), 2, Option.some(3)], [Option.some(2), 3, Option.none()] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWithPreviousAndNext = self => mapAccumArray(self, () => ({ prev: Option.none(), @@ -2742,11 +2934,19 @@ export const zipWithPreviousAndNext = self => mapAccumArray(self, () => ({ * Zips multiple streams so that when a value is emitted by any stream, it is * combined with the latest values from the other streams to produce a result. * + * **When to use** + * + * Use when each stream should contribute its latest value after all streams have + * emitted at least once. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values from many streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2765,8 +2965,8 @@ export const zipWithPreviousAndNext = self => mapAccumArray(self, () => ({ * // Output: [ [ 1, "a", true ], [ 2, "a", true ], [ 3, "a", true ], [ 3, "b", true ], [ 3, "c", true ], [ 3, "c", false ], [ 3, "c", true ] ] * ``` * - * @since 2.0.0 - * @category Zipping + * @category zipping + * @since 3.3.0 */ export const zipLatestAll = (...streams) => fromChannel(Channel.suspend(() => { const latest = []; @@ -2790,11 +2990,19 @@ export const zipLatestAll = (...streams) => fromChannel(Channel.suspend(() => { /** * Combines two streams by emitting each new element with the latest value from the other stream. * + * **When to use** + * + * Use when two streams should start emitting combined pairs after both have + * produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2809,19 +3017,27 @@ export const zipLatestAll = (...streams) => fromChannel(Channel.suspend(() => { * // Output: [ [1, "a"] ] * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipLatest = /*#__PURE__*/dual(2, (left, right) => zipLatestAll(left, right)); /** * Combines the latest values from both streams whenever either emits, using * the provided function. * + * **When to use** + * + * Use when two streams should start emitting custom combined values after both + * have produced at least one value. + * + * **Gotchas** + * * Note: tracking the latest value is done on a per-array basis. That means * that emitted elements that are not the last value in arrays will never be * used for zipping. * - * @example + * **Example** (Zipping latest values with a function) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2840,17 +3056,22 @@ export const zipLatest = /*#__PURE__*/dual(2, (left, right) => zipLatestAll(left * }) * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLatestAll(left, right), ([a, a2]) => f(a, a2))); /** - * Races multiple streams and emits values from the first stream to produce a value, interrupting the rest. + * Runs all streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the rest. * - * @since 3.7.0 - * @category Racing + * **Details** + * + * Failures or completion from losing streams before a winner is chosen are + * ignored unless every stream fails or completes before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing multiple streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2865,6 +3086,9 @@ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLat * Effect.runPromise(program) * // Output: [ 0, 1, 2 ] * ``` + * + * @category racing + * @since 3.5.0 */ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, scope) => Effect.sync(() => { let winner; @@ -2884,10 +3108,17 @@ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, sco return Effect.suspend(() => winner ?? race); }))); /** - * Returns a stream that mirrors the first upstream to emit an item. - * As soon as one stream emits, the other is interrupted and failures propagate. + * Runs both streams concurrently until one stream emits its first value, then + * mirrors that winning stream and interrupts the other. + * + * **Details** + * + * A failure or completion from one side before the other side emits does not + * win the race unless both sides fail or complete before emitting. After a + * winner is chosen, that stream's later failures are propagated. + * + * **Example** (Racing two streams) * - * @example * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -2905,14 +3136,15 @@ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, sco * // Output: [ 0, 1, 2 ] * ``` * + * @category racing * @since 3.7.0 - * @category Racing */ export const race = /*#__PURE__*/dual(2, (left, right) => raceAll(left, right)); /** * Filters a stream to the elements that satisfy a predicate. * - * @example + * **Example** (Filtering stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2928,21 +3160,35 @@ export const race = /*#__PURE__*/dual(2, (left, right) => raceAll(left, right)); * // Output: [ 2, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => fromChannel(Channel.filterArray(toChannel(self), predicate))); /** * Filters and maps stream elements in one pass using a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use to keep only stream elements accepted by a `Filter` and emit each filter + * success value. + * + * **Details** + * + * `Result.succeed` values are emitted and `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMapEffect} for an effectful `Filter` + * @see {@link partition} for consuming both filter success and failure values + * + * @category filtering + * @since 2.0.0 */ export const filterMap = /*#__PURE__*/dual(2, (self, filter) => fromChannel(Channel.filterMapArray(toChannel(self), filter))); /** - * Effectfully filters elements in a single pass. + * Filters elements in a single pass effectfully. + * + * **Example** (Effectfully filtering stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -2957,23 +3203,43 @@ export const filterMap = /*#__PURE__*/dual(2, (self, filter) => fromChannel(Chan * // Output: [ 3, 4 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const filterEffect = /*#__PURE__*/dual(2, (self, predicate) => fromChannel(Channel.filterArrayEffect(toChannel(self), predicate))); /** - * Effectfully filters and maps elements in a single pass. + * Filters and maps elements in one pass effectfully using a `FilterEffect`. * - * @since 4.0.0 - * @category Filtering - */ -export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromChannel(Channel.filterMapArrayEffect(toChannel(self), filter))); + * **When to use** + * + * Use to apply effectful logic that can reject stream elements or emit + * transformed values before they continue downstream. + * + * **Details** + * + * `Result.succeed` values are emitted, `Result.fail` values are skipped, and + * effect failures fail the stream. + * + * @see {@link filterMap} for the synchronous `Filter` variant + * @see {@link filterEffect} for effectfully keeping original elements + * @see {@link mapEffect} for effectfully transforming every element + * + * @category filtering + * @since 2.0.0 + */ +export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromChannel(Channel.filterMapArrayEffect(toChannel(self), filter))); /** - * Partitions a stream using a `Filter` and exposes passing and failing values as queues. + * Partitions a stream using a `Filter` and exposes passing and failing values + * as scoped queues. + * + * **Details** + * + * The queues are backed by a fiber in the current scope and should be consumed + * while that scope remains open. Each queue fails with the stream error or + * `Cause.Done` when the source ends. * - * Each queue fails with the stream error or `Cause.Done` when the source ends. + * **Example** (Partitioning a stream into queues) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -2994,8 +3260,8 @@ export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromChanne * Effect.runPromise(Effect.scoped(program)) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const partitionQueue = /*#__PURE__*/dual(args => isStream(args[0]), /*#__PURE__*/Effect.fnUntraced(function* (self, filter, options) { const scope = yield* Effect.scope; @@ -3043,22 +3309,40 @@ export const partitionQueue = /*#__PURE__*/dual(args => isStream(args[0]), /*#__ return [passes, fails]; })); /** - * Splits a stream using an effectful `Filter`, producing pass and fail streams. + * Splits a stream with an effectful `Filter`, returning scoped streams for + * filter successes and failures. + * + * **When to use** + * + * Use when you need to classify each stream element with an effectful `Filter` + * and consume both passing and failing mapped values as streams. + * + * **Details** * + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The first stream emits success values + * from the filter, and the second emits failure values. + * + * @see {@link partition} for the pure `Filter` variant, which returns the failing stream before the passing stream + * @see {@link partitionQueue} for the lower-level queue result + * @see {@link filterMapEffect} for effectful filtering that discards failed filter results + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const partitionEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, filter, options) => Effect.map(partitionQueue(mapEffect(self, a => filter(a), options), result => result, options), ([passes, fails]) => [fromQueue(passes), fromQueue(fails)])); /** - * Splits a stream into excluded and satisfying substreams using a `Filter`. + * Splits a stream into scoped excluded and satisfying substreams using a + * `Filter`. * - * The faster stream may advance up to `bufferSize` elements ahead of the slower - * one. + * **Details** * - * @since 4.0.0 - * @category Filtering + * The returned streams are backed by queues in the current scope and should be + * consumed while that scope remains open. The faster stream may advance up to + * `bufferSize` elements ahead of the slower one. + * + * **Example** (Partitioning a stream) * - * @example * ```ts * import { Console, Effect, Result, Stream } from "effect" * @@ -3075,6 +3359,9 @@ export const partitionEffect = /*#__PURE__*/dual(args => isStream(args[0]), (sel * // Output: [ 2, 4 ] * }) * ``` + * + * @category filtering + * @since 2.0.0 */ export const partition = /*#__PURE__*/dual(args => isStream(args[0]), (self, filter, options) => Effect.map(partitionQueue(self, filter, { capacity: options?.bufferSize ?? 16 @@ -3083,7 +3370,8 @@ export const partition = /*#__PURE__*/dual(args => isStream(args[0]), (self, fil * Returns the specified stream if the given condition is satisfied, otherwise * returns an empty stream. * - * @example + * **Example** (Conditionally keeping a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3098,17 +3386,20 @@ export const partition = /*#__PURE__*/dual(args => isStream(args[0]), (self, fil * // Output: [] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const when = /*#__PURE__*/dual(2, (self, test) => test.pipe(Effect.map(pass => pass ? self : empty), unwrap)); /** * Runs a sink to peel off enough elements to produce a value and returns that * value with the remaining stream in a scope. * + * **Details** + * * The returned stream is only valid within the scope. * - * @example + * **Example** (Peeling a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -3127,8 +3418,8 @@ export const when = /*#__PURE__*/dual(2, (self, test) => test.pipe(Effect.map(pa * // Output: [ [1, 2, 3], [4, 5, 6] ] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const peel = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, sink) { let cause = undefined; @@ -3147,10 +3438,15 @@ export const peel = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function * Buffers up to `capacity` elements so a faster producer can progress * independently of a slower consumer. * - * Note: This combinator destroys chunking. Use `Stream.rechunk` afterwards if - * you need fixed chunk sizes. + * **Details** + * + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard elements when + * the buffer is full. This combinator destroys chunking; use `Stream.rechunk` + * afterward if you need fixed chunk sizes. + * + * **Example** (Buffering stream elements) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3166,23 +3462,23 @@ export const peel = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function * // Output: [ 1, 2, 3 ] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const buffer = /*#__PURE__*/dual(2, (self, options) => fromChannel(Channel.bufferArray(self.channel, options))); /** * Allows a faster producer to progress independently of a slower consumer by * buffering up to `capacity` chunks in a queue. * - * This combinator preserves chunking and is best with power-of-2 capacities. - * - * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * Finite buffers use the configured queue strategy: `"suspend"` applies + * backpressure, while `"dropping"` and `"sliding"` may discard chunks when the + * buffer is full. This combinator preserves chunking and is best with + * power-of-2 capacities. * - * - `Stream.bufferChunks` + * **Example** (Buffering stream chunks) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3197,8 +3493,8 @@ export const buffer = /*#__PURE__*/dual(2, (self, options) => fromChannel(Channe * // Output: [ 1, 2, 3, 4 ] * ``` * - * @since 2.0.0 - * @category Rate Limiting + * @category rate limiting + * @since 4.0.0 */ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromChannel(Channel.buffer(self.channel, options))); /** @@ -3206,13 +3502,8 @@ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromChannel(C * one fails. Allows recovery from all causes of failure, including * interruption if the stream is uninterruptible. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream causes) * - * - `Stream.catchAllCause` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3234,21 +3525,16 @@ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromChannel(C * // Output: [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export const catchCause = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Channel.catchCause(cause => f(cause).channel), fromChannel)); /** * Runs an effect when the stream fails without changing its values or error, * unless the tap effect itself fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Stream.tapErrorCause` + * **Example** (Tapping stream causes) * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -3268,8 +3554,8 @@ export const catchCause = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Ch * // Output: [ 1, 2, 0 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export const tapCause = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Channel.tapCause(f), fromChannel)); const catch_ = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.catch(self.channel, error => f(error).channel))); @@ -3277,13 +3563,8 @@ export { /** * Switches over to the stream produced by the provided function if this one fails. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching stream failures) * - * - `Stream.catchAll` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3301,14 +3582,15 @@ export { * // Output: [ 1, 2, 999 ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ catch_ as catch }; /** - * Effectfully peeks at errors without changing the stream unless the tap fails. + * Peeks at errors effectfully without changing the stream unless the tap fails. + * + * **Example** (Effectfully peeking at errors) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3329,24 +3611,21 @@ catch_ as catch }; * // [ 1, 2, 999 ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export const tapError = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Channel.tapError(f), fromChannel)); /** * Recovers from errors that match a predicate by switching to a recovery stream. * + * **Details** + * * When a failure matches the filter, the stream switches to the recovery * stream. Non-matching failures propagate downstream, so the error type is * preserved unless the filter narrows it. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching matching failures) * - * - `Stream.catchSome` - * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3367,28 +3646,44 @@ export const tapError = /*#__PURE__*/dual(2, (self, f) => self.channel.pipe(Chan * Effect.runPromise(program) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchIf = /*#__PURE__*/dual(args => isStream(args[0]), (self, predicate, f, orElse) => fromChannel(Channel.catchIf(toChannel(self), predicate, e => f(e).channel, orElse && (e => orElse(e).channel)))); /** * Recovers from errors that match a `Filter` by switching to a recovery * stream. * + * **When to use** + * + * Use to recover from stream errors with a reusable `Filter` when matching can + * also narrow or transform the error before choosing the recovery stream. + * + * **Details** + * + * Successful filter results are passed to `f`. Failed filter results go to + * `orElse` when provided; otherwise the filter failure is re-failed. + * + * @see {@link catchIf} for predicate or refinement based recovery + * @see {@link catchTag} for `_tag` based recovery from one tagged error + * @see {@link catchTags} for `_tag` based recovery from multiple tagged errors + * @see {@link catchCauseFilter} for filtering full causes + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchFilter = /*#__PURE__*/dual(args => isStream(args[0]), (self, filter, f, orElse) => fromChannel(Channel.catchFilter(toChannel(self), filter, e => f(e).channel, orElse && (e => orElse(e).channel)))); /** * Recovers from failures whose `_tag` matches the provided value by switching to * the stream returned by `f`. * - * **When to Use** + * **When to use** * - * Use `catchTag` when your error type is a tagged union with a readonly `_tag` - * field and you want to handle a specific error case. + * Use when you need to handle a specific error case from a stream whose error + * type is a tagged union with a readonly `_tag` field. + * + * **Example** (Catching tagged failures) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -3409,8 +3704,8 @@ export const catchFilter = /*#__PURE__*/dual(args => isStream(args[0]), (self, f * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export const catchTag = /*#__PURE__*/dual(args => isStream(args[0]), (self, k, f, orElse) => { const pred = Array.isArray(k) ? e => hasProperty(e, "_tag") && k.includes(e._tag) : isTagged(k); @@ -3419,7 +3714,8 @@ export const catchTag = /*#__PURE__*/dual(args => isStream(args[0]), (self, k, f /** * Switches to a recovery stream based on matching `_tag` handlers. * - * @example + * **Example** (Catching tagged failures with handlers) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3449,8 +3745,8 @@ export const catchTag = /*#__PURE__*/dual(args => isStream(args[0]), (self, k, f * // Output: [ "fallback" ] * ``` * - * @since 4.0.0 - * @category Error Handling + * @category error handling + * @since 2.0.0 */ export const catchTags = /*#__PURE__*/dual(args => isStream(args[0]), (self, cases, orElse) => { let keys; @@ -3462,10 +3758,17 @@ export const catchTags = /*#__PURE__*/dual(args => isStream(args[0]), (self, cas /** * Catches a specific reason within a tagged error. * - * Use this to handle nested error causes without removing the parent error - * from the error channel. The handler receives the unwrapped reason. + * **When to use** + * + * Use to handle nested error causes without removing the parent error + * from the error channel. + * + * **Details** + * + * The handler receives the unwrapped reason. + * + * **Example** (Catching a tagged error reason) * - * @example * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -3499,14 +3802,15 @@ export const catchTags = /*#__PURE__*/dual(args => isStream(args[0]), (self, cas * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchReason = /*#__PURE__*/dual(args => isStream(args[0]), (self, errorTag, reasonTag, f, orElse) => fromChannel(Channel.catchReason(toChannel(self), errorTag, reasonTag, (reason, error) => f(reason, error).channel, orElse && ((reason, error) => orElse(reason, error).channel)))); /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Catching tagged error reasons) + * * ```ts * import { Console, Data, Effect, Stream } from "effect" * @@ -3541,8 +3845,8 @@ export const catchReason = /*#__PURE__*/dual(args => isStream(args[0]), (self, e * // Output: [ "retry: 60" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchReasons = /*#__PURE__*/dual(args => isStream(args[0]), (self, errorTag, cases, orElse) => { const handlers = {}; @@ -3556,7 +3860,8 @@ export const catchReasons = /*#__PURE__*/dual(args => isStream(args[0]), (self, /** * Transforms the errors emitted by this stream using `f`. * - * @example + * **Example** (Mapping stream errors) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3573,21 +3878,16 @@ export const catchReasons = /*#__PURE__*/dual(args => isStream(args[0]), (self, * // Output: [ "recovered from mapped: bad" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const mapError = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.mapError(self.channel, f))); /** * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream. * Non-matching causes are re-emitted as failures. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Catching matching causes) * - * - `Stream.catchSomeCause` - * - * @example * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -3607,22 +3907,39 @@ export const mapError = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.ma * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchCauseIf = /*#__PURE__*/dual(3, (self, predicate, f) => fromChannel(Channel.catchCauseIf(self.channel, predicate, cause => f(cause).channel))); /** * Recovers from stream failures by filtering the `Cause` and switching to a * recovery stream. * + * **When to use** + * + * Use when you need to recover a stream only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. A successful filter result is + * passed to `f` together with the original cause; a failed filter result + * re-fails with the residual cause. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchCauseFilter = /*#__PURE__*/dual(3, (self, filter, f) => fromChannel(Channel.catchCauseFilter(self.channel, filter, (failure, cause) => f(failure, cause).channel))); /** * Switches to a fallback stream if this stream is empty. * - * @example + * **Example** (Switching on empty streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3638,14 +3955,15 @@ export const catchCauseFilter = /*#__PURE__*/dual(3, (self, filter, f) => fromCh * // Output: [ 1, 2 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const orElseIfEmpty = /*#__PURE__*/dual(2, (self, orElse) => fromChannel(Channel.orElseIfEmpty(self.channel, _ => toChannel(orElse())))); /** * Returns a stream that emits a fallback value when this stream fails. * - * @example + * **Example** (Recovering with a fallback value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3662,14 +3980,15 @@ export const orElseIfEmpty = /*#__PURE__*/dual(2, (self, orElse) => fromChannel( * // Output: [ "Recovered: NetworkError" ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const orElseSucceed = /*#__PURE__*/dual(2, (self, f) => catch_(self, e => succeed(f(e)))); /** * Turns typed failures into defects, making the stream infallible. * - * @example + * **Example** (Turning failures into defects) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3686,16 +4005,25 @@ export const orElseSucceed = /*#__PURE__*/dual(2, (self, f) => catch_(self, e => * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const orDie = self => fromChannel(Channel.orDie(self.channel)); /** * Ignores failures and ends the stream on error. * - * Use the `log` option to emit the full {@link Cause} when the stream fails. + * **When to use** + * + * Use when you want a failing stream to end gracefully rather than propagate + * the error. + * + * **Details** + * + * The `log` option controls whether the failure is logged before the stream + * terminates. + * + * **Example** (Ignoring stream failures) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3712,42 +4040,63 @@ export const orDie = self => fromChannel(Channel.orDie(self.channel)); * // Output: [ 1, 2, 3 ] * ``` * - * @example + * **Example** (Configuring ignore logging) + * * ```ts - * import { Stream } from "effect" + * import { Effect, Stream } from "effect" * - * const stream = Stream.fail("boom") + * Effect.runPromise(Effect.gen(function*() { + * const values = yield* Stream.fail("boom").pipe( + * Stream.ignore({ log: false }), + * Stream.runCollect + * ) + * yield* Effect.sync(() => console.log(values)) + * })) * - * const program = stream.pipe(Stream.ignore({ log: "Error" })) + * // [] * ``` * + * @see {@link ignoreCause} for a variant that also ignores defects, not just typed failures + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const ignore = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => fromChannel(Channel.ignore(self.channel, options))); /** * Ignores the stream's failure cause, including defects, and ends the stream. * - * Use the `log` option to emit the full {@link Cause} when the stream fails. + * **When to use** + * + * Use when you need to silently suppress a stream's entire failure cause, + * including both typed errors and defects, rather than propagate it downstream. + * + * **Example** (Ignoring stream failure causes) * - * @example * ```ts * import { Effect, Stream } from "effect" * - * const stream = Stream.make(1, 2).pipe( - * Stream.concat(Stream.fail("boom")), - * Stream.ignoreCause({ log: "Error" }) - * ) + * Effect.runPromise(Effect.gen(function*() { + * const values = yield* Stream.make(1, 2).pipe( + * Stream.concat(Stream.die("boom")), + * Stream.ignoreCause({ log: false }), + * Stream.runCollect + * ) + * yield* Effect.sync(() => console.log(values)) + * })) * - * const program = Stream.runCollect(stream) + * // [ 1, 2 ] * ``` * + * @see {@link ignore} to ignore only typed failures without suppressing defects + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const ignoreCause = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => fromChannel(Channel.ignoreCause(self.channel, options))); /** - * When the stream fails, retry it according to the given schedule. + * Retries the stream according to the given schedule when it fails. + * + * **Details** * * This retries the entire stream, so will re-execute all of the stream's * acquire operations. @@ -3755,7 +4104,8 @@ export const ignoreCause = /*#__PURE__*/dual(args => isStream(args[0]), (self, o * The schedule is reset as soon as the first element passes through the * stream again. * - * @example + * **Example** (Retrying stream failures) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -3774,21 +4124,24 @@ export const ignoreCause = /*#__PURE__*/dual(args => isStream(args[0]), (self, o * // Output: [ 1, 1 ] * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const retry = /*#__PURE__*/dual(2, (self, policy) => fromChannel(Channel.retry(self.channel, policy))); /** - * Apply an `ExecutionPlan` to a stream, retrying with step-provided resources + * Applies an `ExecutionPlan` to a stream, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * By default, a failing step can fallback even after emitting elements; set * `preventFallbackOnPartialStream` to fail instead of mixing partial output with * a later fallback. * - * @example + * **Example** (Applying an execution plan) + * * ```ts - * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect" * * class Service extends Context.Service()("Service", { * make: Effect.succeed({ @@ -3804,7 +4157,7 @@ export const retry = /*#__PURE__*/dual(2, (self, policy) => fromChannel(Channel. * { provide: Service.Good } * ) * - * const stream = Stream.unwrap(Effect.map(Service.asEffect(), (_) => _.stream)) + * const stream = Stream.unwrap(Effect.map(Service, (_) => _.stream)) * * const program = Effect.gen(function*() { * const items = yield* stream.pipe(Stream.withExecutionPlan(plan), Stream.runCollect) @@ -3815,9 +4168,8 @@ export const retry = /*#__PURE__*/dual(2, (self, policy) => fromChannel(Channel. * // Output: [ 1, 2, 3 ] * ``` * + * @category error handling * @since 3.16.0 - * @category Error Handling - * @experimental */ export const withExecutionPlan = /*#__PURE__*/dual(args => isStream(args[0]), (self, policy, options) => suspend(() => { const preventFallbackOnPartialStream = options?.preventFallbackOnPartialStream ?? false; @@ -3873,7 +4225,8 @@ export const withExecutionPlan = /*#__PURE__*/dual(args => isStream(args[0]), (s /** * Takes the first `n` elements from this stream, returning `Stream.empty` when `n < 1`. * - * @example + * **Example** (Taking values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3889,14 +4242,15 @@ export const withExecutionPlan = /*#__PURE__*/dual(args => isStream(args[0]), (s * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const take = /*#__PURE__*/dual(2, (self, n) => n < 1 ? empty : takeUntil(self, (_, i) => i === n - 1)); /** * Keeps the last `n` elements from this stream. * - * @example + * **Example** (Taking elements from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3912,8 +4266,8 @@ export const take = /*#__PURE__*/dual(2, (self, n) => n < 1 ? empty : takeUntil( * // Output: [ 4, 5, 6 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const takeRight = /*#__PURE__*/dual(2, (self, n) => mapAccumArray(self, MutableList.make, (list, arr) => { MutableList.appendAll(list, arr); @@ -3929,9 +4283,12 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => mapAccumArray(self, M /** * Takes elements until the predicate matches. * + * **Details** + * * When `excludeLast` is `true`, the matching element is dropped. * - * @example + * **Example** (Taking until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3954,8 +4311,8 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => mapAccumArray(self, M * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const takeUntil = /*#__PURE__*/dual(args => isStream(args[0]), (self, predicate, options) => transformPull(self, (pull, _scope) => Effect.sync(() => { let i = 0; @@ -3972,9 +4329,15 @@ export const takeUntil = /*#__PURE__*/dual(args => isStream(args[0]), (self, pre return pump; }))); /** - * Effectful predicate version of `takeUntil`. + * Takes stream elements until an effectful predicate returns `true`. + * + * **When to use** + * + * Use when the stopping condition needs an Effect or service and predicate + * failure should fail the stream. + * + * **Example** (Taking until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -3990,8 +4353,8 @@ export const takeUntil = /*#__PURE__*/dual(args => isStream(args[0]), (self, pre * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const takeUntilEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, predicate, options) => transformPull(self, (pull, _scope) => Effect.sync(() => { let i = 0; @@ -4012,7 +4375,8 @@ export const takeUntilEffect = /*#__PURE__*/dual(args => isStream(args[0]), (sel /** * Takes the longest initial prefix of elements that satisfy the predicate. * - * @example + * **Example** (Taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4029,8 +4393,8 @@ export const takeUntilEffect = /*#__PURE__*/dual(args => isStream(args[0]), (sel * // Output: [ 1, 2 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => transformPull(self, (pull, _scope) => Effect.sync(() => { let i = 0; @@ -4049,10 +4413,24 @@ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => transformPull return pump; }))); /** - * Takes the longest initial prefix of elements that satisfy the filter. + * Takes the longest initial prefix accepted by a `Filter` and emits the + * filter's success values. + * + * **When to use** + * + * Use to keep the leading stream elements that a `Filter` accepts, emit the + * filter's success values, and stop at the first filter failure. + * + * **Details** + * + * The stream stops at the first `Result.fail` returned by the filter. * + * @see {@link takeWhile} for keeping original elements with a boolean predicate or refinement + * @see {@link filterMap} for filtering across the whole stream instead of only the leading prefix + * @see {@link dropWhileFilter} for dropping the accepted prefix and keeping the remaining original elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const takeWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformPull(self, (pull, _scope) => Effect.sync(() => { let done = false; @@ -4073,7 +4451,13 @@ export const takeWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformP /** * Takes elements from the stream while the effectful predicate is `true`. * - * @example + * **When to use** + * + * Use when the leading-prefix predicate needs an Effect or service and the + * stream should stop before the first false result. + * + * **Example** (Effectfully taking while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4089,8 +4473,8 @@ export const takeWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformP * // Output: [ 1, 2 ] * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ export const takeWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => takeUntilEffect(self, (a, n) => Effect.map(predicate(a, n), b => !b), { excludeLast: true @@ -4098,7 +4482,8 @@ export const takeWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => takeUnt /** * Drops the first `n` elements from this stream. * - * @example + * **Example** (Dropping values from the left) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4114,8 +4499,8 @@ export const takeWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => takeUnt * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const drop = /*#__PURE__*/dual(2, (self, n) => transformPull(self, (pull, _scope) => Effect.sync(() => { let dropped = 0; @@ -4131,7 +4516,8 @@ export const drop = /*#__PURE__*/dual(2, (self, n) => transformPull(self, (pull, * Drops elements until the specified predicate evaluates to `true`, then drops * that matching element. * - * @example + * **Example** (Dropping until a predicate matches) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4144,17 +4530,21 @@ export const drop = /*#__PURE__*/dual(2, (self, n) => transformPull(self, (pull, * }) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhile(self, (a, i) => !predicate(a, i)), 1)); /** * Drops all elements of the stream until the specified effectful predicate * evaluates to `true`. * - * The first element that satisfies the predicate is also dropped. + * **When to use** + * + * Use when dropping the leading prefix requires an Effect or service and the + * first matching element should also be dropped. + * + * **Example** (Dropping until an effectful predicate matches) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4170,14 +4560,15 @@ export const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhil * // Output: [ 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const dropUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhileEffect(self, (a, i) => Effect.map(predicate(a, i), b => !b)), 1)); /** * Drops elements from the stream while the specified predicate evaluates to `true`. * - * @example + * **Example** (Dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4193,8 +4584,8 @@ export const dropUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => drop(dr * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => transformPull(self, (pull, _scope) => Effect.sync(() => { let dropping = true; @@ -4210,8 +4601,23 @@ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => transformPull /** * Drops elements while the filter succeeds. * + * **When to use** + * + * Use when you need to remove a leading stream prefix based on a synchronous + * `Filter` result while preserving the remaining original stream elements. + * + * **Details** + * + * `Result.succeed` drops the current element. The first `Result.fail` stops + * dropping, emits that original element, and the rest of the source stream is + * emitted without further filtering. + * + * @see {@link dropWhile} for boolean predicate prefix dropping + * @see {@link takeWhileFilter} for keeping the accepted prefix as filter success values + * @see {@link dropWhileEffect} for effectful predicate prefix dropping + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const dropWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformPull(self, (pull, _scope) => Effect.sync(() => { let dropping = true; @@ -4226,7 +4632,8 @@ export const dropWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformP /** * Drops elements while the specified effectful predicate evaluates to `true`. * - * @example + * **Example** (Effectfully dropping while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4242,8 +4649,8 @@ export const dropWhileFilter = /*#__PURE__*/dual(2, (self, filter) => transformP * // Output: [ 3, 4, 5 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => transformPull(self, (pull, _scope) => Effect.sync(() => { let dropping = true; @@ -4264,9 +4671,12 @@ export const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => transfo /** * Drops the last specified number of elements from this stream. * + * **Details** + * * Keeps the last `n` elements in memory to drop them on completion. * - * @example + * **Example** (Dropping values from the right) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4282,8 +4692,8 @@ export const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => transfo * // Output: [ 1, 2, 3 ] * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const dropRight = /*#__PURE__*/dual(2, (self, n) => { if (n <= 0) return self; @@ -4301,7 +4711,8 @@ export const dropRight = /*#__PURE__*/dual(2, (self, n) => { /** * Exposes the underlying chunks as a stream of non-empty arrays. * - * @example + * **Example** (Exposing stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4318,16 +4729,19 @@ export const dropRight = /*#__PURE__*/dual(2, (self, n) => { * // Output: [ [ 1, 2 ], [ 3, 4 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const chunks = self => self.channel.pipe(Channel.map(Arr.of), fromChannel); /** - * Re-chunks the stream into arrays of the specified size, preserving element order. + * Groups the stream into arrays of the specified size, preserving element order. + * + * **Details** * * The size is clamped to at least 1. * - * @example + * **Example** (Rechunking stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4344,8 +4758,8 @@ export const chunks = self => self.channel.pipe(Channel.map(Arr.of), fromChannel * // Output: [ [ 1, 2 ], [ 3, 4 ], [ 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const rechunk = /*#__PURE__*/dual(2, (self, target) => { target = Math.max(1, target); @@ -4390,9 +4804,10 @@ export const rechunk = /*#__PURE__*/dual(2, (self, target) => { /** * Emits a sliding window of `n` elements. * - * @example + * **Example** (Emitting sliding windows) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * Effect.gen(function*() { * const result = yield* pipe( @@ -4405,13 +4820,15 @@ export const rechunk = /*#__PURE__*/dual(2, (self, target) => { * // Output: [ [1, 2], [2, 3], [3, 4], [4, 5] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const sliding = /*#__PURE__*/dual(2, (self, chunkSize) => slidingSize(self, chunkSize, 1)); /** * Emits sliding windows of `chunkSize` elements, advancing by `stepSize`. * + * **Example** (Emitting sliding windows with a step size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4427,8 +4844,8 @@ export const sliding = /*#__PURE__*/dual(2, (self, chunkSize) => slidingSize(sel * // Output: [ [ 1, 2, 3 ], [ 3, 4, 5 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => transformPull(self, (upstream, _scope) => Effect.sync(() => { let cause = null; @@ -4466,9 +4883,12 @@ export const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => t /** * Splits the stream into non-empty groups whenever the predicate matches. * + * **Details** + * * Matching elements act as delimiters and are not included in the output. * - * @example + * **Example** (Splitting on matching values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4484,8 +4904,8 @@ export const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => t * // Output: [ [1, 2, 3], [5, 6, 7], [9] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(self, Arr.empty, (acc, arr) => { const out = Arr.empty(); @@ -4509,10 +4929,13 @@ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(sel * Combines elements from this stream and the specified stream by repeatedly * applying a stateful function that can pull from either side. * + * **Details** + * * Where possible, prefer `Stream.combineArray` for a more efficient * implementation. * - * @example + * **Example** (Combining streams with state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4535,24 +4958,26 @@ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(sel * // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => Channel.combine(Channel.flattenArray(self.channel), Channel.flattenArray(that.channel), s, f).pipe(Channel.map(Arr.of), fromChannel)); /** - * Combines the arrays (chunks) from this stream and the specified stream by - * repeatedly applying the function `f` to extract an array using both sides and - * conceptually "offer" it to the destination stream. `f` can maintain some - * internal state to control the combining process, with the initial state - * being specified by `s`. + * Combines two streams chunk-by-chunk with a stateful pull function. + * + * **When to use** * - * **Previously Known As** + * Use to coordinate pulling chunks from two streams when each emitted chunk + * depends on both sides and local state. * - * This API replaces the following from Effect 3.x: + * **Details** * - * - `Stream.combineChunks` + * The combining function receives the current state and pull functions for the + * left and right streams. It returns the next non-empty chunk together with the + * next state. + * + * **Example** (Combining stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4577,14 +5002,15 @@ export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => Channel.combin * // Output: [ 1, 2, 10, 20 ] * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const combineArray = /*#__PURE__*/dual(4, (self, that, s, f) => fromChannel(Channel.combine(self.channel, that.channel, s, f))); /** - * Statefully maps elements, emitting zero or more outputs per input. + * Maps elements statefully, emitting zero or more outputs per input. + * + * **Example** (Statefully mapping stream values) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4604,8 +5030,8 @@ export const combineArray = /*#__PURE__*/dual(4, (self, that, s, f) => fromChann * // Output: [ 0, 1, 3, 6, 10, 15, 21 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const mapAccum = /*#__PURE__*/dual(args => isStream(args[0]), (self, initial, f, options) => fromChannel(Channel.mapAccum(self.channel, initial, (state, arr) => { const acc = Arr.empty(); @@ -4622,11 +5048,14 @@ export const mapAccum = /*#__PURE__*/dual(args => isStream(args[0]), (self, init } } : undefined))); /** - * Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk. + * Maps over non-empty chunk arrays statefully, emitting zero or more values per chunk. + * + * **Details** * * The mapping function runs once per chunk and the state is threaded across chunks. * - * @example + * **Example** (Statefully mapping stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4646,8 +5075,8 @@ export const mapAccum = /*#__PURE__*/dual(args => isStream(args[0]), (self, init * // Output: [ 3, 10, 21 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export const mapAccumArray = /*#__PURE__*/dual(args => isStream(args[0]), (self, initial, f, options) => fromChannel(Channel.mapAccum(self.channel, initial, (state, arr) => { const [newState, values] = f(state, arr); @@ -4661,9 +5090,22 @@ export const mapAccumArray = /*#__PURE__*/dual(args => isStream(args[0]), (self, } : undefined))); const emptyArr = /*#__PURE__*/Arr.empty(); /** - * Statefully and effectfully maps over the elements of this stream to produce new elements. + * Maps each element statefully and effectfully, emitting zero or more output + * values per input. + * + * **When to use** + * + * Use when stateful element mapping needs Effects or can fail while emitting + * zero or more values per input element. + * + * **Details** + * + * The mapping effect receives the current state and element, then returns the + * next state plus the values to emit. The state is threaded through the + * stream. + * + * **Example** (Effectfully mapping stream values with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4682,8 +5124,8 @@ const emptyArr = /*#__PURE__*/Arr.empty(); * // Output: [ 1, 2, 3 ] * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const mapAccumEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, initial, f, options) => self.channel.pipe(Channel.flattenArray, Channel.mapAccum(initial, (state, a) => Effect.map(f(state, a), ([state, values]) => [state, Arr.isReadonlyArrayNonEmpty(values) ? Arr.of(values) : Arr.empty()]), options?.onHalt ? { onHalt(state) { @@ -4692,9 +5134,21 @@ export const mapAccumEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self } } : undefined), fromChannel)); /** - * Statefully and effectfully maps over chunks of this stream to emit new values. + * Maps each non-empty input chunk statefully and effectfully, emitting zero or + * more output values per chunk. + * + * **When to use** + * + * Use when stateful mapping should process each emitted non-empty chunk with an + * Effect instead of each element separately. + * + * **Details** + * + * The mapping effect receives the current state and chunk, then returns the + * next state plus the values to emit. The state is threaded across chunks. + * + * **Example** (Effectfully mapping stream chunks with state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4716,8 +5170,8 @@ export const mapAccumEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self * // Output: [ 3, 10 ] * ``` * - * @since 2.0.0 - * @category Mapping + * @category mapping + * @since 4.0.0 */ export const mapAccumArrayEffect = /*#__PURE__*/dual(args => isStream(args), (self, initial, f, options) => self.channel.pipe(Channel.mapAccum(initial, (state, a) => Effect.map(f(state, a), ([state, values]) => [state, Arr.isReadonlyArrayNonEmpty(values) ? Arr.of(values) : emptyArr]), options?.onHalt ? { onHalt(state) { @@ -4728,7 +5182,8 @@ export const mapAccumArrayEffect = /*#__PURE__*/dual(args => isStream(args), (se /** * Accumulates state across the stream, emitting the initial state and each updated state. * - * @example + * **Example** (Scanning stream state) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4744,8 +5199,8 @@ export const mapAccumArrayEffect = /*#__PURE__*/dual(args => isStream(args), (se * // Output: [ 0, 1, 3, 6 ] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export const scan = /*#__PURE__*/dual(3, (self, initial, f) => suspend(() => { let isFirst = true; @@ -4763,9 +5218,10 @@ export const scan = /*#__PURE__*/dual(3, (self, initial, f) => suspend(() => { })); })); /** - * Effectfully accumulates state and emits the initial state plus each accumulated state. + * Accumulates state effectfully and emits the initial state plus each accumulated state. + * + * **Example** (Effectfully scanning stream state) * - * @example * ```ts * import { Console, Effect, Stream } from "effect" * @@ -4779,14 +5235,15 @@ export const scan = /*#__PURE__*/dual(3, (self, initial, f) => suspend(() => { * }) * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export const scanEffect = /*#__PURE__*/dual(3, (self, initial, f) => self.channel.pipe(Channel.flattenArray, Channel.scanEffect(initial, f), Channel.map(Arr.of), fromChannel)); /** * Drops earlier elements within the debounce window and emits only the latest element after the pause. * - * @example + * **Example** (Debouncing stream elements) + * * ```ts * import { Console, Duration, Effect, Stream } from "effect" * @@ -4803,8 +5260,8 @@ export const scanEffect = /*#__PURE__*/dual(3, (self, initial, f) => self.channe * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const debounce = /*#__PURE__*/dual(2, (self, duration) => transformPull(self, Effect.fnUntraced(function* (pull, scope) { const clock = yield* Clock; @@ -4862,10 +5319,16 @@ export const debounce = /*#__PURE__*/dual(2, (self, duration) => transformPull(s }); }))); /** - * Delays the arrays of this stream according to the given bandwidth - * parameters using the token bucket algorithm. Allows for burst processing by - * allowing the bucket to accumulate tokens up to a `units + burst` threshold. - * The weight of each array is determined by the effectful `cost` function. + * Rate-limits stream chunks with an effectful cost function. + * + * **When to use** + * + * Use to throttle chunks when computing each chunk's cost requires an effect. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by the effectful `cost` function. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -4873,7 +5336,8 @@ export const debounce = /*#__PURE__*/dual(2, (self, duration) => transformPull(s * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks effectfully) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4894,8 +5358,8 @@ export const debounce = /*#__PURE__*/dual(2, (self, duration) => transformPull(s * // Output: [0, 1, 2, 3, 4, 5] * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const throttleEffect = /*#__PURE__*/dual(2, (self, options) => { const burst = options.burst ?? 0; @@ -4959,9 +5423,16 @@ const throttleShapeEffect = (self, cost, units, duration, burst) => transformPul }))); })); /** - * Delays the arrays of this stream using a token bucket and a per-array cost. - * Allows bursts by letting the bucket accumulate up to a `units + burst` - * threshold. The weight of each array is determined by the `cost` function. + * Rate-limits stream chunks with a synchronous cost function. + * + * **When to use** + * + * Use to throttle chunks when each chunk's cost can be computed synchronously. + * + * **Details** + * + * Uses a token bucket. The bucket can accumulate up to `units + burst` tokens, + * and each chunk consumes the cost returned by `cost`. * * If using the "enforce" strategy, arrays that do not meet the bandwidth * constraints are dropped. If using the "shape" strategy, arrays are delayed @@ -4969,7 +5440,8 @@ const throttleShapeEffect = (self, cost, units, duration, burst) => transformPul * * Defaults to the "shape" strategy. * - * @example + * **Example** (Throttling stream chunks) + * * ```ts * import { Console, Effect, Schedule, Stream } from "effect" * @@ -4990,8 +5462,8 @@ const throttleShapeEffect = (self, cost, units, duration, burst) => transformPul * }) * ``` * + * @category rate limiting * @since 2.0.0 - * @category Rate Limiting */ export const throttle = /*#__PURE__*/dual(2, (self, options) => throttleEffect(self, { ...options, @@ -5000,9 +5472,12 @@ export const throttle = /*#__PURE__*/dual(2, (self, options) => throttleEffect(s /** * Partitions the stream into non-empty arrays of the specified size. * + * **Details** + * * The final array may be smaller if there are not enough elements to fill it. * - * @example + * **Example** (Grouping elements by size) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5018,15 +5493,16 @@ export const throttle = /*#__PURE__*/dual(2, (self, options) => throttleEffect(s * // Output: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const grouped = /*#__PURE__*/dual(2, (self, n) => chunks(rechunk(self, n))); /** * Partitions the stream into arrays, emitting when the chunk size is reached * or the duration passes. * - * @example + * **Example** (Grouping elements by size or time) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5042,14 +5518,15 @@ export const grouped = /*#__PURE__*/dual(2, (self, n) => chunks(rechunk(self, n) * // Output: [ [ 1, 2 ], [ 3 ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const groupedWithin = /*#__PURE__*/dual(3, (self, chunkSize, duration) => aggregateWithin(self, Sink.take(chunkSize), Schedule.spaced(duration))); /** * Groups elements into keyed substreams using an effectful classifier. * - * @example + * **Example** (Grouping elements into keyed substreams using an effectful classifier) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5074,8 +5551,8 @@ export const groupedWithin = /*#__PURE__*/dual(3, (self, chunkSize, duration) => * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const groupBy = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => groupByImpl(self, Effect.fnUntraced(function* (arr, queues, queueMap) { for (let i = 0; i < arr.length; i++) { @@ -5089,7 +5566,8 @@ export const groupBy = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, op /** * Groups elements by a key and emits a stream per key. * - * @example + * **Example** (Grouping elements by key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5112,8 +5590,8 @@ export const groupBy = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, op * // Output: [ [ "odd", [ 1, 3, 5 ] ], [ "even", [ 2, 4 ] ] ] * ``` * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const groupByKey = /*#__PURE__*/dual(args => isStream(args[0]), (self, f, options) => suspend(() => { const batch = MutableHashMap.empty(); @@ -5160,8 +5638,25 @@ const groupByImpl = (self, f, options) => transformPullBracket(self, Effect.fnUn return Queue.takeAll(out); })); /** + * Groups consecutive elements that have equal keys into non-empty arrays. + * + * **When to use** + * + * Use when you already have a stream ordered by the grouping key and want to + * emit each consecutive run as a non-empty array while keeping later + * non-adjacent runs separate. + * + * **Details** + * + * The key is computed with `f`; adjacent elements whose keys are equal by + * `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs + * with the same key are emitted separately. + * + * @see {@link groupByKey} for grouping all elements with the same key across the stream + * @see {@link groupBy} for custom grouped stream construction + * + * @category grouping * @since 2.0.0 - * @category Grouping */ export const groupAdjacentBy = /*#__PURE__*/dual(2, (self, f) => transformPull(self, (pull, _scope) => Effect.sync(() => { let currentKey = undefined; @@ -5201,7 +5696,8 @@ export const groupAdjacentBy = /*#__PURE__*/dual(2, (self, f) => transformPull(s /** * Applies a sink transducer to the stream and emits each sink result. * - * @example + * **Example** (Transducing with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5216,8 +5712,8 @@ export const groupAdjacentBy = /*#__PURE__*/dual(2, (self, f) => transformPull(s * }) * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ export const transduce = /*#__PURE__*/dual(2, (self, sink) => transformPull(self, (upstream, scope) => Effect.sync(() => { let done; @@ -5242,10 +5738,13 @@ export const transduce = /*#__PURE__*/dual(2, (self, sink) => transformPull(self /** * Aggregates elements using the provided sink and emits each sink result as a stream element. * + * **Details** + * * The stream runs the upstream and downstream in separate fibers, so the sink can keep * consuming input while downstream is busy processing the previous output. * - * @example + * **Example** (Aggregating with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5262,16 +5761,19 @@ export const transduce = /*#__PURE__*/dual(2, (self, sink) => transformPull(self * // [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ export const aggregate = /*#__PURE__*/dual(2, (self, sink) => aggregateWithin(self, sink, Schedule.forever)); /** * Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers. * + * **Details** + * * The schedule can flush the current aggregation even if the sink has not finished. * - * @example + * **Example** (Aggregating with a sink and schedule) + * * ```ts * import { Console, Effect, Schedule, Sink, Stream } from "effect" * @@ -5289,8 +5791,8 @@ export const aggregate = /*#__PURE__*/dual(2, (self, sink) => aggregateWithin(se * // Output: [ 6, 15 ] * ``` * - * @since 2.0.0 * @category Aggregation + * @since 2.0.0 */ export const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => fromChannel(Channel.fromTransformBracket(Effect.fnUntraced(function* (_upstream, _, scope) { const pull = yield* Channel.toPullScoped(self.channel, _); @@ -5348,12 +5850,67 @@ export const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => fr return Effect.succeed(Effect.suspend(() => sink.transform(sinkUpstream, scope))); }).pipe(Effect.flatMap(pull => Effect.raceFirst(catchSinkHalt(pull), stepToBuffer))); })))); +/** + * Creates a fixed-size tuple of streams that each emit + * the same elements as the source stream. + * + * **Details** + * + * The source stream starts after all downstream streams have been subscribed. + * With the default suspend strategy, the source can only advance `capacity` + * chunks ahead of the slowest downstream stream. If a downstream stream is + * interrupted, it unsubscribes from the broadcast so it no longer contributes + * backpressure. + * + * **Example** (Broadcasting to two consumers) + * + * ```ts + * import { Console, Effect, Stream } from "effect" + * + * const program = Effect.scoped( + * Effect.gen(function*() { + * const [left, right] = yield* Stream.make(1, 2, 3).pipe( + * Stream.broadcastN({ n: 2, capacity: 8 }) + * ) + * + * const values = yield* Effect.all([ + * Stream.runCollect(left), + * Stream.runCollect(right) + * ], { concurrency: "unbounded" }) + * + * yield* Console.log(values) + * }) + * ) + * + * Effect.runPromise(program) + * // Output: [[1, 2, 3], [1, 2, 3]] + * ``` + * + * @category Broadcast + * @since 4.0.0 + */ +export const broadcastN = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, options) { + const pubsub = yield* makePubSub(options); + const streams = new Array(options.n); + const parentScope = yield* Scope.Scope; + for (let i = 0; i < options.n; i++) { + const scope = Scope.forkUnsafe(parentScope); + const subscription = yield* PubSub.subscribe(pubsub).pipe(Effect.provideService(Scope.Scope, scope)); + streams[i] = Channel.fromEffectTake(PubSub.take(subscription)).pipe(Channel.onExit(exit => Scope.close(scope, exit)), fromChannel); + } + yield* Channel.runForEach(self.channel, value => PubSub.publish(pubsub, value)).pipe(Effect.onExit(exit => PubSub.publish(pubsub, exit)), Effect.forkScoped); + return streams; +})); +const makePubSub = options => Effect.acquireRelease(options.capacity === "unbounded" ? PubSub.unbounded(options) : options.strategy === "dropping" ? PubSub.dropping(options) : options.strategy === "sliding" ? PubSub.sliding(options) : PubSub.bounded(options), PubSub.shutdown); /** * Creates a PubSub-backed stream that multicasts the source to all subscribers. * + * **Details** + * * The returned stream is scoped and uses the provided PubSub capacity and replay settings. * - * @example + * **Example** (Broadcasting a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5377,18 +5934,21 @@ export const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => fr * // Output: [[1, 2, 3], [1, 2, 3]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 2.0.0 */ export const broadcast = /*#__PURE__*/dual(2, (self, options) => Effect.map(toPubSubTake(self, options), fromPubSubTake)); /** * Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts. * + * **Details** + * * The upstream continues running while there is at least one consumer and is finalized after the last one exits. * If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from * the next element instead of restarting. * - * @example + * **Example** (Sharing a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5409,8 +5969,8 @@ export const broadcast = /*#__PURE__*/dual(2, (self, options) => Effect.map(toPu * // output: [[1], [1]] * ``` * - * @since 2.0.0 * @category Broadcast + * @since 3.8.0 */ export const share = /*#__PURE__*/dual(2, (self, options) => Effect.map(RcRef.make({ acquire: broadcast(self, options), @@ -5419,10 +5979,13 @@ export const share = /*#__PURE__*/dual(2, (self, options) => Effect.map(RcRef.ma /** * Pipes this stream through a channel that consumes and emits chunked elements. * + * **Details** + * * The channel receives `NonEmptyReadonlyArray` chunks and can transform both the * output elements and error type. * - * @example + * **Example** (Piping through a channel) + * * ```ts * import { Array, Channel, Console, Effect, Stream } from "effect" * @@ -5445,54 +6008,55 @@ export const share = /*#__PURE__*/dual(2, (self, options) => Effect.map(RcRef.ma * // => [2, 4, 6] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export const pipeThroughChannel = /*#__PURE__*/dual(2, (self, channel) => fromChannel(Channel.pipeTo(self.channel, channel))); /** * Pipes values through the provided channel while preserving this stream's * failures alongside any channel failures. * + * **Details** + * * Upstream failures are not passed to the channel, so the resulting stream can * fail with either the original stream error or the channel error. * - * @example + * **Example** (Piping through a channel with failures) + * * ```ts - * import type { Channel } from "effect" - * import { Console, Effect, Stream } from "effect" + * import { Array, Channel, Effect, Stream } from "effect" + * + * type NumberChunk = readonly [number, ...Array] * - * declare const transformChannel: Channel.Channel< - * readonly [string, ...Array], - * "ChannelError", - * unknown, - * readonly [number, ...Array], - * "StreamError", - * unknown, - * never - * > + * const stringifyChunks = Channel.identity().pipe( + * Channel.map((chunk) => Array.map(chunk, String)) + * ) * * Effect.runPromise(Effect.gen(function*() { * const result = yield* Stream.make(1, 2, 3).pipe( - * Stream.pipeThroughChannelOrFail(transformChannel), + * Stream.rechunk(2), + * Stream.pipeThroughChannelOrFail(stringifyChunks), * Stream.runCollect * ) * - * yield* Console.log(result) + * yield* Effect.sync(() => console.log(result)) * })) - * // Output: - * // ["1", "2", "3"] + * // [ "1", "2", "3" ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export const pipeThroughChannelOrFail = /*#__PURE__*/dual(2, (self, channel) => fromChannel(Channel.pipeToOrFail(self.channel, channel))); /** * Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers. * + * **Details** + * * If the sink completes mid-chunk, the remaining elements become the output stream. * - * @example + * **Example** (Piping through a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -5509,14 +6073,15 @@ export const pipeThroughChannelOrFail = /*#__PURE__*/dual(2, (self, channel) => * //=> [ 3, 4 ] * ``` * - * @since 2.0.0 * @category Pipe + * @since 2.0.0 */ export const pipeThrough = /*#__PURE__*/dual(2, (self, sink) => self.channel.pipe(Channel.pipeToOrFail(Sink.toChannel(sink)), Channel.concatWith(([_, leftover]) => leftover ? Channel.succeed(leftover) : Channel.empty), fromChannel)); /** * Collects all elements into an array and emits it as a single element. * - * @example + * **Example** (Collecting values into a stream element) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5531,14 +6096,15 @@ export const pipeThrough = /*#__PURE__*/dual(2, (self, sink) => self.channel.pip * // [1, 2, 3] * ``` * - * @since 2.0.0 * @category Accumulation + * @since 4.0.0 */ export const collect = self => fromEffect(runCollect(self)); /** * Accumulates elements into a growing array, emitting the cumulative array for each input chunk. * - * @example + * **Example** (Accumulating stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5556,8 +6122,8 @@ export const collect = self => fromEffect(runCollect(self)); * //=> { _id: 'Chunk', values: [ [ 1 ], [ 1, 2 ], [ 1, 2, 3 ] ] } * ``` * - * @since 2.0.0 * @category Accumulation + * @since 2.0.0 */ export const accumulate = self => mapAccumArray(self, Arr.empty, (acc, as) => { const combined = Arr.appendAll(acc, as); @@ -5566,7 +6132,8 @@ export const accumulate = self => mapAccumArray(self, Arr.empty, (acc, as) => { /** * Emits only elements that differ from the previous one. * - * @example + * **Example** (Emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5583,14 +6150,15 @@ export const accumulate = self => mapAccumArray(self, Arr.empty, (acc, as) => { * // [1, 2, 3] * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ export const changes = self => changesWith(self, Equal.equals); /** * Returns a stream that only emits elements that are not equal to the previously emitted element, as determined by the specified predicate. * - * @example + * **Example** (Emitting values that changed by equivalence) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5607,8 +6175,8 @@ export const changes = self => changesWith(self, Equal.equals); * // ["A", "B"] * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ export const changesWith = /*#__PURE__*/dual(2, (self, f) => transformPull(self, (pull, _scope) => Effect.sync(() => { let first = true; @@ -5634,9 +6202,12 @@ export const changesWith = /*#__PURE__*/dual(2, (self, f) => transformPull(self, /** * Emits only elements that differ from the previous element, using an effectful equality check. * + * **Details** + * * The predicate runs for each element after the first; returning `true` treats it as equal and skips it. * - * @example + * **Example** (Effectfully emitting changed values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5652,8 +6223,8 @@ export const changesWith = /*#__PURE__*/dual(2, (self, f) => transformPull(self, * // { _id: "Chunk", values: [ 1, 2, 3 ] } * ``` * - * @since 2.0.0 * @category Deduplication + * @since 2.0.0 */ export const changesWithEffect = /*#__PURE__*/dual(2, (self, f) => transformPull(self, (pull, _scope) => Effect.sync(() => { let first = true; @@ -5679,7 +6250,8 @@ export const changesWithEffect = /*#__PURE__*/dual(2, (self, f) => transformPull /** * Decodes Uint8Array chunks into strings using TextDecoder with an optional encoding. * - * @example + * **Example** (Decoding Uint8Array chunks into strings using TextDecoder with an optional encoding) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5701,8 +6273,8 @@ export const changesWithEffect = /*#__PURE__*/dual(2, (self, f) => transformPull * // ["Hello", " World"] * ``` * + * @category encoding * @since 2.0.0 - * @category Encoding */ export const decodeText = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => suspend(() => { const decoder = new TextDecoder(options?.encoding); @@ -5713,7 +6285,8 @@ export const decodeText = /*#__PURE__*/dual(args => isStream(args[0]), (self, op /** * Encodes a stream of strings into UTF-8 `Uint8Array` chunks. * - * @example + * **Example** (Encoding a stream of strings into UTF-8 Uint8Array chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5729,8 +6302,8 @@ export const decodeText = /*#__PURE__*/dual(args => isStream(args[0]), (self, op * // [[72, 101, 108, 108, 111], [32], [87, 111, 114, 108, 100]] * ``` * + * @category encoding * @since 2.0.0 - * @category Encoding */ export const encodeText = self => suspend(() => { const encoder = new TextEncoder(); @@ -5739,7 +6312,8 @@ export const encodeText = self => suspend(() => { /** * Splits a stream of strings into lines, handling `\n`, `\r`, and `\r\n` delimiters across chunks. * - * @example + * **Example** (Splitting streamed text into lines) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5752,14 +6326,15 @@ export const encodeText = self => suspend(() => { * // ["a", "b", "c"] * ``` * + * @category encoding * @since 2.0.0 - * @category Encoding */ export const splitLines = self => self.channel.pipe(Channel.pipeTo(Channel.splitLines()), fromChannel); /** * Inserts the provided element between emitted elements. * - * @example + * **Example** (Interspersing stream elements) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5773,8 +6348,8 @@ export const splitLines = self => self.channel.pipe(Channel.pipeTo(Channel.split * // [1, 0, 2, 0, 3, 0, 4] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const intersperse = /*#__PURE__*/dual(2, (self, element) => mapArray(self, (arr, i) => { const out = i === 0 ? [] : [element]; @@ -5789,11 +6364,14 @@ export const intersperse = /*#__PURE__*/dual(2, (self, element) => mapArray(self return out; })); /** - * Intersperse stream elements with a middle value, adding a start and end value. + * Adds a start value, middle value, and end value around stream elements. + * + * **Details** * * The start and end values are always emitted, even when the stream is empty. * - * @example + * **Example** (Interspersing stream affixes) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5810,8 +6388,8 @@ export const intersperse = /*#__PURE__*/dual(2, (self, element) => mapArray(self * // [ "[", "a", ",", "b", ",", "c", "]" ] * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succeed(options.start).pipe(concat(intersperse(self, options.middle)), concat(succeed(options.end)))); /** @@ -5819,7 +6397,8 @@ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succee * each stream; when one ends, the remaining values from the other stream are * emitted. * - * @example + * **Example** (Interleaving streams) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5836,17 +6415,21 @@ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succee * Effect.runPromise(program) * // [2, 5, 3, 6, 7] * ``` + * + * @category merging * @since 2.0.0 - * @category Merging */ export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(self, that, fromIterable(Iterable.forever([true, false])))); /** * Interleaves two streams deterministically by following a boolean decider stream. * + * **Details** + * * The decider controls how many elements are pulled; if one side ends, pulls for * that side are ignored. * - * @example + * **Example** (Interleaving two streams deterministically by following a boolean decider stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -5866,8 +6449,8 @@ export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(se * // [ 1, 2, 4, 3, 5 ] * ``` * + * @category merging * @since 2.0.0 - * @category Merging */ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => fromChannel(Channel.fromTransform(Effect.fnUntraced(function* (upstream, scope) { const pullDecider = yield* Channel.toTransform(Channel.flattenArray(decider.channel))(upstream, scope); @@ -5902,10 +6485,13 @@ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => from * success will be discarded. This combinator will also interrupt any * in-progress element being pulled from upstream. * + * **Details** + * * If the effect completes with a failure before the stream completes, the * returned stream will emit that failure. * - * @example + * **Example** (Interrupting when an effect completes) + * * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -5928,14 +6514,29 @@ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => from * // => [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.interruptWhen(self.channel, effect))); /** - * Halts evaluation after the current element once the provided effect completes; the effect is forked, its success is discarded, failures fail the stream, and it does not interrupt an in-progress pull (use `interruptWhen` for that). + * Stops a stream after the current element when an effect completes. + * + * **When to use** + * + * Use to stop before the next pull after an external signal completes. + * + * **Details** + * + * The effect is forked, its success value is discarded, and its failure fails + * the stream. + * + * **Gotchas** + * + * This does not interrupt an in-progress pull. Use {@link interruptWhen} when + * the stream should be interrupted immediately. + * + * **Example** (Halting a stream after an effect completes) * - * @example * ```ts * import { Console, Deferred, Effect, Stream } from "effect" * @@ -5954,14 +6555,15 @@ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel( * // [1, 2] * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.haltWhen(self.channel, effect))); /** * Runs the provided finalizer when the stream exits, passing the exit value. * - * @example + * **Example** (Running a finalizer on exit) + * * ```ts * import { Console, Effect, Exit, Stream } from "effect" * @@ -5980,17 +6582,20 @@ export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Chann * // Stream completed successfully * ``` * - * @since 4.0.0 * @category Finalization + * @since 4.0.0 */ export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Channel.onExit(self.channel, finalizer))); /** * Runs the provided effect when the stream fails, passing the failure cause. * + * **Gotchas** + * * Note: Unlike `Effect.onError` there is no guarantee that the provided * effect will not be interrupted. * - * @example + * **Example** (Running an effect on errors) + * * ```ts * import { Cause, Console, Effect, Stream } from "effect" * @@ -6008,14 +6613,15 @@ export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Chan * // Stream failed: boom * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const onError = /*#__PURE__*/dual(2, (self, cleanup) => fromChannel(Channel.onError(self.channel, cleanup))); /** * Runs the provided effect before this stream starts. * - * @example + * **Example** (Running an effect on start) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6034,14 +6640,15 @@ export const onError = /*#__PURE__*/dual(2, (self, cleanup) => fromChannel(Chann * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ export const onStart = /*#__PURE__*/dual(2, (self, onStart) => fromChannel(Channel.onStart(self.channel, onStart))); /** * Runs the provided effect with the first element emitted by the stream. * - * @example + * **Example** (Running an effect on the first value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6054,14 +6661,15 @@ export const onStart = /*#__PURE__*/dual(2, (self, onStart) => fromChannel(Chann * // Output: first=1 * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => fromChannel(Channel.onFirst(self.channel, arr => onFirst(arr[0])))); /** * Runs the provided effect when the stream ends successfully. * - * @example + * **Example** (Running an effect on end) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6078,14 +6686,15 @@ export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => fromChannel(Chann * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Sequencing + * @category sequencing + * @since 3.6.0 */ export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => fromChannel(Channel.onEnd(self.channel, onEnd))); /** * Executes the provided finalizer after this stream's finalizers run. * - * @example + * **Example** (Ensuring finalization) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6103,8 +6712,8 @@ export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => fromChannel(Channel.o * //=> [1, 2] * ``` * - * @since 4.0.0 * @category Finalization + * @since 2.0.0 */ export const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Channel.ensuring(self.channel, finalizer))); /** @@ -6112,11 +6721,10 @@ export const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Ch * service requirements. Use `options.local` to build the layer every time; by * default, layers are shared between provide calls. * - * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`. + * **Example** (Providing stream requirements) * - * @example * ```ts - * import { Console, Effect, Layer, Context, Stream } from "effect" + * import { Console, Context, Effect, Layer, Stream } from "effect" * * class Env extends Context.Service()("Env") {} * @@ -6140,16 +6748,17 @@ export const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => fromChannel(Ch * // ["Hello, Ada"] * ``` * + * @category services * @since 4.0.0 - * @category Services */ export const provide = /*#__PURE__*/dual(args => isStream(args[0]), (self, layer, options) => fromChannel(Channel.provide(self.channel, layer, options))); /** * Provides multiple services to the stream using a context. * - * @example + * **Example** (Providing multiple services to the stream using a context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Config extends Context.Service()("Config") {} * class Greeter extends Context.Service string }>()("Greeter") {} @@ -6175,17 +6784,18 @@ export const provide = /*#__PURE__*/dual(args => isStream(args[0]), (self, layer * // ["Hello!"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export const provideContext = /*#__PURE__*/dual(2, (self, context) => fromChannel(Channel.provideContext(self.channel, context))); /** * Provides the stream with a single required service, eliminating that * requirement from its environment. * - * @example + * **Example** (Providing a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Greeter extends Context.Service string @@ -6212,16 +6822,17 @@ export const provideContext = /*#__PURE__*/dual(2, (self, context) => fromChanne * //=> ["Hello, Ada"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export const provideService = /*#__PURE__*/dual(3, (self, key, service) => fromChannel(Channel.provideService(self.channel, key, service))); /** * Provides a service to the stream using an effect, removing the requirement and adding the effect's error and environment. * - * @example + * **Example** (Providing a stream service effectfully) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class ApiConfig extends Context.Service()("ApiConfig") {} * @@ -6251,17 +6862,18 @@ export const provideService = /*#__PURE__*/dual(3, (self, key, service) => fromC * // ["https://example.com"] * ``` * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export const provideServiceEffect = /*#__PURE__*/dual(3, (self, key, service) => fromChannel(Channel.provideServiceEffect(self.channel, key, service))); /** * Transforms the stream's required services by mapping the current context * to a new one. * - * @example + * **Example** (Updating the stream context) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Logger extends Context.Service()("Logger") {} * class Config extends Context.Service()("Config") {} @@ -6291,16 +6903,17 @@ export const provideServiceEffect = /*#__PURE__*/dual(3, (self, key, service) => * //=> [ "Hello World" ] * ``` * - * @since 2.0.0 - * @category Services + * @category services + * @since 4.0.0 */ export const updateContext = /*#__PURE__*/dual(2, (self, f) => fromChannel(Channel.updateContext(self.channel, f))); /** * Updates a single service in the stream environment by applying a function. * - * @example + * **Example** (Updating a stream service) + * * ```ts - * import { Console, Effect, Context, Stream } from "effect" + * import { Console, Context, Effect, Stream } from "effect" * * class Counter extends Context.Service()("Counter") {} * @@ -6317,14 +6930,15 @@ export const updateContext = /*#__PURE__*/dual(2, (self, f) => fromChannel(Chann * // Output: Updated count: 1 * ``` * + * @category services * @since 2.0.0 - * @category Services */ export const updateService = /*#__PURE__*/dual(3, (self, service, f) => updateContext(self, context => Context.add(context, service, f(Context.get(context, service))))); /** * Wraps the stream with a new span for tracing. * - * @example + * **Example** (Wrapping a stream in a span) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6339,8 +6953,8 @@ export const updateService = /*#__PURE__*/dual(3, (self, service, f) => updateCo * // [1, 2, 3] * ``` * - * @since 4.0.0 - * @category Tracing + * @category tracing + * @since 2.0.0 */ export const withSpan = function () { const dataFirst = isStream(arguments[0]); @@ -6355,9 +6969,10 @@ export const withSpan = function () { /** * Provides the entry point for do-notation style stream composition. * - * @example + * **Example** (Starting stream do notation) + * * ```ts - * import { Console, Effect, Stream, pipe } from "effect" + * import { Console, Effect, pipe, Stream } from "effect" * * const program = pipe( * Stream.Do, @@ -6374,8 +6989,8 @@ export const withSpan = function () { * //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export const Do = /*#__PURE__*/succeed({}); const let_ = /*#__PURE__*/dual(3, (self, name, f) => map(self, a => ({ @@ -6386,7 +7001,8 @@ export { /** * Adds a computed field to the current Do-notation record. * - * @example + * **Example** (Adding a computed field) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6404,14 +7020,15 @@ export { * // [{ x: 2, y: 6 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ let_ as let }; /** * Binds the result of a stream to a field in the do-notation record. * - * @example + * **Example** (Binding a stream value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6426,8 +7043,8 @@ let_ as let }; * // [{ a: 1, b: 2 }, { a: 2, b: 3 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => flatMap(self, a => map(f(a), b => ({ ...a, @@ -6436,7 +7053,8 @@ export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, /** * Binds an Effect-produced value into the do-notation record for each stream element. * - * @example + * **Example** (Binding an effect value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6454,8 +7072,8 @@ export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, * // [{ value: 1, double: 2 }, { value: 2, double: 4 }] * ``` * - * @since 4.0.0 - * @category Do Notation + * @category do notation + * @since 2.0.0 */ export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => mapEffect(self, a => Effect.map(f(a), b => ({ ...a, @@ -6464,7 +7082,8 @@ export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, ta /** * Maps each element into a record keyed by the provided name. * - * @example + * **Example** (Binding values to a record key) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6476,8 +7095,8 @@ export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, ta * // [{ value: 1 }, { value: 2 }, { value: 3 }] * ``` * - * @category Do Notation - * @since 4.0.0 + * @category do notation + * @since 2.0.0 */ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, a => ({ [name]: a @@ -6485,7 +7104,8 @@ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, a => ({ /** * Runs a stream with a sink and returns the sink result. * - * @example + * **Example** (Running a stream with a sink) + * * ```ts * import { Console, Effect, Sink, Stream } from "effect" * @@ -6495,14 +7115,15 @@ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, a => ({ * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const run = /*#__PURE__*/dual(2, (self, sink) => Effect.scopedWith(scope => Channel.toPullScoped(self.channel, scope).pipe(Effect.flatMap(upstream => sink.transform(upstream, scope)), Effect.map(([a]) => a)))); /** * Runs the stream and collects all elements into an array. * - * @example + * **Example** (Collecting stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6517,8 +7138,8 @@ export const run = /*#__PURE__*/dual(2, (self, sink) => Effect.scopedWith(scope * // [1, 2, 3, 4, 5] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runCollect = self => Channel.runFold(self.channel, () => [], (acc, chunk) => { for (let i = 0; i < chunk.length; i++) { @@ -6529,7 +7150,8 @@ export const runCollect = self => Channel.runFold(self.channel, () => [], (acc, /** * Runs the stream and returns the number of elements emitted. * - * @example + * **Example** (Counting stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6544,14 +7166,15 @@ export const runCollect = self => Channel.runFold(self.channel, () => [], (acc, * // 5 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runCount = self => Channel.runFold(self.channel, () => 0, (acc, chunk) => acc + chunk.length); /** * Runs the stream and returns the numeric sum of its elements. * - * @example + * **Example** (Summing stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6564,8 +7187,8 @@ export const runCount = self => Channel.runFold(self.channel, () => 0, (acc, chu * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runSum = self => Channel.runFold(self.channel, () => 0, (acc, chunk) => { for (let i = 0; i < chunk.length; i++) { @@ -6576,7 +7199,8 @@ export const runSum = self => Channel.runFold(self.channel, () => 0, (acc, chunk /** * Runs the stream and folds elements using a pure reducer. * - * @example + * **Example** (Folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6593,8 +7217,8 @@ export const runSum = self => Channel.runFold(self.channel, () => 0, (acc, chunk * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Channel.runFold(self.channel, initial, (acc, arr) => { for (let i = 0; i < arr.length; i++) { @@ -6605,7 +7229,13 @@ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Channel.runFol /** * Runs the stream and folds elements using an effectful reducer. * - * @example + * **When to use** + * + * Use when reducing stream elements needs Effects, services, or failures in the + * reducer. + * + * **Example** (Effectfully folding stream values) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6622,8 +7252,8 @@ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Channel.runFol * // 6 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Channel.runFoldEffect(self.channel, initial, (acc, arr) => { let i = 0; @@ -6640,7 +7270,8 @@ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Channel. /** * Runs the stream and returns the first element as an `Option`. * - * @example + * **Example** (Getting the first stream value) + * * ```ts * import { Console, Effect, Option, Stream } from "effect" * @@ -6653,21 +7284,40 @@ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Channel. * // 1 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runHead = self => Effect.map(Channel.runHead(self.channel), Option.map(Arr.getUnsafe(0))); /** * Runs the stream and returns the last element as an `Option`. * + * **When to use** + * + * Use to consume a finite stream when only the final emitted element matters. + * + * **Details** + * + * `Option.some` contains the last emitted element. `Option.none` means the + * stream completed without emitting. + * + * **Gotchas** + * + * The returned effect waits for the stream to complete before it can produce a + * value. + * + * @see {@link runHead} for consuming only the first emitted element + * @see {@link runCollect} for collecting every emitted element + * @see {@link runDrain} for consuming the stream while discarding emitted elements + * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runLast = self => Effect.map(Channel.runLast(self.channel), Option.map(Arr.lastNonEmpty)); /** * Runs the provided effectful callback for each element of the stream. * - * @example + * **Example** (Running an effect for each value) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6683,8 +7333,8 @@ export const runLast = self => Effect.map(Channel.runLast(self.channel), Option. * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runForEach = /*#__PURE__*/dual(2, (self, f) => Channel.runForEach(self.channel, arr => { let i = 0; @@ -6698,7 +7348,8 @@ export const runForEach = /*#__PURE__*/dual(2, (self, f) => Channel.runForEach(s * Runs the stream, applying the effectful predicate to each element and * stopping when it returns `false`. * - * @example + * **Example** (Running effects while a predicate holds) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6719,8 +7370,8 @@ export const runForEach = /*#__PURE__*/dual(2, (self, f) => Channel.runForEach(s * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => Channel.runForEachWhile(self.channel, arr => { let done = false; @@ -6737,7 +7388,8 @@ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => Channel.runForE /** * Consumes the stream in chunks, passing each non-empty array to the callback. * - * @example + * **Example** (Consuming stream chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6753,14 +7405,15 @@ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => Channel.runForE * // Processing chunk: 1, 2, 3, 4, 5 * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export const runForEachArray = /*#__PURE__*/dual(2, (self, f) => Channel.runForEach(self.channel, f)); /** * Runs the stream for its effects, discarding emitted elements. * - * @example + * **Example** (Draining a stream run) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6778,17 +7431,20 @@ export const runForEachArray = /*#__PURE__*/dual(2, (self, f) => Channel.runForE * // Processing: 3 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runDrain = self => Channel.runDrain(self.channel); /** * Returns a scoped pull for manually consuming the stream's output chunks. * + * **Details** + * * The pull fails with `Cause.Done` when the stream ends and with the stream * error on failure. * - * @example + * **Example** (Creating a scoped pull) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6806,14 +7462,15 @@ export const runDrain = self => Channel.runDrain(self.channel); * // [1, 2, 3] * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toPull = self => Channel.toPull(self.channel); /** * Concatenates all emitted strings into a single string. * - * @example + * **Example** (Joining strings from a stream) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6827,14 +7484,15 @@ export const toPull = self => Channel.toPull(self.channel); * // Hello World! * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const mkString = self => Channel.runFold(self.channel, () => "", (acc, chunk) => acc + chunk.join("")); /** * Concatenates the stream's `Uint8Array` chunks into a single `Uint8Array`. * - * @example + * **Example** (Joining Uint8Array chunks) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6848,8 +7506,8 @@ export const mkString = self => Channel.runFold(self.channel, () => "", (acc, ch * // [1, 2, 3, 4] * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const mkUint8Array = self => Effect.map(Channel.runFold(self.channel, () => ({ bytes: 0, @@ -6876,9 +7534,17 @@ export const mkUint8Array = self => Effect.map(Channel.runFold(self.channel, () /** * Converts the stream to a `ReadableStream` using the provided services. * + * **When to use** + * + * Use when bridging to Web Streams and you already have the `Context` required + * to run the stream outside an `Effect`. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting to a ReadableStream with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -6886,8 +7552,8 @@ export const mkUint8Array = self => Effect.map(Channel.runFold(self.channel, () * const readableStream = Stream.toReadableStreamWith(stream, Context.empty()) * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export const toReadableStreamWith = /*#__PURE__*/dual(args => isStream(args[0]), (self, context, options) => { let currentResolve = undefined; @@ -6926,9 +7592,12 @@ export const toReadableStreamWith = /*#__PURE__*/dual(args => isStream(args[0]), /** * Converts a stream to a `ReadableStream`. * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Converting a stream to a ReadableStream) + * * ```ts * import { Stream } from "effect" * @@ -6936,16 +7605,24 @@ export const toReadableStreamWith = /*#__PURE__*/dual(args => isStream(args[0]), * const reader = readableStream.getReader() * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toReadableStream = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => toReadableStreamWith(self, Context.empty(), options)); /** * Creates an Effect that builds a ReadableStream from the stream. * + * **When to use** + * + * Use when bridging to Web Streams from inside an `Effect` so the required + * services can be captured from the current context. + * + * **Details** + * * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream. * - * @example + * **Example** (Creating a ReadableStream effect) + * * ```ts * import { Console, Effect, Stream } from "effect" * @@ -6959,14 +7636,20 @@ export const toReadableStream = /*#__PURE__*/dual(args => isStream(args[0]), (se * Effect.runPromise(effect) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toReadableStreamEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) => Effect.map(Effect.context(), context => toReadableStreamWith(self, context, options))); /** * Converts the stream to an `AsyncIterable` using the provided services. * - * @example + * **When to use** + * + * Use when converting outside an Effect and you already have the `Context` + * needed to run the stream. + * + * **Example** (Converting to an AsyncIterable with services) + * * ```ts * import { Context, Stream } from "effect" * @@ -6978,12 +7661,15 @@ export const toReadableStreamEffect = /*#__PURE__*/dual(args => isStream(args[0] * for await (const value of iterable) { * results.push(value) * } - * return results + * console.log(results) * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 4.0.0 */ export const toAsyncIterableWith = /*#__PURE__*/dual(2, (self, context) => ({ [Symbol.asyncIterator]() { @@ -7024,9 +7710,15 @@ export const toAsyncIterableWith = /*#__PURE__*/dual(2, (self, context) => ({ /** * Creates an effect that yields an `AsyncIterable` using the current services. * - * @example + * **When to use** + * + * Use when the `AsyncIterable` should be created inside Effect with the current + * context supplying the stream's services. + * + * **Example** (Creating an AsyncIterable effect) + * * ```ts - * import { Console, Effect, Stream } from "effect" + * import { Effect, Stream } from "effect" * * const stream = Stream.make(1, 2, 3) * @@ -7039,50 +7731,54 @@ export const toAsyncIterableWith = /*#__PURE__*/dual(2, (self, context) => ({ * } * return collected * }) - * yield* Console.log(values) + * yield* Effect.sync(() => console.log(values)) * }) * * Effect.runPromise(program) - * //=> [ 1, 2, 3 ] + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 3.15.0 */ export const toAsyncIterableEffect = self => Effect.map(Effect.context(), context => toAsyncIterableWith(self, context)); /** * Converts a stream to an `AsyncIterable` for `for await...of` consumption. * - * @example + * **Example** (Converting to an async iterable) + * * ```ts - * import { Effect, Stream } from "effect" + * import { Stream } from "effect" * * const stream = Stream.make(1, 2, 3) * - * const program = Effect.gen(function* () { + * const collect = async () => { * const iterable = Stream.toAsyncIterable(stream) - * const results = yield* Effect.promise(async () => { - * const values: Array = [] - * for await (const value of iterable) { - * values.push(value) - * } - * return values - * }) - * return results - * }) + * const values: Array = [] + * for await (const value of iterable) { + * values.push(value) + * } + * console.log(values) + * } + * + * collect() + * // [ 1, 2, 3 ] * ``` * - * @since 2.0.0 - * @category Destructors + * @category destructors + * @since 3.15.0 */ export const toAsyncIterable = self => toAsyncIterableWith(self, Context.empty()); /** * Runs the stream, publishing elements into the provided PubSub. * + * **Details** + * * `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends. * It only shuts down when set to `true`. * - * @example + * **Example** (Running a stream into a PubSub) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -7104,17 +7800,20 @@ export const toAsyncIterable = self => toAsyncIterableWith(self, Context.empty() * //=> 2 * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runIntoPubSub = /*#__PURE__*/dual(args => isStream(args[0]), (self, pubsub, options) => Channel.runIntoPubSubArray(self.channel, pubsub, options)); /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of emitted values for concurrent consumption. + * + * **Details** * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * stream ends. By default this is `true`. * - * @example + * **Example** (Converting a stream to a PubSub for concurrent consumption) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -7129,16 +7828,19 @@ export const runIntoPubSub = /*#__PURE__*/dual(args => isStream(args[0]), (self, * })) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toPubSub = /*#__PURE__*/dual(2, (self, options) => Channel.toPubSubArray(self.channel, options)); /** - * Converts a stream to a PubSub for concurrent consumption. + * Converts a stream to a PubSub of `Take` values for concurrent consumption. + * + * **Details** * * `Take` values include the stream's end and failure signals. * - * @example + * **Example** (Converting to a PubSub of takes) + * * ```ts * import { Console, Effect, PubSub, Stream } from "effect" * @@ -7155,14 +7857,22 @@ export const toPubSub = /*#__PURE__*/dual(2, (self, options) => Channel.toPubSub * }) * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const toPubSubTake = /*#__PURE__*/dual(2, (self, options) => Channel.toPubSubTake(self.channel, options)); /** - * Converts a stream to a Queue for concurrent consumption. + * Creates a scoped dequeue that is fed by the stream for concurrent + * consumption. + * + * **Details** + * + * Elements are offered to the queue as the stream runs. Stream completion is + * signaled with `Cause.Done`, stream failures fail the queue, and the queue is + * shut down when the surrounding scope closes. + * + * **Example** (Converting a stream to a Queue for concurrent consumption) * - * @example * ```ts * import { Effect, Queue, Stream } from "effect" * @@ -7173,15 +7883,16 @@ export const toPubSubTake = /*#__PURE__*/dual(2, (self, options) => Channel.toPu * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toQueue = /*#__PURE__*/dual(2, (self, options) => Channel.toQueueArray(self.channel, options)); /** * Runs the stream, offering each element to the provided queue and ending it * with `Cause.Done` when the stream completes. * - * @example + * **Example** (Running a stream into a queue) + * * ```ts * import { Cause, Effect, Queue, Stream } from "effect" * @@ -7203,8 +7914,8 @@ export const toQueue = /*#__PURE__*/dual(2, (self, options) => Channel.toQueueAr * }) * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const runIntoQueue = /*#__PURE__*/dual(2, (self, queue) => Channel.runIntoQueueArray(self.channel, queue)); //# sourceMappingURL=Stream.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Stream.js.map b/.opencode/node_modules/effect/dist/Stream.js.map index 7b688a6df77f1b7459d1fc7f1b557557bcab052c..a09adb56aec74b6c6f052374ecaf25fe9e133c85 100644 --- a/.opencode/node_modules/effect/dist/Stream.js.map +++ b/.opencode/node_modules/effect/dist/Stream.js.map @@ -1 +1 @@ -{"version":3,"file":"Stream.js","names":["Arr","Cause","Channel","Clock","Context","Duration","Effect","Equal","ExecutionPlan","Exit","Fiber","constant","constTrue","constVoid","dual","identity","internalExecutionPlan","internal","addSpanStackTrace","Iterable","Latch","MutableHashMap","MutableList","Option","hasProperty","isNotUndefined","isTagged","Pull","Queue","RcMap","RcRef","Result","Schedule","Scope","Sink","isString","TypeId","isStream","u","DefaultChunkSize","fromChannel","fromEffect","effect","map","of","service","serviceOption","fromEffectDrain","fromPull","succeed","flatMap","done","fromEffectRepeat","fromEffectSchedule","schedule","gen","step","toStepWithMetadata","s","provideService","CurrentMetadata","defaultValue","initial","pull","suspend","pipe","meta","next","tick","interval","sync","first","undefined","delayed","delay","transformPull","self","f","fromTransform","_","scope","toPullScoped","channel","transformPullBracket","fromTransformBracket","forkedScope","toChannel","stream","callback","options","callbackArray","empty","value","make","values","fromArray","evaluate","fail","error","failSync","failCause","cause","die","defect","failCauseSync","fromIteratorSucceed","iterator","maxChunkSize","fromIteratorArray","fromIterable","iterable","Array","isArray","chunkSize","fromIterableArray","fromIterableEffect","unwrap","fromIterableEffectRepeat","array","isReadonlyArrayNonEmpty","fromArrayEffect","fromArrays","arrays","filter","fromQueue","queue","fromQueueArray","fromPubSub","pubsub","fromPubSubArray","fromPubSubTake","fromReadableStream","fnUntraced","reader","getReader","addFinalizer","releaseLockOnEnd","releaseLock","promise","cancel","tryPromise","try","read","catch","reason","onError","fromAsyncIterable","fromAsyncIterableArray","fromSchedule","toStepWithSleep","catchDone","fromSubscription","fromSubscriptionArray","fromEventListener","target","type","emit","event","offerUnsafe","acquireRelease","addEventListener","removeEventListener","bufferSize","unfold","state","paginate","loop","a","isNone","iterate","range","min","max","start","remaining","chunk","never","scoped","i","o","mapBoth","onSuccess","mapError","onFailure","mapArray","mapEffect","args","flattenArray","flattenEffect","mapArrayEffect","result","catch_","e","tap","as","tapBoth","tapError","onElement","concurrency","tapSink","sink","upstreamLatch","makeUnsafe","sinkLatch","causeSink","sinkDone","streamDone","sinkUpstream","whenOpen","arr","closeUnsafe","open","transform","eff","onExitPrimitive","exit","isFailure","forkIn","pullAndOffer","chunk_","openUnsafe","await","switchMap","flatten","drain","drainFork","that","mergeEffect","runDrain","repeat","timeout","duration","timeoutOrElse","orElse","fromInputUnsafe","isFinite","isZero","timeoutSymbol","Symbol","catchCause","parent","getCurrent","clock","getRef","durationMs","toMillis","deadline","latch","merge","_scope","currentTimeMillisUnsafe","sleep","haltStrategy","isTimeout","reasons","find","r","_tag","repeatElements","upstream","toTransform","pullElement","pullRepeat","element","forever","flattenIterable","flattenTake","concat","prepend","mergeResult","mergeLeft","left","right","mergeRight","mergeAll","streams","cross","crossWith","l","zipWith","zipWithArray","zipArrays","leftArr","rightArr","minLength","Math","length","push","slice","pullLeft","pullRight","pullBoth","fiberLeft","fiberRight","joinAll","rightArray","leftArray","zip","a2","zipLeft","output","leftoverLeft","leftoverRight","zipRight","zipFlatten","zipWithIndex","zipWithNext","mapAccumArray","none","acc","some","pairs","onHalt","zipWithPrevious","zipWithPreviousAndNext","prev","current","zipLatestAll","latest","emitted","Set","readyLatch","has","add","size","zipLatest","zipLatestWith","raceAll","winner","race","childScope","forkUnsafe","onExit","close","void","predicate","filterArray","filterMap","filterMapArray","filterEffect","filterArrayEffect","filterMapEffect","filterMapArrayEffect","partitionQueue","capacity","passes","fails","excluded","satisfying","failure","success","passFiber","leftover","offerAllUnsafe","forkChild","offerAll","join","failCauseUnsafe","partitionEffect","partition","when","test","pass","peel","originalPull","toPull","cause_","run","buffer","bufferArray","tapCause","catchIf","catchFilter","catchTag","k","pred","includes","catchTags","cases","keys","Object","catchReason","errorTag","reasonTag","catchReasons","handlers","key","handler","orElseHandler","catchCauseIf","catchCauseFilter","orElseIfEmpty","orElseSucceed","orDie","ignore","ignoreCause","retry","policy","withExecutionPlan","preventFallbackOnPartialStream","attempt","stepIndex","provideMeta","provideServiceEffect","lastError","steps","getOrThrow","nextStream","provide","receivedElements","isSome","attempted","wrapped","scheduleFromStep","onFirst","take","n","takeUntil","takeRight","list","appendAll","takeNVoid","emptyArr","takeAll","pump","index","findIndex","excludeLast","takeUntilEffect","j","takeWhile","out","takeWhileFilter","takeWhileEffect","b","drop","dropped","dropUntil","dropWhile","dropUntilEffect","dropWhileEffect","dropping","filtered","found","dropWhileFilter","dropRight","appendAllUnsafe","toTake","items","takeN","isArrayNonEmpty","chunks","rechunk","sliding","slidingSize","stepSize","matchCauseEffect","toArrayN","split","combine","combineArray","mapAccum","newState","mapAccumEffect","mapAccumArrayEffect","scan","isFirst","states","scanEffect","debounce","lastArr","emitAtMs","Infinity","pullLatch","emitLatch","endLatch","disableYield","sleepLoop","now","timeMs","raceFirst","lastNonEmpty","throttleEffect","burst","strategy","throttleEnforceEffect","cost","units","throttleShapeEffect","clockWith","Number","POSITIVE_INFINITY","tokens","timestampMs","weight","currentMs","elapsed","cycles","sum","available","waitCycles","delayMs","throttle","grouped","groupedWithin","aggregateWithin","spaced","groupBy","groupByImpl","queues","queueMap","oentry","get","touch","offer","groupByKey","batch","ovalues","set","clear","unbounded","shutdown","lookup","remove","end","idleTimeToLive","infinity","whileLoop","while","body","groupAdjacentBy","currentKey","group","toEmit","item","equals","transduce","upstreamWithLeftover","leftover_","aggregate","_upstream","scheduleStep","lastOutput","sinkHasInput","stepToBuffer","pullFromBuffer","catchSinkHalt","broadcast","toPubSubTake","share","acquire","ref","pipeThroughChannel","pipeTo","pipeThroughChannelOrFail","pipeToOrFail","pipeThrough","concatWith","collect","runCollect","accumulate","combined","changes","changesWith","last","changesWithEffect","decodeText","decoder","TextDecoder","encoding","decode","encodeText","encoder","TextEncoder","encode","splitLines","intersperse","lastIndex","intersperseAffixes","middle","interleave","interleaveWith","decider","pullDecider","leftDone","rightDone","side","elem","interruptWhen","haltWhen","finalizer","cleanup","onStart","onEnd","ensuring","layer","provideContext","context","updateContext","updateService","withSpan","dataFirst","arguments","name","Do","let_","let","bind","tag","bindEffect","bindTo","scopedWith","runFold","runCount","runSum","runFoldEffect","z","runHead","getUnsafe","runLast","runForEach","runForEachWhile","runForEachArray","mkString","mkUint8Array","bytes","Uint8Array","offset","toReadableStreamWith","currentResolve","fiber","ReadableStream","controller","runFork","enqueue","addObserver","squash","Promise","resolve","runPromise","asVoid","interrupt","toReadableStream","toReadableStreamEffect","toAsyncIterableWith","asyncIterator","runPromiseWith","runPromiseExit","runPromiseExitWith","currentIter","isSuccess","isDoneCause","return","toAsyncIterableEffect","toAsyncIterable","runIntoPubSub","runIntoPubSubArray","toPubSub","toPubSubArray","toQueue","toQueueArray","runIntoQueue","runIntoQueueArray"],"sources":["../src/Stream.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA;AACA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,SAASC,KAAK,QAAQ,YAAY;AAClC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,aAAa,MAAM,oBAAoB;AACnD,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,SAASC,QAAQ,EAAEC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAE9E,OAAO,KAAKC,qBAAqB,MAAM,6BAA6B;AACpE,OAAO,KAAKC,QAAQ,MAAM,sBAAsB;AAChD,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,OAAO,KAAKC,cAAc,MAAM,qBAAqB;AACrD,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,SAASC,WAAW,EAAEC,cAAc,EAAEC,QAAQ,QAA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AAI,CAACM,OAAO,EAAEO,OAAO,CAAC,CAC9C;AAED;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAM0jB,OAAO,gBAoDhBroB,IAAI,CACN,CAAC,EACD,CACE8D,IAAqB,EACrBa,OAKC,KAEDvF,OAAO,CAACkpB,YAAY,CAACxkB,IAAI,CAACM,OAAO,EAAEO,OAAO,CAAC,CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,MAAM4jB,YAAY,gBA6DrBvoB,IAAI,CAAC,CAAC,EAAE,CACV8D,IAAqB,EACrBiD,KAAqC,KACH3H,OAAO,CAACopB,iBAAiB,CAAC1kB,IAAI,CAACM,OAAO,EAAE2C,KAAK,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Stream.js","names":["Arr","Cause","Channel","Clock","Context","Duration","Effect","Equal","ExecutionPlan","Exit","Fiber","constant","constTrue","constVoid","dual","identity","internalExecutionPlan","internal","addSpanStackTrace","Iterable","Latch","MutableHashMap","MutableList","Option","hasProperty","isNotUndefined","isTagged","PubSub","Pull","Queue","RcMap","RcRef","Result","Schedule","Scope","Sink","isString","TypeId","isStream","u","DefaultChunkSize","fromChannel","fromEffect","effect","map","of","service","serviceOption","fromEffectDrain","fromPull","succeed","flatMap","done","fromEffectRepeat","fromEffectSchedule","schedule","gen","step","toStepWithMetadata","s","provideService","CurrentMetadata","defaultValue","initial","pull","suspend","pipe","meta","next","tick","interval","sync","first","undefined","delayed","delay","transformPull","self","f","fromTransform","_","scope","toPullScoped","channel","transformPullBracket","fromTransformBracket","forkedScope","toChannel","stream","callback","options","callbackArray","empty","value","make","values","fromArray","evaluate","fail","error","failSync","failCause","cause","die","defect","failCauseSync","fromIteratorSucceed","iterator","maxChunkSize","fromIteratorArray","fromIterable","iterable","Array","isArray","chunkSize","fromIterableArray","fromIterableEffect","unwrap","fromIterableEffectRepeat","array","isReadonlyArrayNonEmpty","fromArrayEffect","fromArrays","arrays","filter","fromQueue","queue","fromQueueArray","fromPubSub","pubsub","fromPubSubArray","fromPubSubTake","fromReadableStream","fnUntraced","reader","getReader","addFinalizer","releaseLockOnEnd","releaseLock","promise","cancel","catch","tryPromise","try","read","reason","onError","fromAsyncIterable","fromAsyncIterableArray","fromSchedule","toStepWithSleep","catchDone","fromSubscription","fromSubscriptionArray","fromEventListener","target","type","emit","event","offerUnsafe","acquireRelease","addEventListener","removeEventListener","bufferSize","unfold","state","paginate","loop","a","isNone","iterate","range","min","max","start","remaining","chunk","never","scoped","i","o","mapBoth","onSuccess","mapError","onFailure","mapArray","mapEffect","args","flattenArray","flattenEffect","mapArrayEffect","result","catch_","e","tap","as","tapBoth","tapError","onElement","concurrency","tapSink","sink","upstreamLatch","makeUnsafe","sinkLatch","causeSink","sinkDone","streamDone","sinkUpstream","whenOpen","arr","closeUnsafe","open","transform","eff","onExitPrimitive","exit","isFailure","forkIn","pullAndOffer","chunk_","openUnsafe","await","switchMap","flatten","drain","drainFork","that","mergeEffect","runDrain","repeat","timeout","duration","timeoutOrElse","orElse","fromInputUnsafe","isFinite","isZero","timeoutSymbol","Symbol","catchCause","parent","getCurrent","clock","getRef","durationMs","toMillis","deadline","latch","merge","_scope","currentTimeMillisUnsafe","sleep","haltStrategy","isTimeout","reasons","find","r","_tag","repeatElements","upstream","toTransform","pullElement","pullRepeat","element","forever","flattenIterable","flattenTake","concat","prepend","mergeResult","mergeLeft","left","right","mergeRight","mergeAll","streams","cross","crossWith","l","zipWith","zipWithArray","zipArrays","leftArr","rightArr","minLength","Math","length","push","slice","pullLeft","pullRight","pullBoth","fiberLeft","fiberRight","joinAll","rightArray","leftArray","zip","a2","zipLeft","output","leftoverLeft","leftoverRight","zipRight","zipFlatten","zipWithIndex","zipWithNext","mapAccumArray","none","acc","some","pairs","onHalt","zipWithPrevious","zipWithPreviousAndNext","prev","current","zipLatestAll","latest","emitted","Set","readyLatch","has","add","size","zipLatest","zipLatestWith","raceAll","winner","race","childScope","forkUnsafe","onExit","close","void","predicate","filterArray","filterMap","filterMapArray","filterEffect","filterArrayEffect","filterMapEffect","filterMapArrayEffect","partitionQueue","capacity","passes","fails","excluded","satisfying","failure","success","passFiber","leftover","offerAllUnsafe","forkChild","offerAll","join","failCauseUnsafe","partitionEffect","partition","when","test","pass","peel","originalPull","toPull","cause_","run","buffer","bufferArray","tapCause","catchIf","catchFilter","catchTag","k","pred","includes","catchTags","cases","keys","Object","catchReason","errorTag","reasonTag","catchReasons","handlers","key","handler","orElseHandler","catchCauseIf","catchCauseFilter","orElseIfEmpty","orElseSucceed","orDie","ignore","ignoreCause","retry","policy","withExecutionPlan","preventFallbackOnPartialStream","attempt","stepIndex","provideMeta","provideServiceEffect","lastError","steps","getOrThrow","nextStream","provide","receivedElements","isSome","attempted","wrapped","scheduleFromStep","onFirst","take","n","takeUntil","takeRight","list","appendAll","takeNVoid","emptyArr","takeAll","pump","index","findIndex","excludeLast","takeUntilEffect","j","takeWhile","out","takeWhileFilter","takeWhileEffect","b","drop","dropped","dropUntil","dropWhile","dropUntilEffect","dropWhileEffect","dropping","filtered","found","dropWhileFilter","dropRight","appendAllUnsafe","toTake","items","takeN","isArrayNonEmpty","chunks","rechunk","sliding","slidingSize","stepSize","matchCauseEffect","toArrayN","split","combine","combineArray","mapAccum","newState","mapAccumEffect","mapAccumArrayEffect","scan","isFirst","states","scanEffect","debounce","lastArr","emitAtMs","Infinity","pullLatch","emitLatch","endLatch","disableYield","sleepLoop","now","timeMs","raceFirst","lastNonEmpty","throttleEffect","burst","strategy","throttleEnforceEffect","cost","units","throttleShapeEffect","clockWith","Number","POSITIVE_INFINITY","tokens","timestampMs","weight","currentMs","elapsed","cycles","sum","available","waitCycles","delayMs","throttle","grouped","groupedWithin","aggregateWithin","spaced","groupBy","groupByImpl","queues","queueMap","oentry","get","touch","offer","groupByKey","batch","ovalues","set","clear","unbounded","shutdown","lookup","remove","end","idleTimeToLive","infinity","whileLoop","while","body","groupAdjacentBy","currentKey","group","toEmit","item","equals","transduce","upstreamWithLeftover","leftover_","aggregate","_upstream","scheduleStep","lastOutput","sinkHasInput","stepToBuffer","pullFromBuffer","catchSinkHalt","broadcastN","makePubSub","parentScope","subscription","subscribe","fromEffectTake","runForEach","publish","forkScoped","bounded","broadcast","toPubSubTake","share","acquire","ref","pipeThroughChannel","pipeTo","pipeThroughChannelOrFail","pipeToOrFail","pipeThrough","concatWith","collect","runCollect","accumulate","combined","changes","changesWith","last","changesWithEffect","decodeText","decoder","TextDecoder","encoding","decode","encodeText","encoder","TextEncoder","encode","splitLines","intersperse","lastIndex","intersperseAffixes","middle","interleave","interleaveWith","decider","pullDecider","leftDone","rightDone","side","elem","interruptWhen","haltWhen","finalizer","cleanup","onStart","onEnd","ensuring","layer","provideContext","context","updateContext","updateService","withSpan","dataFirst","arguments","name","Do","let_","let","bind","tag","bindEffect","bindTo","scopedWith","runFold","runCount","runSum","runFoldEffect","z","runHead","getUnsafe","runLast","runForEachWhile","runForEachArray","mkString","mkUint8Array","bytes","Uint8Array","offset","toReadableStreamWith","currentResolve","fiber","ReadableStream","controller","runFork","enqueue","addObserver","squash","Promise","resolve","runPromise","asVoid","interrupt","toReadableStream","toReadableStreamEffect","toAsyncIterableWith","asyncIterator","runPromiseWith","runPromiseExit","runPromiseExitWith","currentIter","isSuccess","isDoneCause","return","toAsyncIterableEffect","toAsyncIterable","runIntoPubSub","runIntoPubSubArray","toPubSub","toPubSubArray","toQueue","toQueueArray","runIntoQueue","runIntoQueueArray"],"sources":["../src/Stream.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA;AACA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,SAASC,KAAK,QAAQ,YAAY;AAClC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,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AAE2C,KAAK,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/String.d.ts b/.opencode/node_modules/effect/dist/String.d.ts index 6b9ddb7d2fdb75029c3bc49c684504efb5a0b7d5..ae5f42d9ce9ec2aaf8eede488668b78612e8a71c 100644 --- a/.opencode/node_modules/effect/dist/String.d.ts +++ b/.opencode/node_modules/effect/dist/String.d.ts @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `string` type in TypeScript. - * It includes functions for basic string manipulation. + * Works with TypeScript `string` values. + * + * This module exposes common string operations in a pipe-friendly style. The + * helpers cover checks, comparison, concatenation, trimming, casing, slicing, + * padding, replacement, normalization, safe character access, search helpers + * that return `Option`, and joining strings through a reducer. * * @since 2.0.0 */ @@ -12,16 +16,29 @@ import type * as Ordering from "./Ordering.ts"; import type { Refinement } from "./Predicate.ts"; import * as Reducer from "./Reducer.ts"; /** - * Reference to the global `String` constructor. + * Exposes the global string constructor. + * + * **When to use** + * + * Use to access native JavaScript string coercion or constructor behavior from + * the Effect module namespace. + * + * **Gotchas** + * + * Calling `String(value)` returns a primitive string. Calling + * `new String(value)` creates a boxed `String` object. + * + * @see {@link isString} for checking whether a value is a primitive string * * @category constructors * @since 4.0.0 */ export declare const String: StringConstructor; /** - * Tests if a value is a `string`. + * Checks whether a value is a `string`. + * + * **Example** (Checking for strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -35,9 +52,11 @@ export declare const String: StringConstructor; */ export declare const isString: Refinement; /** - * `Order` instance for comparing strings using lexicographic ordering. + * Provides an `Order` instance for comparing strings using lexicographic + * ordering. + * + * **Example** (Comparing strings lexicographically) * - * @example * ```ts * import { String } from "effect" * @@ -51,9 +70,10 @@ export declare const isString: Refinement; */ export declare const Order: order.Order; /** - * An `Equivalence` instance for strings using strict equality (`===`). + * Provides an `Equivalence` instance for strings using strict equality (`===`). + * + * **Example** (Comparing strings for equality) * - * @example * ```ts * import { String } from "effect" * @@ -62,13 +82,18 @@ export declare const Order: order.Order; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export declare const Equivalence: Equ.Equivalence; /** - * The empty string `""`. + * Provides the empty string `""`. + * + * **When to use** + * + * Use when you need the canonical empty string value from the `String` module. + * + * **Example** (Using the empty string) * - * @example * ```ts * import { String } from "effect" * @@ -76,14 +101,15 @@ export declare const Equivalence: Equ.Equivalence; * console.log(String.isEmpty(String.empty)) // true * ``` * - * @category constructors + * @category constants * @since 2.0.0 */ export declare const empty: ""; /** * Concatenates two strings at the type level. * - * @example + * **Example** (Concatenating string literal types) + * * ```ts * import type { String } from "effect" * @@ -98,7 +124,8 @@ export type Concat = `${A}${B}`; /** * Concatenates two strings at runtime. * - * @example + * **Example** (Concatenating strings) + * * ```ts * import { pipe, String } from "effect" * @@ -109,14 +136,15 @@ export type Concat = `${A}${B}`; * console.log(result2) // "helloworld" * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const concat: { /** * Concatenates two strings at runtime. * - * @example + * **Example** (Concatenating strings) + * * ```ts * import { pipe, String } from "effect" * @@ -127,14 +155,15 @@ export declare const concat: { * console.log(result2) // "helloworld" * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (that: B): (self: A) => Concat; /** * Concatenates two strings at runtime. * - * @example + * **Example** (Concatenating strings) + * * ```ts * import { pipe, String } from "effect" * @@ -145,7 +174,7 @@ export declare const concat: { * console.log(result2) // "helloworld" * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: A, that: B): Concat; @@ -153,7 +182,8 @@ export declare const concat: { /** * Converts a string to uppercase. * - * @example + * **Example** (Converting strings to uppercase) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -169,7 +199,8 @@ export declare const toUpperCase: (self: S) => Uppercase; /** * Converts a string to lowercase. * - * @example + * **Example** (Converting strings to lowercase) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -185,7 +216,8 @@ export declare const toLowerCase: (self: T) => Lowercase; /** * Capitalizes the first character of a string. * - * @example + * **Example** (Capitalizing a string) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -201,7 +233,8 @@ export declare const capitalize: (self: T) => Capitalize; /** * Uncapitalizes the first character of a string. * - * @example + * **Example** (Uncapitalizing a string) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -215,9 +248,15 @@ export declare const capitalize: (self: T) => Capitalize; */ export declare const uncapitalize: (self: T) => Uncapitalize; /** - * Replaces the first occurrence of a substring or pattern in a string. + * Replaces matches in a string using `String.prototype.replace`. + * + * **Details** + * + * String search values and non-global regular expressions replace the first + * match; global regular expressions replace every match. + * + * **Example** (Replacing a substring) * - * @example * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -236,7 +275,8 @@ export declare const replace: (searchValue: string | RegExp, replaceValue: strin /** * Type-level representation of trimming whitespace from both ends of a string. * - * @example + * **Example** (Trimming whitespace at the type level) + * * ```ts * import type { String } from "effect" * @@ -250,7 +290,8 @@ export type Trim = TrimEnd>; /** * Removes whitespace from both ends of a string. * - * @example + * **Example** (Trimming whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -266,7 +307,8 @@ export declare const trim: (self: A) => Trim; /** * Type-level representation of trimming whitespace from the start of a string. * - * @example + * **Example** (Trimming leading whitespace at the type level) + * * ```ts * import type { String } from "effect" * @@ -280,7 +322,8 @@ export type TrimStart = A extends `${" " | "\n" | "\t" | "\r"} /** * Removes whitespace from the start of a string. * - * @example + * **Example** (Trimming leading whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -296,7 +339,8 @@ export declare const trimStart: (self: A) => TrimStart; /** * Type-level representation of trimming whitespace from the end of a string. * - * @example + * **Example** (Trimming trailing whitespace at the type level) + * * ```ts * import type { String } from "effect" * @@ -310,7 +354,8 @@ export type TrimEnd = A extends `${infer B}${" " | "\n" | "\t" /** * Removes whitespace from the end of a string. * - * @example + * **Example** (Trimming trailing whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -326,7 +371,8 @@ export declare const trimEnd: (self: A) => TrimEnd; /** * Extracts a section of a string and returns it as a new string. * - * @example + * **Example** (Slicing strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -340,9 +386,10 @@ export declare const trimEnd: (self: A) => TrimEnd; */ export declare const slice: (start?: number, end?: number) => (self: string) => string; /** - * Test whether a `string` is empty. + * Checks whether a `string` is empty. + * + * **Example** (Checking for empty strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -356,9 +403,10 @@ export declare const slice: (start?: number, end?: number) => (self: string) => */ export declare const isEmpty: (self: string) => self is ""; /** - * Test whether a `string` is non empty. + * Checks whether a `string` is non-empty. + * + * **Example** (Checking for non-empty strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -372,9 +420,10 @@ export declare const isEmpty: (self: string) => self is ""; */ export declare const isNonEmpty: (self: string) => boolean; /** - * Calculate the number of characters in a `string`. + * Returns the JavaScript string length, measured in UTF-16 code units. + * + * **Example** (Getting string length) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -382,14 +431,15 @@ export declare const isNonEmpty: (self: string) => boolean; * assert.deepStrictEqual(String.length("abc"), 3) * ``` * - * @category utilities + * @category getters * @since 2.0.0 */ export declare const length: (self: string) => number; /** * Splits a string into an array of substrings using a separator. * - * @example + * **Example** (Splitting strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -406,7 +456,8 @@ export declare const split: { /** * Splits a string into an array of substrings using a separator. * - * @example + * **Example** (Splitting strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -423,7 +474,8 @@ export declare const split: { /** * Splits a string into an array of substrings using a separator. * - * @example + * **Example** (Splitting strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -442,7 +494,8 @@ export declare const split: { * Returns `true` if `searchString` appears as a substring of `self`, at one or more positions that are * greater than or equal to `position`; otherwise, returns `false`. * - * @example + * **Example** (Checking for substrings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -458,7 +511,8 @@ export declare const includes: (searchString: string, position?: number) => (sel /** * Returns `true` if the string starts with the specified search string. * - * @example + * **Example** (Checking string prefixes) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -474,7 +528,8 @@ export declare const startsWith: (searchString: string, position?: number) => (s /** * Returns `true` if the string ends with the specified search string. * - * @example + * **Example** (Checking string suffixes) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -488,9 +543,9 @@ export declare const startsWith: (searchString: string, position?: number) => (s */ export declare const endsWith: (searchString: string, position?: number) => (self: string) => boolean; /** - * Returns the character code at the specified index, or `None` if the index is out of bounds. + * Returns the character code at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading character codes) * * ```ts * import { String } from "effect" @@ -504,9 +559,9 @@ export declare const endsWith: (searchString: string, position?: number) => (sel */ export declare const charCodeAt: { /** - * Returns the character code at the specified index, or `None` if the index is out of bounds. + * Returns the character code at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading character codes) * * ```ts * import { String } from "effect" @@ -520,9 +575,9 @@ export declare const charCodeAt: { */ (index: number): (self: string) => Option.Option; /** - * Returns the character code at the specified index, or `None` if the index is out of bounds. + * Returns the character code at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading character codes) * * ```ts * import { String } from "effect" @@ -539,7 +594,7 @@ export declare const charCodeAt: { /** * Extracts characters from a string between two specified indices. * - * **Example** + * **Example** (Extracting substrings) * * ```ts * import { pipe, String } from "effect" @@ -553,9 +608,9 @@ export declare const charCodeAt: { */ export declare const substring: (start: number, end?: number) => (self: string) => string; /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified relative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Accessing characters safely) * * ```ts * import { pipe, String } from "effect" @@ -569,9 +624,9 @@ export declare const substring: (start: number, end?: number) => (self: string) */ export declare const at: { /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified relative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Accessing characters safely) * * ```ts * import { pipe, String } from "effect" @@ -585,9 +640,9 @@ export declare const at: { */ (index: number): (self: string) => Option.Option; /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified relative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Accessing characters safely) * * ```ts * import { pipe, String } from "effect" @@ -602,9 +657,9 @@ export declare const at: { (self: string, index: number): Option.Option; }; /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified non-negative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading characters safely) * * ```ts * import { pipe, String } from "effect" @@ -618,9 +673,9 @@ export declare const at: { */ export declare const charAt: { /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified non-negative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading characters safely) * * ```ts * import { pipe, String } from "effect" @@ -634,9 +689,9 @@ export declare const charAt: { */ (index: number): (self: string) => Option.Option; /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified non-negative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading characters safely) * * ```ts * import { pipe, String } from "effect" @@ -651,9 +706,9 @@ export declare const charAt: { (self: string, index: number): Option.Option; }; /** - * Returns the Unicode code point at the specified index, or `None` if the index is out of bounds. + * Returns the Unicode code point at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading code points) * * ```ts * import { pipe, String } from "effect" @@ -667,9 +722,9 @@ export declare const charAt: { */ export declare const codePointAt: { /** - * Returns the Unicode code point at the specified index, or `None` if the index is out of bounds. + * Returns the Unicode code point at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading code points) * * ```ts * import { pipe, String } from "effect" @@ -683,9 +738,9 @@ export declare const codePointAt: { */ (index: number): (self: string) => Option.Option; /** - * Returns the Unicode code point at the specified index, or `None` if the index is out of bounds. + * Returns the Unicode code point at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading code points) * * ```ts * import { pipe, String } from "effect" @@ -700,9 +755,9 @@ export declare const codePointAt: { (self: string, index: number): Option.Option; }; /** - * Returns the index of the first occurrence of a substring, or `None` if not found. + * Returns the index of the first occurrence of a substring safely, or `None` if not found. * - * **Example** + * **Example** (Finding the first substring index) * * ```ts * import { pipe, String } from "effect" @@ -716,9 +771,9 @@ export declare const codePointAt: { */ export declare const indexOf: (searchString: string) => (self: string) => Option.Option; /** - * Returns the index of the last occurrence of a substring, or `None` if not found. + * Returns the index of the last occurrence of a substring safely, or `None` if not found. * - * **Example** + * **Example** (Finding the last substring index) * * ```ts * import { pipe, String } from "effect" @@ -732,9 +787,12 @@ export declare const indexOf: (searchString: string) => (self: string) => Option */ export declare const lastIndexOf: (searchString: string) => (self: string) => Option.Option; /** - * Compares two strings according to the current locale. + * Computes locale-aware ordering for two strings, with optional locales and + * collator options, and returns the result as an `Ordering` (`-1`, `0`, or + * `1`). + * + * **Example** (Comparing strings by locale) * - * @example * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -749,15 +807,21 @@ export declare const lastIndexOf: (searchString: string) => (self: string) => Op */ export declare const localeCompare: (that: string, locales?: Array, options?: Intl.CollatorOptions) => (self: string) => Ordering.Ordering; /** - * A `pipe`-able version of the native `match` method. + * Matches a string against a pattern safely and returns `Option.some` with the match + * array, or `Option.none` when the pattern does not match. * - * **Example** + * **Example** (Matching regular expressions) * * ```ts - * import { pipe, String } from "effect" + * import { Option, pipe, String } from "effect" + * + * const match = pipe("hello", String.match(/l+/)) * - * pipe("hello", String.match(/l+/)) // Option.some(["ll"]) - * pipe("hello", String.match(/x/)) // Option.none() + * if (Option.isSome(match)) { + * console.log(`${match.value[0]}@${match.value.index}`) // "ll@2" + * } + * + * console.log(Option.isNone(pipe("hello", String.match(/x/)))) // true * ``` * * @category searching @@ -765,14 +829,18 @@ export declare const localeCompare: (that: string, locales?: Array, opti */ export declare const match: (regExp: RegExp | string) => (self: string) => Option.Option; /** - * It is the `pipe`-able version of the native `matchAll` method. + * Returns an iterator over all regular expression matches in the string using + * native `String.prototype.matchAll` semantics. + * + * **Example** (Iterating regular expression matches) * - * @example * ```ts * import { pipe, String } from "effect" * * const matches = pipe("hello world", String.matchAll(/l/g)) - * console.log(Array.from(matches)) // [["l"], ["l"], ["l"]] + * console.log( + * Array.from(matches, (match) => `${match[0]}@${match.index}`).join(", ") + * ) // "l@2, l@3, l@9" * ``` * * @category searching @@ -782,7 +850,8 @@ export declare const matchAll: (regExp: RegExp) => (self: string) => IterableIte /** * Normalizes a string according to the specified Unicode normalization form. * - * @example + * **Example** (Normalizing Unicode strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -805,7 +874,8 @@ export declare const normalize: (form?: "NFC" | "NFD" | "NFKC" | "NFKD") => (sel /** * Pads the string from the end with a given fill string to a specified length. * - * @example + * **Example** (Padding strings at the end) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -821,7 +891,8 @@ export declare const padEnd: (maxLength: number, fillString?: string) => (self: /** * Pads the string from the start with a given fill string to a specified length. * - * @example + * **Example** (Padding strings at the start) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -837,7 +908,8 @@ export declare const padStart: (maxLength: number, fillString?: string) => (self /** * Repeats the string the specified number of times. * - * @example + * **Example** (Repeating strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -853,7 +925,8 @@ export declare const repeat: (count: number) => (self: string) => string; /** * Replaces all occurrences of a substring or pattern in a string. * - * @example + * **Example** (Replacing all matches) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -867,9 +940,10 @@ export declare const repeat: (count: number) => (self: string) => string; */ export declare const replaceAll: (searchValue: string | RegExp, replaceValue: string) => (self: string) => string; /** - * Searches for a match between a regular expression and the string. + * Returns the index of the first match for a string or regular expression safely, or + * `Option.none` when no match is found. * - * **Example** + * **Example** (Searching strings) * * ```ts * import { String } from "effect" @@ -884,9 +958,10 @@ export declare const replaceAll: (searchValue: string | RegExp, replaceValue: st */ export declare const search: { /** - * Searches for a match between a regular expression and the string. + * Returns the index of the first match for a string or regular expression safely, or + * `Option.none` when no match is found. * - * **Example** + * **Example** (Searching strings) * * ```ts * import { String } from "effect" @@ -901,9 +976,10 @@ export declare const search: { */ (regExp: RegExp | string): (self: string) => Option.Option; /** - * Searches for a match between a regular expression and the string. + * Returns the index of the first match for a string or regular expression safely, or + * `Option.none` when no match is found. * - * **Example** + * **Example** (Searching strings) * * ```ts * import { String } from "effect" @@ -921,7 +997,8 @@ export declare const search: { /** * Converts the string to lowercase according to the specified locale. * - * @example + * **Example** (Lowercasing strings by locale) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -937,7 +1014,8 @@ export declare const toLocaleLowerCase: (locale?: string | Array) => (se /** * Converts the string to uppercase according to the specified locale. * - * @example + * **Example** (Uppercasing strings by locale) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -951,7 +1029,9 @@ export declare const toLocaleLowerCase: (locale?: string | Array) => (se */ export declare const toLocaleUpperCase: (locale?: string | Array) => (self: string) => string; /** - * Keep the specified number of characters from the start of a string. + * Keeps the specified number of characters from the start of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -960,7 +1040,8 @@ export declare const toLocaleUpperCase: (locale?: string | Array) => (se * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the start) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -973,7 +1054,9 @@ export declare const toLocaleUpperCase: (locale?: string | Array) => (se */ export declare const takeLeft: { /** - * Keep the specified number of characters from the start of a string. + * Keeps the specified number of characters from the start of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -982,7 +1065,8 @@ export declare const takeLeft: { * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the start) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -995,7 +1079,9 @@ export declare const takeLeft: { */ (n: number): (self: string) => string; /** - * Keep the specified number of characters from the start of a string. + * Keeps the specified number of characters from the start of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -1004,7 +1090,8 @@ export declare const takeLeft: { * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the start) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -1018,7 +1105,9 @@ export declare const takeLeft: { (self: string, n: number): string; }; /** - * Keep the specified number of characters from the end of a string. + * Keeps the specified number of characters from the end of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -1027,7 +1116,8 @@ export declare const takeLeft: { * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the end) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -1040,7 +1130,9 @@ export declare const takeLeft: { */ export declare const takeRight: { /** - * Keep the specified number of characters from the end of a string. + * Keeps the specified number of characters from the end of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -1049,7 +1141,8 @@ export declare const takeRight: { * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the end) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -1062,7 +1155,9 @@ export declare const takeRight: { */ (n: number): (self: string) => string; /** - * Keep the specified number of characters from the end of a string. + * Keeps the specified number of characters from the end of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -1071,7 +1166,8 @@ export declare const takeRight: { * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the end) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -1088,7 +1184,8 @@ export declare const takeRight: { * Returns an `IterableIterator` which yields each line contained within the * string, trimming off the trailing newline character. * - * @example + * **Example** (Iterating lines without separators) + * * ```ts * import { String } from "effect" * @@ -1104,7 +1201,8 @@ export declare const linesIterator: (self: string) => LinesIterator; * Returns an `IterableIterator` which yields each line contained within the * string as well as the trailing newline character. * - * @example + * **Example** (Iterating lines with separators) + * * ```ts * import { String } from "effect" * @@ -1117,11 +1215,11 @@ export declare const linesIterator: (self: string) => LinesIterator; */ export declare const linesWithSeparators: (s: string) => LinesIterator; /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the character specified by `marginChar` - * from the line. + * Strips a leading margin prefix from every line using the supplied margin + * character. + * + * **Example** (Stripping custom margins) * - * @example * ```ts * import { String } from "effect" * @@ -1135,11 +1233,11 @@ export declare const linesWithSeparators: (s: string) => LinesIterator; */ export declare const stripMarginWith: { /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the character specified by `marginChar` - * from the line. + * Strips a leading margin prefix from every line using the supplied margin + * character. + * + * **Example** (Stripping custom margins) * - * @example * ```ts * import { String } from "effect" * @@ -1153,11 +1251,11 @@ export declare const stripMarginWith: { */ (marginChar: string): (self: string) => string; /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the character specified by `marginChar` - * from the line. + * Strips a leading margin prefix from every line using the supplied margin + * character. + * + * **Example** (Stripping custom margins) * - * @example * ```ts * import { String } from "effect" * @@ -1172,10 +1270,10 @@ export declare const stripMarginWith: { (self: string, marginChar: string): string; }; /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the `"|"` character from the line. + * Strips a leading `|` margin prefix from every line. + * + * **Example** (Stripping pipe margins) * - * @example * ```ts * import { String } from "effect" * @@ -1191,7 +1289,8 @@ export declare const stripMargin: (self: string) => string; /** * Converts a snake_case string to camelCase. * - * @example + * **Example** (Converting snake_case to camelCase) + * * ```ts * import { String } from "effect" * @@ -1206,7 +1305,8 @@ export declare const snakeToCamel: (self: string) => string; /** * Converts a snake_case string to PascalCase. * - * @example + * **Example** (Converting snake_case to PascalCase) + * * ```ts * import { String } from "effect" * @@ -1221,7 +1321,8 @@ export declare const snakeToPascal: (self: string) => string; /** * Converts a snake_case string to kebab-case. * - * @example + * **Example** (Converting snake_case to kebab-case) + * * ```ts * import { String } from "effect" * @@ -1236,7 +1337,8 @@ export declare const snakeToKebab: (self: string) => string; /** * Converts a camelCase string to snake_case. * - * @example + * **Example** (Converting camelCase to snake_case) + * * ```ts * import { String } from "effect" * @@ -1251,7 +1353,8 @@ export declare const camelToSnake: (self: string) => string; /** * Converts a PascalCase string to snake_case. * - * @example + * **Example** (Converting PascalCase to snake_case) + * * ```ts * import { String } from "effect" * @@ -1266,7 +1369,8 @@ export declare const pascalToSnake: (self: string) => string; /** * Converts a kebab-case string to snake_case. * - * @example + * **Example** (Converting kebab-case to snake_case) + * * ```ts * import { String } from "effect" * @@ -1289,14 +1393,38 @@ declare class LinesIterator implements IterableIterator { private get done(); } /** - * Normalize a string to a specific case format + * Normalizes a string by splitting it into word parts, transforming each part, + * and joining the parts with a configurable delimiter. + * + * **When to use** + * + * Use when you need custom word-case output with a delimiter or part transform + * that the fixed case helpers do not provide. + * + * @see {@link pascalCase} for fixed PascalCase output + * @see {@link camelCase} for fixed lower-initial camelCase output + * @see {@link constantCase} for fixed uppercase underscore-separated output + * @see {@link kebabCase} for fixed lowercase hyphen-separated output + * @see {@link snakeCase} for fixed lowercase underscore-separated output * * @category transforming * @since 4.0.0 */ export declare const noCase: { /** - * Normalize a string to a specific case format + * Normalizes a string by splitting it into word parts, transforming each part, + * and joining the parts with a configurable delimiter. + * + * **When to use** + * + * Use when you need custom word-case output with a delimiter or part transform + * that the fixed case helpers do not provide. + * + * @see {@link pascalCase} for fixed PascalCase output + * @see {@link camelCase} for fixed lower-initial camelCase output + * @see {@link constantCase} for fixed uppercase underscore-separated output + * @see {@link kebabCase} for fixed lowercase hyphen-separated output + * @see {@link snakeCase} for fixed lowercase underscore-separated output * * @category transforming * @since 4.0.0 @@ -1308,7 +1436,19 @@ export declare const noCase: { readonly transform?: (part: string, index: number, parts: ReadonlyArray) => string; }): (self: string) => string; /** - * Normalize a string to a specific case format + * Normalizes a string by splitting it into word parts, transforming each part, + * and joining the parts with a configurable delimiter. + * + * **When to use** + * + * Use when you need custom word-case output with a delimiter or part transform + * that the fixed case helpers do not provide. + * + * @see {@link pascalCase} for fixed PascalCase output + * @see {@link camelCase} for fixed lower-initial camelCase output + * @see {@link constantCase} for fixed uppercase underscore-separated output + * @see {@link kebabCase} for fixed lowercase hyphen-separated output + * @see {@link snakeCase} for fixed lowercase underscore-separated output * * @category transforming * @since 4.0.0 @@ -1323,41 +1463,103 @@ export declare const noCase: { /** * Converts a string to PascalCase. * - * @since 4.0.0 + * **When to use** + * + * Use to normalize strings from spaces, separators, or camel/Pascal word + * boundaries into PascalCase. + * + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link snakeToPascal} for converting known snake_case input only + * * @category transforming + * @since 4.0.0 */ export declare const pascalCase: (self: string) => string; /** * Converts a string to camelCase. * - * @since 4.0.0 + * **When to use** + * + * Use to normalize mixed word separators or existing PascalCase/camelCase text + * into lower-initial camelCase identifiers. + * + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link pascalCase} for upper-initial PascalCase output + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * * @category transforming + * @since 4.0.0 */ export declare const camelCase: (self: string) => string; /** * Converts a string to CONSTANT_CASE (uppercase with underscores). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize words from mixed input formats into uppercase, + * underscore-separated identifiers. + * + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link pascalCase} for upper-initial PascalCase output + * @see {@link noCase} for configurable delimiters and part transforms + * * @category transforming + * @since 4.0.0 */ export declare const constantCase: (self: string) => string; /** * Converts a string to kebab-case (lowercase with hyphens). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize free-form labels, identifiers, or keys into lowercase + * hyphen-separated text. + * + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link pascalCase} for upper-initial PascalCase output + * * @category transforming + * @since 4.0.0 */ export declare const kebabCase: (self: string) => string; /** * Converts a string to snake_case (lowercase with underscores). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize mixed-case or separator-delimited text into lowercase words + * joined with underscores. + * + * @see {@link noCase} for configurable lower-level normalization + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * * @category transforming + * @since 4.0.0 */ export declare const snakeCase: (self: string) => string; /** - * A `Reducer` for concatenating `string`s. + * Reducer for concatenating `string`s. + * + * **When to use** + * + * Use to concatenate many strings through APIs that consume a `Reducer`. + * + * **Details** + * + * The reducer starts from `""`, so combining an empty collection returns `""`. + * + * @see {@link concat} for concatenating two strings directly * + * @category combining * @since 4.0.0 */ export declare const ReducerConcat: Reducer.Reducer; diff --git a/.opencode/node_modules/effect/dist/String.d.ts.map b/.opencode/node_modules/effect/dist/String.d.ts.map index f05dfdeb8106847399dea65a7597924b55373007..9ef5a62f46fdd0f2ebea8548f173bc0a83b86670 100644 --- a/.opencode/node_modules/effect/dist/String.d.ts.map +++ b/.opencode/node_modules/effect/dist/String.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"String.d.ts","sourceRoot":"","sources":["../src/String.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AAIvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAA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MAAM,KAAK,MAGxC,CAAA;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAG3C,CAAA;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAExC,CAAA;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAExC,CAAA;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAqC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/String.js b/.opencode/node_modules/effect/dist/String.js index 15e90c89d0053c5ff5ea895b1dc2654c68601166..985ecaa93da0fc510ab0296bcb230d8a275e3896 100644 --- a/.opencode/node_modules/effect/dist/String.js +++ b/.opencode/node_modules/effect/dist/String.js @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `string` type in TypeScript. - * It includes functions for basic string manipulation. + * Works with TypeScript `string` values. + * + * This module exposes common string operations in a pipe-friendly style. The + * helpers cover checks, comparison, concatenation, trimming, casing, slicing, + * padding, replacement, normalization, safe character access, search helpers + * that return `Option`, and joining strings through a reducer. * * @since 2.0.0 */ @@ -13,16 +17,29 @@ import * as order from "./Order.js"; import * as predicate from "./Predicate.js"; import * as Reducer from "./Reducer.js"; /** - * Reference to the global `String` constructor. + * Exposes the global string constructor. + * + * **When to use** + * + * Use to access native JavaScript string coercion or constructor behavior from + * the Effect module namespace. + * + * **Gotchas** + * + * Calling `String(value)` returns a primitive string. Calling + * `new String(value)` creates a boxed `String` object. + * + * @see {@link isString} for checking whether a value is a primitive string * * @category constructors * @since 4.0.0 */ export const String = globalThis.String; /** - * Tests if a value is a `string`. + * Checks whether a value is a `string`. + * + * **Example** (Checking for strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -36,9 +53,11 @@ export const String = globalThis.String; */ export const isString = predicate.isString; /** - * `Order` instance for comparing strings using lexicographic ordering. + * Provides an `Order` instance for comparing strings using lexicographic + * ordering. + * + * **Example** (Comparing strings lexicographically) * - * @example * ```ts * import { String } from "effect" * @@ -52,9 +71,10 @@ export const isString = predicate.isString; */ export const Order = order.String; /** - * An `Equivalence` instance for strings using strict equality (`===`). + * Provides an `Equivalence` instance for strings using strict equality (`===`). + * + * **Example** (Comparing strings for equality) * - * @example * ```ts * import { String } from "effect" * @@ -63,13 +83,18 @@ export const Order = order.String; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export const Equivalence = Equ.String; /** - * The empty string `""`. + * Provides the empty string `""`. + * + * **When to use** + * + * Use when you need the canonical empty string value from the `String` module. + * + * **Example** (Using the empty string) * - * @example * ```ts * import { String } from "effect" * @@ -77,14 +102,15 @@ export const Equivalence = Equ.String; * console.log(String.isEmpty(String.empty)) // true * ``` * - * @category constructors + * @category constants * @since 2.0.0 */ export const empty = ""; /** * Concatenates two strings at runtime. * - * @example + * **Example** (Concatenating strings) + * * ```ts * import { pipe, String } from "effect" * @@ -95,14 +121,15 @@ export const empty = ""; * console.log(result2) // "helloworld" * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export const concat = /*#__PURE__*/dual(2, (self, that) => self + that); /** * Converts a string to uppercase. * - * @example + * **Example** (Converting strings to uppercase) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -118,7 +145,8 @@ export const toUpperCase = self => self.toUpperCase(); /** * Converts a string to lowercase. * - * @example + * **Example** (Converting strings to lowercase) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -134,7 +162,8 @@ export const toLowerCase = self => self.toLowerCase(); /** * Capitalizes the first character of a string. * - * @example + * **Example** (Capitalizing a string) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -153,7 +182,8 @@ export const capitalize = self => { /** * Uncapitalizes the first character of a string. * - * @example + * **Example** (Uncapitalizing a string) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -170,9 +200,15 @@ export const uncapitalize = self => { return toLowerCase(self[0]) + self.slice(1); }; /** - * Replaces the first occurrence of a substring or pattern in a string. + * Replaces matches in a string using `String.prototype.replace`. + * + * **Details** + * + * String search values and non-global regular expressions replace the first + * match; global regular expressions replace every match. + * + * **Example** (Replacing a substring) * - * @example * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -191,7 +227,8 @@ export const replace = (searchValue, replaceValue) => self => self.replace(searc /** * Removes whitespace from both ends of a string. * - * @example + * **Example** (Trimming whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -207,7 +244,8 @@ export const trim = self => self.trim(); /** * Removes whitespace from the start of a string. * - * @example + * **Example** (Trimming leading whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -223,7 +261,8 @@ export const trimStart = self => self.trimStart(); /** * Removes whitespace from the end of a string. * - * @example + * **Example** (Trimming trailing whitespace) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -239,7 +278,8 @@ export const trimEnd = self => self.trimEnd(); /** * Extracts a section of a string and returns it as a new string. * - * @example + * **Example** (Slicing strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -253,9 +293,10 @@ export const trimEnd = self => self.trimEnd(); */ export const slice = (start, end) => self => self.slice(start, end); /** - * Test whether a `string` is empty. + * Checks whether a `string` is empty. + * + * **Example** (Checking for empty strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -269,9 +310,10 @@ export const slice = (start, end) => self => self.slice(start, end); */ export const isEmpty = self => self.length === 0; /** - * Test whether a `string` is non empty. + * Checks whether a `string` is non-empty. + * + * **Example** (Checking for non-empty strings) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -285,9 +327,10 @@ export const isEmpty = self => self.length === 0; */ export const isNonEmpty = self => self.length > 0; /** - * Calculate the number of characters in a `string`. + * Returns the JavaScript string length, measured in UTF-16 code units. + * + * **Example** (Getting string length) * - * @example * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -295,14 +338,15 @@ export const isNonEmpty = self => self.length > 0; * assert.deepStrictEqual(String.length("abc"), 3) * ``` * - * @category utilities + * @category getters * @since 2.0.0 */ export const length = self => self.length; /** * Splits a string into an array of substrings using a separator. * - * @example + * **Example** (Splitting strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -323,7 +367,8 @@ export const split = /*#__PURE__*/dual(2, (self, separator) => { * Returns `true` if `searchString` appears as a substring of `self`, at one or more positions that are * greater than or equal to `position`; otherwise, returns `false`. * - * @example + * **Example** (Checking for substrings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -339,7 +384,8 @@ export const includes = (searchString, position) => self => self.includes(search /** * Returns `true` if the string starts with the specified search string. * - * @example + * **Example** (Checking string prefixes) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -355,7 +401,8 @@ export const startsWith = (searchString, position) => self => self.startsWith(se /** * Returns `true` if the string ends with the specified search string. * - * @example + * **Example** (Checking string suffixes) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -369,9 +416,9 @@ export const startsWith = (searchString, position) => self => self.startsWith(se */ export const endsWith = (searchString, position) => self => self.endsWith(searchString, position); /** - * Returns the character code at the specified index, or `None` if the index is out of bounds. + * Returns the character code at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading character codes) * * ```ts * import { String } from "effect" @@ -387,7 +434,7 @@ export const charCodeAt = /*#__PURE__*/dual(2, (self, index) => Option.filter(Op /** * Extracts characters from a string between two specified indices. * - * **Example** + * **Example** (Extracting substrings) * * ```ts * import { pipe, String } from "effect" @@ -401,9 +448,9 @@ export const charCodeAt = /*#__PURE__*/dual(2, (self, index) => Option.filter(Op */ export const substring = (start, end) => self => self.substring(start, end); /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified relative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Accessing characters safely) * * ```ts * import { pipe, String } from "effect" @@ -417,9 +464,9 @@ export const substring = (start, end) => self => self.substring(start, end); */ export const at = /*#__PURE__*/dual(2, (self, index) => Option.fromUndefinedOr(self.at(index))); /** - * Returns the character at the specified index, or `None` if the index is out of bounds. + * Returns the character at the specified non-negative index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading characters safely) * * ```ts * import { pipe, String } from "effect" @@ -433,9 +480,9 @@ export const at = /*#__PURE__*/dual(2, (self, index) => Option.fromUndefinedOr(s */ export const charAt = /*#__PURE__*/dual(2, (self, index) => Option.filter(Option.some(self.charAt(index)), isNonEmpty)); /** - * Returns the Unicode code point at the specified index, or `None` if the index is out of bounds. + * Returns the Unicode code point at the specified index safely, or `None` if the index is out of bounds. * - * **Example** + * **Example** (Reading code points) * * ```ts * import { pipe, String } from "effect" @@ -449,9 +496,9 @@ export const charAt = /*#__PURE__*/dual(2, (self, index) => Option.filter(Option */ export const codePointAt = /*#__PURE__*/dual(2, (self, index) => Option.fromUndefinedOr(self.codePointAt(index))); /** - * Returns the index of the first occurrence of a substring, or `None` if not found. + * Returns the index of the first occurrence of a substring safely, or `None` if not found. * - * **Example** + * **Example** (Finding the first substring index) * * ```ts * import { pipe, String } from "effect" @@ -465,9 +512,9 @@ export const codePointAt = /*#__PURE__*/dual(2, (self, index) => Option.fromUnde */ export const indexOf = searchString => self => Option.filter(Option.some(self.indexOf(searchString)), number.isGreaterThanOrEqualTo(0)); /** - * Returns the index of the last occurrence of a substring, or `None` if not found. + * Returns the index of the last occurrence of a substring safely, or `None` if not found. * - * **Example** + * **Example** (Finding the last substring index) * * ```ts * import { pipe, String } from "effect" @@ -481,9 +528,12 @@ export const indexOf = searchString => self => Option.filter(Option.some(self.in */ export const lastIndexOf = searchString => self => Option.filter(Option.some(self.lastIndexOf(searchString)), number.isGreaterThanOrEqualTo(0)); /** - * Compares two strings according to the current locale. + * Computes locale-aware ordering for two strings, with optional locales and + * collator options, and returns the result as an `Ordering` (`-1`, `0`, or + * `1`). + * + * **Example** (Comparing strings by locale) * - * @example * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -498,15 +548,21 @@ export const lastIndexOf = searchString => self => Option.filter(Option.some(sel */ export const localeCompare = (that, locales, options) => self => number.sign(self.localeCompare(that, locales, options)); /** - * A `pipe`-able version of the native `match` method. + * Matches a string against a pattern safely and returns `Option.some` with the match + * array, or `Option.none` when the pattern does not match. * - * **Example** + * **Example** (Matching regular expressions) * * ```ts - * import { pipe, String } from "effect" + * import { Option, pipe, String } from "effect" * - * pipe("hello", String.match(/l+/)) // Option.some(["ll"]) - * pipe("hello", String.match(/x/)) // Option.none() + * const match = pipe("hello", String.match(/l+/)) + * + * if (Option.isSome(match)) { + * console.log(`${match.value[0]}@${match.value.index}`) // "ll@2" + * } + * + * console.log(Option.isNone(pipe("hello", String.match(/x/)))) // true * ``` * * @category searching @@ -514,14 +570,18 @@ export const localeCompare = (that, locales, options) => self => number.sign(sel */ export const match = regExp => self => Option.fromNullOr(self.match(regExp)); /** - * It is the `pipe`-able version of the native `matchAll` method. + * Returns an iterator over all regular expression matches in the string using + * native `String.prototype.matchAll` semantics. + * + * **Example** (Iterating regular expression matches) * - * @example * ```ts * import { pipe, String } from "effect" * * const matches = pipe("hello world", String.matchAll(/l/g)) - * console.log(Array.from(matches)) // [["l"], ["l"], ["l"]] + * console.log( + * Array.from(matches, (match) => `${match[0]}@${match.index}`).join(", ") + * ) // "l@2, l@3, l@9" * ``` * * @category searching @@ -531,7 +591,8 @@ export const matchAll = regExp => self => self.matchAll(regExp); /** * Normalizes a string according to the specified Unicode normalization form. * - * @example + * **Example** (Normalizing Unicode strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -554,7 +615,8 @@ export const normalize = form => self => self.normalize(form); /** * Pads the string from the end with a given fill string to a specified length. * - * @example + * **Example** (Padding strings at the end) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -570,7 +632,8 @@ export const padEnd = (maxLength, fillString) => self => self.padEnd(maxLength, /** * Pads the string from the start with a given fill string to a specified length. * - * @example + * **Example** (Padding strings at the start) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -586,7 +649,8 @@ export const padStart = (maxLength, fillString) => self => self.padStart(maxLeng /** * Repeats the string the specified number of times. * - * @example + * **Example** (Repeating strings) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -602,7 +666,8 @@ export const repeat = count => self => self.repeat(count); /** * Replaces all occurrences of a substring or pattern in a string. * - * @example + * **Example** (Replacing all matches) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -616,9 +681,10 @@ export const repeat = count => self => self.repeat(count); */ export const replaceAll = (searchValue, replaceValue) => self => self.replaceAll(searchValue, replaceValue); /** - * Searches for a match between a regular expression and the string. + * Returns the index of the first match for a string or regular expression safely, or + * `Option.none` when no match is found. * - * **Example** + * **Example** (Searching strings) * * ```ts * import { String } from "effect" @@ -635,7 +701,8 @@ export const search = /*#__PURE__*/dual(2, (self, regExp) => Option.filter(Optio /** * Converts the string to lowercase according to the specified locale. * - * @example + * **Example** (Lowercasing strings by locale) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -651,7 +718,8 @@ export const toLocaleLowerCase = locale => self => self.toLocaleLowerCase(locale /** * Converts the string to uppercase according to the specified locale. * - * @example + * **Example** (Uppercasing strings by locale) + * * ```ts * import { pipe, String } from "effect" * import * as assert from "node:assert" @@ -665,7 +733,9 @@ export const toLocaleLowerCase = locale => self => self.toLocaleLowerCase(locale */ export const toLocaleUpperCase = locale => self => self.toLocaleUpperCase(locale); /** - * Keep the specified number of characters from the start of a string. + * Keeps the specified number of characters from the start of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -674,7 +744,8 @@ export const toLocaleUpperCase = locale => self => self.toLocaleUpperCase(locale * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the start) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -687,7 +758,9 @@ export const toLocaleUpperCase = locale => self => self.toLocaleUpperCase(locale */ export const takeLeft = /*#__PURE__*/dual(2, (self, n) => self.slice(0, Math.max(n, 0))); /** - * Keep the specified number of characters from the end of a string. + * Keeps the specified number of characters from the end of a string. + * + * **Details** * * If `n` is larger than the available number of characters, the string will * be returned whole. @@ -696,7 +769,8 @@ export const takeLeft = /*#__PURE__*/dual(2, (self, n) => self.slice(0, Math.max * * If `n` is a float, it will be rounded down to the nearest integer. * - * @example + * **Example** (Taking characters from the end) + * * ```ts * import { String } from "effect" * import * as assert from "node:assert" @@ -714,7 +788,8 @@ const LF = 0x0a; * Returns an `IterableIterator` which yields each line contained within the * string, trimming off the trailing newline character. * - * @example + * **Example** (Iterating lines without separators) + * * ```ts * import { String } from "effect" * @@ -730,7 +805,8 @@ export const linesIterator = self => linesSeparated(self, true); * Returns an `IterableIterator` which yields each line contained within the * string as well as the trailing newline character. * - * @example + * **Example** (Iterating lines with separators) + * * ```ts * import { String } from "effect" * @@ -743,11 +819,11 @@ export const linesIterator = self => linesSeparated(self, true); */ export const linesWithSeparators = s => linesSeparated(s, false); /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the character specified by `marginChar` - * from the line. + * Strips a leading margin prefix from every line using the supplied margin + * character. + * + * **Example** (Stripping custom margins) * - * @example * ```ts * import { String } from "effect" * @@ -772,10 +848,10 @@ export const stripMarginWith = /*#__PURE__*/dual(2, (self, marginChar) => { return out; }); /** - * For every line in this string, strip a leading prefix consisting of blanks - * or control characters followed by the `"|"` character from the line. + * Strips a leading `|` margin prefix from every line. + * + * **Example** (Stripping pipe margins) * - * @example * ```ts * import { String } from "effect" * @@ -791,7 +867,8 @@ export const stripMargin = self => stripMarginWith(self, "|"); /** * Converts a snake_case string to camelCase. * - * @example + * **Example** (Converting snake_case to camelCase) + * * ```ts * import { String } from "effect" * @@ -812,7 +889,8 @@ export const snakeToCamel = self => { /** * Converts a snake_case string to PascalCase. * - * @example + * **Example** (Converting snake_case to PascalCase) + * * ```ts * import { String } from "effect" * @@ -833,7 +911,8 @@ export const snakeToPascal = self => { /** * Converts a snake_case string to kebab-case. * - * @example + * **Example** (Converting snake_case to kebab-case) + * * ```ts * import { String } from "effect" * @@ -848,7 +927,8 @@ export const snakeToKebab = self => self.replace(/_/g, "-"); /** * Converts a camelCase string to snake_case. * - * @example + * **Example** (Converting camelCase to snake_case) + * * ```ts * import { String } from "effect" * @@ -863,7 +943,8 @@ export const camelToSnake = self => self.replace(/([A-Z])/g, "_$1").toLowerCase( /** * Converts a PascalCase string to snake_case. * - * @example + * **Example** (Converting PascalCase to snake_case) + * * ```ts * import { String } from "effect" * @@ -878,7 +959,8 @@ export const pascalToSnake = self => (self.slice(0, 1) + self.slice(1).replace(/ /** * Converts a kebab-case string to snake_case. * - * @example + * **Example** (Converting kebab-case to snake_case) + * * ```ts * import { String } from "effect" * @@ -936,7 +1018,7 @@ class LinesIterator { } } /** - * Test if the provided character is a line break character (i.e. either `"\r"` + * Checks whether the provided character is a line break character (i.e. either `"\r"` * or `"\n"`). */ const isLineBreak = char => { @@ -944,13 +1026,25 @@ const isLineBreak = char => { return code === CR || code === LF; }; /** - * Test if the provided characters combine to form a carriage return/line-feed + * Checks whether the provided characters combine to form a carriage return/line-feed * (i.e. `"\r\n"`). */ const isLineBreak2 = (char0, char1) => char0.charCodeAt(0) === CR && char1.charCodeAt(0) === LF; const linesSeparated = (self, stripped) => new LinesIterator(self, stripped); /** - * Normalize a string to a specific case format + * Normalizes a string by splitting it into word parts, transforming each part, + * and joining the parts with a configurable delimiter. + * + * **When to use** + * + * Use when you need custom word-case output with a delimiter or part transform + * that the fixed case helpers do not provide. + * + * @see {@link pascalCase} for fixed PascalCase output + * @see {@link camelCase} for fixed lower-initial camelCase output + * @see {@link constantCase} for fixed uppercase underscore-separated output + * @see {@link kebabCase} for fixed lowercase hyphen-separated output + * @see {@link snakeCase} for fixed lowercase underscore-separated output * * @category transforming * @since 4.0.0 @@ -986,8 +1080,17 @@ const pascalCaseTransform = (input, index) => { /** * Converts a string to PascalCase. * - * @since 4.0.0 + * **When to use** + * + * Use to normalize strings from spaces, separators, or camel/Pascal word + * boundaries into PascalCase. + * + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link snakeToPascal} for converting known snake_case input only + * * @category transforming + * @since 4.0.0 */ export const pascalCase = /*#__PURE__*/noCase({ delimiter: "", @@ -997,8 +1100,19 @@ const camelCaseTransform = (input, index) => index === 0 ? input.toLowerCase() : /** * Converts a string to camelCase. * - * @since 4.0.0 + * **When to use** + * + * Use to normalize mixed word separators or existing PascalCase/camelCase text + * into lower-initial camelCase identifiers. + * + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link pascalCase} for upper-initial PascalCase output + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * * @category transforming + * @since 4.0.0 */ export const camelCase = /*#__PURE__*/noCase({ delimiter: "", @@ -1007,8 +1121,19 @@ export const camelCase = /*#__PURE__*/noCase({ /** * Converts a string to CONSTANT_CASE (uppercase with underscores). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize words from mixed input formats into uppercase, + * underscore-separated identifiers. + * + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link pascalCase} for upper-initial PascalCase output + * @see {@link noCase} for configurable delimiters and part transforms + * * @category transforming + * @since 4.0.0 */ export const constantCase = /*#__PURE__*/noCase({ delimiter: "_", @@ -1017,8 +1142,19 @@ export const constantCase = /*#__PURE__*/noCase({ /** * Converts a string to kebab-case (lowercase with hyphens). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize free-form labels, identifiers, or keys into lowercase + * hyphen-separated text. + * + * @see {@link noCase} for configurable delimiters and part transforms + * @see {@link snakeCase} for lowercase underscore-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * @see {@link camelCase} for lower-initial camelCase output + * @see {@link pascalCase} for upper-initial PascalCase output + * * @category transforming + * @since 4.0.0 */ export const kebabCase = /*#__PURE__*/noCase({ delimiter: "-" @@ -1026,15 +1162,35 @@ export const kebabCase = /*#__PURE__*/noCase({ /** * Converts a string to snake_case (lowercase with underscores). * - * @since 4.0.0 + * **When to use** + * + * Use to normalize mixed-case or separator-delimited text into lowercase words + * joined with underscores. + * + * @see {@link noCase} for configurable lower-level normalization + * @see {@link kebabCase} for lowercase hyphen-separated output + * @see {@link constantCase} for uppercase underscore-separated output + * * @category transforming + * @since 4.0.0 */ export const snakeCase = /*#__PURE__*/noCase({ delimiter: "_" }); /** - * A `Reducer` for concatenating `string`s. + * Reducer for concatenating `string`s. + * + * **When to use** + * + * Use to concatenate many strings through APIs that consume a `Reducer`. + * + * **Details** + * + * The reducer starts from `""`, so combining an empty collection returns `""`. + * + * @see {@link concat} for concatenating two strings directly * + * @category combining * @since 4.0.0 */ export const ReducerConcat = /*#__PURE__*/Reducer.make((a, b) => a + b, ""); diff --git a/.opencode/node_modules/effect/dist/String.js.map b/.opencode/node_modules/effect/dist/String.js.map index 616d0bb185b32cb0831c3dc2ee483408853bd923..ab85da497ccf301b9e3670e6229442495362183e 100644 --- a/.opencode/node_modules/effect/dist/String.js.map +++ b/.opencode/node_modules/effect/dist/String.js.map @@ -1 +1 @@ -{"version":3,"file":"String.js","names":["Equ","dual","readonlyArray","number","Option","order","predicate","Reducer","String","globalThis","isString","Order","Equivalence","empty","concat","self","that","toUpperCase","toLowerCase","capitalize","length","slice","uncapitalize","replace","searchValue","replaceValue","trim","trimStart","trimEnd","start","end","isEmpty","isNonEmpty","split","separator","out","isArrayNonEmpty","includes","searchString","position","startsWith","endsWith","charCodeAt","index","filter","some","charCode","isNaN","substring","at","fromUndefinedOr","charAt","codePointAt","indexOf","isGreaterThanOrEqualTo","lastIndexOf","localeCompare","locales","options","sign","match","regExp","fromNullOr","matchAll","normalize","form","padEnd","maxLength","fillString","padStart","repeat","count","replaceAll","search","toLocaleLowerCase","locale","toLocaleUpperCase","takeLeft","n","Math","max","takeRight","floor","Infinity","CR","LF","linesIterator","linesSeparated","linesWithSeparators","s","stripMarginWith","marginChar","line","stripped","stripMargin","snakeToCamel","str","i","snakeToPascal","snakeToKebab","camelToSnake","pascalToSnake","kebabToSnake","LinesIterator","constructor","next","done","value","undefined","isLineBreak","char","isLineBreak2","Symbol","iterator","code","char0","char1","noCase","args","input","delimiter","transform","result","SPLIT_REGEXP","STRIP_REGEXP","map","join","pascalCaseTransform","firstChar","lowerChars","pascalCase","camelCaseTransform","camelCase","constantCase","kebabCase","snakeCase","ReducerConcat","make","a","b"],"sources":["../src/String.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAQA,OAAO,KAAKA,GAAG,MAAM,kBAAkB;AACvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,aAAa,MAAM,qBAAqB;AACpD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;AAMA,OAAO,MAAMC,MAAM,GAAGC,UAAU,CAACD,MAAM;AAEvC;;;;;;;;;;;;;;;AAeA,OAAO,MAAME,QAAQ,GAAgCJ,SAAS,CAACI,QAAQ;AAEvE;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,KAAK,GAAwBN,KAAK,CAACG,MAAM;AAEtD;;;;;;;;;;;;;;AAcA,OAAO,MAAMI,WAAW,GAA4BZ,GAAG,CAACQ,MAAM;AAE9D;;;;;;;;;;;;;;AAcA,OAAO,MAAMK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;EACrC;EACA,OAAO,GAAGD,SAAS,CAAC/G,WAAW,EAAE,GAAGgH,UAAU,EAAE;AAClD,CAAC;AAED;;;;;;AAMA,OAAO,MAAMC,UAAU,gBAA6Bb,MAAM,CAAC;EACzDG,SAAS,EAAE,EAAE;EACbC,SAAS,EAAEM;CACZ,CAAC;AAEF,MAAMI,kBAAkB,GAAGA,CAACZ,KAAa,EAAE5E,KAAa,KACtDA,KAAK,KAAK,CAAC,GACP4E,KAAK,CAACrG,WAAW,EAAE,GACnB6G,mBAAmB,CAACR,KAAK,EAAE5E,KAAK,CAAC;AAEvC;;;;;;AAMA,OAAO,MAAMyF,SAAS,gBAA6Bf,MAAM,CAAC;EACxDG,SAAS,EAAE,EAAE;EACbC,SAAS,EAAEU;CACZ,CAAC;AAEF;;;;;;AAMA,OAAO,MAAME,YAAY,gBAA6BhB,MAAM,CAAC;EAC3DG,SAAS,EAAE,GAAG;EACdC,SAAS,EAAExG;CACZ,CAAC;AAEF;;;;;;AAMA,OAAO,MAAMqH,SAAS,gBAA6BjB,MAAM,CAAC;EACxDG,SAAS,EAAE;CACZ,CAAC;AAEF;;;;;;AAMA,OAAO,MAAMe,SAAS,gBAA6BlB,MAAM,CAAC;EACxDG,SAAS,EAAE;CACZ,CAAC;AAEF;;;;;AAKA,OAAO,MAAMgB,aAAa,gBAA4BjI,OAAO,CAACkI,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGC,CAAC,EAAE,EAAE,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"String.js","names":["Equ","dual","readonlyArray","number","Option","order","predicate","Reducer","String","globalThis","isString","Order","Equivalence","empty","concat","self","that","toUpperCase","toLowerCase","capitalize","length","slice","uncapitalize","replace","searchValue","replaceValue","trim","trimStart","trimEnd","start","end","isEmpty","isNonEmpty","split","separator","out","isArrayNonEmpty","includes","searchString","position","startsWith","endsWith","charCodeAt","index","filter","some","charCode","isNaN","substring","at","fromUndefinedOr","charAt","codePointAt","indexOf","isGreaterThanOrEqualTo","lastIndexOf","localeCompare","locales","options","sign","match","regExp","fromNullOr","matchAll","normalize","form","padEnd","maxLength","fillString","padStart","repeat","count","replaceAll","search","toLocaleLowerCase","locale","toLocaleUpperCase","takeLeft","n","Math","max","takeRight","floor","Infinity","CR","LF","linesIterator","linesSeparated","linesWithSeparators","s","stripMarginWith","marginChar","line","stripped","stripMargin","snakeToCamel","str","i","snakeToPascal","snakeToKebab","camelToSnake","pascalToSnake","kebabToSnake","LinesIterator","constructor","next","done","value","undefined","isLineBreak","char","isLineBreak2","Symbol","iterator","code","char0","char1","noCase","args","input","delimiter","transform","result","SPLIT_REGEXP","STRIP_REGEXP","map","join","pascalCaseTransform","firstChar","lowerChars","pascalCase","camelCaseTransform","camelCase","constantCase","kebabCase","snakeCase","ReducerConcat","make","a","b"],"sources":["../src/String.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAYA,OAAO,KAAKA,GAAG,MAAM,kBAAkB;AACvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,aAAa,MAAM,qBAAqB;AACpD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,MAAM,GAAGC,UAAU,CAACD,MAAM;AAEvC;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAME,QAAQ,GAAgCJ,SAAS,CAACI,QAAQ;AAEvE;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,KAAK,GAAwBN,KAAK,CAACG,MAAM;AAEtD;;;;;;;;;;;;;;;AAeA,OAAO,MAAMI,WAAW,GAA4BZ,GAAG,CAACQ,MAAM;AAE9D;;;;;;;;;;;;;;;;;;;AAmBA,OAA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KAAK,GAAG,CAAC,IAAIqF,SAAS,IAAI,GAAG,IAAIA,SAAS,IAAI,GAAG,EAAE;IACrD,OAAO,IAAIA,SAAS,GAAGC,UAAU,EAAE;EACrC;EACA,OAAO,GAAGD,SAAS,CAAC/G,WAAW,EAAE,GAAGgH,UAAU,EAAE;AAClD,CAAC;AAED;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,UAAU,gBAA6Bb,MAAM,CAAC;EACzDG,SAAS,EAAE,EAAE;EACbC,SAAS,EAAEM;CACZ,CAAC;AAEF,MAAMI,kBAAkB,GAAGA,CAACZ,KAAa,EAAE5E,KAAa,KACtDA,KAAK,KAAK,CAAC,GACP4E,KAAK,CAACrG,WAAW,EAAE,GACnB6G,mBAAmB,CAACR,KAAK,EAAE5E,KAAK,CAAC;AAEvC;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMyF,SAAS,gBAA6Bf,MAAM,CAAC;EACxDG,SAAS,EAAE,EAAE;EACbC,SAAS,EAAEU;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAME,YAAY,gBAA6BhB,MAAM,CAAC;EAC3DG,SAAS,EAAE,GAAG;EACdC,SAAS,EAAExG;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMqH,SAAS,gBAA6BjB,MAAM,CAAC;EACxDG,SAAS,EAAE;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;AAeA,OAAO,MAAMe,SAAS,gBAA6BlB,MAAM,CAAC;EACxDG,SAAS,EAAE;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMgB,aAAa,gBAA4BjI,OAAO,CAACkI,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGC,CAAC,EAAE,EAAE,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Struct.d.ts b/.opencode/node_modules/effect/dist/Struct.d.ts index 1aa66a9dd0cf13f4810ffb7cbfe8bf226fc720e6..2b8a53f3185313afcc2660f984b44e1464bfe32c 100644 --- a/.opencode/node_modules/effect/dist/Struct.d.ts +++ b/.opencode/node_modules/effect/dist/Struct.d.ts @@ -1,75 +1,12 @@ /** - * Utilities for creating, transforming, and comparing plain TypeScript objects - * (structs). Every function produces a new object — inputs are never mutated. - * - * ## Mental model - * - * - **Struct**: A plain JS object with a fixed set of known keys (e.g., - * `{ name: string; age: number }`). Not a generic key-value record. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Struct.pick(obj, keys)`) and data-last (`pipe(obj, Struct.pick(keys))`) - * style. - * - **Immutability**: All operations return a new object; the original is - * never modified. - * - **Lambda**: A type-level function interface (`~lambda.in` / `~lambda.out`) - * used by {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler - * can track how value types change. - * - **Evolver pattern**: {@link evolve}, {@link evolveKeys}, and - * {@link evolveEntries} let you selectively transform values, keys, or both - * while leaving untouched properties unchanged. - * - * ## Common tasks - * - * - Access a property in a pipeline → {@link get} - * - List string keys with proper types → {@link keys} - * - Subset / remove properties → {@link pick}, {@link omit} - * - Merge two structs (second wins) → {@link assign} - * - Rename keys → {@link renameKeys} - * - Transform selected values → {@link evolve} - * - Transform selected keys → {@link evolveKeys} - * - Transform both keys and values → {@link evolveEntries} - * - Map all values with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare structs → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce structs → {@link makeCombiner}, {@link makeReducer} - * - Flatten intersection types → {@link Simplify} - * - Strip `readonly` modifiers → {@link Mutable} - * - * ## Gotchas - * - * - {@link keys} only returns `string` keys; symbol keys are excluded. - * - {@link pick} and {@link omit} iterate with `for...in`, which includes - * inherited enumerable properties but excludes non-enumerable ones. - * - {@link assign} spreads with `...`; property order follows standard - * JS spread rules. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a {@link Lambda} - * value created with {@link lambda}; a plain function won't type-check. - * - * ## Quickstart - * - * **Example** (Picking, renaming, and evolving struct properties) + * Works with plain TypeScript objects, also called structs. * - * ```ts - * import { pipe, Struct } from "effect" - * - * const user = { firstName: "Alice", lastName: "Smith", age: 30, admin: false } - * - * const result = pipe( - * user, - * Struct.pick(["firstName", "age"]), - * Struct.evolve({ age: (n) => n + 1 }), - * Struct.renameKeys({ firstName: "name" }) - * ) - * - * console.log(result) // { name: "Alice", age: 31 } - * ``` - * - * ## See also - * - * - {@link Equivalence} – building equivalence relations for structs - * - {@link Order} – ordering structs by their fields - * - {@link Combiner} – combining two values of the same type - * - {@link Reducer} – combining with an initial value + * The runtime helpers in this module create new objects instead of mutating + * their inputs. They cover common object workflows such as reading properties, + * listing typed keys, picking or omitting fields, assigning and renaming keys, + * transforming values, deriving comparison helpers, and creating records from a + * list of keys. The module also includes type-level helpers for simplifying and + * merging object shapes. * * @since 2.0.0 */ @@ -80,10 +17,14 @@ import * as Reducer from "./Reducer.ts"; /** * Flattens intersection types into a single object type for readability. * - * - Use when hovering over a type shows `A & B & C` instead of the merged - * shape. - * - Purely cosmetic — no runtime effect. - * - Preserves `readonly` modifiers; use {@link Mutable} to strip them. + * **When to use** + * + * Use when hovering over a type shows `A & B & C` instead of the merged shape. + * + * **Details** + * + * This helper is purely cosmetic at the type level and has no runtime effect. + * It preserves `readonly` modifiers; use {@link Mutable} to strip them. * * **Example** (Flattening an intersection) * @@ -99,8 +40,7 @@ import * as Reducer from "./Reducer.ts"; * * @see {@link Mutable} – also flattens but removes `readonly` * @see {@link Assign} – merges two types with right-side precedence - * - * @category Type-Level Programming + * @category utility types * @since 4.0.0 */ export type Simplify = { @@ -109,9 +49,14 @@ export type Simplify = { /** * Removes `readonly` modifiers from all properties of an object type. * - * - Use when you need a mutable version of a readonly interface. - * - Purely cosmetic at the type level — no runtime effect. - * - Also flattens intersections like {@link Simplify}. + * **When to use** + * + * Use when you need a mutable version of a readonly interface. + * + * **Details** + * + * This helper is purely cosmetic at the type level and has no runtime effect. + * It also flattens intersections like {@link Simplify}. * * **Example** (Making a readonly type mutable) * @@ -124,8 +69,7 @@ export type Simplify = { * ``` * * @see {@link Simplify} – flattens intersections without removing `readonly` - * - * @category Type-Level Programming + * @category utility types * @since 4.0.0 */ export type Mutable = { @@ -135,9 +79,14 @@ export type Mutable = { * Merges two object types with properties from `U` taking precedence over `T` * on overlapping keys (like `Object.assign` at the type level). * - * - Use when you need the type-level equivalent of `{ ...T, ...U }`. - * - When no keys overlap, returns a simple intersection for efficiency. - * - When keys overlap, the type from `U` wins. + * **When to use** + * + * Use when you need the type-level equivalent of `{ ...T, ...U }`. + * + * **Details** + * + * When no keys overlap, this returns a simple intersection for efficiency. + * When keys overlap, the type from `U` wins. * * **Example** (Merging two types with overlapping keys) * @@ -152,17 +101,20 @@ export type Mutable = { * * @see {@link assign} – the runtime equivalent * @see {@link Simplify} – flatten the resulting intersection - * - * @category Type-Level Programming + * @category utility types * @since 4.0.0 */ export type Assign = Simplify & U>; /** * Retrieves the value at `key` from a struct. * - * - Use in a pipeline when you need to extract a single property. - * - Does not mutate the input. - * - The return type is narrowed to `S[K]`. + * **When to use** + * + * Use to extract a single property from a struct in a pipeline. + * + * **Details** + * + * The return type is narrowed to `S[K]`. * * **Example** (Extracting a property in a pipeline) * @@ -175,17 +127,20 @@ export type Assign = Simplify(key: K): (self: S) => S[K]; /** * Retrieves the value at `key` from a struct. * - * - Use in a pipeline when you need to extract a single property. - * - Does not mutate the input. - * - The return type is narrowed to `S[K]`. + * **When to use** + * + * Use to extract a single property from a struct in a pipeline. + * + * **Details** + * + * The return type is narrowed to `S[K]`. * * **Example** (Extracting a property in a pipeline) * @@ -221,8 +179,7 @@ export declare const get: { * * @see {@link keys} – list all string keys of a struct * @see {@link pick} – extract multiple properties into a new struct - * - * @category Getters + * @category getters * @since 2.0.0 */ (self: S, key: K): S[K]; @@ -230,10 +187,14 @@ export declare const get: { /** * Returns the string keys of a struct as a properly typed `Array`. * - * - Use instead of `Object.keys` when you want the return type narrowed to the - * known keys of the struct. - * - Symbol keys are excluded; only string keys are returned. - * - Does not mutate the input. + * **When to use** + * + * Use when you want a typed replacement for `Object.keys` that narrows the result + * to the known string keys of the struct. + * + * **Gotchas** + * + * Symbol keys are excluded; only string keys are returned. * * **Example** (Typed keys) * @@ -248,7 +209,6 @@ export declare const get: { * * @see {@link get} – access a single key's value * @see {@link pick} – select a subset of keys into a new struct - * * @category Key utilities * @since 3.6.0 */ @@ -256,9 +216,13 @@ export declare const keys: (self: S) => Array<(keyof S) & stri /** * Creates a new struct containing only the specified keys. * - * - Use to narrow a struct down to a subset of its properties. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to narrow a struct down to a subset of its properties. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Selecting specific properties) * @@ -272,7 +236,6 @@ export declare const keys: (self: S) => Array<(keyof S) & stri * * @see {@link omit} – the inverse (exclude keys instead) * @see {@link get} – extract a single value - * * @category filtering * @since 2.0.0 */ @@ -280,9 +243,13 @@ export declare const pick: { /** * Creates a new struct containing only the specified keys. * - * - Use to narrow a struct down to a subset of its properties. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to narrow a struct down to a subset of its properties. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Selecting specific properties) * @@ -296,7 +263,6 @@ export declare const pick: { * * @see {@link omit} – the inverse (exclude keys instead) * @see {@link get} – extract a single value - * * @category filtering * @since 2.0.0 */ @@ -304,9 +270,13 @@ export declare const pick: { /** * Creates a new struct containing only the specified keys. * - * - Use to narrow a struct down to a subset of its properties. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to narrow a struct down to a subset of its properties. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Selecting specific properties) * @@ -320,7 +290,6 @@ export declare const pick: { * * @see {@link omit} – the inverse (exclude keys instead) * @see {@link get} – extract a single value - * * @category filtering * @since 2.0.0 */ @@ -329,9 +298,13 @@ export declare const pick: { /** * Creates a new struct with the specified keys removed. * - * - Use to exclude sensitive or irrelevant fields from a struct. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to exclude sensitive or irrelevant fields from a struct. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Removing a property) * @@ -344,7 +317,6 @@ export declare const pick: { * ``` * * @see {@link pick} – the inverse (keep only specified keys) - * * @category filtering * @since 2.0.0 */ @@ -352,9 +324,13 @@ export declare const omit: { /** * Creates a new struct with the specified keys removed. * - * - Use to exclude sensitive or irrelevant fields from a struct. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to exclude sensitive or irrelevant fields from a struct. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Removing a property) * @@ -367,7 +343,6 @@ export declare const omit: { * ``` * * @see {@link pick} – the inverse (keep only specified keys) - * * @category filtering * @since 2.0.0 */ @@ -375,9 +350,13 @@ export declare const omit: { /** * Creates a new struct with the specified keys removed. * - * - Use to exclude sensitive or irrelevant fields from a struct. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to exclude sensitive or irrelevant fields from a struct. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Removing a property) * @@ -390,7 +369,6 @@ export declare const omit: { * ``` * * @see {@link pick} – the inverse (keep only specified keys) - * * @category filtering * @since 2.0.0 */ @@ -400,9 +378,13 @@ export declare const omit: { * Merges two structs into a new struct. When both structs share a key, the * value from `that` (the second struct) wins. * - * - Use when you want `{ ...self, ...that }` with proper types. - * - Does not mutate either input; returns a fresh object. - * - The result type is `Simplify>`. + * **When to use** + * + * Use when you want `{ ...self, ...that }` with proper types. + * + * **Details** + * + * The result type is `Simplify>`. * * **Example** (Merging structs with overlapping keys) * @@ -417,7 +399,6 @@ export declare const omit: { * * @see {@link Assign} – the type-level equivalent * @see {@link evolve} – transform individual values instead of replacing them - * * @category combining * @since 4.0.0 */ @@ -426,9 +407,13 @@ export declare const assign: { * Merges two structs into a new struct. When both structs share a key, the * value from `that` (the second struct) wins. * - * - Use when you want `{ ...self, ...that }` with proper types. - * - Does not mutate either input; returns a fresh object. - * - The result type is `Simplify>`. + * **When to use** + * + * Use when you want `{ ...self, ...that }` with proper types. + * + * **Details** + * + * The result type is `Simplify>`. * * **Example** (Merging structs with overlapping keys) * @@ -443,7 +428,6 @@ export declare const assign: { * * @see {@link Assign} – the type-level equivalent * @see {@link evolve} – transform individual values instead of replacing them - * * @category combining * @since 4.0.0 */ @@ -452,9 +436,13 @@ export declare const assign: { * Merges two structs into a new struct. When both structs share a key, the * value from `that` (the second struct) wins. * - * - Use when you want `{ ...self, ...that }` with proper types. - * - Does not mutate either input; returns a fresh object. - * - The result type is `Simplify>`. + * **When to use** + * + * Use when you want `{ ...self, ...that }` with proper types. + * + * **Details** + * + * The result type is `Simplify>`. * * **Example** (Merging structs with overlapping keys) * @@ -469,7 +457,6 @@ export declare const assign: { * * @see {@link Assign} – the type-level equivalent * @see {@link evolve} – transform individual values instead of replacing them - * * @category combining * @since 4.0.0 */ @@ -482,13 +469,17 @@ type Evolved = Simplify<{ [K in keyof S]: K extends keyof E ? (E[K] extends (...a: any) => infer R ? R : S[K]) : S[K]; }>; /** - * Selectively transforms values of a struct using per-key functions. Keys + * Transforms values of a struct selectively using per-key functions. Keys * without a corresponding function are copied unchanged. * - * - Use when you want to update specific fields while keeping the rest intact. - * - Does not mutate the input; returns a fresh object. - * - Each transform function receives the current value and returns the new - * value; the return type can differ from the input type. + * **When to use** + * + * Use when you want to update specific fields while keeping the rest intact. + * + * **Details** + * + * Each transform function receives the current value and returns the new value; + * the return type can differ from the input type. * * **Example** (Transforming selected values) * @@ -508,19 +499,22 @@ type Evolved = Simplify<{ * @see {@link evolveKeys} – transform keys instead of values * @see {@link evolveEntries} – transform both keys and values * @see {@link map} – apply the same transformation to all values - * * @category transforming * @since 2.0.0 */ export declare const evolve: { /** - * Selectively transforms values of a struct using per-key functions. Keys + * Transforms values of a struct selectively using per-key functions. Keys * without a corresponding function are copied unchanged. * - * - Use when you want to update specific fields while keeping the rest intact. - * - Does not mutate the input; returns a fresh object. - * - Each transform function receives the current value and returns the new - * value; the return type can differ from the input type. + * **When to use** + * + * Use when you want to update specific fields while keeping the rest intact. + * + * **Details** + * + * Each transform function receives the current value and returns the new value; + * the return type can differ from the input type. * * **Example** (Transforming selected values) * @@ -540,19 +534,22 @@ export declare const evolve: { * @see {@link evolveKeys} – transform keys instead of values * @see {@link evolveEntries} – transform both keys and values * @see {@link map} – apply the same transformation to all values - * * @category transforming * @since 2.0.0 */ >(e: E): (self: S) => Evolved; /** - * Selectively transforms values of a struct using per-key functions. Keys + * Transforms values of a struct selectively using per-key functions. Keys * without a corresponding function are copied unchanged. * - * - Use when you want to update specific fields while keeping the rest intact. - * - Does not mutate the input; returns a fresh object. - * - Each transform function receives the current value and returns the new - * value; the return type can differ from the input type. + * **When to use** + * + * Use when you want to update specific fields while keeping the rest intact. + * + * **Details** + * + * Each transform function receives the current value and returns the new value; + * the return type can differ from the input type. * * **Example** (Transforming selected values) * @@ -572,7 +569,6 @@ export declare const evolve: { * @see {@link evolveKeys} – transform keys instead of values * @see {@link evolveEntries} – transform both keys and values * @see {@link map} – apply the same transformation to all values - * * @category transforming * @since 2.0.0 */ @@ -585,13 +581,17 @@ type KeyEvolved = Simplify<{ [K in keyof S as K extends keyof E ? (E[K] extends ((k: K) => infer R extends PropertyKey) ? R : K) : K]: S[K]; }>; /** - * Selectively transforms keys of a struct using per-key functions. Keys without + * Transforms keys of a struct selectively using per-key functions. Keys without * a corresponding function are copied unchanged. * - * - Use when you need computed key names (e.g., uppercasing, prefixing). - * - Each transform function receives the key name and must return a new - * `PropertyKey`. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you need computed key names, such as uppercasing or prefixing. + * + * **Details** + * + * Each transform function receives the key name and must return a new + * `PropertyKey`. * * **Example** (Renaming keys with functions) * @@ -610,19 +610,22 @@ type KeyEvolved = Simplify<{ * @see {@link renameKeys} – rename keys with a static mapping * @see {@link evolve} – transform values instead of keys * @see {@link evolveEntries} – transform both keys and values - * * @category Key utilities * @since 4.0.0 */ export declare const evolveKeys: { /** - * Selectively transforms keys of a struct using per-key functions. Keys without + * Transforms keys of a struct selectively using per-key functions. Keys without * a corresponding function are copied unchanged. * - * - Use when you need computed key names (e.g., uppercasing, prefixing). - * - Each transform function receives the key name and must return a new - * `PropertyKey`. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you need computed key names, such as uppercasing or prefixing. + * + * **Details** + * + * Each transform function receives the key name and must return a new + * `PropertyKey`. * * **Example** (Renaming keys with functions) * @@ -641,19 +644,22 @@ export declare const evolveKeys: { * @see {@link renameKeys} – rename keys with a static mapping * @see {@link evolve} – transform values instead of keys * @see {@link evolveEntries} – transform both keys and values - * * @category Key utilities * @since 4.0.0 */ >(e: E): (self: S) => KeyEvolved; /** - * Selectively transforms keys of a struct using per-key functions. Keys without + * Transforms keys of a struct selectively using per-key functions. Keys without * a corresponding function are copied unchanged. * - * - Use when you need computed key names (e.g., uppercasing, prefixing). - * - Each transform function receives the key name and must return a new - * `PropertyKey`. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you need computed key names, such as uppercasing or prefixing. + * + * **Details** + * + * Each transform function receives the key name and must return a new + * `PropertyKey`. * * **Example** (Renaming keys with functions) * @@ -672,7 +678,6 @@ export declare const evolveKeys: { * @see {@link renameKeys} – rename keys with a static mapping * @see {@link evolve} – transform values instead of keys * @see {@link evolveEntries} – transform both keys and values - * * @category Key utilities * @since 4.0.0 */ @@ -685,13 +690,17 @@ type EntryEvolved = { [K in keyof S as K extends keyof E ? E[K] extends ((k: K, v: S[K]) => [infer NK extends PropertyKey, infer _V]) ? NK : K : K]: K extends keyof E ? E[K] extends ((k: K, v: S[K]) => [infer _NK, infer V]) ? V : S[K] : S[K]; }; /** - * Selectively transforms both keys and values of a struct. Each per-key + * Transforms both keys and values of a struct selectively. Each per-key * function receives `(key, value)` and must return a `[newKey, newValue]` * tuple. Keys without a corresponding function are copied unchanged. * - * - Use when you need to rename a key and change its value in one step. - * - Does not mutate the input; returns a fresh object. - * - The return type is fully tracked at the type level. + * **When to use** + * + * Use when you need to rename a key and change its value in one step. + * + * **Details** + * + * The return type is fully tracked at the type level. * * **Example** (Transforming keys and values together) * @@ -710,19 +719,22 @@ type EntryEvolved = { * * @see {@link evolve} – transform values only * @see {@link evolveKeys} – transform keys only - * - * @category Utilities + * @category transforming * @since 4.0.0 */ export declare const evolveEntries: { /** - * Selectively transforms both keys and values of a struct. Each per-key + * Transforms both keys and values of a struct selectively. Each per-key * function receives `(key, value)` and must return a `[newKey, newValue]` * tuple. Keys without a corresponding function are copied unchanged. * - * - Use when you need to rename a key and change its value in one step. - * - Does not mutate the input; returns a fresh object. - * - The return type is fully tracked at the type level. + * **When to use** + * + * Use when you need to rename a key and change its value in one step. + * + * **Details** + * + * The return type is fully tracked at the type level. * * **Example** (Transforming keys and values together) * @@ -741,19 +753,22 @@ export declare const evolveEntries: { * * @see {@link evolve} – transform values only * @see {@link evolveKeys} – transform keys only - * - * @category Utilities + * @category transforming * @since 4.0.0 */ >(e: E): (self: S) => EntryEvolved; /** - * Selectively transforms both keys and values of a struct. Each per-key + * Transforms both keys and values of a struct selectively. Each per-key * function receives `(key, value)` and must return a `[newKey, newValue]` * tuple. Keys without a corresponding function are copied unchanged. * - * - Use when you need to rename a key and change its value in one step. - * - Does not mutate the input; returns a fresh object. - * - The return type is fully tracked at the type level. + * **When to use** + * + * Use when you need to rename a key and change its value in one step. + * + * **Details** + * + * The return type is fully tracked at the type level. * * **Example** (Transforming keys and values together) * @@ -772,8 +787,7 @@ export declare const evolveEntries: { * * @see {@link evolve} – transform values only * @see {@link evolveKeys} – transform keys only - * - * @category Utilities + * @category transforming * @since 4.0.0 */ >(self: S, e: E): EntryEvolved; @@ -782,9 +796,13 @@ export declare const evolveEntries: { * Renames keys in a struct using a static `{ oldKey: newKey }` mapping. Keys * not mentioned in the mapping are copied unchanged. * - * - Use for simple, declarative key renaming without custom logic. - * - Does not mutate the input; returns a fresh object. - * - For computed key names, use {@link evolveKeys} instead. + * **When to use** + * + * Use when you need simple, declarative key renaming without custom logic. + * + * **Details** + * + * For computed key names, use {@link evolveKeys} instead. * * **Example** (Renaming keys) * @@ -800,7 +818,6 @@ export declare const evolveEntries: { * * @see {@link evolveKeys} – rename keys using functions * @see {@link evolveEntries} – rename keys and transform values - * * @category Key utilities * @since 4.0.0 */ @@ -809,9 +826,13 @@ export declare const renameKeys: { * Renames keys in a struct using a static `{ oldKey: newKey }` mapping. Keys * not mentioned in the mapping are copied unchanged. * - * - Use for simple, declarative key renaming without custom logic. - * - Does not mutate the input; returns a fresh object. - * - For computed key names, use {@link evolveKeys} instead. + * **When to use** + * + * Use when you need simple, declarative key renaming without custom logic. + * + * **Details** + * + * For computed key names, use {@link evolveKeys} instead. * * **Example** (Renaming keys) * @@ -827,7 +848,6 @@ export declare const renameKeys: { * * @see {@link evolveKeys} – rename keys using functions * @see {@link evolveEntries} – rename keys and transform values - * * @category Key utilities * @since 4.0.0 */ @@ -840,9 +860,13 @@ export declare const renameKeys: { * Renames keys in a struct using a static `{ oldKey: newKey }` mapping. Keys * not mentioned in the mapping are copied unchanged. * - * - Use for simple, declarative key renaming without custom logic. - * - Does not mutate the input; returns a fresh object. - * - For computed key names, use {@link evolveKeys} instead. + * **When to use** + * + * Use when you need simple, declarative key renaming without custom logic. + * + * **Details** + * + * For computed key names, use {@link evolveKeys} instead. * * **Example** (Renaming keys) * @@ -858,7 +882,6 @@ export declare const renameKeys: { * * @see {@link evolveKeys} – rename keys using functions * @see {@link evolveEntries} – rename keys and transform values - * * @category Key utilities * @since 4.0.0 */ @@ -873,11 +896,16 @@ export declare const renameKeys: { * property. Two structs are equivalent when all their corresponding properties * are equivalent. * - * Alias of `Equivalence.Struct`. + * **When to use** + * + * Use when you need equality for a record-like object to be decided field by + * field, with a custom equality rule for each property. + * + * **Details** * - * - Use when you need to compare structs property-by-property. - * - Each property's equivalence is checked independently; all must return - * `true` for the overall result to be `true`. + * This is an alias of `Equivalence.Struct`. Each property's equivalence is + * checked independently; all must return `true` for the overall result to be + * `true`. * * **Example** (Comparing structs for equivalence) * @@ -896,9 +924,8 @@ export declare const renameKeys: { * ``` * * @see {@link makeOrder} – create an `Order` for structs - * - * @category Equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export declare const makeEquivalence: typeof Equivalence.Struct; /** @@ -906,11 +933,15 @@ export declare const makeEquivalence: typeof Equivalence.Struct; * Properties are compared in the order they appear in the fields object; the * first non-zero comparison determines the result. * - * Alias of `Order.Struct`. + * **When to use** * - * - Use to sort or compare structs by multiple fields with lexicographic - * priority. - * - The order of keys in the `fields` object determines comparison priority. + * Use when you need to sort record-like objects lexicographically by several + * fields, with each field using its own ordering rule. + * + * **Details** + * + * This is an alias of `Order.Struct`. The order of keys in the `fields` object + * determines comparison priority. * * **Example** (Ordering structs by name then age) * @@ -927,18 +958,24 @@ export declare const makeEquivalence: typeof Equivalence.Struct; * ``` * * @see {@link makeEquivalence} – create an `Equivalence` for structs - * - * @category Ordering - * @since 2.0.0 + * @category ordering + * @since 4.0.0 */ export declare const makeOrder: typeof order.Struct; /** * Interface for type-level functions used by {@link map}, {@link mapPick}, and * {@link mapOmit}. * - * - Extend this interface with concrete `~lambda.in` and `~lambda.out` types - * to describe how a function transforms values at the type level. - * - At runtime, create lambda values with {@link lambda}. + * **When to use** + * + * Use when defining a typed function for {@link map}, {@link mapPick}, or + * {@link mapOmit}. + * + * **Details** + * + * Extend this interface with concrete `~lambda.in` and `~lambda.out` types to + * describe how a function transforms values at the type level. At runtime, + * create lambda values with {@link lambda}. * * **Example** (Defining a lambda type) * @@ -953,7 +990,6 @@ export declare const makeOrder: typeof order.Struct; * @see {@link Apply} – apply a Lambda to a concrete type * @see {@link lambda} – create a runtime lambda value * @see {@link map} – use a lambda to transform all struct values - * * @category Lambda * @since 4.0.0 */ @@ -965,10 +1001,15 @@ export interface Lambda { * Applies a {@link Lambda} type-level function to a value type `V`, producing * the output type. * - * - Use this when you need to compute what type a Lambda would produce for a - * given input. - * - Works by intersecting the Lambda with `{ "~lambda.in": V }` and reading - * `"~lambda.out"`. + * **When to use** + * + * Use when you need to compute what type a Lambda would produce for a + * given input. + * + * **Details** + * + * This works by intersecting the Lambda with `{ "~lambda.in": V }` and reading + * `"~lambda.out"`. * * **Example** (Computing the output type of a lambda) * @@ -984,7 +1025,6 @@ export interface Lambda { * ``` * * @see {@link Lambda} – the base interface - * * @category Lambda * @since 4.0.0 */ @@ -995,10 +1035,17 @@ export type Apply = (L & { * Wraps a plain function as a {@link Lambda} value so it can be used with * {@link map}, {@link mapPick}, and {@link mapOmit}. * - * - The type parameter `L` encodes both the input and output types at the type - * level, allowing the compiler to track how struct value types change. - * - At runtime, the returned value is the same function — `lambda` only - * adjusts the type. + * **When to use** + * + * Use to create a typed lambda for struct mapping APIs that need type-level + * input and output tracking. + * + * **Details** + * + * The type parameter `L` encodes both the input and output types at the type + * level, allowing the compiler to track how struct value types change. At + * runtime, the returned value is the same function; `lambda` only adjusts the + * type. * * **Example** (Wrapping values in arrays) * @@ -1017,7 +1064,6 @@ export type Apply = (L & { * * @see {@link Lambda} – the type-level interface * @see {@link map} – apply a lambda to all struct values - * * @category Lambda * @since 4.0.0 */ @@ -1025,10 +1071,14 @@ export declare const lambda: any>(f: (a: Parameters[0] /** * Applies a {@link Lambda} transformation to every value in a struct. * - * - Use when you want to apply the same function to every value in a struct. - * - The lambda must be created with {@link lambda} so the compiler can track - * the output types. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same function to every value in a struct. + * + * **Details** + * + * The lambda must be created with {@link lambda} so the compiler can track the + * output types. * * **Example** (Wrapping every value in an array) * @@ -1048,18 +1098,21 @@ export declare const lambda: any>(f: (a: Parameters[0] * @see {@link mapPick} – apply a lambda only to selected keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones * @see {@link evolve} – apply different functions to different keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const map: { /** * Applies a {@link Lambda} transformation to every value in a struct. * - * - Use when you want to apply the same function to every value in a struct. - * - The lambda must be created with {@link lambda} so the compiler can track - * the output types. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same function to every value in a struct. + * + * **Details** + * + * The lambda must be created with {@link lambda} so the compiler can track the + * output types. * * **Example** (Wrapping every value in an array) * @@ -1079,8 +1132,7 @@ export declare const map: { * @see {@link mapPick} – apply a lambda only to selected keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones * @see {@link evolve} – apply different functions to different keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ (lambda: L): (self: S) => { @@ -1089,10 +1141,14 @@ export declare const map: { /** * Applies a {@link Lambda} transformation to every value in a struct. * - * - Use when you want to apply the same function to every value in a struct. - * - The lambda must be created with {@link lambda} so the compiler can track - * the output types. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same function to every value in a struct. + * + * **Details** + * + * The lambda must be created with {@link lambda} so the compiler can track the + * output types. * * **Example** (Wrapping every value in an array) * @@ -1112,8 +1168,7 @@ export declare const map: { * @see {@link mapPick} – apply a lambda only to selected keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones * @see {@link evolve} – apply different functions to different keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ (self: S, lambda: L): { @@ -1124,9 +1179,9 @@ export declare const map: { * Applies a {@link Lambda} transformation only to the specified keys; all * other keys are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * properties. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of properties. * * **Example** (Wrapping only selected values in arrays) * @@ -1148,8 +1203,7 @@ export declare const map: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const mapPick: { @@ -1157,9 +1211,9 @@ export declare const mapPick: { * Applies a {@link Lambda} transformation only to the specified keys; all * other keys are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * properties. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of properties. * * **Example** (Wrapping only selected values in arrays) * @@ -1181,8 +1235,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , L extends Lambda>(keys: Keys, lambda: L): (self: S) => { @@ -1192,9 +1245,9 @@ export declare const mapPick: { * Applies a {@link Lambda} transformation only to the specified keys; all * other keys are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * properties. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of properties. * * **Example** (Wrapping only selected values in arrays) * @@ -1216,8 +1269,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , L extends Lambda>(self: S, keys: Keys, lambda: L): { @@ -1228,8 +1280,9 @@ export declare const mapPick: { * Applies a {@link Lambda} transformation to all keys except the specified * ones; the excluded keys are copied unchanged. * - * - Use when most keys should be transformed but a few should be preserved. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when most keys should be transformed but a few should be preserved. * * **Example** (Wrapping all values except one in arrays) * @@ -1251,8 +1304,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapPick} – apply a lambda only to selected keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const mapOmit: { @@ -1260,8 +1312,9 @@ export declare const mapOmit: { * Applies a {@link Lambda} transformation to all keys except the specified * ones; the excluded keys are copied unchanged. * - * - Use when most keys should be transformed but a few should be preserved. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when most keys should be transformed but a few should be preserved. * * **Example** (Wrapping all values except one in arrays) * @@ -1283,8 +1336,7 @@ export declare const mapOmit: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapPick} – apply a lambda only to selected keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , L extends Lambda>(keys: Keys, lambda: L): (self: S) => { @@ -1294,8 +1346,9 @@ export declare const mapOmit: { * Applies a {@link Lambda} transformation to all keys except the specified * ones; the excluded keys are copied unchanged. * - * - Use when most keys should be transformed but a few should be preserved. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when most keys should be transformed but a few should be preserved. * * **Example** (Wrapping all values except one in arrays) * @@ -1317,8 +1370,7 @@ export declare const mapOmit: { * * @see {@link map} – apply a lambda to all keys * @see {@link mapPick} – apply a lambda only to selected keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , L extends Lambda>(self: S, keys: Keys, lambda: L): { @@ -1330,11 +1382,15 @@ export declare const mapOmit: { * property. When two structs are combined, each property is merged using its * corresponding combiner. * - * - Use when you need to merge two structs of the same shape (e.g., summing - * counters, concatenating strings). - * - Pass `omitKeyWhen` to drop properties whose merged value matches a - * predicate (e.g., omit zero counters). - * - Does not mutate the inputs; returns a fresh object. + * **When to use** + * + * Use when you need to merge two same-shape records by combining each property + * independently, such as summing counters or concatenating strings. + * + * **Details** + * + * Pass `omitKeyWhen` to drop properties whose merged value matches a predicate, + * such as omitting zero counters. * * **Example** (Combining struct properties) * @@ -1351,7 +1407,7 @@ export declare const mapOmit: { * ``` * * @see {@link makeReducer} – like `makeCombiner` but with an initial value - * + * @category combining * @since 4.0.0 */ export declare function makeCombiner(combiners: { @@ -1365,10 +1421,15 @@ export declare function makeCombiner(combiners: { * `Reducer.initialValue`. When reducing a collection of structs, each property * is combined independently. * - * - Use to fold a collection of structs into a single summary struct. - * - Pass `omitKeyWhen` to drop properties whose reduced value matches a - * predicate. - * - Does not mutate the inputs; returns a fresh object. + * **When to use** + * + * Use when you need to fold same-shape records by accumulating each property + * independently into one summary record. + * + * **Details** + * + * Pass `omitKeyWhen` to drop properties whose reduced value matches a + * predicate. * * **Example** (Reducing a collection of structs) * @@ -1389,7 +1450,7 @@ export declare function makeCombiner(combiners: { * ``` * * @see {@link makeCombiner} – like `makeReducer` but without an initial value - * + * @category folding * @since 4.0.0 */ export declare function makeReducer(reducers: { @@ -1400,6 +1461,10 @@ export declare function makeReducer(reducers: { /** * Creates a record with the given keys and value. * + * **When to use** + * + * Use to build an object where each provided key receives the same value. + * * **Example** (Creating a record) * * ```ts @@ -1409,7 +1474,7 @@ export declare function makeReducer(reducers: { * console.log(record) // { a: "value", b: "value" } * ``` * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function Record, Value>(keys: Keys, value: Value): Record; diff --git a/.opencode/node_modules/effect/dist/Struct.d.ts.map b/.opencode/node_modules/effect/dist/Struct.d.ts.map index 7b9207488d3d0f4791e96a77741f60af8cc0e766..c42acca8e5ddec748ed50dabb12e1a015a0b92b4 100644 --- a/.opencode/node_modules/effect/dist/Struct.d.ts.map +++ b/.opencode/node_modules/effect/dist/Struct.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Struct.d.ts","sourceRoot":"","sources":["../src/Struct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CA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..42cf9a77d5694f4755ffe29ea7f5fe87df750517 100644 --- a/.opencode/node_modules/effect/dist/Struct.js +++ b/.opencode/node_modules/effect/dist/Struct.js @@ -1,75 +1,12 @@ /** - * Utilities for creating, transforming, and comparing plain TypeScript objects - * (structs). Every function produces a new object — inputs are never mutated. - * - * ## Mental model - * - * - **Struct**: A plain JS object with a fixed set of known keys (e.g., - * `{ name: string; age: number }`). Not a generic key-value record. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Struct.pick(obj, keys)`) and data-last (`pipe(obj, Struct.pick(keys))`) - * style. - * - **Immutability**: All operations return a new object; the original is - * never modified. - * - **Lambda**: A type-level function interface (`~lambda.in` / `~lambda.out`) - * used by {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler - * can track how value types change. - * - **Evolver pattern**: {@link evolve}, {@link evolveKeys}, and - * {@link evolveEntries} let you selectively transform values, keys, or both - * while leaving untouched properties unchanged. - * - * ## Common tasks - * - * - Access a property in a pipeline → {@link get} - * - List string keys with proper types → {@link keys} - * - Subset / remove properties → {@link pick}, {@link omit} - * - Merge two structs (second wins) → {@link assign} - * - Rename keys → {@link renameKeys} - * - Transform selected values → {@link evolve} - * - Transform selected keys → {@link evolveKeys} - * - Transform both keys and values → {@link evolveEntries} - * - Map all values with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare structs → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce structs → {@link makeCombiner}, {@link makeReducer} - * - Flatten intersection types → {@link Simplify} - * - Strip `readonly` modifiers → {@link Mutable} - * - * ## Gotchas - * - * - {@link keys} only returns `string` keys; symbol keys are excluded. - * - {@link pick} and {@link omit} iterate with `for...in`, which includes - * inherited enumerable properties but excludes non-enumerable ones. - * - {@link assign} spreads with `...`; property order follows standard - * JS spread rules. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a {@link Lambda} - * value created with {@link lambda}; a plain function won't type-check. - * - * ## Quickstart - * - * **Example** (Picking, renaming, and evolving struct properties) + * Works with plain TypeScript objects, also called structs. * - * ```ts - * import { pipe, Struct } from "effect" - * - * const user = { firstName: "Alice", lastName: "Smith", age: 30, admin: false } - * - * const result = pipe( - * user, - * Struct.pick(["firstName", "age"]), - * Struct.evolve({ age: (n) => n + 1 }), - * Struct.renameKeys({ firstName: "name" }) - * ) - * - * console.log(result) // { name: "Alice", age: 31 } - * ``` - * - * ## See also - * - * - {@link Equivalence} – building equivalence relations for structs - * - {@link Order} – ordering structs by their fields - * - {@link Combiner} – combining two values of the same type - * - {@link Reducer} – combining with an initial value + * The runtime helpers in this module create new objects instead of mutating + * their inputs. They cover common object workflows such as reading properties, + * listing typed keys, picking or omitting fields, assigning and renaming keys, + * transforming values, deriving comparison helpers, and creating records from a + * list of keys. The module also includes type-level helpers for simplifying and + * merging object shapes. * * @since 2.0.0 */ @@ -81,9 +18,13 @@ import * as Reducer from "./Reducer.js"; /** * Retrieves the value at `key` from a struct. * - * - Use in a pipeline when you need to extract a single property. - * - Does not mutate the input. - * - The return type is narrowed to `S[K]`. + * **When to use** + * + * Use to extract a single property from a struct in a pipeline. + * + * **Details** + * + * The return type is narrowed to `S[K]`. * * **Example** (Extracting a property in a pipeline) * @@ -96,18 +37,21 @@ import * as Reducer from "./Reducer.js"; * * @see {@link keys} – list all string keys of a struct * @see {@link pick} – extract multiple properties into a new struct - * - * @category Getters + * @category getters * @since 2.0.0 */ export const get = /*#__PURE__*/dual(2, (self, key) => self[key]); /** * Returns the string keys of a struct as a properly typed `Array`. * - * - Use instead of `Object.keys` when you want the return type narrowed to the - * known keys of the struct. - * - Symbol keys are excluded; only string keys are returned. - * - Does not mutate the input. + * **When to use** + * + * Use when you want a typed replacement for `Object.keys` that narrows the result + * to the known string keys of the struct. + * + * **Gotchas** + * + * Symbol keys are excluded; only string keys are returned. * * **Example** (Typed keys) * @@ -122,7 +66,6 @@ export const get = /*#__PURE__*/dual(2, (self, key) => self[key]); * * @see {@link get} – access a single key's value * @see {@link pick} – select a subset of keys into a new struct - * * @category Key utilities * @since 3.6.0 */ @@ -130,9 +73,13 @@ export const keys = self => Object.keys(self); /** * Creates a new struct containing only the specified keys. * - * - Use to narrow a struct down to a subset of its properties. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to narrow a struct down to a subset of its properties. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Selecting specific properties) * @@ -146,7 +93,6 @@ export const keys = self => Object.keys(self); * * @see {@link omit} – the inverse (exclude keys instead) * @see {@link get} – extract a single value - * * @category filtering * @since 2.0.0 */ @@ -156,9 +102,13 @@ export const pick = /*#__PURE__*/dual(2, (self, keys) => { /** * Creates a new struct with the specified keys removed. * - * - Use to exclude sensitive or irrelevant fields from a struct. - * - Does not mutate the input; returns a fresh object. - * - Keys not present in the struct are silently ignored. + * **When to use** + * + * Use to exclude sensitive or irrelevant fields from a struct. + * + * **Gotchas** + * + * Keys not present in the struct are silently ignored. * * **Example** (Removing a property) * @@ -171,7 +121,6 @@ export const pick = /*#__PURE__*/dual(2, (self, keys) => { * ``` * * @see {@link pick} – the inverse (keep only specified keys) - * * @category filtering * @since 2.0.0 */ @@ -182,9 +131,13 @@ export const omit = /*#__PURE__*/dual(2, (self, keys) => { * Merges two structs into a new struct. When both structs share a key, the * value from `that` (the second struct) wins. * - * - Use when you want `{ ...self, ...that }` with proper types. - * - Does not mutate either input; returns a fresh object. - * - The result type is `Simplify>`. + * **When to use** + * + * Use when you want `{ ...self, ...that }` with proper types. + * + * **Details** + * + * The result type is `Simplify>`. * * **Example** (Merging structs with overlapping keys) * @@ -199,7 +152,6 @@ export const omit = /*#__PURE__*/dual(2, (self, keys) => { * * @see {@link Assign} – the type-level equivalent * @see {@link evolve} – transform individual values instead of replacing them - * * @category combining * @since 4.0.0 */ @@ -210,13 +162,17 @@ export const assign = /*#__PURE__*/dual(2, (self, that) => { }; }); /** - * Selectively transforms values of a struct using per-key functions. Keys + * Transforms values of a struct selectively using per-key functions. Keys * without a corresponding function are copied unchanged. * - * - Use when you want to update specific fields while keeping the rest intact. - * - Does not mutate the input; returns a fresh object. - * - Each transform function receives the current value and returns the new - * value; the return type can differ from the input type. + * **When to use** + * + * Use when you want to update specific fields while keeping the rest intact. + * + * **Details** + * + * Each transform function receives the current value and returns the new value; + * the return type can differ from the input type. * * **Example** (Transforming selected values) * @@ -236,7 +192,6 @@ export const assign = /*#__PURE__*/dual(2, (self, that) => { * @see {@link evolveKeys} – transform keys instead of values * @see {@link evolveEntries} – transform both keys and values * @see {@link map} – apply the same transformation to all values - * * @category transforming * @since 2.0.0 */ @@ -244,13 +199,17 @@ export const evolve = /*#__PURE__*/dual(2, (self, e) => { return buildStruct(self, (k, v) => [k, Object.hasOwn(e, k) ? e[k](v) : v]); }); /** - * Selectively transforms keys of a struct using per-key functions. Keys without + * Transforms keys of a struct selectively using per-key functions. Keys without * a corresponding function are copied unchanged. * - * - Use when you need computed key names (e.g., uppercasing, prefixing). - * - Each transform function receives the key name and must return a new - * `PropertyKey`. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you need computed key names, such as uppercasing or prefixing. + * + * **Details** + * + * Each transform function receives the key name and must return a new + * `PropertyKey`. * * **Example** (Renaming keys with functions) * @@ -269,7 +228,6 @@ export const evolve = /*#__PURE__*/dual(2, (self, e) => { * @see {@link renameKeys} – rename keys with a static mapping * @see {@link evolve} – transform values instead of keys * @see {@link evolveEntries} – transform both keys and values - * * @category Key utilities * @since 4.0.0 */ @@ -277,13 +235,17 @@ export const evolveKeys = /*#__PURE__*/dual(2, (self, e) => { return buildStruct(self, (k, v) => [Object.hasOwn(e, k) ? e[k](k) : k, v]); }); /** - * Selectively transforms both keys and values of a struct. Each per-key + * Transforms both keys and values of a struct selectively. Each per-key * function receives `(key, value)` and must return a `[newKey, newValue]` * tuple. Keys without a corresponding function are copied unchanged. * - * - Use when you need to rename a key and change its value in one step. - * - Does not mutate the input; returns a fresh object. - * - The return type is fully tracked at the type level. + * **When to use** + * + * Use when you need to rename a key and change its value in one step. + * + * **Details** + * + * The return type is fully tracked at the type level. * * **Example** (Transforming keys and values together) * @@ -302,8 +264,7 @@ export const evolveKeys = /*#__PURE__*/dual(2, (self, e) => { * * @see {@link evolve} – transform values only * @see {@link evolveKeys} – transform keys only - * - * @category Utilities + * @category transforming * @since 4.0.0 */ export const evolveEntries = /*#__PURE__*/dual(2, (self, e) => { @@ -313,9 +274,13 @@ export const evolveEntries = /*#__PURE__*/dual(2, (self, e) => { * Renames keys in a struct using a static `{ oldKey: newKey }` mapping. Keys * not mentioned in the mapping are copied unchanged. * - * - Use for simple, declarative key renaming without custom logic. - * - Does not mutate the input; returns a fresh object. - * - For computed key names, use {@link evolveKeys} instead. + * **When to use** + * + * Use when you need simple, declarative key renaming without custom logic. + * + * **Details** + * + * For computed key names, use {@link evolveKeys} instead. * * **Example** (Renaming keys) * @@ -331,7 +296,6 @@ export const evolveEntries = /*#__PURE__*/dual(2, (self, e) => { * * @see {@link evolveKeys} – rename keys using functions * @see {@link evolveEntries} – rename keys and transform values - * * @category Key utilities * @since 4.0.0 */ @@ -343,11 +307,16 @@ export const renameKeys = /*#__PURE__*/dual(2, (self, mapping) => { * property. Two structs are equivalent when all their corresponding properties * are equivalent. * - * Alias of `Equivalence.Struct`. + * **When to use** + * + * Use when you need equality for a record-like object to be decided field by + * field, with a custom equality rule for each property. * - * - Use when you need to compare structs property-by-property. - * - Each property's equivalence is checked independently; all must return - * `true` for the overall result to be `true`. + * **Details** + * + * This is an alias of `Equivalence.Struct`. Each property's equivalence is + * checked independently; all must return `true` for the overall result to be + * `true`. * * **Example** (Comparing structs for equivalence) * @@ -366,9 +335,8 @@ export const renameKeys = /*#__PURE__*/dual(2, (self, mapping) => { * ``` * * @see {@link makeOrder} – create an `Order` for structs - * - * @category Equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export const makeEquivalence = Equivalence.Struct; /** @@ -376,11 +344,15 @@ export const makeEquivalence = Equivalence.Struct; * Properties are compared in the order they appear in the fields object; the * first non-zero comparison determines the result. * - * Alias of `Order.Struct`. + * **When to use** + * + * Use when you need to sort record-like objects lexicographically by several + * fields, with each field using its own ordering rule. * - * - Use to sort or compare structs by multiple fields with lexicographic - * priority. - * - The order of keys in the `fields` object determines comparison priority. + * **Details** + * + * This is an alias of `Order.Struct`. The order of keys in the `fields` object + * determines comparison priority. * * **Example** (Ordering structs by name then age) * @@ -397,19 +369,25 @@ export const makeEquivalence = Equivalence.Struct; * ``` * * @see {@link makeEquivalence} – create an `Equivalence` for structs - * - * @category Ordering - * @since 2.0.0 + * @category ordering + * @since 4.0.0 */ export const makeOrder = order.Struct; /** * Wraps a plain function as a {@link Lambda} value so it can be used with * {@link map}, {@link mapPick}, and {@link mapOmit}. * - * - The type parameter `L` encodes both the input and output types at the type - * level, allowing the compiler to track how struct value types change. - * - At runtime, the returned value is the same function — `lambda` only - * adjusts the type. + * **When to use** + * + * Use to create a typed lambda for struct mapping APIs that need type-level + * input and output tracking. + * + * **Details** + * + * The type parameter `L` encodes both the input and output types at the type + * level, allowing the compiler to track how struct value types change. At + * runtime, the returned value is the same function; `lambda` only adjusts the + * type. * * **Example** (Wrapping values in arrays) * @@ -428,7 +406,6 @@ export const makeOrder = order.Struct; * * @see {@link Lambda} – the type-level interface * @see {@link map} – apply a lambda to all struct values - * * @category Lambda * @since 4.0.0 */ @@ -436,10 +413,14 @@ export const lambda = f => f; /** * Applies a {@link Lambda} transformation to every value in a struct. * - * - Use when you want to apply the same function to every value in a struct. - * - The lambda must be created with {@link lambda} so the compiler can track - * the output types. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same function to every value in a struct. + * + * **Details** + * + * The lambda must be created with {@link lambda} so the compiler can track the + * output types. * * **Example** (Wrapping every value in an array) * @@ -459,8 +440,7 @@ export const lambda = f => f; * @see {@link mapPick} – apply a lambda only to selected keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones * @see {@link evolve} – apply different functions to different keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const map = /*#__PURE__*/dual(2, (self, lambda) => { @@ -470,9 +450,9 @@ export const map = /*#__PURE__*/dual(2, (self, lambda) => { * Applies a {@link Lambda} transformation only to the specified keys; all * other keys are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * properties. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of properties. * * **Example** (Wrapping only selected values in arrays) * @@ -494,8 +474,7 @@ export const map = /*#__PURE__*/dual(2, (self, lambda) => { * * @see {@link map} – apply a lambda to all keys * @see {@link mapOmit} – apply a lambda to all keys except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const mapPick = /*#__PURE__*/dual(3, (self, keys, lambda) => { @@ -505,8 +484,9 @@ export const mapPick = /*#__PURE__*/dual(3, (self, keys, lambda) => { * Applies a {@link Lambda} transformation to all keys except the specified * ones; the excluded keys are copied unchanged. * - * - Use when most keys should be transformed but a few should be preserved. - * - Does not mutate the input; returns a fresh object. + * **When to use** + * + * Use when most keys should be transformed but a few should be preserved. * * **Example** (Wrapping all values except one in arrays) * @@ -528,8 +508,7 @@ export const mapPick = /*#__PURE__*/dual(3, (self, keys, lambda) => { * * @see {@link map} – apply a lambda to all keys * @see {@link mapPick} – apply a lambda only to selected keys - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const mapOmit = /*#__PURE__*/dual(3, (self, keys, lambda) => { @@ -546,7 +525,8 @@ export const mapOmit = /*#__PURE__*/dual(3, (self, keys, lambda) => { */ function buildStruct(source, f) { const out = {}; - for (const k in source) { + for (const k of Reflect.ownKeys(source)) { + if (!Object.prototype.propertyIsEnumerable.call(source, k)) continue; const res = f(k, source[k]); if (res) { const [nk, nv] = res; @@ -560,11 +540,15 @@ function buildStruct(source, f) { * property. When two structs are combined, each property is merged using its * corresponding combiner. * - * - Use when you need to merge two structs of the same shape (e.g., summing - * counters, concatenating strings). - * - Pass `omitKeyWhen` to drop properties whose merged value matches a - * predicate (e.g., omit zero counters). - * - Does not mutate the inputs; returns a fresh object. + * **When to use** + * + * Use when you need to merge two same-shape records by combining each property + * independently, such as summing counters or concatenating strings. + * + * **Details** + * + * Pass `omitKeyWhen` to drop properties whose merged value matches a predicate, + * such as omitting zero counters. * * **Example** (Combining struct properties) * @@ -581,7 +565,7 @@ function buildStruct(source, f) { * ``` * * @see {@link makeReducer} – like `makeCombiner` but with an initial value - * + * @category combining * @since 4.0.0 */ export function makeCombiner(combiners, options) { @@ -603,10 +587,15 @@ export function makeCombiner(combiners, options) { * `Reducer.initialValue`. When reducing a collection of structs, each property * is combined independently. * - * - Use to fold a collection of structs into a single summary struct. - * - Pass `omitKeyWhen` to drop properties whose reduced value matches a - * predicate. - * - Does not mutate the inputs; returns a fresh object. + * **When to use** + * + * Use when you need to fold same-shape records by accumulating each property + * independently into one summary record. + * + * **Details** + * + * Pass `omitKeyWhen` to drop properties whose reduced value matches a + * predicate. * * **Example** (Reducing a collection of structs) * @@ -627,7 +616,7 @@ export function makeCombiner(combiners, options) { * ``` * * @see {@link makeCombiner} – like `makeReducer` but without an initial value - * + * @category folding * @since 4.0.0 */ export function makeReducer(reducers, options) { @@ -643,6 +632,10 @@ export function makeReducer(reducers, options) { /** * Creates a record with the given keys and value. * + * **When to use** + * + * Use to build an object where each provided key receives the same value. + * * **Example** (Creating a record) * * ```ts @@ -652,7 +645,7 @@ export function makeReducer(reducers, options) { * console.log(record) // { a: "value", b: "value" } * ``` * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function Record(keys, value) { diff --git a/.opencode/node_modules/effect/dist/Struct.js.map b/.opencode/node_modules/effect/dist/Struct.js.map index 74f849b1afe2c5b34b95fed72fc44932be0486af..4056088594f6406614032dab3bfeff6ea34c591f 100644 --- a/.opencode/node_modules/effect/dist/Struct.js.map +++ b/.opencode/node_modules/effect/dist/Struct.js.map @@ -1 +1 @@ -{"version":3,"file":"Struct.js","names":["Combiner","Equivalence","dual","order","Reducer","get","self","key","keys","Object","pick","buildStruct","k","v","includes","undefined","omit","assign","that","evolve","e","hasOwn","evolveKeys","evolveEntries","renameKeys","mapping","makeEquivalence","Struct","makeOrder","lambda","f","map","mapPick","mapOmit","source","out","res","nk","nv","makeCombiner","combiners","options","omitKeyWhen","make","Reflect","ownKeys","merge","combine","makeReducer","reducers","initialValue","iv","Record","value"],"sources":["../src/Struct.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAiFvC;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,GAAG,gBA+CZH,IAAI,CAAC,CAAC,EAAE,CAA4CI,IAAO,EAAEC,GAAM,KAAWD,IAAI,CAACC,GAAG,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,IAAI,GAAsBF,IAAO,IAC5CG,MAAM,CAACD,IAAI,CAACF,IAAI,CAA8B;AAEhD;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMI,IAAI,gBAiDbR,IAAI,CACN,CAAC,EACD,CAA8DI,IAAO,EAAEE,IAAU,KAAI;EACnF,OAAOG,WAAW,CAACL,IAAI,EAAE,CAACM,CAAC,EAAEC,CAAC,KAAML,IAAI,CAACM,QAAQ,CAACF,CAAC,CAAC,GAAG,CAACA,CAAC,EAAEC,CAAC,CAAC,GAAGE,SAAU,CAAC;AAC7E,CAAC,CACF;AAED;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,IAAI,gBA+Cbd,IAAI,CACN,CAAC,EACD,CAAwDI,IAAO,EAAEE,IAAU,KAAI;EAC7E,O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;AACZ","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Struct.js","names":["Combiner","Equivalence","dual","order","Reducer","get","self","key","keys","Object","pick","buildStruct","k","v","includes","undefined","omit","assign","that","evolve","e","hasOwn","evolveKeys","evolveEntries","renameKeys","mapping","makeEquivalence","Struct","makeOrder","lambda","f","map","mapPick","mapOmit","source","out","Reflect","ownKeys","prototype","propertyIsEnumerable","call","res","nk","nv","makeCombiner","combiners","options","omitKeyWhen","make","merge","combine","makeReducer","reducers","initialValue","iv","Record","value"],"sources":["../src/Struct.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAaA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AA4FvC;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,GAAG,gBAqDZH,IAAI,CAAC,CAAC,EAAE,CAA4CI,IAAO,EAAEC,GAAM,KAAWD,IAAI,CAACC,GAAG,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,IAAI,GAAsBF,IAAO,IAC5CG,MAAM,CAACD,IAAI,CAACF,IAAI,CAA8B;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMI,IAAI,gBAuDbR,IAAI,CACN,CAAC,EACD,CAA8DI,IAAO,EAAEE,IAAU,KAAI;EACnF,OAAOG,WAAW,CAACL,IAAI,EAAE,CAACM,CAAC,EAAEC,CAAC,KAAML,IAAI,CAACM,QAAQ,CAACF,CAAC,CAAC,GAAG,CAACA,CAAC,EAAEC,CAAC,CAAC,GAAGE,SAAU,CAAC;AAC7E,CAAC,CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,IAAI,gB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CAACE,OAAO,EAAEG,YAAY,CAAC;AAC5C;AAEA;;;;;;;;;;;;;;;;;;;AAmBA,OAAM,SAAUE,MAAMA,CACpB/C,IAAU,EACVgD,KAAY;EAEZ,MAAMrB,GAAG,GAAQ,EAAE;EACnB,KAAK,MAAM5B,GAAG,IAAIC,IAAI,EAAE;IACtB2B,GAAG,CAAC5B,GAAG,CAAC,GAAGiD,KAAK;EAClB;EACA,OAAOrB,GAAG;AACZ","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts b/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts index df69cfbf005805e3bb498e5cf7eaf153833dfb9c..12d5bd8068e0496384746bee57416e89411432dd 100644 --- a/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts +++ b/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts @@ -1,4 +1,12 @@ /** + * Stores mutable state and publishes changes as a stream. + * + * A `SubscriptionRef` stores the latest value, publishes the initial value, + * and publishes every committed update so subscribers can observe state over + * time. Updates are serialized so only one change is applied at a time. This + * module includes constructors, current-value reads, the `changes` stream, + * writes, updates, partial updates, and effectful update helpers. + * * @since 2.0.0 */ import * as Effect from "./Effect.ts"; @@ -10,8 +18,16 @@ import * as Stream from "./Stream.ts"; import type { Invariant } from "./Types.ts"; declare const TypeId = "~effect/SubscriptionRef"; /** - * @since 2.0.0 + * A mutable reference whose updates are serialized and published to + * subscribers. + * + * **When to use** + * + * Use to observe the current value and subsequent updates as a + * stream. + * * @category models + * @since 2.0.0 */ export interface SubscriptionRef extends SubscriptionRef.Variance, Pipeable { value: A; @@ -19,19 +35,30 @@ export interface SubscriptionRef extends SubscriptionRef.Variance, readonly pubsub: PubSub.PubSub; } /** - * @since 4.0.0 + * Returns `true` if the provided value is a `SubscriptionRef`. + * + * **When to use** + * + * Use to narrow an unknown value before calling `SubscriptionRef` operations + * that require a subscription reference. + * * @category guards + * @since 4.0.0 */ export declare const isSubscriptionRef: (u: unknown) => u is SubscriptionRef; /** - * The `SynchronizedRef` namespace containing type definitions and utilities. + * The `SubscriptionRef` namespace containing type definitions associated with + * subscription references. * * @since 2.0.0 */ export declare namespace SubscriptionRef { /** - * @since 2.0.0 + * Type-level variance marker for the value type carried by a + * `SubscriptionRef`. + * * @category models + * @since 2.0.0 */ interface Variance { readonly [TypeId]: { @@ -42,48 +69,79 @@ export declare namespace SubscriptionRef { /** * Constructs a new `SubscriptionRef` from an initial value. * - * @since 2.0.0 + * **When to use** + * + * Use to create a `SubscriptionRef` when consumers need to read the latest + * value and subscribe to every update. + * + * **Details** + * + * The initial value is published during construction, so `changes` starts new + * subscribers with that value before future updates. + * + * @see {@link changes} for streaming the current value and subsequent updates + * @see {@link set} for replacing the value and notifying subscribers + * * @category constructors + * @since 2.0.0 */ export declare const make: (value: A) => Effect.Effect>; /** * Creates a stream that emits the current value and all subsequent changes to * the `SubscriptionRef`. * + * **Details** + * * The stream will first emit the current value, then emit all future changes * as they occur. * - * @example + * **Example** (Streaming changes) + * * ```ts - * import { Effect, Stream, SubscriptionRef } from "effect" + * import { Deferred, Effect, Fiber, Stream, SubscriptionRef } from "effect" * * const program = Effect.gen(function*() { * const ref = yield* SubscriptionRef.make(0) + * const ready = yield* Deferred.make() * - * const stream = SubscriptionRef.changes(ref) - * - * const fiber = yield* Stream.runForEach( - * stream, - * (value) => Effect.sync(() => console.log("Value:", value)) - * ).pipe(Effect.forkScoped) + * const fiber = yield* SubscriptionRef.changes(ref).pipe( + * Stream.tap(() => Deferred.succeed(ready, void 0)), + * Stream.take(3), + * Stream.runCollect, + * Effect.forkChild + * ) * + * yield* Deferred.await(ready) * yield* SubscriptionRef.set(ref, 1) * yield* SubscriptionRef.set(ref, 2) + * + * const values = yield* Fiber.join(fiber) + * console.log(values) // [ 0, 1, 2 ] * }) + * + * Effect.runPromise(program) * ``` * * @category changes - * @since 2.0.0 + * @since 4.0.0 */ export declare const changes: (self: SubscriptionRef) => Stream.Stream; /** - * Unsafely retrieves the current value of the `SubscriptionRef`. + * Retrieves the current value of the `SubscriptionRef` unsafely. + * + * **When to use** + * + * Use when you are in synchronous internals or test setup where concurrent + * updates are controlled. + * + * **Gotchas** * * This function directly accesses the underlying reference without any - * synchronization. It should only be used when you're certain there are no + * synchronization. It should only be used when you are certain there are no * concurrent modifications. * - * @example + * **Example** (Reading the current value unsafely) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -95,14 +153,15 @@ export declare const changes: (self: SubscriptionRef) => Stream.Stream; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export declare const getUnsafe: (self: SubscriptionRef) => A; /** * Retrieves the current value of the `SubscriptionRef`. * - * @example + * **Example** (Reading the current value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -114,15 +173,16 @@ export declare const getUnsafe: (self: SubscriptionRef) => A; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const get: (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and sets a new value, notifying + * Retrieves the current value and sets a new value atomically, notifying * subscribers of the change. * - * @example + * **Example** (Getting and setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -137,15 +197,16 @@ export declare const get: (self: SubscriptionRef) => Effect.Effect; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const getAndSet: { /** - * Atomically retrieves the current value and sets a new value, notifying + * Retrieves the current value and sets a new value atomically, notifying * subscribers of the change. * - * @example + * **Example** (Getting and setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -160,15 +221,16 @@ export declare const getAndSet: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (value: A): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and sets a new value, notifying + * Retrieves the current value and sets a new value atomically, notifying * subscribers of the change. * - * @example + * **Example** (Getting and setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -183,16 +245,17 @@ export declare const getAndSet: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: SubscriptionRef, value: A): Effect.Effect; }; /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying a function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -207,15 +270,16 @@ export declare const getAndSet: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const getAndUpdate: { /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying a function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -230,15 +294,16 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (update: (a: A) => A): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying a function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -253,16 +318,17 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => A): Effect.Effect; }; /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying an effectful function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -280,15 +346,16 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const getAndUpdateEffect: { /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying an effectful function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -306,15 +373,16 @@ export declare const getAndUpdateEffect: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (update: (a: A) => Effect.Effect): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying an effectful function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -332,17 +400,27 @@ export declare const getAndUpdateEffect: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect): Effect.Effect; }; /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying a function that returns an `Option`, notifying - * subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying a synchronous + * update only when a new value is available. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set and published. If + * it returns `Option.none`, the reference is left unchanged and no update is + * published. + * + * **Example** (Getting and conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -360,16 +438,26 @@ export declare const getAndUpdateEffect: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const getAndUpdateSome: { /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying a function that returns an `Option`, notifying - * subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying a synchronous + * update only when a new value is available. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set and published. If + * it returns `Option.none`, the reference is left unchanged and no update is + * published. + * + * **Example** (Getting and conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -387,16 +475,26 @@ export declare const getAndUpdateSome: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (update: (a: A) => Option.Option): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying a function that returns an `Option`, notifying - * subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying a synchronous + * update only when a new value is available. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set and published. If + * it returns `Option.none`, the reference is left unchanged and no update is + * published. + * + * **Example** (Getting and conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -414,17 +512,27 @@ export declare const getAndUpdateSome: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Option.Option): Effect.Effect; }; /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying an effectful function that returns an `Option`, - * notifying subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying an effectful + * update only when a new value is available. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Getting and conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -442,16 +550,26 @@ export declare const getAndUpdateSome: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const getAndUpdateSomeEffect: { /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying an effectful function that returns an `Option`, - * notifying subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying an effectful + * update only when a new value is available. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Getting and conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -469,16 +587,26 @@ export declare const getAndUpdateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (update: (a: A) => Effect.Effect, E, R>): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying an effectful function that returns an `Option`, - * notifying subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying an effectful + * update only when a new value is available. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Getting and conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -496,16 +624,17 @@ export declare const getAndUpdateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; /** - * Atomically modifies the `SubscriptionRef` with a function that computes a + * Modifies the `SubscriptionRef` atomically with a function that computes a * return value and a new value, notifying subscribers of the change. * - * @example + * **Example** (Modifying a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -523,15 +652,16 @@ export declare const getAndUpdateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export declare const modify: { /** - * Atomically modifies the `SubscriptionRef` with a function that computes a + * Modifies the `SubscriptionRef` atomically with a function that computes a * return value and a new value, notifying subscribers of the change. * - * @example + * **Example** (Modifying a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -549,15 +679,16 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (modify: (a: A) => readonly [B, A]): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically modifies the `SubscriptionRef` with a function that computes a + * Modifies the `SubscriptionRef` atomically with a function that computes a * return value and a new value, notifying subscribers of the change. * - * @example + * **Example** (Modifying a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -575,17 +706,18 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (self: SubscriptionRef, f: (a: A) => readonly [B, A]): Effect.Effect; }; /** - * Atomically modifies the `SubscriptionRef` with an effectful function that + * Modifies the `SubscriptionRef` atomically with an effectful function that * computes a return value and a new value, notifying subscribers of the * change. * - * @example + * **Example** (Modifying with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -603,16 +735,17 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export declare const modifyEffect: { /** - * Atomically modifies the `SubscriptionRef` with an effectful function that + * Modifies the `SubscriptionRef` atomically with an effectful function that * computes a return value and a new value, notifying subscribers of the * change. * - * @example + * **Example** (Modifying with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -630,16 +763,17 @@ export declare const modifyEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (modify: (a: A) => Effect.Effect): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically modifies the `SubscriptionRef` with an effectful function that + * Modifies the `SubscriptionRef` atomically with an effectful function that * computes a return value and a new value, notifying subscribers of the * change. * - * @example + * **Example** (Modifying with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -657,17 +791,27 @@ export declare const modifyEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (self: SubscriptionRef, modify: (a: A) => Effect.Effect): Effect.Effect; }; /** - * Atomically modifies the `SubscriptionRef` with a function that computes a - * return value and optionally a new value, notifying subscribers only if the - * value changes. + * Computes a return value and optionally updates the reference. + * + * **When to use** + * + * Use to return a separate result while synchronously deciding whether to + * publish a new `SubscriptionRef` value. + * + * **Details** + * + * If the function returns `Option.some` for the new value, the value is set and + * published. If it returns `Option.none`, the reference is left unchanged and + * no update is published. + * + * **Example** (Conditionally modifying a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -686,16 +830,26 @@ export declare const modifyEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export declare const modifySome: { /** - * Atomically modifies the `SubscriptionRef` with a function that computes a - * return value and optionally a new value, notifying subscribers only if the - * value changes. + * Computes a return value and optionally updates the reference. + * + * **When to use** + * + * Use to return a separate result while synchronously deciding whether to + * publish a new `SubscriptionRef` value. + * + * **Details** + * + * If the function returns `Option.some` for the new value, the value is set and + * published. If it returns `Option.none`, the reference is left unchanged and + * no update is published. + * + * **Example** (Conditionally modifying a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -714,16 +868,26 @@ export declare const modifySome: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (modify: (a: A) => readonly [B, Option.Option]): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically modifies the `SubscriptionRef` with a function that computes a - * return value and optionally a new value, notifying subscribers only if the - * value changes. + * Computes a return value and optionally updates the reference. + * + * **When to use** + * + * Use to return a separate result while synchronously deciding whether to + * publish a new `SubscriptionRef` value. + * + * **Details** + * + * If the function returns `Option.some` for the new value, the value is set and + * published. If it returns `Option.none`, the reference is left unchanged and + * no update is published. + * + * **Example** (Conditionally modifying a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -742,17 +906,27 @@ export declare const modifySome: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (self: SubscriptionRef, modify: (a: A) => readonly [B, Option.Option]): Effect.Effect; }; /** - * Atomically modifies the `SubscriptionRef` with an effectful function that - * computes a return value and optionally a new value, notifying subscribers - * only if the value changes. + * Computes a return value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to return a separate result while effectfully deciding whether to publish + * a new `SubscriptionRef` value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally modifying with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -775,16 +949,26 @@ export declare const modifySome: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export declare const modifySomeEffect: { /** - * Atomically modifies the `SubscriptionRef` with an effectful function that - * computes a return value and optionally a new value, notifying subscribers - * only if the value changes. + * Computes a return value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to return a separate result while effectfully deciding whether to publish + * a new `SubscriptionRef` value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally modifying with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -807,16 +991,26 @@ export declare const modifySomeEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (modify: (a: A) => Effect.Effect], E, R>): (self: SubscriptionRef) => Effect.Effect; /** - * Atomically modifies the `SubscriptionRef` with an effectful function that - * computes a return value and optionally a new value, notifying subscribers - * only if the value changes. + * Computes a return value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to return a separate result while effectfully deciding whether to publish + * a new `SubscriptionRef` value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally modifying with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -839,8 +1033,8 @@ export declare const modifySomeEffect: { * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ (self: SubscriptionRef, modify: (a: A) => Effect.Effect], E, R>): Effect.Effect; }; @@ -848,7 +1042,8 @@ export declare const modifySomeEffect: { * Sets the value of the `SubscriptionRef`, notifying all subscribers of the * change. * - * @example + * **Example** (Setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -862,15 +1057,16 @@ export declare const modifySomeEffect: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ export declare const set: { /** * Sets the value of the `SubscriptionRef`, notifying all subscribers of the * change. * - * @example + * **Example** (Setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -884,15 +1080,16 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ (value: A): (self: SubscriptionRef) => Effect.Effect; /** * Sets the value of the `SubscriptionRef`, notifying all subscribers of the * change. * - * @example + * **Example** (Setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -906,8 +1103,8 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ (self: SubscriptionRef, value: A): Effect.Effect; }; @@ -915,7 +1112,8 @@ export declare const set: { * Sets the value of the `SubscriptionRef` and returns the new value, * notifying all subscribers of the change. * - * @example + * **Example** (Setting and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -927,15 +1125,16 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ export declare const setAndGet: { /** * Sets the value of the `SubscriptionRef` and returns the new value, * notifying all subscribers of the change. * - * @example + * **Example** (Setting and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -947,15 +1146,16 @@ export declare const setAndGet: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ (value: A): (self: SubscriptionRef) => Effect.Effect; /** * Sets the value of the `SubscriptionRef` and returns the new value, * notifying all subscribers of the change. * - * @example + * **Example** (Setting and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -967,8 +1167,8 @@ export declare const setAndGet: { * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ (self: SubscriptionRef, value: A): Effect.Effect; }; @@ -976,7 +1176,8 @@ export declare const setAndGet: { * Updates the value of the `SubscriptionRef` with the result of applying a * function, notifying subscribers of the change. * - * @example + * **Example** (Updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -990,15 +1191,16 @@ export declare const setAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const update: { /** * Updates the value of the `SubscriptionRef` with the result of applying a * function, notifying subscribers of the change. * - * @example + * **Example** (Updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1012,15 +1214,16 @@ export declare const update: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => A): (self: SubscriptionRef) => Effect.Effect; /** * Updates the value of the `SubscriptionRef` with the result of applying a * function, notifying subscribers of the change. * - * @example + * **Example** (Updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1034,8 +1237,8 @@ export declare const update: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => A): Effect.Effect; }; @@ -1043,7 +1246,8 @@ export declare const update: { * Updates the value of the `SubscriptionRef` with the result of applying an * effectful function, notifying subscribers of the change. * - * @example + * **Example** (Updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1057,15 +1261,16 @@ export declare const update: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateEffect: { /** * Updates the value of the `SubscriptionRef` with the result of applying an * effectful function, notifying subscribers of the change. * - * @example + * **Example** (Updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1079,15 +1284,16 @@ export declare const updateEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Effect.Effect): (self: SubscriptionRef) => Effect.Effect; /** * Updates the value of the `SubscriptionRef` with the result of applying an * effectful function, notifying subscribers of the change. * - * @example + * **Example** (Updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1101,8 +1307,8 @@ export declare const updateEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect): Effect.Effect; }; @@ -1110,7 +1316,8 @@ export declare const updateEffect: { * Updates the value of the `SubscriptionRef` with the result of applying a * function and returns the new value, notifying subscribers of the change. * - * @example + * **Example** (Updating and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1122,15 +1329,16 @@ export declare const updateEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateAndGet: { /** * Updates the value of the `SubscriptionRef` with the result of applying a * function and returns the new value, notifying subscribers of the change. * - * @example + * **Example** (Updating and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1142,15 +1350,16 @@ export declare const updateAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => A): (self: SubscriptionRef) => Effect.Effect; /** * Updates the value of the `SubscriptionRef` with the result of applying a * function and returns the new value, notifying subscribers of the change. * - * @example + * **Example** (Updating and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1162,8 +1371,8 @@ export declare const updateAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => A): Effect.Effect; }; @@ -1172,7 +1381,8 @@ export declare const updateAndGet: { * effectful function and returns the new value, notifying subscribers of the * change. * - * @example + * **Example** (Updating with an effect and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1187,8 +1397,8 @@ export declare const updateAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateAndGetEffect: { /** @@ -1196,7 +1406,8 @@ export declare const updateAndGetEffect: { * effectful function and returns the new value, notifying subscribers of the * change. * - * @example + * **Example** (Updating with an effect and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1211,8 +1422,8 @@ export declare const updateAndGetEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Effect.Effect): (self: SubscriptionRef) => Effect.Effect; /** @@ -1220,7 +1431,8 @@ export declare const updateAndGetEffect: { * effectful function and returns the new value, notifying subscribers of the * change. * - * @example + * **Example** (Updating with an effect and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -1235,17 +1447,18 @@ export declare const updateAndGetEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect): Effect.Effect; }; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option`, notifying subscribers only if - * the value changes. + * Applies an update function to the current value. If it returns + * `Option.some`, sets and publishes that value; if it returns `Option.none`, + * leaves the reference unchanged and does not publish. + * + * **Example** (Conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1262,16 +1475,17 @@ export declare const updateAndGetEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateSome: { /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option`, notifying subscribers only if - * the value changes. + * Applies an update function to the current value. If it returns + * `Option.some`, sets and publishes that value; if it returns `Option.none`, + * leaves the reference unchanged and does not publish. + * + * **Example** (Conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1288,16 +1502,17 @@ export declare const updateSome: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Option.Option): (self: SubscriptionRef) => Effect.Effect; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option`, notifying subscribers only if - * the value changes. + * Applies an update function to the current value. If it returns + * `Option.some`, sets and publishes that value; if it returns `Option.none`, + * leaves the reference unchanged and does not publish. + * + * **Example** (Conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1314,17 +1529,27 @@ export declare const updateSome: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Option.Option): Effect.Effect; }; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option`, notifying - * subscribers only if the value changes. + * Applies an effectful update only when it produces a new value. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` with an effectful function + * while discarding the resulting value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1341,16 +1566,26 @@ export declare const updateSome: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateSomeEffect: { /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option`, notifying - * subscribers only if the value changes. + * Applies an effectful update only when it produces a new value. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` with an effectful function + * while discarding the resulting value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1367,16 +1602,26 @@ export declare const updateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Effect.Effect, E, R>): (self: SubscriptionRef) => Effect.Effect; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option`, notifying - * subscribers only if the value changes. + * Applies an effectful update only when it produces a new value. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` with an effectful function + * while discarding the resulting value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1393,17 +1638,27 @@ export declare const updateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option` and returns the new value, - * notifying subscribers only if the value changes. + * Applies an optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` and read the value that is + * current after the update decision. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set, published, and + * returned. If it returns `Option.none`, the unchanged current value is + * returned without publishing. + * + * **Example** (Conditionally updating and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1418,16 +1673,26 @@ export declare const updateSomeEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateSomeAndGet: { /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option` and returns the new value, - * notifying subscribers only if the value changes. + * Applies an optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` and read the value that is + * current after the update decision. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set, published, and + * returned. If it returns `Option.none`, the unchanged current value is + * returned without publishing. + * + * **Example** (Conditionally updating and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1442,16 +1707,26 @@ export declare const updateSomeAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Option.Option): (self: SubscriptionRef) => Effect.Effect; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option` and returns the new value, - * notifying subscribers only if the value changes. + * Applies an optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` and read the value that is + * current after the update decision. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set, published, and + * returned. If it returns `Option.none`, the unchanged current value is + * returned without publishing. + * + * **Example** (Conditionally updating and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1466,17 +1741,27 @@ export declare const updateSomeAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Option.Option): Effect.Effect; }; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option` and returns the new - * value, notifying subscribers only if the value changes. + * Applies an effectful optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` effectfully and read the + * value that is current after the update decision. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set, published, + * and returned. If it succeeds with `Option.none`, the unchanged current value + * is returned without publishing. + * + * **Example** (Conditionally updating with an effect and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1491,16 +1776,26 @@ export declare const updateSomeAndGet: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export declare const updateSomeAndGetEffect: { /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option` and returns the new - * value, notifying subscribers only if the value changes. + * Applies an effectful optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` effectfully and read the + * value that is current after the update decision. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set, published, + * and returned. If it succeeds with `Option.none`, the unchanged current value + * is returned without publishing. + * + * **Example** (Conditionally updating with an effect and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1515,16 +1810,26 @@ export declare const updateSomeAndGetEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (update: (a: A) => Effect.Effect, E, R>): (self: SubscriptionRef) => Effect.Effect; /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option` and returns the new - * value, notifying subscribers only if the value changes. + * Applies an effectful optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` effectfully and read the + * value that is current after the update decision. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set, published, + * and returned. If it succeeds with `Option.none`, the unchanged current value + * is returned without publishing. + * + * **Example** (Conditionally updating with an effect and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -1539,8 +1844,8 @@ export declare const updateSomeAndGetEffect: { * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ (self: SubscriptionRef, update: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; diff --git a/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts.map b/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts.map index 6570f81b7ef53f513476390a59328a62043f62d6..5b8fed403111e5af7de62e64b64d6c08aba3e691 100644 --- a/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts.map +++ b/.opencode/node_modules/effect/dist/SubscriptionRef.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SubscriptionRef.d.ts","sourceRoot":"","sources":["../src/SubscriptionRef.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,QAAA,MAAM,MAAM,4BAA4B,CAAA;AAExC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ;IACtF,KAAK,EAAE,CAAC,CAAA;IACR,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAA;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,eAAe,CAAC,OAAO,CAElB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,OA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AAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GACtD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAYrB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SubscriptionRef.js b/.opencode/node_modules/effect/dist/SubscriptionRef.js index 6030ec4c6604ace22ae0d9ff4f2f71660983c4ee..f122cc3432d22540ae1196cd2c7e5713eede5875 100644 --- a/.opencode/node_modules/effect/dist/SubscriptionRef.js +++ b/.opencode/node_modules/effect/dist/SubscriptionRef.js @@ -1,4 +1,12 @@ /** + * Stores mutable state and publishes changes as a stream. + * + * A `SubscriptionRef` stores the latest value, publishes the initial value, + * and publishes every committed update so subscribers can observe state over + * time. Updates are serialized so only one change is applied at a time. This + * module includes constructors, current-value reads, the `changes` stream, + * writes, updates, partial updates, and effectful update helpers. + * * @since 2.0.0 */ import * as Effect from "./Effect.js"; @@ -11,8 +19,15 @@ import * as Semaphore from "./Semaphore.js"; import * as Stream from "./Stream.js"; const TypeId = "~effect/SubscriptionRef"; /** - * @since 4.0.0 + * Returns `true` if the provided value is a `SubscriptionRef`. + * + * **When to use** + * + * Use to narrow an unknown value before calling `SubscriptionRef` operations + * that require a subscription reference. + * * @category guards + * @since 4.0.0 */ export const isSubscriptionRef = u => hasProperty(u, TypeId); const Proto = { @@ -30,8 +45,21 @@ const Proto = { /** * Constructs a new `SubscriptionRef` from an initial value. * - * @since 2.0.0 + * **When to use** + * + * Use to create a `SubscriptionRef` when consumers need to read the latest + * value and subscribe to every update. + * + * **Details** + * + * The initial value is published during construction, so `changes` starts new + * subscribers with that value before future updates. + * + * @see {@link changes} for streaming the current value and subsequent updates + * @see {@link set} for replacing the value and notifying subscribers + * * @category constructors + * @since 2.0.0 */ export const make = value => Effect.map(PubSub.unbounded({ replay: 1 @@ -47,40 +75,58 @@ export const make = value => Effect.map(PubSub.unbounded({ * Creates a stream that emits the current value and all subsequent changes to * the `SubscriptionRef`. * + * **Details** + * * The stream will first emit the current value, then emit all future changes * as they occur. * - * @example + * **Example** (Streaming changes) + * * ```ts - * import { Effect, Stream, SubscriptionRef } from "effect" + * import { Deferred, Effect, Fiber, Stream, SubscriptionRef } from "effect" * * const program = Effect.gen(function*() { * const ref = yield* SubscriptionRef.make(0) + * const ready = yield* Deferred.make() * - * const stream = SubscriptionRef.changes(ref) - * - * const fiber = yield* Stream.runForEach( - * stream, - * (value) => Effect.sync(() => console.log("Value:", value)) - * ).pipe(Effect.forkScoped) + * const fiber = yield* SubscriptionRef.changes(ref).pipe( + * Stream.tap(() => Deferred.succeed(ready, void 0)), + * Stream.take(3), + * Stream.runCollect, + * Effect.forkChild + * ) * + * yield* Deferred.await(ready) * yield* SubscriptionRef.set(ref, 1) * yield* SubscriptionRef.set(ref, 2) + * + * const values = yield* Fiber.join(fiber) + * console.log(values) // [ 0, 1, 2 ] * }) + * + * Effect.runPromise(program) * ``` * * @category changes - * @since 2.0.0 + * @since 4.0.0 */ export const changes = self => Stream.fromPubSub(self.pubsub); /** - * Unsafely retrieves the current value of the `SubscriptionRef`. + * Retrieves the current value of the `SubscriptionRef` unsafely. + * + * **When to use** + * + * Use when you are in synchronous internals or test setup where concurrent + * updates are controlled. + * + * **Gotchas** * * This function directly accesses the underlying reference without any - * synchronization. It should only be used when you're certain there are no + * synchronization. It should only be used when you are certain there are no * concurrent modifications. * - * @example + * **Example** (Reading the current value unsafely) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -92,14 +138,15 @@ export const changes = self => Stream.fromPubSub(self.pubsub); * }) * ``` * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export const getUnsafe = self => self.value; /** * Retrieves the current value of the `SubscriptionRef`. * - * @example + * **Example** (Reading the current value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -111,15 +158,16 @@ export const getUnsafe = self => self.value; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const get = self => Effect.sync(() => self.value); /** - * Atomically retrieves the current value and sets a new value, notifying + * Retrieves the current value and sets a new value atomically, notifying * subscribers of the change. * - * @example + * **Example** (Getting and setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -134,8 +182,8 @@ export const get = self => Effect.sync(() => self.value); * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Effect.sync(() => { const current = self.value; @@ -147,10 +195,11 @@ const setUnsafe = (self, value) => { PubSub.publishUnsafe(self.pubsub, value); }; /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying a function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -165,8 +214,8 @@ const setUnsafe = (self, value) => { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const getAndUpdate = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const current = self.value; @@ -175,10 +224,11 @@ export const getAndUpdate = /*#__PURE__*/dual(2, (self, update) => self.semaphor return current; }))); /** - * Atomically retrieves the current value and updates it with the result of + * Retrieves the current value and updates it atomically with the result of * applying an effectful function, notifying subscribers of the change. * - * @example + * **Example** (Getting and updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -196,8 +246,8 @@ export const getAndUpdate = /*#__PURE__*/dual(2, (self, update) => self.semaphor * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const current = self.value; @@ -207,11 +257,21 @@ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, update) => self.se }); }))); /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying a function that returns an `Option`, notifying - * subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying a synchronous + * update only when a new value is available. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set and published. If + * it returns `Option.none`, the reference is left unchanged and no update is + * published. + * + * **Example** (Getting and conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -229,8 +289,8 @@ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, update) => self.se * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const current = self.value; @@ -242,11 +302,21 @@ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, update) => self.sema return current; }))); /** - * Atomically retrieves the current value and optionally updates it with the - * result of applying an effectful function that returns an `Option`, - * notifying subscribers only if the value changes. + * Retrieves the current value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to read the old `SubscriptionRef` value while applying an effectful + * update only when a new value is available. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Getting and conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -264,8 +334,8 @@ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, update) => self.sema * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.suspend(() => { const current = self.value; @@ -276,10 +346,11 @@ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, update) => sel }); }))); /** - * Atomically modifies the `SubscriptionRef` with a function that computes a + * Modifies the `SubscriptionRef` atomically with a function that computes a * return value and a new value, notifying subscribers of the change. * - * @example + * **Example** (Modifying a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -297,8 +368,8 @@ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, update) => sel * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export const modify = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.withPermit(Effect.sync(() => { const [b, newValue] = modify(self.value); @@ -306,11 +377,12 @@ export const modify = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.with return b; }))); /** - * Atomically modifies the `SubscriptionRef` with an effectful function that + * Modifies the `SubscriptionRef` atomically with an effectful function that * computes a return value and a new value, notifying subscribers of the * change. * - * @example + * **Example** (Modifying with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -328,19 +400,29 @@ export const modify = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.with * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export const modifyEffect = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.withPermit(Effect.suspend(() => Effect.map(modify(self.value), ([b, newValue]) => { setUnsafe(self, newValue); return b; })))); /** - * Atomically modifies the `SubscriptionRef` with a function that computes a - * return value and optionally a new value, notifying subscribers only if the - * value changes. + * Computes a return value and optionally updates the reference. + * + * **When to use** + * + * Use to return a separate result while synchronously deciding whether to + * publish a new `SubscriptionRef` value. + * + * **Details** + * + * If the function returns `Option.some` for the new value, the value is set and + * published. If it returns `Option.none`, the reference is left unchanged and + * no update is published. + * + * **Example** (Conditionally modifying a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -359,8 +441,8 @@ export const modifyEffect = /*#__PURE__*/dual(2, (self, modify) => self.semaphor * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export const modifySome = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.withPermit(Effect.sync(() => { const [b, option] = modify(self.value); @@ -369,11 +451,21 @@ export const modifySome = /*#__PURE__*/dual(2, (self, modify) => self.semaphore. return b; }))); /** - * Atomically modifies the `SubscriptionRef` with an effectful function that - * computes a return value and optionally a new value, notifying subscribers - * only if the value changes. + * Computes a return value and optionally updates the reference effectfully. + * + * **When to use** + * + * Use to return a separate result while effectfully deciding whether to publish + * a new `SubscriptionRef` value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally modifying with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -396,8 +488,8 @@ export const modifySome = /*#__PURE__*/dual(2, (self, modify) => self.semaphore. * }) * ``` * - * @since 2.0.0 * @category modifications + * @since 2.0.0 */ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, modify) => self.semaphore.withPermit(Effect.suspend(() => Effect.map(modify(self.value), ([b, option]) => { if (Option.isNone(option)) return b; @@ -408,7 +500,8 @@ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, modify) => self.sema * Sets the value of the `SubscriptionRef`, notifying all subscribers of the * change. * - * @example + * **Example** (Setting a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -422,15 +515,16 @@ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, modify) => self.sema * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ export const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Effect.sync(() => setUnsafe(self, value)))); /** * Sets the value of the `SubscriptionRef` and returns the new value, * notifying all subscribers of the change. * - * @example + * **Example** (Setting and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -442,8 +536,8 @@ export const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPerm * }) * ``` * - * @since 2.0.0 * @category setters + * @since 2.0.0 */ export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Effect.sync(() => { setUnsafe(self, value); @@ -453,7 +547,8 @@ export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.wi * Updates the value of the `SubscriptionRef` with the result of applying a * function, notifying subscribers of the change. * - * @example + * **Example** (Updating a value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -467,15 +562,16 @@ export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.wi * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const update = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => setUnsafe(self, update(self.value))))); /** * Updates the value of the `SubscriptionRef` with the result of applying an * effectful function, notifying subscribers of the change. * - * @example + * **Example** (Updating with an effect) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -489,15 +585,16 @@ export const update = /*#__PURE__*/dual(2, (self, update) => self.semaphore.with * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.suspend(() => Effect.map(update(self.value), newValue => setUnsafe(self, newValue))))); /** * Updates the value of the `SubscriptionRef` with the result of applying a * function and returns the new value, notifying subscribers of the change. * - * @example + * **Example** (Updating and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -509,8 +606,8 @@ export const updateEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphor * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateAndGet = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const newValue = update(self.value); @@ -522,7 +619,8 @@ export const updateAndGet = /*#__PURE__*/dual(2, (self, update) => self.semaphor * effectful function and returns the new value, notifying subscribers of the * change. * - * @example + * **Example** (Updating with an effect and reading the new value) + * * ```ts * import { Effect, SubscriptionRef } from "effect" * @@ -537,19 +635,20 @@ export const updateAndGet = /*#__PURE__*/dual(2, (self, update) => self.semaphor * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.suspend(() => Effect.map(update(self.value), newValue => { setUnsafe(self, newValue); return newValue; })))); /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option`, notifying subscribers only if - * the value changes. + * Applies an update function to the current value. If it returns + * `Option.some`, sets and publishes that value; if it returns `Option.none`, + * leaves the reference unchanged and does not publish. + * + * **Example** (Conditionally updating a value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -566,8 +665,8 @@ export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, update) => self.se * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateSome = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const option = update(self.value); @@ -575,11 +674,21 @@ export const updateSome = /*#__PURE__*/dual(2, (self, update) => self.semaphore. setUnsafe(self, option.value); }))); /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option`, notifying - * subscribers only if the value changes. + * Applies an effectful update only when it produces a new value. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` with an effectful function + * while discarding the resulting value. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set and + * published. If it succeeds with `Option.none`, the reference is left unchanged + * and no update is published. + * + * **Example** (Conditionally updating with an effect) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -596,19 +705,29 @@ export const updateSome = /*#__PURE__*/dual(2, (self, update) => self.semaphore. * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateSomeEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.suspend(() => Effect.map(update(self.value), option => { if (Option.isNone(option)) return; setUnsafe(self, option.value); })))); /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying a function that returns an `Option` and returns the new value, - * notifying subscribers only if the value changes. + * Applies an optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` and read the value that is + * current after the update decision. + * + * **Details** + * + * If the function returns `Option.some`, the new value is set, published, and + * returned. If it returns `Option.none`, the unchanged current value is + * returned without publishing. + * + * **Example** (Conditionally updating and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -623,8 +742,8 @@ export const updateSomeEffect = /*#__PURE__*/dual(2, (self, update) => self.sema * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.sync(() => { const current = self.value; @@ -634,11 +753,21 @@ export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, update) => self.sema return option.value; }))); /** - * Optionally updates the value of the `SubscriptionRef` with the result of - * applying an effectful function that returns an `Option` and returns the new - * value, notifying subscribers only if the value changes. + * Applies an effectful optional update and returns the current value afterward. + * + * **When to use** + * + * Use to conditionally update a `SubscriptionRef` effectfully and read the + * value that is current after the update decision. + * + * **Details** + * + * If the effect succeeds with `Option.some`, the new value is set, published, + * and returned. If it succeeds with `Option.none`, the unchanged current value + * is returned without publishing. + * + * **Example** (Conditionally updating with an effect and reading the new value) * - * @example * ```ts * import { Effect, Option, SubscriptionRef } from "effect" * @@ -653,8 +782,8 @@ export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, update) => self.sema * }) * ``` * - * @since 2.0.0 * @category updating + * @since 2.0.0 */ export const updateSomeAndGetEffect = /*#__PURE__*/dual(2, (self, update) => self.semaphore.withPermit(Effect.suspend(() => { const current = self.value; diff --git a/.opencode/node_modules/effect/dist/SubscriptionRef.js.map b/.opencode/node_modules/effect/dist/SubscriptionRef.js.map index c138b02e897c5ebbc844a83897a9045f6d1dff25..89933acba54df67baa463e959238ff5e31d9ef71 100644 --- a/.opencode/node_modules/effect/dist/SubscriptionRef.js.map +++ b/.opencode/node_modules/effect/dist/SubscriptionRef.js.map @@ -1 +1 @@ -{"version":3,"file":"SubscriptionRef.js","names":["Effect","dual","identity","PipeInspectableProto","Option","hasProperty","PubSub","Semaphore","Stream","TypeId","isSubscriptionRef","u","Proto","_A","toJSON","_id","value","make","map","unbounded","replay","pubsub","self","Object","create","semaphore","makeUnsafe","publishUnsafe","changes","fromPubSub","getUnsafe","get","sync","getAndSet","withPermit","current","setUnsafe","getAndUpdate","update","newValue","getAndUpdateEffect","getAndUpdateSome","option","isNone","succeed","getAndUpdateSomeEffect","suspend","modify","b","modifyEffect","modifySome","modifySomeEffect","set","setAndGet","updateEffect","updateAndGet","updateAndGetEffect","updateSome","updateSomeEffect","updateSomeAndGet","updateSomeAndGetEffect"],"sources":["../src/SubscriptionRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAC9C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,MAAMC,MAAM,GAAG,yBAAyB;AAYxC;;;;AAIA,OAAO,MAAMC,iBAAiB,GAC5BC,CAAU,IACwBN,WAAW,CAACM,CAAC,EAAEF,MAAM,CAAC;AAmB1D,MAAMG,KAAK,GAAG;EACZ,GAAGT,oBAAoB;EACvB,CAACM,MAAM,GAAG;IACRI,EAAE,EAAEX;GACL;EACDY,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,iBAAiB;MACtBC,KAAK,EAAE,IAAI,CAACA;KACb;EACH;CACD;AAED;;;;;;AAMA,OAAO,MAAMC,IAAI,GAAOD,KAAQ,IAC9BhB,MAAM,CAACkB,GAAG,CAACZ,MAAM,CAACa,SAAS,CAAI;EAAEC,MAAM,EAAE;AAAC,CAAE,CAAC,EAAGC,MAAM,IAAI;EACxD,MAAMC,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACZ,KAAK,CAAC;EACjCU,IAAI,CAACG,SAAS,GAAGlB,SAAS,CAACmB,UAAU,CAAC,CAAC,CAA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AAO0B,MAAM,CAAC1B,KAAK;EACrB,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"SubscriptionRef.js","names":["Effect","dual","identity","PipeInspectableProto","Option","hasProperty","PubSub","Semaphore","Stream","TypeId","isSubscriptionRef","u","Proto","_A","toJSON","_id","value","make","map","unbounded","replay","pubsub","self","Object","create","semaphore","makeUnsafe","publishUnsafe","changes","fromPubSub","getUnsafe","get","sync","getAndSet","withPermit","current","setUnsafe","getAndUpdate","update","newValue","getAndUpdateEffect","getAndUpdateSome","option","isNone","succeed","getAndUpdateSomeEffect","suspend","modify","b","modifyEffect","modifySome","modifySomeEffect","set","setAndGet","updateEffect","updateAndGet","updateAndGetEffect","updateSome","updateSomeEffect","updateSomeAndGet","updateSomeAndGetEffect"],"sources":["../src/SubscriptionRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAC9C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,MAAMC,MAAM,GAAG,yBAAyB;AAoBxC;;;;;;;;;;;AAWA,OAAO,MAAMC,iBAAiB,GAC5BC,CAAU,IACwBN,WAAW,CAACM,CAAC,EAAEF,MAAM,CAAC;AAuB1D,MAAMG,KAAK,GAAG;EACZ,GAAGT,oBAAoB;EACvB,CAACM,MAAM,GAAG;IACRI,EAAE,EAAEX;GACL;EACDY,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,iBAAiB;MACtBC,KAAK,EAAE,IAAI,CAACA;KACb;EACH;CACD;A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AAO,MAAM4C,sBAAsB,gBAwE/B3D,IAAI,CAAC,CAAC,EAAE,CACVqB,IAAwB,EACxBgB,MAAuD,KAEvDhB,IAAI,CAACG,SAAS,CAACS,UAAU,CAAClC,MAAM,CAAC8C,OAAO,CAAC,MAAK;EAC5C,MAAMX,OAAO,GAAGb,IAAI,CAACN,KAAK;EAC1B,OAAOhB,MAAM,CAACkB,GAAG,CAACoB,MAAM,CAACH,OAAO,CAAC,EAAGO,MAAM,IAAI;IAC5C,IAAItC,MAAM,CAACuC,MAAM,CAACD,MAAM,CAAC,EAAE,OAAOP,OAAO;IACzCC,SAAS,CAACd,IAAI,EAAEoB,MAAM,CAAC1B,KAAK,CAAC;IAC7B,OAAO0B,MAAM,CAAC1B,KAAK;EACrB,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Symbol.d.ts b/.opencode/node_modules/effect/dist/Symbol.d.ts index 20905402f70c81d16dbd56c18b9d54dbd0e4a297..e6ee539ed9c69a2770e6c7376c0922b03c0cbc70 100644 --- a/.opencode/node_modules/effect/dist/Symbol.d.ts +++ b/.opencode/node_modules/effect/dist/Symbol.d.ts @@ -1,16 +1,25 @@ /** + * The `Symbol` module contains the runtime predicate for JavaScript primitive + * `symbol` values. It is most useful at boundaries where a value is `unknown` + * and must be narrowed before it can be used as a symbol key, identifier, or + * discriminant. + * * @since 2.0.0 */ /** - * Tests if a value is a `symbol`. + * Checks whether a value is a `symbol`. + * + * **When to use** + * + * Use to validate unknown input before treating it as a JavaScript `symbol`. + * + * **Example** (Checking for symbols) * - * @example * ```ts - * import * as Predicate from "effect/Predicate" - * import * as assert from "node:assert" + * import { Symbol } from "effect" * - * assert.deepStrictEqual(Predicate.isSymbol(Symbol.for("a")), true) - * assert.deepStrictEqual(Predicate.isSymbol("a"), false) + * console.log(Symbol.isSymbol(globalThis.Symbol.for("a"))) // true + * console.log(Symbol.isSymbol("a")) // false * ``` * * @category guards diff --git a/.opencode/node_modules/effect/dist/Symbol.d.ts.map b/.opencode/node_modules/effect/dist/Symbol.d.ts.map index 9e66b5286a7dba34e327fd3f9d47ea3e64f02f6c..cefd4450c127b7f2a387e8c70178ae06310dc8d5 100644 --- a/.opencode/node_modules/effect/dist/Symbol.d.ts.map +++ b/.opencode/node_modules/effect/dist/Symbol.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../src/Symbol.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,MAA2B,CAAA"} \ No newline at end of file +{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../src/Symbol.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,MAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Symbol.js b/.opencode/node_modules/effect/dist/Symbol.js index 55f56cc63204ced52f17384e3ad2f5f6f50b0879..9807d2febb4c8f9cdf3610479041b2a2de4b67bf 100644 --- a/.opencode/node_modules/effect/dist/Symbol.js +++ b/.opencode/node_modules/effect/dist/Symbol.js @@ -1,17 +1,26 @@ /** + * The `Symbol` module contains the runtime predicate for JavaScript primitive + * `symbol` values. It is most useful at boundaries where a value is `unknown` + * and must be narrowed before it can be used as a symbol key, identifier, or + * discriminant. + * * @since 2.0.0 */ import * as predicate from "./Predicate.js"; /** - * Tests if a value is a `symbol`. + * Checks whether a value is a `symbol`. + * + * **When to use** + * + * Use to validate unknown input before treating it as a JavaScript `symbol`. + * + * **Example** (Checking for symbols) * - * @example * ```ts - * import * as Predicate from "effect/Predicate" - * import * as assert from "node:assert" + * import { Symbol } from "effect" * - * assert.deepStrictEqual(Predicate.isSymbol(Symbol.for("a")), true) - * assert.deepStrictEqual(Predicate.isSymbol("a"), false) + * console.log(Symbol.isSymbol(globalThis.Symbol.for("a"))) // true + * console.log(Symbol.isSymbol("a")) // false * ``` * * @category guards diff --git a/.opencode/node_modules/effect/dist/Symbol.js.map b/.opencode/node_modules/effect/dist/Symbol.js.map index 9638f51ff1edd9d956295042ab77a0e30ad31337..979ed2e587cbbf9baec238bbf076aa8c91194fc3 100644 --- a/.opencode/node_modules/effect/dist/Symbol.js.map +++ b/.opencode/node_modules/effect/dist/Symbol.js.map @@ -1 +1 @@ -{"version":3,"file":"Symbol.js","names":["predicate","isSymbol"],"sources":["../src/Symbol.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA,OAAO,KAAKA,SAAS,MAAM,gBAAgB;AAE3C;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,QAAQ,GAAgCD,SAAS,CAACC,QAAQ","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Symbol.js","names":["predicate","isSymbol"],"sources":["../src/Symbol.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;AASA,OAAO,KAAKA,SAAS,MAAM,gBAAgB;AAE3C;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,QAAQ,GAAgCD,SAAS,CAACC,QAAQ","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts b/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts index 3bc898aff1d21342ebd4e7994288d9e774ef68e7..7d023855934db386ec20e6868fc3c23e2240793d 100644 --- a/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts +++ b/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts @@ -1,4 +1,13 @@ /** + * Stores mutable state whose updates run one at a time. + * + * A `SynchronizedRef` behaves like a `Ref` for reading and simple state + * storage, but update and modify operations are serialized so each change sees + * a consistent current value. This is especially useful when the next value is + * computed by an effect, because the effectful transition is still protected + * from concurrent updates. This module includes constructors, reads, writes, + * updates, partial updates, and effectful update helpers. + * * @since 2.0.0 */ import * as Effect from "./Effect.ts"; @@ -7,8 +16,19 @@ import * as Ref from "./Ref.ts"; import * as Semaphore from "./Semaphore.ts"; declare const TypeId = "~effect/SynchronizedRef"; /** - * @since 2.0.0 + * A mutable reference whose update and modify operations are serialized with an + * internal semaphore, including effectful transformations. + * + * **When to use** + * + * Use when shared state may be updated by multiple fibers and each update, + * including effectful state transitions, must observe one current value and run + * one at a time. + * + * @see {@link Ref.Ref} for a plain `Ref` when updates do not need effectful synchronization + * * @category models + * @since 2.0.0 */ export interface SynchronizedRef extends Ref.Ref { readonly [TypeId]: typeof TypeId; @@ -16,326 +36,1036 @@ export interface SynchronizedRef extends Ref.Ref { readonly semaphore: Semaphore.Semaphore; } /** - * @since 4.0.0 + * Creates a `SynchronizedRef` synchronously from an initial value. + * + * **When to use** + * + * Use when you need synchronous `SynchronizedRef` construction outside an + * Effect workflow. + * * @category constructors + * @since 4.0.0 */ export declare const makeUnsafe: (value: A) => SynchronizedRef; /** - * @since 2.0.0 + * Creates a `SynchronizedRef` from an initial value, wrapped in an `Effect`. + * + * **When to use** + * + * Use to create a `SynchronizedRef` inside an Effect program when later updates + * may run effects and must be serialized. + * + * **Details** + * + * The returned effect constructs a fresh `SynchronizedRef` by delegating to + * `makeUnsafe` when the effect is evaluated. + * + * @see {@link makeUnsafe} for synchronous construction when the caller controls safe initialization + * @see {@link Ref.make} for a plain `Ref` when updates do not need effectful synchronization + * * @category constructors + * @since 2.0.0 */ export declare const make: (value: A) => Effect.Effect>; /** - * @since 2.0.0 + * Reads the current value synchronously, bypassing the `Effect` API and the + * ref's semaphore. + * + * **When to use** + * + * Use when you need immediate synchronous access to a `SynchronizedRef` value + * in low-level code that can safely read outside an `Effect`. + * + * @see {@link get} for the Effect-wrapped read when composing inside Effect programs + * * @category getters + * @since 4.0.0 */ export declare const getUnsafe: (self: SynchronizedRef) => A; /** - * @since 2.0.0 + * Returns an `Effect` that reads the current value of the `SynchronizedRef`. + * + * **When to use** + * + * Use to read the current value of a `SynchronizedRef` inside an `Effect` + * program without changing it. + * + * @see {@link getUnsafe} for synchronous reads when the caller controls safe access outside `Effect` + * * @category getters + * @since 2.0.0 */ export declare const get: (self: SynchronizedRef) => Effect.Effect; /** + * Sets a new value atomically and returns the previous value, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to replace a `SynchronizedRef` with a known value when the previous value + * is also needed. + * + * @see {@link set} for setting a value without returning the previous value + * @see {@link setAndGet} for setting a value and returning the new value + * @see {@link getAndUpdate} for deriving the new value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const getAndSet: { /** + * Sets a new value atomically and returns the previous value, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to replace a `SynchronizedRef` with a known value when the previous value + * is also needed. + * + * @see {@link set} for setting a value without returning the previous value + * @see {@link setAndGet} for setting a value and returning the new value + * @see {@link getAndUpdate} for deriving the new value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (value: A): (self: SynchronizedRef) => Effect.Effect; /** + * Sets a new value atomically and returns the previous value, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to replace a `SynchronizedRef` with a known value when the previous value + * is also needed. + * + * @see {@link set} for setting a value without returning the previous value + * @see {@link setAndGet} for setting a value and returning the new value + * @see {@link getAndUpdate} for deriving the new value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, value: A): Effect.Effect; }; /** + * Updates the current value atomically with a function and returns the previous + * value, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to run a pure `SynchronizedRef` state update when the previous stored + * value is also needed. + * + * @see {@link update} for updating without returning a value + * @see {@link updateAndGet} for updating and returning the new value + * @see {@link getAndUpdateEffect} for effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const getAndUpdate: { /** + * Updates the current value atomically with a function and returns the previous + * value, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to run a pure `SynchronizedRef` state update when the previous stored + * value is also needed. + * + * @see {@link update} for updating without returning a value + * @see {@link updateAndGet} for updating and returning the new value + * @see {@link getAndUpdateEffect} for effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => A): (self: SynchronizedRef) => Effect.Effect; /** + * Updates the current value atomically with a function and returns the previous + * value, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to run a pure `SynchronizedRef` state update when the previous stored + * value is also needed. + * + * @see {@link update} for updating without returning a value + * @see {@link updateAndGet} for updating and returning the new value + * @see {@link getAndUpdateEffect} for effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => A): Effect.Effect; }; /** + * Runs an effectful update atomically while holding the ref's semaphore, sets + * the new value if the effect succeeds, and returns the previous value. + * + * **When to use** + * + * Use when you need an effectful `SynchronizedRef` state transition to return + * the previous stored value. + * + * @see {@link getAndUpdate} for pure updates that return the previous value + * @see {@link updateEffect} for effectful updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that return the new value + * @see {@link modifyEffect} for effectful updates with a custom return value + * @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const getAndUpdateEffect: { /** + * Runs an effectful update atomically while holding the ref's semaphore, sets + * the new value if the effect succeeds, and returns the previous value. + * + * **When to use** + * + * Use when you need an effectful `SynchronizedRef` state transition to return + * the previous stored value. + * + * @see {@link getAndUpdate} for pure updates that return the previous value + * @see {@link updateEffect} for effectful updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that return the new value + * @see {@link modifyEffect} for effectful updates with a custom return value + * @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => Effect.Effect): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful update atomically while holding the ref's semaphore, sets + * the new value if the effect succeeds, and returns the previous value. + * + * **When to use** + * + * Use when you need an effectful `SynchronizedRef` state transition to return + * the previous stored value. + * + * @see {@link getAndUpdate} for pure updates that return the previous value + * @see {@link updateEffect} for effectful updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that return the new value + * @see {@link modifyEffect} for effectful updates with a custom return value + * @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => Effect.Effect): Effect.Effect; }; /** + * Applies a partial update atomically and returns the previous value. If the + * function returns `Option.some`, the ref is updated; if it returns + * `Option.none`, the ref is left unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while applying a pure + * conditional update. + * + * @see {@link getAndUpdate} for always applying a pure update + * @see {@link updateSome} for applying a pure conditional update without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const getAndUpdateSome: { /** + * Applies a partial update atomically and returns the previous value. If the + * function returns `Option.some`, the ref is updated; if it returns + * `Option.none`, the ref is left unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while applying a pure + * conditional update. + * + * @see {@link getAndUpdate} for always applying a pure update + * @see {@link updateSome} for applying a pure conditional update without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => Option.Option): (self: SynchronizedRef) => Effect.Effect; /** + * Applies a partial update atomically and returns the previous value. If the + * function returns `Option.some`, the ref is updated; if it returns + * `Option.none`, the ref is left unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while applying a pure + * conditional update. + * + * @see {@link getAndUpdate} for always applying a pure update + * @see {@link updateSome} for applying a pure conditional update without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Option.Option): Effect.Effect; }; /** + * Runs an effectful partial update atomically while holding the ref's semaphore + * and returns the previous value. `Option.some` updates the ref; `Option.none` + * leaves it unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while running an effectful + * conditional update. + * + * @see {@link getAndUpdateSome} for the pure conditional variant + * @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const getAndUpdateSomeEffect: { /** + * Runs an effectful partial update atomically while holding the ref's semaphore + * and returns the previous value. `Option.some` updates the ref; `Option.none` + * leaves it unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while running an effectful + * conditional update. + * + * @see {@link getAndUpdateSome} for the pure conditional variant + * @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => Effect.Effect, E, R>): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful partial update atomically while holding the ref's semaphore + * and returns the previous value. `Option.some` updates the ref; `Option.none` + * leaves it unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while running an effectful + * conditional update. + * + * @see {@link getAndUpdateSome} for the pure conditional variant + * @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; /** + * Computes a return value and a new ref value atomically, stores the new value, + * and returns the computed result. + * + * **When to use** + * + * Use to derive a separate result and the next stored `SynchronizedRef` value + * from the same current value in one serialized pure update. + * + * @see {@link modifyEffect} for effectfully deriving both the result and next stored value + * @see {@link modifySome} for deriving a result and optionally updating the stored value + * @see {@link updateAndGet} for returning the new stored value instead of a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const modify: { /** + * Computes a return value and a new ref value atomically, stores the new value, + * and returns the computed result. + * + * **When to use** + * + * Use to derive a separate result and the next stored `SynchronizedRef` value + * from the same current value in one serialized pure update. + * + * @see {@link modifyEffect} for effectfully deriving both the result and next stored value + * @see {@link modifySome} for deriving a result and optionally updating the stored value + * @see {@link updateAndGet} for returning the new stored value instead of a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => readonly [B, A]): (self: SynchronizedRef) => Effect.Effect; /** + * Computes a return value and a new ref value atomically, stores the new value, + * and returns the computed result. + * + * **When to use** + * + * Use to derive a separate result and the next stored `SynchronizedRef` value + * from the same current value in one serialized pure update. + * + * @see {@link modifyEffect} for effectfully deriving both the result and next stored value + * @see {@link modifySome} for deriving a result and optionally updating the stored value + * @see {@link updateAndGet} for returning the new stored value instead of a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => readonly [B, A]): Effect.Effect; }; /** + * Runs an effectful modification atomically while holding the ref's semaphore, + * stores the new value if the effect succeeds, and returns the computed result. + * + * **When to use** + * + * Use to effectfully compute both a separate return value and the next stored + * `SynchronizedRef` value in one serialized update. + * + * @see {@link modify} for the pure variant + * @see {@link updateEffect} for effectfully storing a new value without a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const modifyEffect: { /** + * Runs an effectful modification atomically while holding the ref's semaphore, + * stores the new value if the effect succeeds, and returns the computed result. + * + * **When to use** + * + * Use to effectfully compute both a separate return value and the next stored + * `SynchronizedRef` value in one serialized update. + * + * @see {@link modify} for the pure variant + * @see {@link updateEffect} for effectfully storing a new value without a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => Effect.Effect): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful modification atomically while holding the ref's semaphore, + * stores the new value if the effect succeeds, and returns the computed result. + * + * **When to use** + * + * Use to effectfully compute both a separate return value and the next stored + * `SynchronizedRef` value in one serialized update. + * + * @see {@link modify} for the pure variant + * @see {@link updateEffect} for effectfully storing a new value without a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => Effect.Effect): Effect.Effect; }; /** + * Computes a return value and an optional new ref value atomically. + * `Option.some` updates the ref; `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to compute a return value while optionally updating a `SynchronizedRef` + * under its semaphore. + * + * @see {@link modify} for always storing a new value + * @see {@link updateSome} for optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const modifySome: { /** + * Computes a return value and an optional new ref value atomically. + * `Option.some` updates the ref; `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to compute a return value while optionally updating a `SynchronizedRef` + * under its semaphore. + * + * @see {@link modify} for always storing a new value + * @see {@link updateSome} for optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => readonly [B, Option.Option]): (self: SynchronizedRef) => Effect.Effect; /** + * Computes a return value and an optional new ref value atomically. + * `Option.some` updates the ref; `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to compute a return value while optionally updating a `SynchronizedRef` + * under its semaphore. + * + * @see {@link modify} for always storing a new value + * @see {@link updateSome} for optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => readonly [B, Option.Option]): Effect.Effect; }; /** + * Runs an effectful modification atomically while holding the ref's semaphore. + * The effect computes a return value and an optional new ref value; + * `Option.some` updates the ref and `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to effectfully compute a return value while optionally updating the + * stored `SynchronizedRef` value. + * + * @see {@link modifySome} for the pure variant + * @see {@link updateSomeEffect} for effectful optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const modifySomeEffect: { /** + * Runs an effectful modification atomically while holding the ref's semaphore. + * The effect computes a return value and an optional new ref value; + * `Option.some` updates the ref and `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to effectfully compute a return value while optionally updating the + * stored `SynchronizedRef` value. + * + * @see {@link modifySome} for the pure variant + * @see {@link updateSomeEffect} for effectful optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ (fallback: B, pf: (a: A) => Effect.Effect], E, R>): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful modification atomically while holding the ref's semaphore. + * The effect computes a return value and an optional new ref value; + * `Option.some` updates the ref and `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to effectfully compute a return value while optionally updating the + * stored `SynchronizedRef` value. + * + * @see {@link modifySome} for the pure variant + * @see {@link updateSomeEffect} for effectful optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Effect.Effect], E, R>): Effect.Effect; }; /** + * Sets the value of the `SynchronizedRef`, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to replace the current value of a `SynchronizedRef` with a known value + * while keeping the write serialized with other synchronized updates. + * + * @see {@link getAndSet} for replacing the value when the previous value is needed + * @see {@link setAndGet} for replacing the value when the new value should be returned + * @see {@link update} for deriving the next value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const set: { /** + * Sets the value of the `SynchronizedRef`, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to replace the current value of a `SynchronizedRef` with a known value + * while keeping the write serialized with other synchronized updates. + * + * @see {@link getAndSet} for replacing the value when the previous value is needed + * @see {@link setAndGet} for replacing the value when the new value should be returned + * @see {@link update} for deriving the next value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (value: A): (self: SynchronizedRef) => Effect.Effect; /** + * Sets the value of the `SynchronizedRef`, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to replace the current value of a `SynchronizedRef` with a known value + * while keeping the write serialized with other synchronized updates. + * + * @see {@link getAndSet} for replacing the value when the previous value is needed + * @see {@link setAndGet} for replacing the value when the new value should be returned + * @see {@link update} for deriving the next value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, value: A): Effect.Effect; }; /** + * Sets the value of the `SynchronizedRef` and returns the new value. + * + * **When to use** + * + * Use to replace the current `SynchronizedRef` value with a known value and + * return that new value. + * + * @see {@link set} for setting without returning a value + * @see {@link getAndSet} for setting while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const setAndGet: { /** + * Sets the value of the `SynchronizedRef` and returns the new value. + * + * **When to use** + * + * Use to replace the current `SynchronizedRef` value with a known value and + * return that new value. + * + * @see {@link set} for setting without returning a value + * @see {@link getAndSet} for setting while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (value: A): (self: SynchronizedRef) => Effect.Effect; /** + * Sets the value of the `SynchronizedRef` and returns the new value. + * + * **When to use** + * + * Use to replace the current `SynchronizedRef` value with a known value and + * return that new value. + * + * @see {@link set} for setting without returning a value + * @see {@link getAndSet} for setting while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, value: A): Effect.Effect; }; /** + * Updates the value of the `SynchronizedRef` with a function, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to apply a pure state transition to a `SynchronizedRef` as a serialized + * `Effect`. + * + * @see {@link updateEffect} for effectfully deriving the next value + * @see {@link updateAndGet} for returning the new stored value + * @see {@link getAndUpdate} for returning the previous stored value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const update: { /** + * Updates the value of the `SynchronizedRef` with a function, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to apply a pure state transition to a `SynchronizedRef` as a serialized + * `Effect`. + * + * @see {@link updateEffect} for effectfully deriving the next value + * @see {@link updateAndGet} for returning the new stored value + * @see {@link getAndUpdate} for returning the previous stored value + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => A): (self: SynchronizedRef) => Effect.Effect; /** + * Updates the value of the `SynchronizedRef` with a function, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to apply a pure state transition to a `SynchronizedRef` as a serialized + * `Effect`. + * + * @see {@link updateEffect} for effectfully deriving the next value + * @see {@link updateAndGet} for returning the new stored value + * @see {@link getAndUpdate} for returning the previous stored value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => A): Effect.Effect; }; /** + * Runs an effectful update while holding the ref's semaphore and stores the new + * value if the effect succeeds. + * + * **When to use** + * + * Use to run an effectful state transition on a `SynchronizedRef` when storing + * the new value is the only result you need. + * + * @see {@link update} for a pure state transition + * @see {@link getAndUpdateEffect} for returning the previous stored value + * @see {@link updateAndGetEffect} for returning the new stored value + * @see {@link modifyEffect} for returning a separate result while storing a new value + * @see {@link updateSomeEffect} for effectfully applying only some state transitions + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateEffect: { /** + * Runs an effectful update while holding the ref's semaphore and stores the new + * value if the effect succeeds. + * + * **When to use** + * + * Use to run an effectful state transition on a `SynchronizedRef` when storing + * the new value is the only result you need. + * + * @see {@link update} for a pure state transition + * @see {@link getAndUpdateEffect} for returning the previous stored value + * @see {@link updateAndGetEffect} for returning the new stored value + * @see {@link modifyEffect} for returning a separate result while storing a new value + * @see {@link updateSomeEffect} for effectfully applying only some state transitions + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => Effect.Effect): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful update while holding the ref's semaphore and stores the new + * value if the effect succeeds. + * + * **When to use** + * + * Use to run an effectful state transition on a `SynchronizedRef` when storing + * the new value is the only result you need. + * + * @see {@link update} for a pure state transition + * @see {@link getAndUpdateEffect} for returning the previous stored value + * @see {@link updateAndGetEffect} for returning the new stored value + * @see {@link modifyEffect} for returning a separate result while storing a new value + * @see {@link updateSomeEffect} for effectfully applying only some state transitions + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => Effect.Effect): Effect.Effect; }; /** + * Updates the value of the `SynchronizedRef` with a function and returns the + * new value. + * + * **When to use** + * + * Use to apply a pure `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for updating while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateAndGet: { /** + * Updates the value of the `SynchronizedRef` with a function and returns the + * new value. + * + * **When to use** + * + * Use to apply a pure `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for updating while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => A): (self: SynchronizedRef) => Effect.Effect; /** + * Updates the value of the `SynchronizedRef` with a function and returns the + * new value. + * + * **When to use** + * + * Use to apply a pure `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for updating while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => A): Effect.Effect; }; /** + * Runs an effectful update while holding the ref's semaphore, stores the new + * value if the effect succeeds, and returns that new value. + * + * **When to use** + * + * Use to run an effectful `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link updateEffect} for effectful updates without returning the new value + * @see {@link updateAndGet} for the pure variant + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateAndGetEffect: { /** + * Runs an effectful update while holding the ref's semaphore, stores the new + * value if the effect succeeds, and returns that new value. + * + * **When to use** + * + * Use to run an effectful `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link updateEffect} for effectful updates without returning the new value + * @see {@link updateAndGet} for the pure variant + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => Effect.Effect): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful update while holding the ref's semaphore, stores the new + * value if the effect succeeds, and returns that new value. + * + * **When to use** + * + * Use to run an effectful `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link updateEffect} for effectful updates without returning the new value + * @see {@link updateAndGet} for the pure variant + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => Effect.Effect): Effect.Effect; }; /** + * Applies a partial update to the current value. `Option.some` stores the new + * value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update without returning a + * value. + * + * @see {@link update} for always applying a pure update + * @see {@link updateSomeAndGet} for returning the resulting current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateSome: { /** + * Applies a partial update to the current value. `Option.some` stores the new + * value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update without returning a + * value. + * + * @see {@link update} for always applying a pure update + * @see {@link updateSomeAndGet} for returning the resulting current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (f: (a: A) => Option.Option): (self: SynchronizedRef) => Effect.Effect; /** + * Applies a partial update to the current value. `Option.some` stores the new + * value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update without returning a + * value. + * + * @see {@link update} for always applying a pure update + * @see {@link updateSomeAndGet} for returning the resulting current value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, f: (a: A) => Option.Option): Effect.Effect; }; /** + * Runs an effectful partial update while holding the ref's semaphore. + * `Option.some` stores the new value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update without + * returning a value. + * + * @see {@link updateSome} for the pure conditional variant + * @see {@link updateEffect} for effectful updates that always store a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateSomeEffect: { /** + * Runs an effectful partial update while holding the ref's semaphore. + * `Option.some` stores the new value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update without + * returning a value. + * + * @see {@link updateSome} for the pure conditional variant + * @see {@link updateEffect} for effectful updates that always store a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => Effect.Effect, E, R>): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful partial update while holding the ref's semaphore. + * `Option.some` stores the new value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update without + * returning a value. + * + * @see {@link updateSome} for the pure conditional variant + * @see {@link updateEffect} for effectful updates that always store a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; /** + * Applies a partial update and returns the resulting current value. + * `Option.some` stores and returns the new value; `Option.none` returns the + * unchanged value. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSome} for conditional updates without returning a value + * @see {@link updateAndGet} for always applying a pure update and returning the new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateSomeAndGet: { /** + * Applies a partial update and returns the resulting current value. + * `Option.some` stores and returns the new value; `Option.none` returns the + * unchanged value. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSome} for conditional updates without returning a value + * @see {@link updateAndGet} for always applying a pure update and returning the new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => Option.Option): (self: SynchronizedRef) => Effect.Effect; /** + * Applies a partial update and returns the resulting current value. + * `Option.some` stores and returns the new value; `Option.none` returns the + * unchanged value. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSome} for conditional updates without returning a value + * @see {@link updateAndGet} for always applying a pure update and returning the new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Option.Option): Effect.Effect; }; /** + * Runs an effectful partial update while holding the ref's semaphore and + * returns the resulting current value. `Option.some` stores and returns the new + * value; `Option.none` returns the unchanged value. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSomeEffect} for effectful conditional updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that always store and return a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export declare const updateSomeAndGetEffect: { /** + * Runs an effectful partial update while holding the ref's semaphore and + * returns the resulting current value. `Option.some` stores and returns the new + * value; `Option.none` returns the unchanged value. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSomeEffect} for effectful conditional updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that always store and return a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (pf: (a: A) => Effect.Effect, E, R>): (self: SynchronizedRef) => Effect.Effect; /** + * Runs an effectful partial update while holding the ref's semaphore and + * returns the resulting current value. `Option.some` stores and returns the new + * value; `Option.none` returns the unchanged value. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSomeEffect} for effectful conditional updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that always store and return a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ (self: SynchronizedRef, pf: (a: A) => Effect.Effect, E, R>): Effect.Effect; }; diff --git a/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts.map b/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts.map index ba788d0d2361063c5b4aa7d63cdcb4571d8c7e78..4c7b117786e55ef3c769f072bc30125bec85f2de 100644 --- a/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts.map +++ b/.opencode/node_modules/effect/dist/SynchronizedRef.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SynchronizedRef.d.ts","sourceRoot":"","sources":["../src/SynchronizedRef.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,MAAM,4BAA4B,CAAA;AAExC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;IAChC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAA;CACxC;AAaD;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,eA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AC,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACpH;;;;;;;;;;;;;;;OAeG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACN,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAClD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAc1B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/SynchronizedRef.js b/.opencode/node_modules/effect/dist/SynchronizedRef.js index c1dbe977279c3c69db581c7ed1b8e6690f685388..b6efe4fccbd215567fa46b241780cc78ee72dbbb 100644 --- a/.opencode/node_modules/effect/dist/SynchronizedRef.js +++ b/.opencode/node_modules/effect/dist/SynchronizedRef.js @@ -1,4 +1,13 @@ /** + * Stores mutable state whose updates run one at a time. + * + * A `SynchronizedRef` behaves like a `Ref` for reading and simple state + * storage, but update and modify operations are serialized so each change sees + * a consistent current value. This is especially useful when the next value is + * computed by an effect, because the effectful transition is still protected + * from concurrent updates. This module includes constructors, reads, writes, + * updates, partial updates, and effectful update helpers. + * * @since 2.0.0 */ import * as Effect from "./Effect.js"; @@ -19,8 +28,15 @@ const Proto = { } }; /** - * @since 4.0.0 + * Creates a `SynchronizedRef` synchronously from an initial value. + * + * **When to use** + * + * Use when you need synchronous `SynchronizedRef` construction outside an + * Effect workflow. + * * @category constructors + * @since 4.0.0 */ export const makeUnsafe = value => { const self = Object.create(Proto); @@ -29,33 +45,105 @@ export const makeUnsafe = value => { return self; }; /** - * @since 2.0.0 + * Creates a `SynchronizedRef` from an initial value, wrapped in an `Effect`. + * + * **When to use** + * + * Use to create a `SynchronizedRef` inside an Effect program when later updates + * may run effects and must be serialized. + * + * **Details** + * + * The returned effect constructs a fresh `SynchronizedRef` by delegating to + * `makeUnsafe` when the effect is evaluated. + * + * @see {@link makeUnsafe} for synchronous construction when the caller controls safe initialization + * @see {@link Ref.make} for a plain `Ref` when updates do not need effectful synchronization + * * @category constructors + * @since 2.0.0 */ export const make = value => Effect.sync(() => makeUnsafe(value)); /** - * @since 2.0.0 + * Reads the current value synchronously, bypassing the `Effect` API and the + * ref's semaphore. + * + * **When to use** + * + * Use when you need immediate synchronous access to a `SynchronizedRef` value + * in low-level code that can safely read outside an `Effect`. + * + * @see {@link get} for the Effect-wrapped read when composing inside Effect programs + * * @category getters + * @since 4.0.0 */ export const getUnsafe = self => self.backing.ref.current; /** - * @since 2.0.0 + * Returns an `Effect` that reads the current value of the `SynchronizedRef`. + * + * **When to use** + * + * Use to read the current value of a `SynchronizedRef` inside an `Effect` + * program without changing it. + * + * @see {@link getUnsafe} for synchronous reads when the caller controls safe access outside `Effect` + * * @category getters + * @since 2.0.0 */ export const get = self => Effect.sync(() => getUnsafe(self)); /** + * Sets a new value atomically and returns the previous value, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to replace a `SynchronizedRef` with a known value when the previous value + * is also needed. + * + * @see {@link set} for setting a value without returning the previous value + * @see {@link setAndGet} for setting a value and returning the new value + * @see {@link getAndUpdate} for deriving the new value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.getAndSet(self.backing, value))); /** + * Updates the current value atomically with a function and returns the previous + * value, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to run a pure `SynchronizedRef` state update when the previous stored + * value is also needed. + * + * @see {@link update} for updating without returning a value + * @see {@link updateAndGet} for updating and returning the new value + * @see {@link getAndUpdateEffect} for effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.getAndUpdate(self.backing, f))); /** + * Runs an effectful update atomically while holding the ref's semaphore, sets + * the new value if the effect succeeds, and returns the previous value. + * + * **When to use** + * + * Use when you need an effectful `SynchronizedRef` state transition to return + * the previous stored value. + * + * @see {@link getAndUpdate} for pure updates that return the previous value + * @see {@link updateEffect} for effectful updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that return the new value + * @see {@link modifyEffect} for effectful updates with a custom return value + * @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -65,13 +153,37 @@ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, f) => self.semapho }); }))); /** + * Applies a partial update atomically and returns the previous value. If the + * function returns `Option.some`, the ref is updated; if it returns + * `Option.none`, the ref is left unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while applying a pure + * conditional update. + * + * @see {@link getAndUpdate} for always applying a pure update + * @see {@link updateSome} for applying a pure conditional update without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.getAndUpdateSome(self, pf))); /** + * Runs an effectful partial update atomically while holding the ref's semaphore + * and returns the previous value. `Option.some` updates the ref; `Option.none` + * leaves it unchanged. + * + * **When to use** + * + * Use to return the previous `SynchronizedRef` value while running an effectful + * conditional update. + * + * @see {@link getAndUpdateSome} for the pure conditional variant + * @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -84,13 +196,36 @@ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.se }); }))); /** + * Computes a return value and a new ref value atomically, stores the new value, + * and returns the computed result. + * + * **When to use** + * + * Use to derive a separate result and the next stored `SynchronizedRef` value + * from the same current value in one serialized pure update. + * + * @see {@link modifyEffect} for effectfully deriving both the result and next stored value + * @see {@link modifySome} for deriving a result and optionally updating the stored value + * @see {@link updateAndGet} for returning the new stored value instead of a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ export const modify = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.modify(self.backing, f))); /** + * Runs an effectful modification atomically while holding the ref's semaphore, + * stores the new value if the effect succeeds, and returns the computed result. + * + * **When to use** + * + * Use to effectfully compute both a separate return value and the next stored + * `SynchronizedRef` value in one serialized update. + * + * @see {@link modify} for the pure variant + * @see {@link updateEffect} for effectfully storing a new value without a separate result + * + * @category mutations * @since 2.0.0 - * @category utils */ export const modifyEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -100,13 +235,36 @@ export const modifyEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit }); }))); /** + * Computes a return value and an optional new ref value atomically. + * `Option.some` updates the ref; `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to compute a return value while optionally updating a `SynchronizedRef` + * under its semaphore. + * + * @see {@link modify} for always storing a new value + * @see {@link updateSome} for optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const modifySome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.modifySome(self.backing, pf))); /** + * Runs an effectful modification atomically while holding the ref's semaphore. + * The effect computes a return value and an optional new ref value; + * `Option.some` updates the ref and `Option.none` leaves it unchanged. + * + * **When to use** + * + * Use to effectfully compute a return value while optionally updating the + * stored `SynchronizedRef` value. + * + * @see {@link modifySome} for the pure variant + * @see {@link updateSomeEffect} for effectful optional updates without a separate return value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -119,23 +277,70 @@ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphor }); }))); /** + * Sets the value of the `SynchronizedRef`, serialized by the ref's semaphore. + * + * **When to use** + * + * Use to replace the current value of a `SynchronizedRef` with a known value + * while keeping the write serialized with other synchronized updates. + * + * @see {@link getAndSet} for replacing the value when the previous value is needed + * @see {@link setAndGet} for replacing the value when the new value should be returned + * @see {@link update} for deriving the next value from the current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.set(self.backing, value))); /** + * Sets the value of the `SynchronizedRef` and returns the new value. + * + * **When to use** + * + * Use to replace the current `SynchronizedRef` value with a known value and + * return that new value. + * + * @see {@link set} for setting without returning a value + * @see {@link getAndSet} for setting while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.setAndGet(self.backing, value))); /** + * Updates the value of the `SynchronizedRef` with a function, serialized by the + * ref's semaphore. + * + * **When to use** + * + * Use to apply a pure state transition to a `SynchronizedRef` as a serialized + * `Effect`. + * + * @see {@link updateEffect} for effectfully deriving the next value + * @see {@link updateAndGet} for returning the new stored value + * @see {@link getAndUpdate} for returning the previous stored value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const update = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.update(self.backing, f))); /** + * Runs an effectful update while holding the ref's semaphore and stores the new + * value if the effect succeeds. + * + * **When to use** + * + * Use to run an effectful state transition on a `SynchronizedRef` when storing + * the new value is the only result you need. + * + * @see {@link update} for a pure state transition + * @see {@link getAndUpdateEffect} for returning the previous stored value + * @see {@link updateAndGetEffect} for returning the new stored value + * @see {@link modifyEffect} for returning a separate result while storing a new value + * @see {@link updateSomeEffect} for effectfully applying only some state transitions + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -144,13 +349,35 @@ export const updateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit }); }))); /** + * Updates the value of the `SynchronizedRef` with a function and returns the + * new value. + * + * **When to use** + * + * Use to apply a pure `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for updating while returning the previous value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateAndGet(self.backing, f))); /** + * Runs an effectful update while holding the ref's semaphore, stores the new + * value if the effect succeeds, and returns that new value. + * + * **When to use** + * + * Use to run an effectful `SynchronizedRef` state transition and return the new + * stored value. + * + * @see {@link updateEffect} for effectful updates without returning the new value + * @see {@link updateAndGet} for the pure variant + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -160,13 +387,35 @@ export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, f) => self.semapho }); }))); /** + * Applies a partial update to the current value. `Option.some` stores the new + * value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update without returning a + * value. + * + * @see {@link update} for always applying a pure update + * @see {@link updateSomeAndGet} for returning the resulting current value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateSome = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateSome(self.backing, f))); /** + * Runs an effectful partial update while holding the ref's semaphore. + * `Option.some` stores the new value; `Option.none` leaves the ref unchanged. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update without + * returning a value. + * + * @see {@link updateSome} for the pure conditional variant + * @see {@link updateEffect} for effectful updates that always store a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); @@ -178,13 +427,37 @@ export const updateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphor }); }))); /** + * Applies a partial update and returns the resulting current value. + * `Option.some` stores and returns the new value; `Option.none` returns the + * unchanged value. + * + * **When to use** + * + * Use to apply a pure conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSome} for conditional updates without returning a value + * @see {@link updateAndGet} for always applying a pure update and returning the new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.updateSomeAndGet(self.backing, pf))); /** + * Runs an effectful partial update while holding the ref's semaphore and + * returns the resulting current value. `Option.some` stores and returns the new + * value; `Option.none` returns the unchanged value. + * + * **When to use** + * + * Use to run an effectful conditional `SynchronizedRef` update and return the + * resulting current value. + * + * @see {@link updateSomeEffect} for effectful conditional updates without returning a value + * @see {@link updateAndGetEffect} for effectful updates that always store and return a new value + * + * @category mutations * @since 2.0.0 - * @category utils */ export const updateSomeAndGetEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => { const value = getUnsafe(self); diff --git a/.opencode/node_modules/effect/dist/SynchronizedRef.js.map b/.opencode/node_modules/effect/dist/SynchronizedRef.js.map index f2e25ea67cf166f2298b0faa772f34a0dea27507..bc83a1b5371c87c6a966fe8b06b24871db04a286 100644 --- a/.opencode/node_modules/effect/dist/SynchronizedRef.js.map +++ b/.opencode/node_modules/effect/dist/SynchronizedRef.js.map @@ -1 +1 @@ -{"version":3,"file":"SynchronizedRef.js","names":["Effect","dual","PipeInspectableProto","Option","Ref","Semaphore","TypeId","Proto","toJSON","_id","value","backing","ref","current","makeUnsafe","self","Object","create","semaphore","make","sync","getUnsafe","get","getAndSet","withPermit","getAndUpdate","f","getAndUpdateEffect","suspend","map","newValue","getAndUpdateSome","pf","getAndUpdateSomeEffect","flatMap","option","isNone","succeed","modify","modifyEffect","b","a","modifySome","modifySomeEffect","maybeA","set","setAndGet","update","updateEffect","updateAndGet","updateAndGetEffect","updateSome","updateSomeEffect","updateSomeAndGet","updateSomeAndGetEffect"],"sources":["../src/SynchronizedRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,GAAG,MAAM,UAAU;AAC/B,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C,MAAMC,MAAM,GAAG,yBAAyB;AAYxC,MAAMC,KAAK,GAAG;EACZ,GAAGL,oBAAoB;EACvB,CAACI,MAAM,GAAGA,MAAM;EAChBE,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,iBAAiB;MACtBC,KAAK,EAAE,IAAI,CAACC,OAAO,CAACC,GAAG,CAACC;KACzB;EACH;CACD;AAED;;;;AAIA,OAAO,MAAMC,UAAU,GAAOJ,KAAQ,IAAwB;EAC5D,MAAMK,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACV,KAAK,CAAC;EACjCQ,IAAI,CAACG,SAAS,GAAGb,SAAS,CAACS,UAAU,CAAC,CAAC,CAAC;EACxCC,IAAI,CAACJ,OAAO,GAAGP,GAAG,CAACU,UAAU,CAACJ,KAAK,CAAC;EACpC,OAAOK,IAAI;AACb,CAAC;AAED;;;;AAIA,OAAO,MAAMI,IAAI,GAAOT,KAAQ,IAAwCV,MAAM,CAACoB,IAAI,CAAC,MAAMN,UAAU,CAACJ,KAAK,CAAC,CAAC;AAE5G;;;;AAIA,OAAO,MAAMW,SAAS,GAAON,IAAwB,IAAQA,I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MsB,sBAAsB,gBAc/BrD,IAAI,CACN,CAAC,EACD,CAAUc,IAAwB,EAAEiB,EAAmD,KACrFjB,IAAI,CAACG,SAAS,CAACM,UAAU,CAACxB,MAAM,CAAC4B,OAAO,CAAC,MAAK;EAC5C,MAAMlB,KAAK,GAAGW,SAAS,CAACN,IAAI,CAAC;EAC7B,OAAOf,MAAM,CAACkC,OAAO,CAACF,EAAE,CAACtB,KAAK,CAAC,EAAGyB,MAAM,IAAI;IAC1C,IAAIhC,MAAM,CAACiC,MAAM,CAACD,MAAM,CAAC,EAAE;MACzB,OAAOnC,MAAM,CAACqC,OAAO,CAAC3B,KAAK,CAAC;IAC9B;IACAK,IAAI,CAACJ,OAAO,CAACC,GAAG,CAACC,OAAO,GAAGsB,MAAM,CAACzB,KAAK;IACvC,OAAOV,MAAM,CAACqC,OAAO,CAACF,MAAM,CAACzB,KAAK,CAAC;EACrC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC,CACN","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"SynchronizedRef.js","names":["Effect","dual","PipeInspectableProto","Option","Ref","Semaphore","TypeId","Proto","toJSON","_id","value","backing","ref","current","makeUnsafe","self","Object","create","semaphore","make","sync","getUnsafe","get","getAndSet","withPermit","getAndUpdate","f","getAndUpdateEffect","suspend","map","newValue","getAndUpdateSome","pf","getAndUpdateSomeEffect","flatMap","option","isNone","succeed","modify","modifyEffect","b","a","modifySome","modifySomeEffect","maybeA","set","setAndGet","update","updateEffect","updateAndGet","updateAndGetEffect","updateSome","updateSomeEffect","updateSomeAndGet","updateSomeAndGetEffect"],"sources":["../src/SynchronizedRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,GAAG,MAAM,UAAU;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AAM,CAAC4B,OAAO,CAAC,MAAK;EAC5C,MAAMlB,KAAK,GAAGW,SAAS,CAACN,IAAI,CAAC;EAC7B,OAAOf,MAAM,CAACkC,OAAO,CAACF,EAAE,CAACtB,KAAK,CAAC,EAAGyB,MAAM,IAAI;IAC1C,IAAIhC,MAAM,CAACiC,MAAM,CAACD,MAAM,CAAC,EAAE;MACzB,OAAOnC,MAAM,CAACqC,OAAO,CAAC3B,KAAK,CAAC;IAC9B;IACAK,IAAI,CAACJ,OAAO,CAACC,GAAG,CAACC,OAAO,GAAGsB,MAAM,CAACzB,KAAK;IACvC,OAAOV,MAAM,CAACqC,OAAO,CAACF,MAAM,CAACzB,KAAK,CAAC;EACrC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC,CACN","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Take.d.ts b/.opencode/node_modules/effect/dist/Take.d.ts index 8fb64f8b4a429a6e9763adc0bc6f1621eb42375d..247afb196b6cd661c37b911bda33c2afd13d0e36 100644 --- a/.opencode/node_modules/effect/dist/Take.d.ts +++ b/.opencode/node_modules/effect/dist/Take.d.ts @@ -1,17 +1,40 @@ /** + * The `Take` module provides the stored representation of one pull result from + * a stream-like producer. A `Take` is either a non-empty batch of + * emitted values, a failed `Exit`, or a successful `Exit` carrying the + * completion value. + * * @since 2.0.0 */ import type { NonEmptyReadonlyArray } from "./Array.ts"; import * as Exit from "./Exit.ts"; import type * as Pull from "./Pull.ts"; /** + * Represents one pull result: either a non-empty batch of values, a failure + * `Exit`, or a successful `Exit` that signals completion with a `Done` value. + * + * **When to use** + * + * Use to store, transfer, or interpret pull results later while preserving + * emitted values, failures, and normal completion. + * + * @see {@link toPull} for interpreting a `Take` as a `Pull` step + * + * @category models * @since 2.0.0 - * @category Models */ export type Take = NonEmptyReadonlyArray | Exit.Exit; /** + * Converts a `Take` into a `Pull`, succeeding with value batches, failing with + * failure exits, and translating successful exits into pull completion. + * + * **When to use** + * + * Use to interpret a stored or transferred `Take` as a `Pull` step while + * preserving emitted batches, ordinary failures, and completion values. + * + * @category converting * @since 4.0.0 - * @category Conversions */ export declare const toPull: (take: Take) => Pull.Pull, E, Done>; //# sourceMappingURL=Take.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Take.d.ts.map b/.opencode/node_modules/effect/dist/Take.d.ts.map index 2017301712b26c065f1b10490bd7789a9c51c16c..352ddd27bc9f52d493f2c8ade7d3257c8166d1ad 100644 --- a/.opencode/node_modules/effect/dist/Take.d.ts.map +++ b/.opencode/node_modules/effect/dist/Take.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Take.d.ts","sourceRoot":"","sources":["../src/Take.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAA;AAEtC;;;GAGG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,IAAI,GAAG,IAAI,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAG,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAG7E,CAAA"} \ No newline at end of file +{"version":3,"file":"Take.d.ts","sourceRoot":"","sources":["../src/Take.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAA;AAEtC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,IAAI,GAAG,IAAI,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;AAE3F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAG,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAG7E,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Take.js b/.opencode/node_modules/effect/dist/Take.js index c6bae3583f8924330b85ebfd6ae345046c546af6..64309ef80ec3c12908a825e1b23ae0f07cd5be05 100644 --- a/.opencode/node_modules/effect/dist/Take.js +++ b/.opencode/node_modules/effect/dist/Take.js @@ -2,8 +2,16 @@ import * as Cause from "./Cause.js"; import * as Effect from "./Effect.js"; import * as Exit from "./Exit.js"; /** + * Converts a `Take` into a `Pull`, succeeding with value batches, failing with + * failure exits, and translating successful exits into pull completion. + * + * **When to use** + * + * Use to interpret a stored or transferred `Take` as a `Pull` step while + * preserving emitted batches, ordinary failures, and completion values. + * + * @category converting * @since 4.0.0 - * @category Conversions */ export const toPull = take => Exit.isExit(take) ? Exit.isSuccess(take) ? Cause.done(take.value) : take : Effect.succeed(take); //# sourceMappingURL=Take.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Take.js.map b/.opencode/node_modules/effect/dist/Take.js.map index f7ad28af517c20323a46628e58d39fe4e210bbf1..3e2c25db305f48ffc2a8513a9b0f3c8c2b7b5a52 100644 --- a/.opencode/node_modules/effect/dist/Take.js.map +++ b/.opencode/node_modules/effect/dist/Take.js.map @@ -1 +1 @@ -{"version":3,"file":"Take.js","names":["Cause","Effect","Exit","toPull","take","isExit","isSuccess","done","value","succeed"],"sources":["../src/Take.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AASjC;;;;AAIA,OAAO,MAAMC,MAAM,GAAgBC,IAAsB,IACvDF,IAAI,CAACG,MAAM,CAACD,IAAI,CAAC,GACbF,IAAI,CAACI,SAAS,CAACF,IAAI,CAAC,GAAGJ,KAAK,CAACO,IAAI,CAACH,IAAI,CAACI,KAAK,CAAC,GAAIJ,IAA4B,GAC7EH,MAAM,CAACQ,OAAO,CAACL,IAAI,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Take.js","names":["Cause","Effect","Exit","toPull","take","isExit","isSuccess","done","value","succeed"],"sources":["../src/Take.ts"],"sourcesContent":[null],"mappings":"AASA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAmBjC;;;;;;;;;;;;AAYA,OAAO,MAAMC,MAAM,GAAgBC,IAAsB,IACvDF,IAAI,CAACG,MAAM,CAACD,IAAI,CAAC,GACbF,IAAI,CAACI,SAAS,CAACF,IAAI,CAAC,GAAGJ,KAAK,CAACO,IAAI,CAACH,IAAI,CAACI,KAAK,CAAC,GAAIJ,IAA4B,GAC7EH,MAAM,CAACQ,OAAO,CAACL,IAAI,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Terminal.d.ts b/.opencode/node_modules/effect/dist/Terminal.d.ts index 14dbd74546460f1a251183233994e4564ad65026..bf51948fc5845aed8f6ad33e8df0624af1a57752 100644 --- a/.opencode/node_modules/effect/dist/Terminal.d.ts +++ b/.opencode/node_modules/effect/dist/Terminal.d.ts @@ -1,4 +1,12 @@ /** + * Service definition for interactive terminal capabilities. Programs can query + * terminal dimensions, read a line of input, receive low-level key events, and + * display text without depending directly on a specific platform implementation. + * + * This module defines the `Terminal` service, input event shapes, key metadata, + * the `QuitError` used when a user cancels input, a guard for that error, and a + * constructor for custom terminal service implementations. + * * @since 4.0.0 */ import type * as Cause from "./Cause.ts"; @@ -14,8 +22,8 @@ declare const TypeId = "~effect/platform/Terminal"; * A `Terminal` represents a command-line interface which can read input from a * user and display messages to a user. * + * @category models * @since 4.0.0 - * @category Models */ export interface Terminal { readonly [TypeId]: typeof TypeId; @@ -23,6 +31,10 @@ export interface Terminal { * The number of columns available on the platform's terminal interface. */ readonly columns: Effect.Effect; + /** + * The number of rows available on the platform's terminal interface. + */ + readonly rows: Effect.Effect; /** * Reads input events from the default standard input. */ @@ -37,8 +49,11 @@ export interface Terminal { readonly display: (text: string) => Effect.Effect; } /** + * Keyboard key metadata for terminal input, including the key name and + * modifier state. + * + * @category models * @since 4.0.0 - * @category Models */ export interface Key { /** @@ -59,8 +74,18 @@ export interface Key { readonly shift: boolean; } /** + * A terminal input event containing an optional raw character and the parsed + * key that was pressed. + * + * **When to use** + * + * Use when consuming low-level terminal input events from `Terminal.readInput` + * and you need both raw character input and parsed key metadata. + * + * @see {@link Key} for the parsed key metadata stored on each input event + * + * @category models * @since 4.0.0 - * @category Models */ export interface UserInput { /** @@ -77,33 +102,75 @@ declare const QuitError_base: Schema.Class; }>, Cause.YieldableError>; /** - * A `QuitError` represents an error that occurs when a user attempts to + * Represents an error that occurs when a user attempts to * quit out of a `Terminal` prompt for input (usually by entering `ctrl`+`c`). * - * @since 4.0.0 + * **When to use** + * + * Use when implementing terminal input or prompts that need to signal + * user-requested cancellation through the typed error channel. + * + * @see {@link isQuitError} for checking unknown errors when handling terminal cancellation + * * @category QuitError + * @since 4.0.0 */ export declare class QuitError extends QuitError_base { /** + * Marks this value as a terminal quit error for runtime guards. + * * @since 4.0.0 */ readonly [QuitErrorTypeId] = "effect/platform/Terminal/QuitError"; } /** + * Returns `true` if the provided value is a `Terminal.QuitError`. + * + * **When to use** + * + * Use to narrow unknown failures to `QuitError` when handling terminal input + * cancellation. + * + * **Details** + * + * Returns `true` when the value carries the `QuitError` runtime marker and + * narrows it to `QuitError`. + * + * @see {@link QuitError} for the error value produced when terminal input is quit + * + * @category guards * @since 4.0.0 - * @category QuitError */ export declare const isQuitError: (u: unknown) => u is QuitError; /** + * Service tag for command-line input and output services. + * + * **When to use** + * + * Use to access or provide platform terminal capabilities such as reading + * input, writing output, and inspecting terminal dimensions. + * + * @category services * @since 4.0.0 - * @category Services */ export declare const Terminal: Context.Service; /** - * Creates a Terminal implementation + * Creates a `Terminal` service implementation. + * + * **When to use** + * + * Use to construct a custom `Terminal` service implementation from concrete + * terminal capabilities when writing a platform adapter, test implementation, + * or custom runtime service. + * + * **Details** + * + * The implementation object supplies `columns`, `rows`, `readInput`, + * `readLine`, and `display`; `make` attaches the `Terminal` service marker so + * the result can be provided through the `Terminal` context service. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const make: (impl: Omit) => Terminal; export {}; diff --git a/.opencode/node_modules/effect/dist/Terminal.d.ts.map b/.opencode/node_modules/effect/dist/Terminal.d.ts.map index c12faaf4c22e1b04a86083eaf5f3f8137befcf47..e796f1ed1ad8b6b5b29f817c1ddd8d01612a4c91 100644 --- a/.opencode/node_modules/effect/dist/Terminal.d.ts.map +++ b/.opencode/node_modules/effect/dist/Terminal.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Terminal.d.ts","sourceRoot":"","sources":["../src/Terminal.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,C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AC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAA+C,CAAA;AAExG;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI,GACf,MAAM,IAAI,CAAC,QAAQ,EAAE,OAAO,MAAM,CAAC,KAClC,QAAsD,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Terminal.js b/.opencode/node_modules/effect/dist/Terminal.js index ba94c8517ae66e9a027e5259fcacef5cb7cee78c..ed08b3793098887057da0e65a7513b92d9a66dbc 100644 --- a/.opencode/node_modules/effect/dist/Terminal.js +++ b/.opencode/node_modules/effect/dist/Terminal.js @@ -4,35 +4,77 @@ import * as Schema from "./Schema.js"; const TypeId = "~effect/platform/Terminal"; const QuitErrorTypeId = "effect/platform/Terminal/QuitError"; /** - * A `QuitError` represents an error that occurs when a user attempts to + * Represents an error that occurs when a user attempts to * quit out of a `Terminal` prompt for input (usually by entering `ctrl`+`c`). * - * @since 4.0.0 + * **When to use** + * + * Use when implementing terminal input or prompts that need to signal + * user-requested cancellation through the typed error channel. + * + * @see {@link isQuitError} for checking unknown errors when handling terminal cancellation + * * @category QuitError + * @since 4.0.0 */ export class QuitError extends /*#__PURE__*/Schema.ErrorClass("QuitError")({ _tag: /*#__PURE__*/Schema.tag("QuitError") }) { /** + * Marks this value as a terminal quit error for runtime guards. + * * @since 4.0.0 */ [QuitErrorTypeId] = QuitErrorTypeId; } /** + * Returns `true` if the provided value is a `Terminal.QuitError`. + * + * **When to use** + * + * Use to narrow unknown failures to `QuitError` when handling terminal input + * cancellation. + * + * **Details** + * + * Returns `true` when the value carries the `QuitError` runtime marker and + * narrows it to `QuitError`. + * + * @see {@link QuitError} for the error value produced when terminal input is quit + * + * @category guards * @since 4.0.0 - * @category QuitError */ export const isQuitError = u => Predicate.hasProperty(u, QuitErrorTypeId); /** + * Service tag for command-line input and output services. + * + * **When to use** + * + * Use to access or provide platform terminal capabilities such as reading + * input, writing output, and inspecting terminal dimensions. + * + * @category services * @since 4.0.0 - * @category Services */ export const Terminal = /*#__PURE__*/Context.Service("effect/platform/Terminal"); /** - * Creates a Terminal implementation + * Creates a `Terminal` service implementation. + * + * **When to use** + * + * Use to construct a custom `Terminal` service implementation from concrete + * terminal capabilities when writing a platform adapter, test implementation, + * or custom runtime service. + * + * **Details** + * + * The implementation object supplies `columns`, `rows`, `readInput`, + * `readLine`, and `display`; `make` attaches the `Terminal` service marker so + * the result can be provided through the `Terminal` context service. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const make = impl => Terminal.of({ ...impl, diff --git a/.opencode/node_modules/effect/dist/Terminal.js.map b/.opencode/node_modules/effect/dist/Terminal.js.map index 218188ffeb85625d94f4be9091c78ecc63e750d7..838f9fa7b05b7303fce40fb21492101814cfdf91 100644 --- a/.opencode/node_modules/effect/dist/Terminal.js.map +++ b/.opencode/node_modules/effect/dist/Terminal.js.map @@ -1 +1 @@ -{"version":3,"file":"Terminal.js","names":["Context","Predicate","Schema","TypeId","QuitErrorTypeId","QuitError","ErrorClass","_tag","tag","isQuitError","u","hasProperty","Terminal","Service","make","impl","of"],"sources":["../src/Terminal.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAIvC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,MAAMC,MAAM,GAAG,2BAA2B;AAoE1C,MAAMC,eAAe,GAAG,oCAAoC;AAE5D;;;;;;;AAOA,OAAM,MAAOC,SAAU,sBAAQH,MAAM,CAACI,UAAU,CAAY,WAAW,CAAC,CAAC;EACvEC,IAAI,eAAEL,MAAM,CAACM,GAAG,CAAC,WAAW;CAC7B,CAAC;EACA;;;EAGS,CAACJ,eAAe,IAAIA,eAAe;;AAG9C;;;;AAIA,OAAO,MAAMK,WAAW,GAAIC,CAAU,IAAqBT,SAAS,CAACU,WAAW,CAACD,CAAC,EAAEN,eAAe,CAAC;AAEpG;;;;AAIA,OAAO,MAAMQ,QAAQ,gBAAwCZ,OAAO,CAACa,OAAO,CAAC,0BAA0B,CAAC;AAExG;;;;;;AAMA,OAAO,MAAMC,IAAI,GACfC,IAAmC,IACtBH,QAAQ,CAACI,EAAE,CAAC;EAAE,GAAGD,IAAI;EAAE,CAACZ,MAAM,GAAGA;AAAM,CAAE,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Terminal.js","names":["Context","Predicate","Schema","TypeId","QuitErrorTypeId","QuitError","ErrorClass","_tag","tag","isQuitError","u","hasProperty","Terminal","Service","make","impl","of"],"sources":["../src/Terminal.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAIvC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,MAAMC,MAAM,GAAG,2BAA2B;AAsF1C,MAAMC,eAAe,GAAG,oCAAoC;AAE5D;;;;;;;;;;;;;;AAcA,OAAM,MAAOC,SAAU,sBAAQH,MAAM,CAACI,UAAU,CAAY,WAAW,CAAC,CAAC;EACvEC,IAAI,eAAEL,MAAM,CAACM,GAAG,CAAC,WAAW;CAC7B,CAAC;EACA;;;;;EAKS,CAACJ,eAAe,IAAIA,eAAe;;AAG9C;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMK,WAAW,GAAIC,CAAU,IAAqBT,SAAS,CAACU,WAAW,CAACD,CAAC,EAAEN,eAAe,CAAC;AAEpG;;;;;;;;;;;AAWA,OAAO,MAAMQ,QAAQ,gBAAwCZ,OAAO,CAACa,OAAO,CAAC,0BAA0B,CAAC;AAExG;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,IAAI,GACfC,IAAmC,IACtBH,QAAQ,CAACI,EAAE,CAAC;EAAE,GAAGD,IAAI;EAAE,CAACZ,MAAM,GAAGA;AAAM,CAAE,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Tracer.d.ts b/.opencode/node_modules/effect/dist/Tracer.d.ts index 12a7a98a95b5819630ded0af84d7dbad6d287a42..953676e765bb985018597be5c22c0bd38845b3fd 100644 --- a/.opencode/node_modules/effect/dist/Tracer.d.ts +++ b/.opencode/node_modules/effect/dist/Tracer.d.ts @@ -1,4 +1,12 @@ /** + * Defines the low-level tracing model used by Effect. + * + * A span records the lifetime of an operation, including its name, parent, + * attributes, links, annotations, sampling decision, kind, and completion + * status. The module also defines the tracer service, parent-span context, + * external span support, trace propagation settings, and the default in-memory + * span implementation. + * * @since 2.0.0 */ import * as Context from "./Context.ts"; @@ -8,8 +16,12 @@ import { type LazyArg } from "./Function.ts"; import type { LogLevel } from "./LogLevel.ts"; import * as Option from "./Option.ts"; /** - * @since 2.0.0 + * A tracing backend used by Effect to create spans. Custom tracers implement + * `span` to allocate a span from the supplied name, parent, annotations, + * links, start time, kind, root flag, and sampling decision. + * * @category models + * @since 2.0.0 */ export interface Tracer { span(this: Tracer, options: { @@ -26,34 +38,47 @@ export interface Tracer { } declare const evaluate = "~effect/Effect/evaluate"; /** - * @since 4.0.0 + * A low-level Effect primitive that can be evaluated by a tracer-specific + * context for the current fiber. + * * @category models + * @since 4.0.0 */ export interface EffectPrimitive { [evaluate](this: EffectPrimitive, fiber: Fiber): X; } /** - * @since 2.0.0 - * @category models - * @example + * Lifecycle state of a span, where `Started` records the start time and + * `Ended` records the start time, end time, and exit value with which the span + * completed. + * + * **Example** (Creating span statuses) + * * ```ts - * import type { Tracer } from "effect" * import { Exit } from "effect" + * import type { Tracer } from "effect" + * + * const startTime = 1_000_000_000n + * const endTime = 1_500_000_000n * - * // Started span status * const startedStatus: Tracer.SpanStatus = { * _tag: "Started", - * startTime: BigInt(Date.now() * 1000000) + * startTime * } * - * // Ended span status * const endedStatus: Tracer.SpanStatus = { * _tag: "Ended", - * startTime: BigInt(Date.now() * 1000000), - * endTime: BigInt(Date.now() * 1000000 + 1000000), + * startTime, + * endTime, * exit: Exit.succeed("result") * } + * + * console.log(startedStatus._tag) // "Started" + * console.log(endedStatus.endTime - endedStatus.startTime) // 500000000n * ``` + * + * @category models + * @since 2.0.0 */ export type SpanStatus = { _tag: "Started"; @@ -65,9 +90,11 @@ export type SpanStatus = { exit: Exit.Exit; }; /** - * @since 2.0.0 - * @category models - * @example + * A span value that can participate in tracing, either an Effect-managed + * `Span` or an `ExternalSpan` propagated from another tracing system. + * + * **Example** (Accepting any span) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -83,25 +110,39 @@ export type SpanStatus = { * traceId: "trace-456" * }) * ``` + * + * @category models + * @since 2.0.0 */ export type AnySpan = Span | ExternalSpan; /** - * @since 2.0.0 - * @category tags - * @example + * Defines the string key for the parent-span context service. + * + * **When to use** + * + * Use when you need the raw context key for parent span lookup in lower-level + * tracing code. + * + * **Example** (Reading the parent span key) + * * ```ts * import { Tracer } from "effect" * * // The key used to identify parent spans in the context * console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan" * ``` + * + * @category constants + * @since 4.0.0 */ export declare const ParentSpanKey = "effect/Tracer/ParentSpan"; declare const ParentSpan_base: Context.ServiceClass; /** - * @since 2.0.0 - * @category tags - * @example + * Context service containing the `Span` or `ExternalSpan` to use as the parent + * of newly-created child spans. + * + * **Example** (Accessing the parent span) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -111,16 +152,22 @@ declare const ParentSpan_base: Context.ServiceClass; } /** - * @since 3.1.0 - * @category models - * @example + * Options accepted by span-creating APIs, combining span metadata such as + * attributes, links, parent/root selection, kind, sampling, and trace level + * with stack trace capture settings. + * + * **Example** (Configuring span options) + * * ```ts - * import type { Tracer } from "effect" * import { Effect } from "effect" + * import type { Tracer } from "effect" * * // Create an effect with span options * const options: Tracer.SpanOptions = { @@ -161,12 +214,19 @@ export interface ExternalSpan { * Effect.withSpan("my-operation", options) * ) * ``` + * + * @category options + * @since 3.1.0 */ export interface SpanOptions extends SpanOptionsNoTrace, TraceOptions { } /** - * @since 3.1.0 - * @category models + * Span creation options that do not control stack trace capture, including + * attributes, links, parent or root selection, annotations, span kind, + * sampling, and the trace level used for filtering. + * + * @category options + * @since 4.0.0 */ export interface SpanOptionsNoTrace { readonly attributes?: Record | undefined; @@ -179,19 +239,24 @@ export interface SpanOptionsNoTrace { readonly level?: LogLevel | undefined; } /** - * @since 3.1.0 - * @category models + * Options that control stack trace capture for tracing wrappers. + * `captureStackTrace` can disable capture or provide a lazy stack string. + * + * @category options + * @since 4.0.0 */ export interface TraceOptions { readonly captureStackTrace?: boolean | LazyArg | undefined; } /** - * @since 3.1.0 - * @category models - * @example + * OpenTelemetry-style role describing the kind of operation represented by a + * span: internal work, server handling, client calls, producing, or consuming. + * + * **Example** (Configuring span kinds) + * * ```ts - * import type { Tracer } from "effect" * import { Effect } from "effect" + * import type { Tracer } from "effect" * * // Different span kinds for different operations * const serverSpan = Effect.withSpan("handle-request", { @@ -206,23 +271,67 @@ export interface TraceOptions { * kind: "internal" as Tracer.SpanKind * }) * ``` + * + * @category models + * @since 3.1.0 */ export type SpanKind = "internal" | "server" | "client" | "producer" | "consumer"; /** - * @since 2.0.0 - * @category models - * @example + * A span created by an Effect tracer. It carries trace identity, parent, + * annotations, attributes, links, sampling and kind information, lifecycle + * status, and methods to end the span or add attributes, events, and links. + * + * **Example** (Working with spans) + * * ```ts - * import { Effect } from "effect" + * import { Context, Exit, Option } from "effect" + * import type { Tracer } from "effect" * - * // Working with spans using withSpan - * const program = Effect.succeed("Hello World").pipe( - * Effect.withSpan("my-operation") - * ) + * const attributes = new Map() + * const links: Array = [] + * let status: Tracer.SpanStatus = { + * _tag: "Started", + * startTime: 1_000_000_000n + * } + * + * const span: Tracer.Span = { + * _tag: "Span", + * name: "load-user", + * spanId: "span-1", + * traceId: "trace-1", + * parent: Option.none(), + * annotations: Context.empty(), + * get status() { + * return status + * }, + * attributes, + * links, + * sampled: true, + * kind: "internal", + * end(endTime, exit) { + * status = { _tag: "Ended", startTime: status.startTime, endTime, exit } + * }, + * attribute(key, value) { + * attributes.set(key, value) + * }, + * event(name, startTime, eventAttributes = {}) { + * console.log(`${name} at ${startTime} with ${Object.keys(eventAttributes).length} attributes`) + * }, + * addLinks(newLinks) { + * links.push(...newLinks) + * } + * } + * + * span.attribute("user.id", "123") + * span.end(1_500_000_000n, Exit.succeed("user")) * - * // The span interface defines the properties available - * // when working with tracing in your effects + * console.log(span.name) // "load-user" + * console.log(span.attributes.get("user.id")) // "123" + * console.log(span.status._tag) // "Ended" * ``` + * + * @category models + * @since 2.0.0 */ export interface Span { readonly _tag: "Span"; @@ -242,9 +351,11 @@ export interface Span { addLinks(links: ReadonlyArray): void; } /** - * @since 2.0.0 - * @category models - * @example + * A relationship from one span to another span, with attributes describing the + * relationship. + * + * **Example** (Linking spans) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -263,20 +374,41 @@ export interface Span { * Effect.withSpan("linked-operation", { links: [link] }) * ) * ``` + * + * @category models + * @since 2.0.0 */ export interface SpanLink { readonly span: AnySpan; readonly attributes: Readonly>; } /** - * @since 2.0.0 + * Creates a `Tracer` value from a tracer implementation object. + * + * **When to use** + * + * Use to create a custom tracing backend value that Effect can use when + * creating spans. + * + * **Details** + * + * `make` returns the supplied implementation object unchanged. The object must + * satisfy the `Tracer` contract, including a `span` method that returns a + * `Span`. + * + * @see {@link Span} for the span values returned by tracer implementations + * * @category constructors + * @since 2.0.0 */ export declare const make: (options: Tracer) => Tracer; /** - * @since 2.0.0 - * @category constructors - * @example + * Creates an `ExternalSpan` from trace and span identifiers, defaulting + * `sampled` to `true` and annotations to an empty context when they are not + * provided. + * + * **Example** (Creating an external span) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -292,6 +424,9 @@ export declare const make: (options: Tracer) => Tracer; * Effect.withSpan("child-operation", { parent: span }) * ) * ``` + * + * @category constructors + * @since 2.0.0 */ export declare const externalSpan: (options: { readonly spanId: string; @@ -300,9 +435,20 @@ export declare const externalSpan: (options: { readonly annotations?: Context.Context | undefined; }) => ExternalSpan; /** - * @since 3.12.0 - * @category references - * @example + * Context reference for disabling trace propagation. + * + * **When to use** + * + * Use to prevent spans in a scope from propagating tracing context. + * + * **Details** + * + * When enabled on fiber or span annotations, new spans are created as + * non-propagating no-op spans and disabled spans are skipped when deriving a + * parent span. + * + * **Example** (Disabling span propagation) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -313,33 +459,73 @@ export declare const externalSpan: (options: { * Effect.provideService(Tracer.DisablePropagation, true) * ) * ``` + * + * @category references + * @since 3.12.0 */ export declare const DisablePropagation: Context.Reference; /** - * Reference for controlling the current trace level for dynamic filtering. + * Context reference for controlling the current trace level for dynamic filtering. + * + * **When to use** + * + * Use to set the default trace level for spans in a scope when span options do + * not provide `level`. + * + * **Details** + * + * The default value is `"Info"`. Span creation uses `options.level ?? + * CurrentTraceLevel` before applying `MinimumTraceLevel`. + * + * @see {@link MinimumTraceLevel} for the threshold that decides whether spans at that level are sampled * * @category references * @since 4.0.0 */ export declare const CurrentTraceLevel: Context.Reference; /** - * Reference for setting the minimum trace level threshold. Spans and their + * Context reference for setting the minimum trace level threshold. Spans and their * descendants below this level will have their sampling decision forced to * false, preventing them from being exported. * + * **When to use** + * + * Use to set the trace-level threshold that controls whether spans are sampled + * by default. + * + * **Details** + * + * The default value is `"All"`. Span creation compares the span level from + * `options.level ?? CurrentTraceLevel` against this threshold. + * + * **Gotchas** + * + * Explicit `options.sampled` bypasses threshold computation. + * + * @see {@link CurrentTraceLevel} for the default span level used when options do not specify one + * * @category references * @since 4.0.0 */ export declare const MinimumTraceLevel: Context.Reference; /** - * @since 4.0.0 + * Defines the string key for the active tracer context reference. + * + * **When to use** + * + * Use when you need the raw context key for active tracer lookup in lower-level + * tracing code. + * * @category references + * @since 4.0.0 */ export declare const TracerKey = "effect/Tracer"; /** - * @since 4.0.0 - * @category references - * @example + * Context reference for the active tracer service. By default it uses the + * native tracer, which creates `NativeSpan` instances. + * + * **Example** (Accessing the current tracer) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -355,11 +541,26 @@ export declare const TracerKey = "effect/Tracer"; * console.log("Current tracer obtained") * }) * ``` + * + * @category references + * @since 2.0.0 */ export declare const Tracer: Context.Reference; /** - * @since 4.0.0 + * Default in-memory `Span` implementation used by the native tracer. It + * generates span and trace identifiers, stores attributes, events, and links, + * and records `Started` or `Ended` status. + * + * **Details** + * + * The constructor initializes the span with `Started` status, inherits the + * parent trace id or generates a new one, and always generates a new span id. + * Attributes, events, links, and status are then mutated through `Span` methods. + * + * @see {@link Span} for the interface implemented by native spans + * * @category native tracer + * @since 4.0.0 */ export declare class NativeSpan implements Span { readonly _tag = "Span"; diff --git a/.opencode/node_modules/effect/dist/Tracer.d.ts.map b/.opencode/node_modules/effect/dist/Tracer.d.ts.map index ee3004bf934e5a1274ec4e332633052a2e291bec..07c93f2dd7641b9fff8a3269e6181a0a20f57e12 100644 --- a/.opencode/node_modules/effect/dist/Tracer.d.ts.map +++ b/.opencode/node_modules/effect/dist/Tracer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Tracer.d.ts","sourceRoot":"","sources":["../src/Tracer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACvC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,OA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AC,CAAA;IAChC,MAAM,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAK;gBAE9E,OAAO,EAAE;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACvC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC5C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;QACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAC1B;IAiBD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI;IAS7D,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAI5C,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAIlF,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,IAAI;CAI/C"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Tracer.js b/.opencode/node_modules/effect/dist/Tracer.js index 31a073181db3ff9d4bbe15a91cebfdfe0f5340aa..43c7780135c225923b1d13af3c3ee6cbc71206c7 100644 --- a/.opencode/node_modules/effect/dist/Tracer.js +++ b/.opencode/node_modules/effect/dist/Tracer.js @@ -1,4 +1,12 @@ /** + * Defines the low-level tracing model used by Effect. + * + * A span records the lifetime of an operation, including its name, parent, + * attributes, links, annotations, sampling decision, kind, and completion + * status. The module also defines the tracer service, parent-span context, + * external span support, trace propagation settings, and the default in-memory + * span implementation. + * * @since 2.0.0 */ import * as Context from "./Context.js"; @@ -6,21 +14,32 @@ import { constFalse } from "./Function.js"; import * as Option from "./Option.js"; const evaluate = "~effect/Effect/evaluate"; /** - * @since 2.0.0 - * @category tags - * @example + * Defines the string key for the parent-span context service. + * + * **When to use** + * + * Use when you need the raw context key for parent span lookup in lower-level + * tracing code. + * + * **Example** (Reading the parent span key) + * * ```ts * import { Tracer } from "effect" * * // The key used to identify parent spans in the context * console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan" * ``` + * + * @category constants + * @since 4.0.0 */ export const ParentSpanKey = "effect/Tracer/ParentSpan"; /** - * @since 2.0.0 - * @category tags - * @example + * Context service containing the `Span` or `ExternalSpan` to use as the parent + * of newly-created child spans. + * + * **Example** (Accessing the parent span) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -30,17 +49,38 @@ export const ParentSpanKey = "effect/Tracer/ParentSpan"; * console.log(`Parent span: ${parentSpan.spanId}`) * }) * ``` + * + * @category services + * @since 2.0.0 */ export class ParentSpan extends /*#__PURE__*/Context.Service()(ParentSpanKey) {} /** - * @since 2.0.0 + * Creates a `Tracer` value from a tracer implementation object. + * + * **When to use** + * + * Use to create a custom tracing backend value that Effect can use when + * creating spans. + * + * **Details** + * + * `make` returns the supplied implementation object unchanged. The object must + * satisfy the `Tracer` contract, including a `span` method that returns a + * `Span`. + * + * @see {@link Span} for the span values returned by tracer implementations + * * @category constructors + * @since 2.0.0 */ export const make = options => options; /** - * @since 2.0.0 - * @category constructors - * @example + * Creates an `ExternalSpan` from trace and span identifiers, defaulting + * `sampled` to `true` and annotations to an empty context when they are not + * provided. + * + * **Example** (Creating an external span) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -56,6 +96,9 @@ export const make = options => options; * Effect.withSpan("child-operation", { parent: span }) * ) * ``` + * + * @category constructors + * @since 2.0.0 */ export const externalSpan = options => ({ _tag: "ExternalSpan", @@ -65,9 +108,20 @@ export const externalSpan = options => ({ annotations: options.annotations ?? Context.empty() }); /** - * @since 3.12.0 - * @category references - * @example + * Context reference for disabling trace propagation. + * + * **When to use** + * + * Use to prevent spans in a scope from propagating tracing context. + * + * **Details** + * + * When enabled on fiber or span annotations, new spans are created as + * non-propagating no-op spans and disabled spans are skipped when deriving a + * parent span. + * + * **Example** (Disabling span propagation) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -78,12 +132,27 @@ export const externalSpan = options => ({ * Effect.provideService(Tracer.DisablePropagation, true) * ) * ``` + * + * @category references + * @since 3.12.0 */ export const DisablePropagation = /*#__PURE__*/Context.Reference("effect/Tracer/DisablePropagation", { defaultValue: constFalse }); /** - * Reference for controlling the current trace level for dynamic filtering. + * Context reference for controlling the current trace level for dynamic filtering. + * + * **When to use** + * + * Use to set the default trace level for spans in a scope when span options do + * not provide `level`. + * + * **Details** + * + * The default value is `"Info"`. Span creation uses `options.level ?? + * CurrentTraceLevel` before applying `MinimumTraceLevel`. + * + * @see {@link MinimumTraceLevel} for the threshold that decides whether spans at that level are sampled * * @category references * @since 4.0.0 @@ -92,10 +161,26 @@ export const CurrentTraceLevel = /*#__PURE__*/Context.Reference("effect/Tracer/C defaultValue: () => "Info" }); /** - * Reference for setting the minimum trace level threshold. Spans and their + * Context reference for setting the minimum trace level threshold. Spans and their * descendants below this level will have their sampling decision forced to * false, preventing them from being exported. * + * **When to use** + * + * Use to set the trace-level threshold that controls whether spans are sampled + * by default. + * + * **Details** + * + * The default value is `"All"`. Span creation compares the span level from + * `options.level ?? CurrentTraceLevel` against this threshold. + * + * **Gotchas** + * + * Explicit `options.sampled` bypasses threshold computation. + * + * @see {@link CurrentTraceLevel} for the default span level used when options do not specify one + * * @category references * @since 4.0.0 */ @@ -103,14 +188,23 @@ export const MinimumTraceLevel = /*#__PURE__*/Context.Reference("effect/Tracer/M defaultValue: () => "All" }); /** - * @since 4.0.0 + * Defines the string key for the active tracer context reference. + * + * **When to use** + * + * Use when you need the raw context key for active tracer lookup in lower-level + * tracing code. + * * @category references + * @since 4.0.0 */ export const TracerKey = "effect/Tracer"; /** - * @since 4.0.0 - * @category references - * @example + * Context reference for the active tracer service. By default it uses the + * native tracer, which creates `NativeSpan` instances. + * + * **Example** (Accessing the current tracer) + * * ```ts * import { Effect, Tracer } from "effect" * @@ -126,6 +220,9 @@ export const TracerKey = "effect/Tracer"; * console.log("Current tracer obtained") * }) * ``` + * + * @category references + * @since 2.0.0 */ export const Tracer = /*#__PURE__*/Context.Reference(TracerKey, { defaultValue: () => make({ @@ -133,8 +230,20 @@ export const Tracer = /*#__PURE__*/Context.Reference(TracerKey, { }) }); /** - * @since 4.0.0 + * Default in-memory `Span` implementation used by the native tracer. It + * generates span and trace identifiers, stores attributes, events, and links, + * and records `Started` or `Ended` status. + * + * **Details** + * + * The constructor initializes the span with `Started` status, inherits the + * parent trace id or generates a new one, and always generates a new span id. + * Attributes, events, links, and status are then mutated through `Span` methods. + * + * @see {@link Span} for the interface implemented by native spans + * * @category native tracer + * @since 4.0.0 */ export class NativeSpan { _tag = "Span"; diff --git a/.opencode/node_modules/effect/dist/Tracer.js.map b/.opencode/node_modules/effect/dist/Tracer.js.map index eae662bab0826b12d5db334ff3d2e331033fc246..091b8dba842a2528eb94c29167140de9d8b1e83b 100644 --- a/.opencode/node_modules/effect/dist/Tracer.js.map +++ b/.opencode/node_modules/effect/dist/Tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"Tracer.js","names":["Context","constFalse","Option","evaluate","ParentSpanKey","ParentSpan","Service","make","options","externalSpan","_tag","spanId","traceId","sampled","annotations","empty","DisablePropagation","Reference","defaultValue","CurrentTraceLevel","MinimumTraceLevel","TracerKey","Tracer","span","NativeSpan","name","parent","links","startTime","kind","status","attributes","events","constructor","Map","getOrUndefined","randomHexString","end","endTime","exit","attribute","key","value","set","event","push","addLinks","characters","charactersLength","length","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,MAAM,GAAG;MACZpB,IAAI,EAAE,OAAO;MACb4B,OAAO;MACPC,IAAI;MACJX,SAAS,EAAE,IAAI,CAACE,MAAM,CAACF;KACxB;EACH;EAEAY,SAASA,CAACC,GAAW,EAAEC,KAAc;IACnC,IAAI,CAACX,UAAU,CAACY,GAAG,CAACF,GAAG,EAAEC,KAAK,CAAC;EACjC;EAEAE,KAAKA,CAACnB,IAAY,EAAEG,SAAiB,EAAEG,UAAoC;IACzE,IAAI,CAACC,MAAM,CAACa,IAAI,CAAC,CAACpB,IAAI,EAAEG,SAAS,EAAEG,UAAU,IAAI,EAAE,CAAC,CAAC;EACvD;EAEAe,QAAQA,CAACnB,KAA8B;IACrC;IACA,IAAI,CAACA,KAAK,CAACkB,IAAI,CAAC,GAAGlB,KAAK,CAAC;EAC3B;;AAGF,MAAMS,eAAe,gBAAI;EACvB,MAAMW,UAAU,GAAG,kBAAkB;EACrC,MAAMC,gBAAgB,GAAGD,UAAU,CAACE,MAAM;EAC1C,OAAO,UAASA,MAAc;IAC5B,IAAIC,MAAM,GAAG,EAAE;IACf,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,MAAM,EAAEE,CAAC,EAAE,EAAE;MAC/BD,MAAM,IAAIH,UAAU,CAACK,MAAM,CAACC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,EAAE,GAAGP,gBAAgB,CAAC,CAAC;IAC3E;IACA,OAAOE,MAAM;EACf,CAAC;AACH,CAAC,CAAC,CAAE","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Tracer.js","names":["Context","constFalse","Option","evaluate","ParentSpanKey","ParentSpan","Service","make","options","externalSpan","_tag","spanId","traceId","sampled","annotations","empty","DisablePropagation","Reference","defaultValue","CurrentTraceLevel","MinimumTraceLevel","TracerKey","Tracer","span","NativeSpan","name","parent","links","startTime","kind","status","attributes","events","constructor","Map","getOrUndefined","randomHexString","end","endTime","exit","attribute","key","value","set","event","push","addLinks","characters","charactersLength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AAe,CAAC,EAAE,CAAC;IACpF,IAAI,CAACzB,MAAM,GAAGyB,eAAe,CAAC,EAAE,CAAC;EACnC;EAEAC,GAAGA,CAACC,OAAe,EAAEC,IAAiC;IACpD,IAAI,CAACT,MAAM,GAAG;MACZpB,IAAI,EAAE,OAAO;MACb4B,OAAO;MACPC,IAAI;MACJX,SAAS,EAAE,IAAI,CAACE,MAAM,CAACF;KACxB;EACH;EAEAY,SAASA,CAACC,GAAW,EAAEC,KAAc;IACnC,IAAI,CAACX,UAAU,CAACY,GAAG,CAACF,GAAG,EAAEC,KAAK,CAAC;EACjC;EAEAE,KAAKA,CAACnB,IAAY,EAAEG,SAAiB,EAAEG,UAAoC;IACzE,IAAI,CAACC,MAAM,CAACa,IAAI,CAAC,CAACpB,IAAI,EAAEG,SAAS,EAAEG,UAAU,IAAI,EAAE,CAAC,CAAC;EACvD;EAEAe,QAAQA,CAACnB,KAA8B;IACrC;IACA,IAAI,CAACA,KAAK,CAACkB,IAAI,CAAC,GAAGlB,KAAK,CAAC;EAC3B;;AAGF,MAAMS,eAAe,gBAAI;EACvB,MAAMW,UAAU,GAAG,kBAAkB;EACrC,MAAMC,gBAAgB,GAAGD,UAAU,CAACE,MAAM;EAC1C,OAAO,UAASA,MAAc;IAC5B,IAAIC,MAAM,GAAG,EAAE;IACf,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,MAAM,EAAEE,CAAC,EAAE,EAAE;MAC/BD,MAAM,IAAIH,UAAU,CAACK,MAAM,CAACC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,EAAE,GAAGP,gBAAgB,CAAC,CAAC;IAC3E;IACA,OAAOE,MAAM;EACf,CAAC;AACH,CAAC,CAAC,CAAE","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Trie.d.ts b/.opencode/node_modules/effect/dist/Trie.d.ts index d05e36dbedf13bf922d155761e303971fbdfe095..c33142e2653b0cbae2ec4ea564abe60d683b4acc 100644 --- a/.opencode/node_modules/effect/dist/Trie.d.ts +++ b/.opencode/node_modules/effect/dist/Trie.d.ts @@ -1,17 +1,11 @@ /** - * A `Trie` is used for locating specific `string` keys from within a set. + * Stores string-keyed values in an immutable prefix tree. * - * It works similar to `HashMap`, but with keys required to be `string`. - * This constraint unlocks some performance optimizations and new methods to get string prefixes (e.g. `keysWithPrefix`, `longestPrefixOf`). - * - * Prefix search is also the main feature that makes a `Trie` more suited than `HashMap` for certain usecases. - * - * A `Trie` is often used to store a dictionary (list of words) that can be searched - * in a manner that allows for efficient generation of completion lists - * (e.g. predict the rest of a word a user is typing). - * - * A `Trie` has O(n) lookup time where `n` is the size of the key, - * or even less than `n` on search misses. + * A `Trie` is similar to a map whose keys are strings, but it is built + * for looking up keys by prefix. It is useful for autocomplete, route tables, + * dictionaries, and command lookup. Updates return new tries, and the module + * includes exact lookup, prefix lookup, longest-prefix lookup, iteration, + * mapping, filtering, reducing, and traversal helpers. * * @since 2.0.0 */ @@ -23,9 +17,14 @@ import type { Result } from "./Result.ts"; import type { Covariant, NoInfer } from "./Types.ts"; declare const TypeId = "~effect/collections/Trie"; /** - * @example + * An immutable string-keyed map optimized for prefix lookup. Iteration yields + * `[key, value]` pairs in key order, and update operations such as insert and + * remove return new `Trie` values. + * + * **Example** (Using a trie for prefix search) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * * // Create a trie with string-to-number mappings * const trie: Trie.Trie = Trie.make( @@ -56,8 +55,8 @@ declare const TypeId = "~effect/collections/Trie"; * console.log(Trie.size(trie)) // 4 * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Trie extends Iterable<[string, Value]>, Equal, Pipeable, Inspectable { readonly [TypeId]: { @@ -67,9 +66,10 @@ export interface Trie extends Iterable<[string, Value]>, Equal, Pi /** * Creates an empty `Trie`. * - * @example + * **Example** (Creating an empty trie) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty() @@ -78,17 +78,17 @@ export interface Trie extends Iterable<[string, Value]>, Equal, Pi * assert.deepStrictEqual(Array.from(trie), []) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const empty: () => Trie; /** * Creates a new `Trie` from an iterable collection of key/value pairs (e.g. `Array<[string, V]>`). * - * @example + * **Example** (Creating a trie from entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const iterable: Array = [["call", 0], ["me", 1], [ @@ -111,17 +111,17 @@ export declare const empty: () => Trie; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const fromIterable: (entries: Iterable) => Trie; /** * Constructs a new `Trie` from the specified entries (`[string, V]`). * - * @example + * **Example** (Constructing a trie from entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.make(["ca", 0], ["me", 1]) @@ -133,16 +133,17 @@ export declare const fromIterable: (entries: Iterable) * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: >(...entries: Entries) => Trie; /** - * Insert a new entry in the `Trie`. + * Inserts a new entry in the `Trie`. + * + * **Example** (Inserting entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie1 = Trie.empty().pipe( @@ -161,16 +162,17 @@ export declare const make: >(...en * ]]) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const insert: { /** - * Insert a new entry in the `Trie`. + * Inserts a new entry in the `Trie`. + * + * **Example** (Inserting entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie1 = Trie.empty().pipe( @@ -189,16 +191,17 @@ export declare const insert: { * ]]) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (key: string, value: V): (self: Trie) => Trie; /** - * Insert a new entry in the `Trie`. + * Inserts a new entry in the `Trie`. + * + * **Example** (Inserting entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie1 = Trie.empty().pipe( @@ -217,19 +220,22 @@ export declare const insert: { * ]]) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: Trie, key: string, value: V): Trie; }; /** * Returns an `IterableIterator` of the keys within the `Trie`. * + * **Details** + * * The keys are returned in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading keys in alphabetical order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -242,18 +248,21 @@ export declare const insert: { * assert.deepStrictEqual(result, ["abc", "bca", "cab"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const keys: (self: Trie) => IterableIterator; /** * Returns an `IterableIterator` of the values within the `Trie`. * + * **Details** + * * Values are ordered based on their key in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading values by key order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -266,18 +275,21 @@ export declare const keys: (self: Trie) => IterableIterator; * assert.deepStrictEqual(result, [2, 0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const values: (self: Trie) => IterableIterator; /** * Returns an `IterableIterator` of the entries within the `Trie`. * + * **Details** + * * The entries are returned by keys in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading entries in alphabetical order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -289,18 +301,21 @@ export declare const values: (self: Trie) => IterableIterator; * assert.deepStrictEqual(result, [["call", 0], ["me", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const entries: (self: Trie) => IterableIterator<[string, V]>; /** - * Returns an `Array<[K, V]>` of the entries within the `Trie`. + * Returns an `Array<[string, V]>` of the entries within the `Trie`. + * + * **Details** * * Equivalent to `Array.from(Trie.entries(trie))`. * - * @example + * **Example** (Converting entries to an array) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -312,17 +327,18 @@ export declare const entries: (self: Trie) => IterableIterator<[string, V] * assert.deepStrictEqual(result, [["call", 0], ["me", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const toEntries: (self: Trie) => Array<[string, V]>; /** * Returns an `IterableIterator` of the keys within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding keys with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -336,17 +352,18 @@ export declare const toEntries: (self: Trie) => Array<[string, V]>; * assert.deepStrictEqual(result, ["she", "shells"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const keysWithPrefix: { /** * Returns an `IterableIterator` of the keys within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding keys with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -360,17 +377,18 @@ export declare const keysWithPrefix: { * assert.deepStrictEqual(result, ["she", "shells"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (prefix: string): (self: Trie) => IterableIterator; /** * Returns an `IterableIterator` of the keys within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding keys with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -384,8 +402,8 @@ export declare const keysWithPrefix: { * assert.deepStrictEqual(result, ["she", "shells"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: Trie, prefix: string): IterableIterator; }; @@ -393,9 +411,10 @@ export declare const keysWithPrefix: { * Returns an `IterableIterator` of the values within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding values with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -411,17 +430,18 @@ export declare const keysWithPrefix: { * assert.deepStrictEqual(result, [0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const valuesWithPrefix: { /** * Returns an `IterableIterator` of the values within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding values with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -437,17 +457,18 @@ export declare const valuesWithPrefix: { * assert.deepStrictEqual(result, [0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (prefix: string): (self: Trie) => IterableIterator; /** * Returns an `IterableIterator` of the values within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding values with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -463,8 +484,8 @@ export declare const valuesWithPrefix: { * assert.deepStrictEqual(result, [0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: Trie, prefix: string): IterableIterator; }; @@ -472,9 +493,10 @@ export declare const valuesWithPrefix: { * Returns an `IterableIterator` of the entries within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding entries with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -488,17 +510,18 @@ export declare const valuesWithPrefix: { * assert.deepStrictEqual(result, [["she", 0], ["shells", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const entriesWithPrefix: { /** * Returns an `IterableIterator` of the entries within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding entries with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -512,17 +535,18 @@ export declare const entriesWithPrefix: { * assert.deepStrictEqual(result, [["she", 0], ["shells", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (prefix: string): (self: Trie) => IterableIterator<[string, V]>; /** * Returns an `IterableIterator` of the entries within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding entries with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -536,18 +560,19 @@ export declare const entriesWithPrefix: { * assert.deepStrictEqual(result, [["she", 0], ["shells", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: Trie, prefix: string): IterableIterator<[string, V]>; }; /** - * Returns `Array<[K, V]>` of the entries within the `Trie` - * that have `prefix` as prefix (`prefix` included if it exists). + * Returns an `Array<[string, V]>` of the entries within the `Trie` whose keys + * start with `prefix`, including the entry for `prefix` itself when it exists. + * + * **Example** (Converting prefixed entries to an array) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -561,17 +586,18 @@ export declare const entriesWithPrefix: { * assert.deepStrictEqual(result, [["she", 3], ["shells", 0]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const toEntriesWithPrefix: { /** - * Returns `Array<[K, V]>` of the entries within the `Trie` - * that have `prefix` as prefix (`prefix` included if it exists). + * Returns an `Array<[string, V]>` of the entries within the `Trie` whose keys + * start with `prefix`, including the entry for `prefix` itself when it exists. + * + * **Example** (Converting prefixed entries to an array) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -585,17 +611,18 @@ export declare const toEntriesWithPrefix: { * assert.deepStrictEqual(result, [["she", 3], ["shells", 0]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (prefix: string): (self: Trie) => Array<[string, V]>; /** - * Returns `Array<[K, V]>` of the entries within the `Trie` - * that have `prefix` as prefix (`prefix` included if it exists). + * Returns an `Array<[string, V]>` of the entries within the `Trie` whose keys + * start with `prefix`, including the entry for `prefix` itself when it exists. + * + * **Example** (Converting prefixed entries to an array) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -609,8 +636,8 @@ export declare const toEntriesWithPrefix: { * assert.deepStrictEqual(result, [["she", 3], ["shells", 0]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: Trie, prefix: string): Array<[string, V]>; }; @@ -618,9 +645,10 @@ export declare const toEntriesWithPrefix: { * Returns the longest key/value in the `Trie` * that is a prefix of that `key` if it exists, `None` otherwise. * - * @example + * **Example** (Finding the longest prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -639,17 +667,18 @@ export declare const toEntriesWithPrefix: { * } * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const longestPrefixOf: { /** * Returns the longest key/value in the `Trie` * that is a prefix of that `key` if it exists, `None` otherwise. * - * @example + * **Example** (Finding the longest prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -668,17 +697,18 @@ export declare const longestPrefixOf: { * } * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (key: string): (self: Trie) => Option<[string, V]>; /** * Returns the longest key/value in the `Trie` * that is a prefix of that `key` if it exists, `None` otherwise. * - * @example + * **Example** (Finding the longest prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -697,17 +727,18 @@ export declare const longestPrefixOf: { * } * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ (self: Trie, key: string): Option<[string, V]>; }; /** * Returns the size of the `Trie` (number of entries in the `Trie`). * - * @example + * **Example** (Getting the size) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -718,17 +749,17 @@ export declare const longestPrefixOf: { * assert.equal(Trie.size(trie), 2) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const size: (self: Trie) => number; /** - * Safely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` safely. + * + * **Example** (Looking up values safely) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -748,17 +779,17 @@ export declare const size: (self: Trie) => number; * assert.deepStrictEqual(Trie.get(trie, "mea"), Option.none()) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const get: { /** - * Safely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` safely. + * + * **Example** (Looking up values safely) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -778,17 +809,17 @@ export declare const get: { * assert.deepStrictEqual(Trie.get(trie, "mea"), Option.none()) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (key: string): (self: Trie) => Option; /** - * Safely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` safely. + * + * **Example** (Looking up values safely) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -808,17 +839,18 @@ export declare const get: { * assert.deepStrictEqual(Trie.get(trie, "mea"), Option.none()) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Trie, key: string): Option; }; /** - * Check if the given key exists in the `Trie`. + * Checks whether the given key exists in the `Trie`. + * + * **Example** (Checking key membership) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -838,16 +870,17 @@ export declare const get: { * assert.equal(Trie.has(trie, "mea"), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const has: { /** - * Check if the given key exists in the `Trie`. + * Checks whether the given key exists in the `Trie`. + * + * **Example** (Checking key membership) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -867,16 +900,17 @@ export declare const has: { * assert.equal(Trie.has(trie, "mea"), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (key: string): (self: Trie) => boolean; /** - * Check if the given key exists in the `Trie`. + * Checks whether the given key exists in the `Trie`. + * + * **Example** (Checking key membership) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -896,17 +930,18 @@ export declare const has: { * assert.equal(Trie.has(trie, "mea"), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Trie, key: string): boolean; }; /** - * Checks if the `Trie` contains any entries. + * Returns `true` when the `Trie` contains no entries. + * + * **Example** (Checking whether a trie is empty) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty() @@ -916,19 +951,27 @@ export declare const has: { * assert.equal(Trie.isEmpty(trie1), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const isEmpty: (self: Trie) => boolean; /** - * Unsafely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` unsafely. + * + * **When to use** + * + * Use when the trie key is known to exist and a missing key should be treated + * as a programming error. + * + * **Gotchas** * - * `getUnsafe` will throw if the key is not found. Use `get` instead to safely - * get a value from the `Trie`. + * `getUnsafe` throws if the key is not found. Use `get` instead to safely get + * a value from the `Trie`. + * + * **Example** (Looking up values unsafely) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -939,19 +982,27 @@ export declare const isEmpty: (self: Trie) => boolean; * assert.throws(() => Trie.getUnsafe(trie, "mae")) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const getUnsafe: { /** - * Unsafely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` unsafely. + * + * **When to use** + * + * Use when the trie key is known to exist and a missing key should be treated + * as a programming error. * - * `getUnsafe` will throw if the key is not found. Use `get` instead to safely - * get a value from the `Trie`. + * **Gotchas** + * + * `getUnsafe` throws if the key is not found. Use `get` instead to safely get + * a value from the `Trie`. + * + * **Example** (Looking up values unsafely) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -962,19 +1013,27 @@ export declare const getUnsafe: { * assert.throws(() => Trie.getUnsafe(trie, "mae")) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (key: string): (self: Trie) => V; /** - * Unsafely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` unsafely. * - * `getUnsafe` will throw if the key is not found. Use `get` instead to safely - * get a value from the `Trie`. + * **When to use** + * + * Use when the trie key is known to exist and a missing key should be treated + * as a programming error. + * + * **Gotchas** + * + * `getUnsafe` throws if the key is not found. Use `get` instead to safely get + * a value from the `Trie`. + * + * **Example** (Looking up values unsafely) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -985,18 +1044,18 @@ export declare const getUnsafe: { * assert.throws(() => Trie.getUnsafe(trie, "mae")) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (self: Trie, key: string): V; }; /** - * Remove the entry for the specified key in the `Trie`. + * Removes the entry for the specified key in the `Trie`. + * + * **Example** (Removing entries) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1014,17 +1073,17 @@ export declare const getUnsafe: { * assert.deepStrictEqual(Trie.get(trie2, "call"), Option.none()) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const remove: { /** - * Remove the entry for the specified key in the `Trie`. + * Removes the entry for the specified key in the `Trie`. + * + * **Example** (Removing entries) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1042,17 +1101,17 @@ export declare const remove: { * assert.deepStrictEqual(Trie.get(trie2, "call"), Option.none()) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (key: string): (self: Trie) => Trie; /** - * Remove the entry for the specified key in the `Trie`. + * Removes the entry for the specified key in the `Trie`. + * + * **Example** (Removing entries) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1070,17 +1129,18 @@ export declare const remove: { * assert.deepStrictEqual(Trie.get(trie2, "call"), Option.none()) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: Trie, key: string): Trie; }; /** - * Reduce a state over the entries of the `Trie`. + * Reduces a state over the entries of the `Trie`. + * + * **Example** (Reducing entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1109,16 +1169,17 @@ export declare const remove: { * ) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const reduce: { /** - * Reduce a state over the entries of the `Trie`. + * Reduces a state over the entries of the `Trie`. + * + * **Example** (Reducing entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1147,16 +1208,17 @@ export declare const reduce: { * ) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (zero: Z, f: (accumulator: Z, value: V, key: string) => Z): (self: Trie) => Z; /** - * Reduce a state over the entries of the `Trie`. + * Reduces a state over the entries of the `Trie`. + * + * **Example** (Reducing entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1185,18 +1247,18 @@ export declare const reduce: { * ) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (self: Trie, zero: Z, f: (accumulator: Z, value: V, key: string) => Z): Z; }; /** * Maps over the entries of the `Trie` using the specified function. * - * @example + * **Example** (Mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1221,17 +1283,17 @@ export declare const reduce: { * assert.equal(Equal.equals(Trie.map(trie, (_, k) => k.length), trieMapK), true) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const map: { /** * Maps over the entries of the `Trie` using the specified function. * - * @example + * **Example** (Mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1256,17 +1318,17 @@ export declare const map: { * assert.equal(Equal.equals(Trie.map(trie, (_, k) => k.length), trieMapK), true) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (f: (value: V, key: string) => A): (self: Trie) => Trie; /** * Maps over the entries of the `Trie` using the specified function. * - * @example + * **Example** (Mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1291,18 +1353,18 @@ export declare const map: { * assert.equal(Equal.equals(Trie.map(trie, (_, k) => k.length), trieMapK), true) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (self: Trie, f: (value: V, key: string) => A): Trie; }; /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1327,17 +1389,17 @@ export declare const map: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const filter: { /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1362,17 +1424,17 @@ export declare const filter: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (f: (a: NoInfer, k: string) => a is B): (self: Trie) => Trie; /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1397,17 +1459,17 @@ export declare const filter: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (f: (a: NoInfer, k: string) => boolean): (self: Trie) => Trie; /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1432,17 +1494,17 @@ export declare const filter: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Trie, f: (a: A, k: string) => a is B): Trie; /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1467,8 +1529,8 @@ export declare const filter: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Trie, f: (a: A, k: string) => boolean): Trie; }; @@ -1476,11 +1538,10 @@ export declare const filter: { * Maps over the entries of the `Trie` using the specified filter and keeps * only successful results. * - * @example + * **Example** (Filtering and mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Result from "effect/Result" - * import * as Trie from "effect/Trie" + * import { Equal, Result, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1517,19 +1578,18 @@ export declare const filter: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const filterMap: { /** * Maps over the entries of the `Trie` using the specified filter and keeps * only successful results. * - * @example + * **Example** (Filtering and mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Result from "effect/Result" - * import * as Trie from "effect/Trie" + * import { Equal, Result, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1566,19 +1626,18 @@ export declare const filterMap: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (f: (input: A, key: string) => Result): (self: Trie) => Trie; /** * Maps over the entries of the `Trie` using the specified filter and keeps * only successful results. * - * @example + * **Example** (Filtering and mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Result from "effect/Result" - * import * as Trie from "effect/Trie" + * import { Equal, Result, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1615,19 +1674,18 @@ export declare const filterMap: { * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Trie, f: (input: A, key: string) => Result): Trie; }; /** * Filters out `None` values from a `Trie` of `Options`s. * - * @example + * **Example** (Compacting optional values) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty>().pipe( @@ -1644,16 +1702,17 @@ export declare const filterMap: { * assert.equal(Equal.equals(Trie.compact(trie), trieMapV), true) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const compact: (self: Trie>) => Trie; /** * Applies the specified function to the entries of the `Trie`. * - * @example + * **Example** (Iterating over entries) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * let value = 0 @@ -1670,16 +1729,17 @@ export declare const compact: (self: Trie>) => Trie; * assert.equal(value, 17) * ``` * - * @since 2.0.0 * @category traversing + * @since 2.0.0 */ export declare const forEach: { /** * Applies the specified function to the entries of the `Trie`. * - * @example + * **Example** (Iterating over entries) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * let value = 0 @@ -1696,16 +1756,17 @@ export declare const forEach: { * assert.equal(value, 17) * ``` * - * @since 2.0.0 * @category traversing + * @since 2.0.0 */ (f: (value: V, key: string) => void): (self: Trie) => void; /** * Applies the specified function to the entries of the `Trie`. * - * @example + * **Example** (Iterating over entries) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * let value = 0 @@ -1722,19 +1783,18 @@ export declare const forEach: { * assert.equal(value, 17) * ``` * - * @since 2.0.0 * @category traversing + * @since 2.0.0 */ (self: Trie, f: (value: V, key: string) => void): void; }; /** * Updates the value of the specified key within the `Trie` if it exists. * - * @example + * **Example** (Modifying an existing value) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1751,18 +1811,17 @@ export declare const forEach: { * assert.equal(Equal.equals(trie.pipe(Trie.modify("me", (v) => v)), trie), true) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const modify: { /** * Updates the value of the specified key within the `Trie` if it exists. * - * @example + * **Example** (Modifying an existing value) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1779,18 +1838,17 @@ export declare const modify: { * assert.equal(Equal.equals(trie.pipe(Trie.modify("me", (v) => v)), trie), true) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (key: string, f: (v: V) => V): (self: Trie) => Trie; /** * Updates the value of the specified key within the `Trie` if it exists. * - * @example + * **Example** (Modifying an existing value) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1807,18 +1865,18 @@ export declare const modify: { * assert.equal(Equal.equals(trie.pipe(Trie.modify("me", (v) => v)), trie), true) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: Trie, key: string, f: (v: V) => V): Trie; }; /** * Removes all entries in the `Trie` which have the specified keys. * - * @example + * **Example** (Removing multiple entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1836,17 +1894,17 @@ export declare const modify: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const removeMany: { /** * Removes all entries in the `Trie` which have the specified keys. * - * @example + * **Example** (Removing multiple entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1864,17 +1922,17 @@ export declare const removeMany: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (keys: Iterable): (self: Trie) => Trie; /** * Removes all entries in the `Trie` which have the specified keys. * - * @example + * **Example** (Removing multiple entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1892,18 +1950,18 @@ export declare const removeMany: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: Trie, keys: Iterable): Trie; }; /** - * Insert multiple entries in the `Trie` at once. + * Inserts multiple entries in the `Trie` at once. + * + * **Example** (Inserting multiple entries) * - * @example * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1925,17 +1983,17 @@ export declare const removeMany: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const insertMany: { /** - * Insert multiple entries in the `Trie` at once. + * Inserts multiple entries in the `Trie` at once. + * + * **Example** (Inserting multiple entries) * - * @example * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1957,17 +2015,17 @@ export declare const insertMany: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (iter: Iterable<[string, V]>): (self: Trie) => Trie; /** - * Insert multiple entries in the `Trie` at once. + * Inserts multiple entries in the `Trie` at once. + * + * **Example** (Inserting multiple entries) * - * @example * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -1989,8 +2047,8 @@ export declare const insertMany: { * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: Trie, iter: Iterable<[string, V]>): Trie; }; diff --git a/.opencode/node_modules/effect/dist/Trie.d.ts.map b/.opencode/node_modules/effect/dist/Trie.d.ts.map index 1a7552994b14cdffa370a2e49a6418cafa44f866..6a635137a40654d48c81f67c6aa25222faa4c6b0 100644 --- a/.opencode/node_modules/effect/dist/Trie.d.ts.map +++ b/.opencode/node_modules/effect/dist/Trie.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Trie.d.ts","sourceRoot":"","sources":["../src/Trie.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpD,QAAA,MAAM,MAAM,6BAAgB,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAE,SAAQ,QAAQ,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW;IACjG,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE;QACjB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;KAClC,CAAA;C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IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAA;IACvD;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;CACpC,CAAA;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,UAAU,EAAE;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAA;IAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;CACzC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Trie.js b/.opencode/node_modules/effect/dist/Trie.js index 587e50f36180cd6ef02da6073957a6be9845bef2..bb79f4158a841b027ac1534f57180b4b36f13988 100644 --- a/.opencode/node_modules/effect/dist/Trie.js +++ b/.opencode/node_modules/effect/dist/Trie.js @@ -3,9 +3,10 @@ const TypeId = TR.TrieTypeId; /** * Creates an empty `Trie`. * - * @example + * **Example** (Creating an empty trie) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty() @@ -14,17 +15,17 @@ const TypeId = TR.TrieTypeId; * assert.deepStrictEqual(Array.from(trie), []) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const empty = TR.empty; /** * Creates a new `Trie` from an iterable collection of key/value pairs (e.g. `Array<[string, V]>`). * - * @example + * **Example** (Creating a trie from entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const iterable: Array = [["call", 0], ["me", 1], [ @@ -47,17 +48,17 @@ export const empty = TR.empty; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fromIterable = TR.fromIterable; /** * Constructs a new `Trie` from the specified entries (`[string, V]`). * - * @example + * **Example** (Constructing a trie from entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.make(["ca", 0], ["me", 1]) @@ -69,16 +70,17 @@ export const fromIterable = TR.fromIterable; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = TR.make; /** - * Insert a new entry in the `Trie`. + * Inserts a new entry in the `Trie`. + * + * **Example** (Inserting entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie1 = Trie.empty().pipe( @@ -97,18 +99,21 @@ export const make = TR.make; * ]]) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const insert = TR.insert; /** * Returns an `IterableIterator` of the keys within the `Trie`. * + * **Details** + * * The keys are returned in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading keys in alphabetical order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -121,18 +126,21 @@ export const insert = TR.insert; * assert.deepStrictEqual(result, ["abc", "bca", "cab"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const keys = TR.keys; /** * Returns an `IterableIterator` of the values within the `Trie`. * + * **Details** + * * Values are ordered based on their key in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading values by key order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -145,18 +153,21 @@ export const keys = TR.keys; * assert.deepStrictEqual(result, [2, 0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const values = TR.values; /** * Returns an `IterableIterator` of the entries within the `Trie`. * + * **Details** + * * The entries are returned by keys in alphabetical order, regardless of insertion order. * - * @example + * **Example** (Reading entries in alphabetical order) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -168,18 +179,21 @@ export const values = TR.values; * assert.deepStrictEqual(result, [["call", 0], ["me", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const entries = TR.entries; /** - * Returns an `Array<[K, V]>` of the entries within the `Trie`. + * Returns an `Array<[string, V]>` of the entries within the `Trie`. + * + * **Details** * * Equivalent to `Array.from(Trie.entries(trie))`. * - * @example + * **Example** (Converting entries to an array) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -191,17 +205,18 @@ export const entries = TR.entries; * assert.deepStrictEqual(result, [["call", 0], ["me", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const toEntries = self => Array.from(entries(self)); /** * Returns an `IterableIterator` of the keys within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding keys with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -215,17 +230,18 @@ export const toEntries = self => Array.from(entries(self)); * assert.deepStrictEqual(result, ["she", "shells"]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const keysWithPrefix = TR.keysWithPrefix; /** * Returns an `IterableIterator` of the values within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding values with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -241,17 +257,18 @@ export const keysWithPrefix = TR.keysWithPrefix; * assert.deepStrictEqual(result, [0, 1]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const valuesWithPrefix = TR.valuesWithPrefix; /** * Returns an `IterableIterator` of the entries within the `Trie` * that have `prefix` as prefix (`prefix` included if it exists). * - * @example + * **Example** (Finding entries with a prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -265,17 +282,18 @@ export const valuesWithPrefix = TR.valuesWithPrefix; * assert.deepStrictEqual(result, [["she", 0], ["shells", 1]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const entriesWithPrefix = TR.entriesWithPrefix; /** - * Returns `Array<[K, V]>` of the entries within the `Trie` - * that have `prefix` as prefix (`prefix` included if it exists). + * Returns an `Array<[string, V]>` of the entries within the `Trie` whose keys + * start with `prefix`, including the entry for `prefix` itself when it exists. + * + * **Example** (Converting prefixed entries to an array) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -289,17 +307,18 @@ export const entriesWithPrefix = TR.entriesWithPrefix; * assert.deepStrictEqual(result, [["she", 3], ["shells", 0]]) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const toEntriesWithPrefix = TR.toEntriesWithPrefix; /** * Returns the longest key/value in the `Trie` * that is a prefix of that `key` if it exists, `None` otherwise. * - * @example + * **Example** (Finding the longest prefix) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -318,16 +337,17 @@ export const toEntriesWithPrefix = TR.toEntriesWithPrefix; * } * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const longestPrefixOf = TR.longestPrefixOf; /** * Returns the size of the `Trie` (number of entries in the `Trie`). * - * @example + * **Example** (Getting the size) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -338,17 +358,17 @@ export const longestPrefixOf = TR.longestPrefixOf; * assert.equal(Trie.size(trie), 2) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const size = TR.size; /** - * Safely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` safely. + * + * **Example** (Looking up values safely) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -368,16 +388,17 @@ export const size = TR.size; * assert.deepStrictEqual(Trie.get(trie, "mea"), Option.none()) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const get = TR.get; /** - * Check if the given key exists in the `Trie`. + * Checks whether the given key exists in the `Trie`. + * + * **Example** (Checking key membership) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -397,16 +418,17 @@ export const get = TR.get; * assert.equal(Trie.has(trie, "mea"), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const has = TR.has; /** - * Checks if the `Trie` contains any entries. + * Returns `true` when the `Trie` contains no entries. + * + * **Example** (Checking whether a trie is empty) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty() @@ -416,19 +438,27 @@ export const has = TR.has; * assert.equal(Trie.isEmpty(trie1), false) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const isEmpty = TR.isEmpty; /** - * Unsafely lookup the value for the specified key in the `Trie`. + * Looks up the value for the specified key in the `Trie` unsafely. + * + * **When to use** + * + * Use when the trie key is known to exist and a missing key should be treated + * as a programming error. * - * `getUnsafe` will throw if the key is not found. Use `get` instead to safely - * get a value from the `Trie`. + * **Gotchas** + * + * `getUnsafe` throws if the key is not found. Use `get` instead to safely get + * a value from the `Trie`. + * + * **Example** (Looking up values unsafely) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -439,17 +469,17 @@ export const isEmpty = TR.isEmpty; * assert.throws(() => Trie.getUnsafe(trie, "mae")) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const getUnsafe = TR.getUnsafe; /** - * Remove the entry for the specified key in the `Trie`. + * Removes the entry for the specified key in the `Trie`. + * + * **Example** (Removing entries) * - * @example * ```ts - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -467,16 +497,17 @@ export const getUnsafe = TR.getUnsafe; * assert.deepStrictEqual(Trie.get(trie2, "call"), Option.none()) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const remove = TR.remove; /** - * Reduce a state over the entries of the `Trie`. + * Reduces a state over the entries of the `Trie`. + * + * **Example** (Reducing entries) * - * @example * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -505,17 +536,17 @@ export const remove = TR.remove; * ) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const reduce = TR.reduce; /** * Maps over the entries of the `Trie` using the specified function. * - * @example + * **Example** (Mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -540,17 +571,17 @@ export const reduce = TR.reduce; * assert.equal(Equal.equals(Trie.map(trie, (_, k) => k.length), trieMapK), true) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const map = TR.map; /** * Filters entries out of a `Trie` using the specified predicate. * - * @example + * **Example** (Filtering entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -575,19 +606,18 @@ export const map = TR.map; * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const filter = TR.filter; /** * Maps over the entries of the `Trie` using the specified filter and keeps * only successful results. * - * @example + * **Example** (Filtering and mapping entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Result from "effect/Result" - * import * as Trie from "effect/Trie" + * import { Equal, Result, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -624,18 +654,17 @@ export const filter = TR.filter; * ) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const filterMap = TR.filterMap; /** * Filters out `None` values from a `Trie` of `Options`s. * - * @example + * **Example** (Compacting optional values) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty>().pipe( @@ -652,16 +681,17 @@ export const filterMap = TR.filterMap; * assert.equal(Equal.equals(Trie.compact(trie), trieMapV), true) * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const compact = TR.compact; /** * Applies the specified function to the entries of the `Trie`. * - * @example + * **Example** (Iterating over entries) + * * ```ts - * import * as Trie from "effect/Trie" + * import { Trie } from "effect" * import * as assert from "node:assert" * * let value = 0 @@ -678,18 +708,17 @@ export const compact = TR.compact; * assert.equal(value, 17) * ``` * - * @since 2.0.0 * @category traversing + * @since 2.0.0 */ export const forEach = TR.forEach; /** * Updates the value of the specified key within the `Trie` if it exists. * - * @example + * **Example** (Modifying an existing value) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Option from "effect/Option" - * import * as Trie from "effect/Trie" + * import { Equal, Option, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -706,17 +735,17 @@ export const forEach = TR.forEach; * assert.equal(Equal.equals(trie.pipe(Trie.modify("me", (v) => v)), trie), true) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const modify = TR.modify; /** * Removes all entries in the `Trie` which have the specified keys. * - * @example + * **Example** (Removing multiple entries) + * * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -734,17 +763,17 @@ export const modify = TR.modify; * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const removeMany = TR.removeMany; /** - * Insert multiple entries in the `Trie` at once. + * Inserts multiple entries in the `Trie` at once. + * + * **Example** (Inserting multiple entries) * - * @example * ```ts - * import * as Equal from "effect/Equal" - * import * as Trie from "effect/Trie" + * import { Equal, Trie } from "effect" * import * as assert from "node:assert" * * const trie = Trie.empty().pipe( @@ -766,8 +795,8 @@ export const removeMany = TR.removeMany; * ) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const insertMany = TR.insertMany; //# sourceMappingURL=Trie.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Trie.js.map b/.opencode/node_modules/effect/dist/Trie.js.map index 4c276d7c64fa31894061ab927f84f0cc22450cf5..9c9ba287fd69fb46257581018a83015322b1c1cb 100644 --- a/.opencode/node_modules/effect/dist/Trie.js.map +++ b/.opencode/node_modules/effect/dist/Trie.js.map @@ -1 +1 @@ -{"version":3,"file":"Trie.js","names":["TR","TypeId","TrieTypeId","empty","fromIterable","make","insert","keys","values","entries","toEntries","self","Array","from","keysWithPrefix","valuesWithPrefix","entriesWithPrefix","toEntriesWithPrefix","longestPrefixOf","size","get","has","isEmpty","getUnsafe","remove","reduce","map","filter","filterMap","compact","forEach","modify","removeMany","insertMany"],"sources":["../src/Trie.ts"],"sourcesContent":[null],"mappings":"AAmBA,OAAO,K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;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,MAAM,GAyDf/B,EAAE,CAAC+B,MAAM;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,UAAU,GAyDnBhC,EAAE,CAACgC,UAAU;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,UAAU,GAiEnBjC,EAAE,CAACiC,UAAU","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Trie.js","names":["TR","TypeId","TrieTypeId","empty","fromIterable","make","insert","keys","values","entries","toEntries","self","Array","from","keysWithPrefix","valuesWithPrefix","entriesWithPrefix","toEntriesWithPrefix","longestPrefixOf","size","get","has","isEmpty","getUnsafe","remove","reduce","map","filter","filterMap","compact","forEach","modify","removeMany","insertMany"],"sources":["../src/Trie.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,EAAE,MAAM,oBAAoB;AAMxC,MAAMC,MAAM,GAAGD,EAAE,CAACE,UAAU;AAkD5B;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,KAAK,GAA6BH,EAAE,CAACG,KAAK;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,YAAY,GAA4DJ,EAAE,CAACI,YAAY;AAEpG;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,IAAI,GAEwDL,EAAE,CAACK,IAAI;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,MAAM,GA2DfN,EAAE,CAACM,MAAM;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,IAAI,GAAmDP,EAAE,CAACO,IAAI;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,MAAM,GAA8CR,EAAE,CAACQ,MAAM;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,OAAO,GAA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;;;;;AAsCA,OAAO,MAAMC,MAAM,GA+EfzB,EAAE,CAACyB,MAAM;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,GAAG,GAuEZ1B,EAAE,CAAC0B,GAAG;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,MAAM,GA6If3B,EAAE,CAAC2B,MAAM;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMC,SAAS,GAiGlB5B,EAAE,CAAC4B,SAAS;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,OAAO,GAA0C7B,EAAE,CAAC6B,OAAO;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,OAAO,GAuDhB9B,EAAE,CAAC8B,OAAO;AAEd;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,MAAM,GAuDf/B,EAAE,CAAC+B,MAAM;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,UAAU,GAyDnBhC,EAAE,CAACgC,UAAU;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,UAAU,GAiEnBjC,EAAE,CAACiC,UAAU","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Tuple.d.ts b/.opencode/node_modules/effect/dist/Tuple.d.ts index 35366a94aad62c12f7ddd8eb26ed480225638f22..de0b3741d19b88a9e5307d1e3b21c0ba344b1999 100644 --- a/.opencode/node_modules/effect/dist/Tuple.d.ts +++ b/.opencode/node_modules/effect/dist/Tuple.d.ts @@ -1,71 +1,12 @@ /** - * Utilities for creating, accessing, transforming, and comparing fixed-length - * arrays (tuples). Every function produces a new tuple — inputs are never - * mutated. - * - * ## Mental model - * - * - **Tuple**: A fixed-length readonly array where each position can have a - * different type (e.g., `readonly [string, number, boolean]`). - * - **Index-based access**: Elements are accessed by numeric index, and the - * type system tracks the type at each position. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Tuple.get(t, 0)`) and data-last (`pipe(t, Tuple.get(0))`) style. - * - **Immutability**: All operations return a new tuple; the original is - * never modified. - * - **Lambda**: A type-level function interface (from {@link Struct}) used by - * {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler can - * track how element types change. - * - * ## Common tasks - * - * - Create a tuple → {@link make} - * - Access an element by index → {@link get} - * - Select / remove elements by index → {@link pick}, {@link omit} - * - Append elements → {@link appendElement}, {@link appendElements} - * - Transform selected elements → {@link evolve} - * - Swap element positions → {@link renameIndices} - * - Map all elements with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare tuples → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce tuples → {@link makeCombiner}, {@link makeReducer} - * - Check tuple length at runtime → {@link isTupleOf}, - * {@link isTupleOfAtLeast} - * - * ## Gotchas - * - * - {@link pick} and {@link omit} use numeric indices, not string keys. - * - {@link renameIndices} takes an array of stringified source indices - * (e.g., `["2", "1", "0"]`), not arbitrary names. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a Lambda value - * created with `Struct.lambda`; a plain function won't type-check. - * - {@link isTupleOf} and {@link isTupleOfAtLeast} only check length, not - * element types. - * - * ## Quickstart - * - * **Example** (Creating and transforming a tuple) + * Works with fixed-length arrays, also called tuples. * - * ```ts - * import { pipe, Tuple } from "effect" - * - * const point = Tuple.make(10, 20, "red") - * - * const result = pipe( - * point, - * Tuple.evolve([ - * (x) => x * 2, - * (y) => y * 2 - * ]) - * ) - * - * console.log(result) // [20, 40, "red"] - * ``` - * - * ## See also - * - * - {@link Struct} – similar utilities for objects with named keys - * - {@link Array} – operations on variable-length arrays + * The runtime helpers in this module create new tuples instead of mutating + * their inputs, and the types preserve element positions where possible. The + * helpers cover tuple construction, indexed access, selecting or removing + * positions, appending values, transforming elements, renaming indices, mapping + * typed positions, and deriving comparison or combination helpers for tuple + * shapes. * * @since 2.0.0 */ @@ -77,9 +18,15 @@ import type { Apply, Lambda } from "./Struct.ts"; /** * Creates a tuple from the provided arguments. * - * - Use instead of `[a, b, c] as const` to get a properly typed tuple - * without a manual cast. - * - Returns the exact tuple type with each element's literal type preserved. + * **When to use** + * + * Use when you need a properly typed tuple without writing `[a, b, c] as const` + * or another manual cast. + * + * **Details** + * + * The returned value has the exact tuple type, with each element's literal type + * preserved. * * **Example** (Creating a tuple) * @@ -92,8 +39,7 @@ import type { Apply, Lambda } from "./Struct.ts"; * * @see {@link get} – access a single element by index * @see {@link appendElement} – append an element to a tuple - * - * @category Constructors + * @category constructors * @since 2.0.0 */ export declare const make: >(...elements: Elements) => Elements; @@ -101,9 +47,13 @@ type Indices> = Exclude["length"], T /** * Retrieves the element at the specified index from a tuple. * - * - Use in a pipeline when you need to extract a single element. - * - The index is constrained to valid tuple positions at the type level. - * - Does not mutate the input. + * **When to use** + * + * Use when a single tuple element should be extracted in a pipeline. + * + * **Details** + * + * The index is constrained to valid tuple positions at the type level. * * **Example** (Extracting an element by index) * @@ -116,17 +66,20 @@ type Indices> = Exclude["length"], T * * @see {@link make} – create a tuple * @see {@link pick} – extract multiple elements into a new tuple - * - * @category Getters + * @category getters * @since 4.0.0 */ export declare const get: { /** * Retrieves the element at the specified index from a tuple. * - * - Use in a pipeline when you need to extract a single element. - * - The index is constrained to valid tuple positions at the type level. - * - Does not mutate the input. + * **When to use** + * + * Use when a single tuple element should be extracted in a pipeline. + * + * **Details** + * + * The index is constrained to valid tuple positions at the type level. * * **Example** (Extracting an element by index) * @@ -139,17 +92,20 @@ export declare const get: { * * @see {@link make} – create a tuple * @see {@link pick} – extract multiple elements into a new tuple - * - * @category Getters + * @category getters * @since 4.0.0 */ , I extends Indices & keyof T>(index: I): (self: T) => T[I]; /** * Retrieves the element at the specified index from a tuple. * - * - Use in a pipeline when you need to extract a single element. - * - The index is constrained to valid tuple positions at the type level. - * - Does not mutate the input. + * **When to use** + * + * Use when a single tuple element should be extracted in a pipeline. + * + * **Details** + * + * The index is constrained to valid tuple positions at the type level. * * **Example** (Extracting an element by index) * @@ -162,8 +118,7 @@ export declare const get: { * * @see {@link make} – create a tuple * @see {@link pick} – extract multiple elements into a new tuple - * - * @category Getters + * @category getters * @since 4.0.0 */ , I extends Indices & keyof T>(self: T, index: I): T[I]; @@ -176,9 +131,13 @@ type PickTuple, K> = _BuildTuple; /** * Creates a new tuple containing only the elements at the specified indices. * - * - Use to select a subset of elements from a tuple by position. - * - The result order matches the order of the provided indices. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to select a subset of elements from a tuple by position. + * + * **Details** + * + * The result order matches the order of the provided indices. * * **Example** (Selecting elements by index) * @@ -191,17 +150,20 @@ type PickTuple, K> = _BuildTuple; * * @see {@link omit} – the inverse (exclude indices instead) * @see {@link get} – extract a single element - * - * @category Utilities + * @category filtering * @since 4.0.0 */ export declare const pick: { /** * Creates a new tuple containing only the elements at the specified indices. * - * - Use to select a subset of elements from a tuple by position. - * - The result order matches the order of the provided indices. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to select a subset of elements from a tuple by position. + * + * **Details** + * + * The result order matches the order of the provided indices. * * **Example** (Selecting elements by index) * @@ -214,17 +176,20 @@ export declare const pick: { * * @see {@link omit} – the inverse (exclude indices instead) * @see {@link get} – extract a single element - * - * @category Utilities + * @category filtering * @since 4.0.0 */ , const I extends ReadonlyArray>>(indices: I): (self: T) => PickTuple; /** * Creates a new tuple containing only the elements at the specified indices. * - * - Use to select a subset of elements from a tuple by position. - * - The result order matches the order of the provided indices. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to select a subset of elements from a tuple by position. + * + * **Details** + * + * The result order matches the order of the provided indices. * * **Example** (Selecting elements by index) * @@ -237,8 +202,7 @@ export declare const pick: { * * @see {@link omit} – the inverse (exclude indices instead) * @see {@link get} – extract a single element - * - * @category Utilities + * @category filtering * @since 4.0.0 */ , const I extends ReadonlyArray>>(self: T, indices: I): PickTuple; @@ -247,9 +211,13 @@ type OmitTuple, K> = _BuildTuple, K> = _BuildTuple, const I extends ReadonlyArray>>(indices: I): (self: T) => OmitTuple; /** * Creates a new tuple with the elements at the specified indices removed. * - * - Use to drop elements from a tuple by position. - * - Elements not at the specified indices are kept in their original order. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to drop elements from a tuple by position. + * + * **Details** + * + * Elements not at the specified indices are kept in their original order. * * **Example** (Removing elements by index) * @@ -305,8 +279,7 @@ export declare const omit: { * ``` * * @see {@link pick} – the inverse (keep only specified indices) - * - * @category Utilities + * @category filtering * @since 4.0.0 */ , const I extends ReadonlyArray>>(self: T, indices: I): OmitTuple; @@ -314,8 +287,14 @@ export declare const omit: { /** * Appends a single element to the end of a tuple. * - * - The result type is `[...T, E]`, preserving all existing element types. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you need the appended value to remain part of the tuple's type-level + * shape and preserve literal element positions. + * + * **Details** + * + * The result type is `[...T, E]`, preserving all existing element types. * * **Example** (Appending an element) * @@ -327,16 +306,21 @@ export declare const omit: { * ``` * * @see {@link appendElements} – append multiple elements (another tuple) - * - * @category Concatenating + * @category combining * @since 2.0.0 */ export declare const appendElement: { /** * Appends a single element to the end of a tuple. * - * - The result type is `[...T, E]`, preserving all existing element types. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you need the appended value to remain part of the tuple's type-level + * shape and preserve literal element positions. + * + * **Details** + * + * The result type is `[...T, E]`, preserving all existing element types. * * **Example** (Appending an element) * @@ -348,16 +332,21 @@ export declare const appendElement: { * ``` * * @see {@link appendElements} – append multiple elements (another tuple) - * - * @category Concatenating + * @category combining * @since 2.0.0 */ (element: E): >(self: T) => [...T, E]; /** * Appends a single element to the end of a tuple. * - * - The result type is `[...T, E]`, preserving all existing element types. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you need the appended value to remain part of the tuple's type-level + * shape and preserve literal element positions. + * + * **Details** + * + * The result type is `[...T, E]`, preserving all existing element types. * * **Example** (Appending an element) * @@ -369,8 +358,7 @@ export declare const appendElement: { * ``` * * @see {@link appendElements} – append multiple elements (another tuple) - * - * @category Concatenating + * @category combining * @since 2.0.0 */ , const E>(self: T, element: E): [...T, E]; @@ -378,9 +366,14 @@ export declare const appendElement: { /** * Concatenates two tuples into a single tuple. * - * - The result type is `[...T1, ...T2]`, preserving all element types from - * both tuples. - * - Does not mutate either input; returns a fresh tuple. + * **When to use** + * + * Use to append all elements from one tuple to another tuple. + * + * **Details** + * + * The result type is `[...T1, ...T2]`, preserving all element types from both + * tuples. Neither input tuple is mutated; a fresh tuple is returned. * * **Example** (Concatenating tuples) * @@ -392,17 +385,21 @@ export declare const appendElement: { * ``` * * @see {@link appendElement} – append a single element - * - * @category Concatenating - * @since 2.0.0 + * @category combining + * @since 4.0.0 */ export declare const appendElements: { /** * Concatenates two tuples into a single tuple. * - * - The result type is `[...T1, ...T2]`, preserving all element types from - * both tuples. - * - Does not mutate either input; returns a fresh tuple. + * **When to use** + * + * Use to append all elements from one tuple to another tuple. + * + * **Details** + * + * The result type is `[...T1, ...T2]`, preserving all element types from both + * tuples. Neither input tuple is mutated; a fresh tuple is returned. * * **Example** (Concatenating tuples) * @@ -414,17 +411,21 @@ export declare const appendElements: { * ``` * * @see {@link appendElement} – append a single element - * - * @category Concatenating - * @since 2.0.0 + * @category combining + * @since 4.0.0 */ >(that: T2): >(self: T1) => [...T1, ...T2]; /** * Concatenates two tuples into a single tuple. * - * - The result type is `[...T1, ...T2]`, preserving all element types from - * both tuples. - * - Does not mutate either input; returns a fresh tuple. + * **When to use** + * + * Use to append all elements from one tuple to another tuple. + * + * **Details** + * + * The result type is `[...T1, ...T2]`, preserving all element types from both + * tuples. Neither input tuple is mutated; a fresh tuple is returned. * * **Example** (Concatenating tuples) * @@ -436,9 +437,8 @@ export declare const appendElements: { * ``` * * @see {@link appendElement} – append a single element - * - * @category Concatenating - * @since 2.0.0 + * @category combining + * @since 4.0.0 */ , const T2 extends ReadonlyArray>(self: T1, that: T2): [...T1, ...T2]; }; @@ -453,10 +453,14 @@ type Evolved = { * Each function applies to the element at the same position. Positions beyond * the array's length are copied unchanged. * - * - Use when you want to update the first N elements while keeping the rest. - * - Does not mutate the input; returns a fresh tuple. - * - Each transform function receives the current value and can return a - * different type. + * **When to use** + * + * Use when you want to update the first N elements while keeping the rest. + * + * **Details** + * + * Each transform function receives the current value and can return a different + * type. * * **Example** (Transforming selected elements) * @@ -475,8 +479,7 @@ type Evolved = { * * @see {@link map} – apply the same transformation to all elements * @see {@link renameIndices} – swap element positions - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const evolve: { @@ -485,10 +488,14 @@ export declare const evolve: { * Each function applies to the element at the same position. Positions beyond * the array's length are copied unchanged. * - * - Use when you want to update the first N elements while keeping the rest. - * - Does not mutate the input; returns a fresh tuple. - * - Each transform function receives the current value and can return a - * different type. + * **When to use** + * + * Use when you want to update the first N elements while keeping the rest. + * + * **Details** + * + * Each transform function receives the current value and can return a different + * type. * * **Example** (Transforming selected elements) * @@ -507,8 +514,7 @@ export declare const evolve: { * * @see {@link map} – apply the same transformation to all elements * @see {@link renameIndices} – swap element positions - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const E extends Evolver>(evolver: E): (self: T) => Evolved; @@ -517,10 +523,14 @@ export declare const evolve: { * Each function applies to the element at the same position. Positions beyond * the array's length are copied unchanged. * - * - Use when you want to update the first N elements while keeping the rest. - * - Does not mutate the input; returns a fresh tuple. - * - Each transform function receives the current value and can return a - * different type. + * **When to use** + * + * Use when you want to update the first N elements while keeping the rest. + * + * **Details** + * + * Each transform function receives the current value and can return a different + * type. * * **Example** (Transforming selected elements) * @@ -539,18 +549,27 @@ export declare const evolve: { * * @see {@link map} – apply the same transformation to all elements * @see {@link renameIndices} – swap element positions - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const E extends Evolver>(self: T, evolver: E): Evolved; }; /** - * Rearranges elements of a tuple by providing an array of stringified source + * Renames tuple indices by providing an array of stringified source * indices. Each position in the array specifies which index to read from * (e.g., `["2", "1", "0"]` reverses a 3-element tuple). * - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to reorder tuple elements while preserving index-specific types. + * + * **Details** + * + * The mapping returns a tuple in the requested index order. + * + * **Gotchas** + * + * The mapping uses stringified source indices, not arbitrary names. * * **Example** (Swapping elements) * @@ -565,17 +584,26 @@ export declare const evolve: { * ``` * * @see {@link evolve} – transform element values instead of positions - * * @category Index utilities * @since 4.0.0 */ export declare const renameIndices: { /** - * Rearranges elements of a tuple by providing an array of stringified source + * Renames tuple indices by providing an array of stringified source * indices. Each position in the array specifies which index to read from * (e.g., `["2", "1", "0"]` reverses a 3-element tuple). * - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to reorder tuple elements while preserving index-specific types. + * + * **Details** + * + * The mapping returns a tuple in the requested index order. + * + * **Gotchas** + * + * The mapping uses stringified source indices, not arbitrary names. * * **Example** (Swapping elements) * @@ -590,7 +618,6 @@ export declare const renameIndices: { * ``` * * @see {@link evolve} – transform element values instead of positions - * * @category Index utilities * @since 4.0.0 */ @@ -600,11 +627,21 @@ export declare const renameIndices: { [I in keyof T]: I extends keyof M ? M[I] extends keyof T ? T[M[I]] : T[I] : T[I]; }; /** - * Rearranges elements of a tuple by providing an array of stringified source + * Renames tuple indices by providing an array of stringified source * indices. Each position in the array specifies which index to read from * (e.g., `["2", "1", "0"]` reverses a 3-element tuple). * - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to reorder tuple elements while preserving index-specific types. + * + * **Details** + * + * The mapping returns a tuple in the requested index order. + * + * **Gotchas** + * + * The mapping uses stringified source indices, not arbitrary names. * * **Example** (Swapping elements) * @@ -619,7 +656,6 @@ export declare const renameIndices: { * ``` * * @see {@link evolve} – transform element values instead of positions - * * @category Index utilities * @since 4.0.0 */ @@ -632,10 +668,18 @@ export declare const renameIndices: { /** * Applies a `Struct.Lambda` transformation to every element in a tuple. * - * - Use when you want to apply the same function to every element. - * - The lambda must be created with `Struct.lambda` so the compiler can - * track the output types per element. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to every tuple element. + * + * **Details** + * + * The lambda lets the compiler track the output type for each element. + * + * **Gotchas** + * + * The lambda must be created with `Struct.lambda`; a plain function will not + * type-check. * * **Example** (Wrapping every element in an array) * @@ -655,18 +699,25 @@ export declare const renameIndices: { * @see {@link mapPick} – apply a lambda only to selected indices * @see {@link mapOmit} – apply a lambda to all indices except selected ones * @see {@link evolve} – apply different functions to different indices - * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 3.9.0 */ export declare const map: { /** * Applies a `Struct.Lambda` transformation to every element in a tuple. * - * - Use when you want to apply the same function to every element. - * - The lambda must be created with `Struct.lambda` so the compiler can - * track the output types per element. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to every tuple element. + * + * **Details** + * + * The lambda lets the compiler track the output type for each element. + * + * **Gotchas** + * + * The lambda must be created with `Struct.lambda`; a plain function will not + * type-check. * * **Example** (Wrapping every element in an array) * @@ -686,9 +737,8 @@ export declare const map: { * @see {@link mapPick} – apply a lambda only to selected indices * @see {@link mapOmit} – apply a lambda to all indices except selected ones * @see {@link evolve} – apply different functions to different indices - * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 3.9.0 */ (lambda: L): >(self: T) => { [K in keyof T]: Apply; @@ -696,10 +746,18 @@ export declare const map: { /** * Applies a `Struct.Lambda` transformation to every element in a tuple. * - * - Use when you want to apply the same function to every element. - * - The lambda must be created with `Struct.lambda` so the compiler can - * track the output types per element. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to every tuple element. + * + * **Details** + * + * The lambda lets the compiler track the output type for each element. + * + * **Gotchas** + * + * The lambda must be created with `Struct.lambda`; a plain function will not + * type-check. * * **Example** (Wrapping every element in an array) * @@ -719,9 +777,8 @@ export declare const map: { * @see {@link mapPick} – apply a lambda only to selected indices * @see {@link mapOmit} – apply a lambda to all indices except selected ones * @see {@link evolve} – apply different functions to different indices - * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 3.9.0 */ , L extends Lambda>(self: T, lambda: L): { [K in keyof T]: Apply; @@ -731,9 +788,10 @@ export declare const map: { * Applies a `Struct.Lambda` transformation only to the elements at the * specified indices; all other elements are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * positions. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of + * positions. * * **Example** (Wrapping only selected elements in arrays) * @@ -755,8 +813,7 @@ export declare const map: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapOmit} – apply a lambda to all elements except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const mapPick: { @@ -764,9 +821,10 @@ export declare const mapPick: { * Applies a `Struct.Lambda` transformation only to the elements at the * specified indices; all other elements are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * positions. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of + * positions. * * **Example** (Wrapping only selected elements in arrays) * @@ -788,8 +846,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapOmit} – apply a lambda to all elements except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const I extends ReadonlyArray>, L extends Lambda>(indices: I, lambda: L): (self: T) => { @@ -799,9 +856,10 @@ export declare const mapPick: { * Applies a `Struct.Lambda` transformation only to the elements at the * specified indices; all other elements are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * positions. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of + * positions. * * **Example** (Wrapping only selected elements in arrays) * @@ -823,8 +881,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapOmit} – apply a lambda to all elements except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const I extends ReadonlyArray>, L extends Lambda>(self: T, indices: I, lambda: L): { @@ -835,9 +892,10 @@ export declare const mapPick: { * Applies a `Struct.Lambda` transformation to all elements except those at the * specified indices; the excluded elements are copied unchanged. * - * - Use when most elements should be transformed but a few should be - * preserved. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when most elements should be transformed but a few should be + * preserved. * * **Example** (Wrapping all elements except one in arrays) * @@ -859,8 +917,7 @@ export declare const mapPick: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapPick} – apply a lambda only to selected indices - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export declare const mapOmit: { @@ -868,9 +925,10 @@ export declare const mapOmit: { * Applies a `Struct.Lambda` transformation to all elements except those at the * specified indices; the excluded elements are copied unchanged. * - * - Use when most elements should be transformed but a few should be - * preserved. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when most elements should be transformed but a few should be + * preserved. * * **Example** (Wrapping all elements except one in arrays) * @@ -892,8 +950,7 @@ export declare const mapOmit: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapPick} – apply a lambda only to selected indices - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const I extends ReadonlyArray>, L extends Lambda>(indices: I, lambda: L): (self: T) => { @@ -903,9 +960,10 @@ export declare const mapOmit: { * Applies a `Struct.Lambda` transformation to all elements except those at the * specified indices; the excluded elements are copied unchanged. * - * - Use when most elements should be transformed but a few should be - * preserved. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when most elements should be transformed but a few should be + * preserved. * * **Example** (Wrapping all elements except one in arrays) * @@ -927,8 +985,7 @@ export declare const mapOmit: { * * @see {@link map} – apply a lambda to all elements * @see {@link mapPick} – apply a lambda only to selected indices - * - * @category Mapping + * @category mapping * @since 4.0.0 */ , const I extends ReadonlyArray>, L extends Lambda>(self: T, indices: I, lambda: L): { @@ -940,9 +997,13 @@ export declare const mapOmit: { * using the provided per-position `Equivalence`s. Two tuples are equivalent * when all their corresponding elements are equivalent. * - * Alias of `Equivalence.Tuple`. + * **When to use** + * + * Use when you need an `Equivalence` to compare tuples element-by-element. * - * - Use when you need to compare tuples element-by-element. + * **Details** + * + * This is an alias of `Equivalence.Tuple`. * * **Example** (Comparing tuples for equivalence) * @@ -959,9 +1020,8 @@ export declare const mapOmit: { * ``` * * @see {@link makeOrder} – create an `Order` for tuples - * - * @category Equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export declare const makeEquivalence: typeof Equivalence.Tuple; /** @@ -969,9 +1029,14 @@ export declare const makeEquivalence: typeof Equivalence.Tuple; * provided per-position `Order`s. Elements are compared left-to-right; the * first non-zero comparison determines the result. * - * Alias of `Order.Tuple`. + * **When to use** + * + * Use when you need to sort fixed-position arrays lexicographically, with each + * position using its own ordering rule. * - * - Use to sort or compare tuples lexicographically by element position. + * **Details** + * + * This is an alias of `Order.Tuple`. * * **Example** (Ordering tuples) * @@ -985,21 +1050,28 @@ export declare const makeEquivalence: typeof Equivalence.Tuple; * ``` * * @see {@link makeEquivalence} – create an `Equivalence` for tuples - * - * @category Ordering - * @since 2.0.0 + * @category ordering + * @since 4.0.0 */ export declare const makeOrder: typeof order.Tuple; export { /** - * Checks if an array has exactly `N` elements, narrowing the type to a + * Checks whether an array has exactly `N` elements, narrowing the type to a * fixed-length tuple. * - * Re-export of `Predicate.isTupleOf`. + * **When to use** + * + * Use to guard that an array has exactly the tuple length expected at + * runtime. + * + * **Details** + * + * This is a re-export of `Predicate.isTupleOf`. It narrows the type to + * `TupleOf` in the truthy branch. + * + * **Gotchas** * - * - Use to guard against unexpected array lengths at runtime. - * - Only checks `.length`; does not validate element types. - * - Narrows the type to `TupleOf` in the truthy branch. + * This only checks `.length`; it does not validate element types. * * **Example** (Checking exact length) * @@ -1013,21 +1085,28 @@ export { * } * ``` * - * @see {@link isTupleOfAtLeast} – check for a minimum length - * - * @category Guards + * @see `isTupleOfAtLeast` – check for a minimum length + * @category guards * @since 3.3.0 */ isTupleOf, /** - * Checks if an array has at least `N` elements, narrowing the type to a + * Checks whether an array has at least `N` elements, narrowing the type to a * tuple with a minimum length. * - * Re-export of `Predicate.isTupleOfAtLeast`. + * **When to use** + * + * Use to guard that an array has at least the tuple length expected at + * runtime. + * + * **Details** + * + * This is a re-export of `Predicate.isTupleOfAtLeast`. It narrows the type to + * `TupleOfAtLeast` in the truthy branch. + * + * **Gotchas** * - * - Use to guard that an array has at least the expected number of elements. - * - Only checks `.length`; does not validate element types. - * - Narrows the type to `TupleOfAtLeast` in the truthy branch. + * This only checks `.length`; it does not validate element types. * * **Example** (Checking minimum length) * @@ -1041,9 +1120,8 @@ isTupleOf, * } * ``` * - * @see {@link isTupleOf} – check for an exact length - * - * @category Guards + * @see `isTupleOf` – check for an exact length + * @category guards * @since 3.3.0 */ isTupleOfAtLeast } from "./Predicate.ts"; @@ -1052,9 +1130,10 @@ isTupleOfAtLeast } from "./Predicate.ts"; * position. When two tuples are combined, each element is merged using its * corresponding combiner. * - * - Use when you need to merge two tuples of the same shape (e.g., summing - * counters, concatenating strings). - * - Does not mutate the inputs; returns a fresh tuple. + * **When to use** + * + * Use when you need to merge two same-shape tuples by combining each position + * independently, such as summing counters or concatenating strings. * * **Example** (Combining tuple elements) * @@ -1071,7 +1150,7 @@ isTupleOfAtLeast } from "./Predicate.ts"; * ``` * * @see {@link makeReducer} – like `makeCombiner` but with an initial value - * + * @category combining * @since 4.0.0 */ export declare function makeCombiner>(combiners: { @@ -1083,8 +1162,10 @@ export declare function makeCombiner>(combiners * `Reducer.initialValue`. When reducing a collection of tuples, each element * is combined independently. * - * - Use to fold a collection of tuples into a single summary tuple. - * - Does not mutate the inputs; returns a fresh tuple. + * **When to use** + * + * Use when you need to fold same-shape tuples by accumulating each position + * independently into one summary tuple. * * **Example** (Reducing a collection of tuples) * @@ -1105,7 +1186,7 @@ export declare function makeCombiner>(combiners * ``` * * @see {@link makeCombiner} – like `makeReducer` but without an initial value - * + * @category folding * @since 4.0.0 */ export declare function makeReducer>(reducers: { diff --git a/.opencode/node_modules/effect/dist/Tuple.d.ts.map b/.opencode/node_modules/effect/dist/Tuple.d.ts.map index 8f5416bfb0d560b1050597eaeff9cb86427d030e..5a37503c5b333b46311cbf47c97fe280ee2e0e70 100644 --- a/.opencode/node_modules/effect/dist/Tuple.d.ts.map +++ b/.opencode/node_modules/effect/dist/Tuple.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Tuple.d.ts","sourceRoot":"","sources":["../src/Tuple.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,IAAI,GAAI,QAAQ,SAAS,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,UAAU,QAAQ,KAAG,QAAoB,CAAA;AAE1G,KAAK,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE3F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,GAAG,EAAE;IAChB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,KAAK,CAAC,CAAC,SAAS,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,KAAK,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line at end of file diff --git a/.opencode/node_modules/effect/dist/Tuple.js b/.opencode/node_modules/effect/dist/Tuple.js index fb3b797197f5a93d85fe4105c9184687343475aa..a4912f90f4ffeb6535b476d58745221c2d4e0b62 100644 --- a/.opencode/node_modules/effect/dist/Tuple.js +++ b/.opencode/node_modules/effect/dist/Tuple.js @@ -1,71 +1,12 @@ /** - * Utilities for creating, accessing, transforming, and comparing fixed-length - * arrays (tuples). Every function produces a new tuple — inputs are never - * mutated. - * - * ## Mental model - * - * - **Tuple**: A fixed-length readonly array where each position can have a - * different type (e.g., `readonly [string, number, boolean]`). - * - **Index-based access**: Elements are accessed by numeric index, and the - * type system tracks the type at each position. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Tuple.get(t, 0)`) and data-last (`pipe(t, Tuple.get(0))`) style. - * - **Immutability**: All operations return a new tuple; the original is - * never modified. - * - **Lambda**: A type-level function interface (from {@link Struct}) used by - * {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler can - * track how element types change. - * - * ## Common tasks - * - * - Create a tuple → {@link make} - * - Access an element by index → {@link get} - * - Select / remove elements by index → {@link pick}, {@link omit} - * - Append elements → {@link appendElement}, {@link appendElements} - * - Transform selected elements → {@link evolve} - * - Swap element positions → {@link renameIndices} - * - Map all elements with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare tuples → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce tuples → {@link makeCombiner}, {@link makeReducer} - * - Check tuple length at runtime → {@link isTupleOf}, - * {@link isTupleOfAtLeast} - * - * ## Gotchas - * - * - {@link pick} and {@link omit} use numeric indices, not string keys. - * - {@link renameIndices} takes an array of stringified source indices - * (e.g., `["2", "1", "0"]`), not arbitrary names. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a Lambda value - * created with `Struct.lambda`; a plain function won't type-check. - * - {@link isTupleOf} and {@link isTupleOfAtLeast} only check length, not - * element types. - * - * ## Quickstart - * - * **Example** (Creating and transforming a tuple) + * Works with fixed-length arrays, also called tuples. * - * ```ts - * import { pipe, Tuple } from "effect" - * - * const point = Tuple.make(10, 20, "red") - * - * const result = pipe( - * point, - * Tuple.evolve([ - * (x) => x * 2, - * (y) => y * 2 - * ]) - * ) - * - * console.log(result) // [20, 40, "red"] - * ``` - * - * ## See also - * - * - {@link Struct} – similar utilities for objects with named keys - * - {@link Array} – operations on variable-length arrays + * The runtime helpers in this module create new tuples instead of mutating + * their inputs, and the types preserve element positions where possible. The + * helpers cover tuple construction, indexed access, selecting or removing + * positions, appending values, transforming elements, renaming indices, mapping + * typed positions, and deriving comparison or combination helpers for tuple + * shapes. * * @since 2.0.0 */ @@ -77,9 +18,15 @@ import * as Reducer from "./Reducer.js"; /** * Creates a tuple from the provided arguments. * - * - Use instead of `[a, b, c] as const` to get a properly typed tuple - * without a manual cast. - * - Returns the exact tuple type with each element's literal type preserved. + * **When to use** + * + * Use when you need a properly typed tuple without writing `[a, b, c] as const` + * or another manual cast. + * + * **Details** + * + * The returned value has the exact tuple type, with each element's literal type + * preserved. * * **Example** (Creating a tuple) * @@ -92,17 +39,20 @@ import * as Reducer from "./Reducer.js"; * * @see {@link get} – access a single element by index * @see {@link appendElement} – append an element to a tuple - * - * @category Constructors + * @category constructors * @since 2.0.0 */ export const make = (...elements) => elements; /** * Retrieves the element at the specified index from a tuple. * - * - Use in a pipeline when you need to extract a single element. - * - The index is constrained to valid tuple positions at the type level. - * - Does not mutate the input. + * **When to use** + * + * Use when a single tuple element should be extracted in a pipeline. + * + * **Details** + * + * The index is constrained to valid tuple positions at the type level. * * **Example** (Extracting an element by index) * @@ -115,17 +65,20 @@ export const make = (...elements) => elements; * * @see {@link make} – create a tuple * @see {@link pick} – extract multiple elements into a new tuple - * - * @category Getters + * @category getters * @since 4.0.0 */ export const get = /*#__PURE__*/dual(2, (self, index) => self[index]); /** * Creates a new tuple containing only the elements at the specified indices. * - * - Use to select a subset of elements from a tuple by position. - * - The result order matches the order of the provided indices. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to select a subset of elements from a tuple by position. + * + * **Details** + * + * The result order matches the order of the provided indices. * * **Example** (Selecting elements by index) * @@ -138,8 +91,7 @@ export const get = /*#__PURE__*/dual(2, (self, index) => self[index]); * * @see {@link omit} – the inverse (exclude indices instead) * @see {@link get} – extract a single element - * - * @category Utilities + * @category filtering * @since 4.0.0 */ export const pick = /*#__PURE__*/dual(2, (self, indices) => { @@ -148,9 +100,13 @@ export const pick = /*#__PURE__*/dual(2, (self, indices) => { /** * Creates a new tuple with the elements at the specified indices removed. * - * - Use to drop elements from a tuple by position. - * - Elements not at the specified indices are kept in their original order. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to drop elements from a tuple by position. + * + * **Details** + * + * Elements not at the specified indices are kept in their original order. * * **Example** (Removing elements by index) * @@ -162,8 +118,7 @@ export const pick = /*#__PURE__*/dual(2, (self, indices) => { * ``` * * @see {@link pick} – the inverse (keep only specified indices) - * - * @category Utilities + * @category filtering * @since 4.0.0 */ export const omit = /*#__PURE__*/dual(2, (self, indices) => { @@ -173,8 +128,14 @@ export const omit = /*#__PURE__*/dual(2, (self, indices) => { /** * Appends a single element to the end of a tuple. * - * - The result type is `[...T, E]`, preserving all existing element types. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you need the appended value to remain part of the tuple's type-level + * shape and preserve literal element positions. + * + * **Details** + * + * The result type is `[...T, E]`, preserving all existing element types. * * **Example** (Appending an element) * @@ -186,17 +147,21 @@ export const omit = /*#__PURE__*/dual(2, (self, indices) => { * ``` * * @see {@link appendElements} – append multiple elements (another tuple) - * - * @category Concatenating + * @category combining * @since 2.0.0 */ export const appendElement = /*#__PURE__*/dual(2, (self, element) => [...self, element]); /** * Concatenates two tuples into a single tuple. * - * - The result type is `[...T1, ...T2]`, preserving all element types from - * both tuples. - * - Does not mutate either input; returns a fresh tuple. + * **When to use** + * + * Use to append all elements from one tuple to another tuple. + * + * **Details** + * + * The result type is `[...T1, ...T2]`, preserving all element types from both + * tuples. Neither input tuple is mutated; a fresh tuple is returned. * * **Example** (Concatenating tuples) * @@ -208,9 +173,8 @@ export const appendElement = /*#__PURE__*/dual(2, (self, element) => [...self, e * ``` * * @see {@link appendElement} – append a single element - * - * @category Concatenating - * @since 2.0.0 + * @category combining + * @since 4.0.0 */ export const appendElements = /*#__PURE__*/dual(2, (self, that) => [...self, ...that]); /** @@ -218,10 +182,14 @@ export const appendElements = /*#__PURE__*/dual(2, (self, that) => [...self, ... * Each function applies to the element at the same position. Positions beyond * the array's length are copied unchanged. * - * - Use when you want to update the first N elements while keeping the rest. - * - Does not mutate the input; returns a fresh tuple. - * - Each transform function receives the current value and can return a - * different type. + * **When to use** + * + * Use when you want to update the first N elements while keeping the rest. + * + * **Details** + * + * Each transform function receives the current value and can return a different + * type. * * **Example** (Transforming selected elements) * @@ -240,19 +208,28 @@ export const appendElements = /*#__PURE__*/dual(2, (self, that) => [...self, ... * * @see {@link map} – apply the same transformation to all elements * @see {@link renameIndices} – swap element positions - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const evolve = /*#__PURE__*/dual(2, (self, evolver) => { return self.map((e, i) => evolver[i] !== undefined ? evolver[i](e) : e); }); /** - * Rearranges elements of a tuple by providing an array of stringified source + * Renames tuple indices by providing an array of stringified source * indices. Each position in the array specifies which index to read from * (e.g., `["2", "1", "0"]` reverses a 3-element tuple). * - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use to reorder tuple elements while preserving index-specific types. + * + * **Details** + * + * The mapping returns a tuple in the requested index order. + * + * **Gotchas** + * + * The mapping uses stringified source indices, not arbitrary names. * * **Example** (Swapping elements) * @@ -267,7 +244,6 @@ export const evolve = /*#__PURE__*/dual(2, (self, evolver) => { * ``` * * @see {@link evolve} – transform element values instead of positions - * * @category Index utilities * @since 4.0.0 */ @@ -277,10 +253,18 @@ export const renameIndices = /*#__PURE__*/dual(2, (self, mapping) => { /** * Applies a `Struct.Lambda` transformation to every element in a tuple. * - * - Use when you want to apply the same function to every element. - * - The lambda must be created with `Struct.lambda` so the compiler can - * track the output types per element. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to every tuple element. + * + * **Details** + * + * The lambda lets the compiler track the output type for each element. + * + * **Gotchas** + * + * The lambda must be created with `Struct.lambda`; a plain function will not + * type-check. * * **Example** (Wrapping every element in an array) * @@ -300,9 +284,8 @@ export const renameIndices = /*#__PURE__*/dual(2, (self, mapping) => { * @see {@link mapPick} – apply a lambda only to selected indices * @see {@link mapOmit} – apply a lambda to all indices except selected ones * @see {@link evolve} – apply different functions to different indices - * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 3.9.0 */ export const map = /*#__PURE__*/dual(2, (self, lambda) => { return self.map(e => lambda(e)); @@ -311,9 +294,10 @@ export const map = /*#__PURE__*/dual(2, (self, lambda) => { * Applies a `Struct.Lambda` transformation only to the elements at the * specified indices; all other elements are copied unchanged. * - * - Use when you want to apply the same transformation to a subset of - * positions. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when you want to apply the same transformation to a subset of + * positions. * * **Example** (Wrapping only selected elements in arrays) * @@ -335,8 +319,7 @@ export const map = /*#__PURE__*/dual(2, (self, lambda) => { * * @see {@link map} – apply a lambda to all elements * @see {@link mapOmit} – apply a lambda to all elements except selected ones - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const mapPick = /*#__PURE__*/dual(3, (self, indices, lambda) => { @@ -347,9 +330,10 @@ export const mapPick = /*#__PURE__*/dual(3, (self, indices, lambda) => { * Applies a `Struct.Lambda` transformation to all elements except those at the * specified indices; the excluded elements are copied unchanged. * - * - Use when most elements should be transformed but a few should be - * preserved. - * - Does not mutate the input; returns a fresh tuple. + * **When to use** + * + * Use when most elements should be transformed but a few should be + * preserved. * * **Example** (Wrapping all elements except one in arrays) * @@ -371,8 +355,7 @@ export const mapPick = /*#__PURE__*/dual(3, (self, indices, lambda) => { * * @see {@link map} – apply a lambda to all elements * @see {@link mapPick} – apply a lambda only to selected indices - * - * @category Mapping + * @category mapping * @since 4.0.0 */ export const mapOmit = /*#__PURE__*/dual(3, (self, indices, lambda) => { @@ -384,9 +367,13 @@ export const mapOmit = /*#__PURE__*/dual(3, (self, indices, lambda) => { * using the provided per-position `Equivalence`s. Two tuples are equivalent * when all their corresponding elements are equivalent. * - * Alias of `Equivalence.Tuple`. + * **When to use** + * + * Use when you need an `Equivalence` to compare tuples element-by-element. * - * - Use when you need to compare tuples element-by-element. + * **Details** + * + * This is an alias of `Equivalence.Tuple`. * * **Example** (Comparing tuples for equivalence) * @@ -403,9 +390,8 @@ export const mapOmit = /*#__PURE__*/dual(3, (self, indices, lambda) => { * ``` * * @see {@link makeOrder} – create an `Order` for tuples - * - * @category Equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export const makeEquivalence = Equivalence.Tuple; /** @@ -413,9 +399,14 @@ export const makeEquivalence = Equivalence.Tuple; * provided per-position `Order`s. Elements are compared left-to-right; the * first non-zero comparison determines the result. * - * Alias of `Order.Tuple`. + * **When to use** + * + * Use when you need to sort fixed-position arrays lexicographically, with each + * position using its own ordering rule. * - * - Use to sort or compare tuples lexicographically by element position. + * **Details** + * + * This is an alias of `Order.Tuple`. * * **Example** (Ordering tuples) * @@ -429,21 +420,28 @@ export const makeEquivalence = Equivalence.Tuple; * ``` * * @see {@link makeEquivalence} – create an `Equivalence` for tuples - * - * @category Ordering - * @since 2.0.0 + * @category ordering + * @since 4.0.0 */ export const makeOrder = order.Tuple; export { /** - * Checks if an array has exactly `N` elements, narrowing the type to a + * Checks whether an array has exactly `N` elements, narrowing the type to a * fixed-length tuple. * - * Re-export of `Predicate.isTupleOf`. + * **When to use** + * + * Use to guard that an array has exactly the tuple length expected at + * runtime. + * + * **Details** + * + * This is a re-export of `Predicate.isTupleOf`. It narrows the type to + * `TupleOf` in the truthy branch. + * + * **Gotchas** * - * - Use to guard against unexpected array lengths at runtime. - * - Only checks `.length`; does not validate element types. - * - Narrows the type to `TupleOf` in the truthy branch. + * This only checks `.length`; it does not validate element types. * * **Example** (Checking exact length) * @@ -457,21 +455,28 @@ export { * } * ``` * - * @see {@link isTupleOfAtLeast} – check for a minimum length - * - * @category Guards + * @see `isTupleOfAtLeast` – check for a minimum length + * @category guards * @since 3.3.0 */ isTupleOf, /** - * Checks if an array has at least `N` elements, narrowing the type to a + * Checks whether an array has at least `N` elements, narrowing the type to a * tuple with a minimum length. * - * Re-export of `Predicate.isTupleOfAtLeast`. + * **When to use** + * + * Use to guard that an array has at least the tuple length expected at + * runtime. + * + * **Details** + * + * This is a re-export of `Predicate.isTupleOfAtLeast`. It narrows the type to + * `TupleOfAtLeast` in the truthy branch. + * + * **Gotchas** * - * - Use to guard that an array has at least the expected number of elements. - * - Only checks `.length`; does not validate element types. - * - Narrows the type to `TupleOfAtLeast` in the truthy branch. + * This only checks `.length`; it does not validate element types. * * **Example** (Checking minimum length) * @@ -485,9 +490,8 @@ isTupleOf, * } * ``` * - * @see {@link isTupleOf} – check for an exact length - * - * @category Guards + * @see `isTupleOf` – check for an exact length + * @category guards * @since 3.3.0 */ isTupleOfAtLeast } from "./Predicate.js"; @@ -496,9 +500,10 @@ isTupleOfAtLeast } from "./Predicate.js"; * position. When two tuples are combined, each element is merged using its * corresponding combiner. * - * - Use when you need to merge two tuples of the same shape (e.g., summing - * counters, concatenating strings). - * - Does not mutate the inputs; returns a fresh tuple. + * **When to use** + * + * Use when you need to merge two same-shape tuples by combining each position + * independently, such as summing counters or concatenating strings. * * **Example** (Combining tuple elements) * @@ -515,7 +520,7 @@ isTupleOfAtLeast } from "./Predicate.js"; * ``` * * @see {@link makeReducer} – like `makeCombiner` but with an initial value - * + * @category combining * @since 4.0.0 */ export function makeCombiner(combiners) { @@ -533,8 +538,10 @@ export function makeCombiner(combiners) { * `Reducer.initialValue`. When reducing a collection of tuples, each element * is combined independently. * - * - Use to fold a collection of tuples into a single summary tuple. - * - Does not mutate the inputs; returns a fresh tuple. + * **When to use** + * + * Use when you need to fold same-shape tuples by accumulating each position + * independently into one summary tuple. * * **Example** (Reducing a collection of tuples) * @@ -555,7 +562,7 @@ export function makeCombiner(combiners) { * ``` * * @see {@link makeCombiner} – like `makeReducer` but without an initial value - * + * @category folding * @since 4.0.0 */ export function makeReducer(reducers) { diff --git a/.opencode/node_modules/effect/dist/Tuple.js.map b/.opencode/node_modules/effect/dist/Tuple.js.map index 94891a8fcdafac514ea6ac09a0756b54e3a1c021..67e3c397939ffeaff7540b58722ba3cf2d76a09d 100644 --- a/.opencode/node_modules/effect/dist/Tuple.js.map +++ b/.opencode/node_modules/effect/dist/Tuple.js.map @@ -1 +1 @@ -{"version":3,"file":"Tuple.js","names":["Combiner","Equivalence","dual","order","Reducer","make","elements","get","self","index","pick","indices","map","i","omit","toDrop","Set","filter","_","has","appendElement","element","appendElements","that","evolve","evolver","e","undefined","renameIndices","mapping","lambda","mapPick","toPick","mapOmit","toOmit","makeEquivalence","Tuple","makeOrder","isTupleOf","isTupleOfAtLeast","makeCombiner","combiners","out","length","push","combine","makeReducer","reducers","initialValue"],"sources":["../src/Tuple.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAGvC;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,IAAI,GAAGA,CAA0C,GAAGC,QAAkB,KAAeA,QAAQ;AAI1G;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,GAAG,gBA+CZL,IAAI,CAAC,CAAC,EAAE,CAAsDM,IAAO,EAAEC,KAAQ,KAAWD,IAAI,CAACC,KAAK,CAAC,CAAC;AAk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5C,OAAO,CAACC,IAAI,CAACwC,OAAO,EAAEG,YAA4B,CAAC;AAC5D","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Tuple.js","names":["Combiner","Equivalence","dual","order","Reducer","make","elements","get","self","index","pick","indices","map","i","omit","toDrop","Set","filter","_","has","appendElement","element","appendElements","that","evolve","evolver","e","undefined","renameIndices","mapping","lambda","mapPick","toPick","mapOmit","toOmit","makeEquivalence","Tuple","makeOrder","isTupleOf","isTupleOfAtLeast","makeCombiner","combiners","out","length","push","combine","makeReducer","reducers","initialValue"],"sources":["../src/Tuple.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,IAAI,GAAGA,CAA0C,GAAGC,QAAkB,KAAeA,QAAQ;AAI1G;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,GAAG,gBAqDZL,IAAI,CAAC,CAAC,EAAE,CAAsDM,IAAO,EAAEC,KAAQ,KAAWD,IAAI,CAACC,KAAK,CAAC,CAAC;AAkB1G;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,IAAI,gBAqDbR,IAAI,CACN,CAAC,EACD,CACEM,IAAO,EACPG,OAA8B,KAC5B;EACF,OAAOA,OAAO,CAACC,GAAG,CAAEC,CAAC,IAAKL,IAAI,CAACK,CAAC,CAAC,CAAC;AACpC,CAAC,CACF;AAID;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,IAAI,gBAmDbZ,IAAI,CACN,CAAC,EACD,CACEM,IAAO,EACPG,OAA8B,KAC5B;EACF,MAAMI,MAAM,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCAC,gBAAgB,QACX,gBAAgB;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAM,SAAUC,YAAYA,CAC1BC,SAA+D;EAE/D,OAAOzC,QAAQ,CAACK,IAAI,CAAC,CAACG,IAAI,EAAEe,IAAI,KAAI;IAClC,MAAMmB,GAAG,GAAG,EAAE;IACd,KAAK,IAAI7B,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,IAAI,CAACmC,MAAM,EAAE9B,CAAC,EAAE,EAAE;MACpC6B,GAAG,CAACE,IAAI,CAACH,SAAS,CAAC5B,CAAC,CAAC,CAACgC,OAAO,CAACrC,IAAI,CAACK,CAAC,CAAC,EAAEU,IAAI,CAACV,CAAC,CAAC,CAAC,CAAC;IAClD;IACA,OAAO6B,GAAU;EACnB,CAAC,CAAC;AACJ;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAM,SAAUI,WAAWA,CACzBC,QAA4D;EAE5D,MAAMF,OAAO,GAAGL,YAAY,CAACO,QAAQ,CAAC,CAACF,OAAO;EAC9C,MAAMG,YAAY,GAAG,EAAE;EACvB,KAAK,IAAInC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGkC,QAAQ,CAACJ,MAAM,EAAE9B,CAAC,EAAE,EAAE;IACxCmC,YAAY,CAACJ,IAAI,CAACG,QAAQ,CAAClC,CAAC,CAAC,CAACmC,YAAY,CAAC;EAC7C;EACA,OAAO5C,OAAO,CAACC,IAAI,CAACwC,OAAO,EAAEG,YAA4B,CAAC;AAC5D","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxChunk.d.ts b/.opencode/node_modules/effect/dist/TxChunk.d.ts index 0019cf57c2e87fa8b1ba5c3273f30f10ce46e2f2..be07f7c939603590954d61a4487eee897c69406b 100644 --- a/.opencode/node_modules/effect/dist/TxChunk.d.ts +++ b/.opencode/node_modules/effect/dist/TxChunk.d.ts @@ -1,11 +1,12 @@ /** - * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) - * semantics for chunk operations. It uses a `TxRef>` internally to ensure all operations - * are performed atomically within transactions. + * Stores a `Chunk` inside transactional state. * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxChunk values change. + * A `TxChunk` keeps its current `Chunk` in a `TxRef`, so reads and + * updates can be committed atomically with other transactional operations. This + * module offers a transactional version of common chunk workflows, including + * creating collections, reading or replacing the current chunk, adding or + * removing values, checking size, slicing, mapping, filtering, and combining + * chunks. * * @since 4.0.0 */ @@ -20,11 +21,14 @@ declare const TypeId = "~effect/transactions/TxChunk"; * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) * semantics for chunk operations. * + * **Details** + * * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly * calls `Effect.txRetry` and any of the accessed TxChunk values change. * - * @example + * **Example** (Using a transactional chunk) + * * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -54,8 +58,8 @@ declare const TypeId = "~effect/transactions/TxChunk"; * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxChunk extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -64,12 +68,13 @@ export interface TxChunk extends Inspectable, Pipeable { /** * Creates a new `TxChunk` with the specified initial chunk. * - * **Return behavior**: This function returns a new TxChunk reference containing - * the provided initial chunk. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference containing the provided initial chunk. No existing + * TxChunk instances are modified. + * + * **Example** (Creating a TxChunk from a chunk) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -83,17 +88,21 @@ export interface TxChunk extends Inspectable, Pipeable { * console.log(Chunk.toReadonlyArray(result)) // [1, 2, 3] * }) * ``` + * + * @category constructors + * @since 4.0.0 */ export declare const make: (initial: Chunk.Chunk) => Effect.Effect>; /** * Creates a new empty `TxChunk`. * - * **Return behavior**: This function returns a new TxChunk reference that is - * initially empty. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference that is initially empty. No existing TxChunk + * instances are modified. + * + * **Example** (Creating an empty TxChunk) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -112,17 +121,21 @@ export declare const make: (initial: Chunk.Chunk) => Effect.Effect() => Effect.Effect>; /** * Creates a new `TxChunk` from an iterable. * - * **Return behavior**: This function returns a new TxChunk reference containing - * elements from the provided iterable. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference containing elements from the provided iterable. No + * existing TxChunk instances are modified. + * + * **Example** (Creating from an iterable) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -146,15 +159,21 @@ export declare const empty: () => Effect.Effect>; * console.log(Chunk.toReadonlyArray(updated)) // [0, 1, 2, 3, 4, 5, 6] * }) * ``` + * + * @category constructors + * @since 4.0.0 */ export declare const fromIterable: (iterable: Iterable) => Effect.Effect>; /** * Creates a new `TxChunk` with the specified TxRef. * - * **Return behavior**: This function returns a new TxChunk reference wrapping - * the provided TxRef. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference wrapping the provided TxRef. No existing TxChunk + * instances are modified. + * + * **Example** (Wrapping an existing TxRef) * - * @example * ```ts * import { Chunk, TxChunk, TxRef } from "effect" * @@ -163,19 +182,20 @@ export declare const fromIterable: (iterable: Iterable) => Effect.Effect(ref: TxRef.TxRef>) => TxChunk; /** * Modifies the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Modifying while returning a value) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -194,17 +214,21 @@ export declare const makeUnsafe: (ref: TxRef.TxRef>) => TxChun * console.log(Chunk.toReadonlyArray(newChunk)) // [1, 2, 3, 4] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ export declare const modify: { /** * Modifies the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Modifying while returning a value) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -223,17 +247,21 @@ export declare const modify: { * console.log(Chunk.toReadonlyArray(newChunk)) // [1, 2, 3, 4] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ (f: (current: Chunk.Chunk>) => [returnValue: R, newValue: Chunk.Chunk]): (self: TxChunk) => Effect.Effect; /** * Modifies the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Modifying while returning a value) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -252,24 +280,29 @@ export declare const modify: { * console.log(Chunk.toReadonlyArray(newChunk)) // [1, 2, 3, 4] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ (self: TxChunk, f: (current: Chunk.Chunk) => [returnValue: R, newValue: Chunk.Chunk]): Effect.Effect; }; /** * Updates the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Updating the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * - * // Update the chunk by reversing it - * // Update the chunk by reversing it - automatically transactional + * // Update the chunk by reversing it atomically * yield* TxChunk.update(txChunk, (chunk) => Chunk.reverse(chunk)) * * const result = yield* TxChunk.get(txChunk) @@ -277,25 +310,27 @@ export declare const modify: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const update: { /** * Updates the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Updating the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * - * // Update the chunk by reversing it - * // Update the chunk by reversing it - automatically transactional + * // Update the chunk by reversing it atomically * yield* TxChunk.update(txChunk, (chunk) => Chunk.reverse(chunk)) * * const result = yield* TxChunk.get(txChunk) @@ -303,25 +338,27 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (f: (current: Chunk.Chunk>) => Chunk.Chunk): (self: TxChunk) => Effect.Effect; /** * Updates the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Updating the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * - * // Update the chunk by reversing it - * // Update the chunk by reversing it - automatically transactional + * // Update the chunk by reversing it atomically * yield* TxChunk.update(txChunk, (chunk) => Chunk.reverse(chunk)) * * const result = yield* TxChunk.get(txChunk) @@ -329,15 +366,16 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, f: (current: Chunk.Chunk) => Chunk.Chunk): Effect.Effect; }; /** * Reads the current chunk from the `TxChunk`. * - * @example + * **Example** (Reading the current chunk) + * * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -354,17 +392,20 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const get: (self: TxChunk) => Effect.Effect>; /** * Sets the value of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by replacing - * its internal state with the provided chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by replacing its internal state with the provided + * chunk. It does not return a new TxChunk reference. + * + * **Example** (Replacing the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -380,17 +421,20 @@ export declare const get: (self: TxChunk) => Effect.Effect> * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const set: { /** * Sets the value of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by replacing - * its internal state with the provided chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by replacing its internal state with the provided + * chunk. It does not return a new TxChunk reference. + * + * **Example** (Replacing the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -406,17 +450,20 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (chunk: Chunk.Chunk): (self: TxChunk) => Effect.Effect; /** * Sets the value of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by replacing - * its internal state with the provided chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by replacing its internal state with the provided + * chunk. It does not return a new TxChunk reference. + * + * **Example** (Replacing the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -432,18 +479,21 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, chunk: Chunk.Chunk): Effect.Effect; }; /** * Appends an element to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the end. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the end. It does not return a + * new TxChunk reference. + * + * **Example** (Appending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -458,17 +508,20 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const append: { /** * Appends an element to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the end. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the end. It does not return a + * new TxChunk reference. + * + * **Example** (Appending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -483,17 +536,20 @@ export declare const append: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (element: A): (self: TxChunk) => Effect.Effect; /** * Appends an element to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the end. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the end. It does not return a + * new TxChunk reference. + * + * **Example** (Appending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -508,18 +564,21 @@ export declare const append: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, element: A): Effect.Effect; }; /** * Prepends an element to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the beginning. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the beginning. It does not + * return a new TxChunk reference. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -534,17 +593,20 @@ export declare const append: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const prepend: { /** * Prepends an element to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the beginning. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the beginning. It does not + * return a new TxChunk reference. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -559,17 +621,20 @@ export declare const prepend: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (element: A): (self: TxChunk) => Effect.Effect; /** * Prepends an element to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the beginning. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the beginning. It does not + * return a new TxChunk reference. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -584,15 +649,16 @@ export declare const prepend: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, element: A): Effect.Effect; }; /** * Gets the size of the `TxChunk`. * - * @example + * **Example** (Getting the size) + * * ```ts * import { Effect, TxChunk } from "effect" * @@ -610,14 +676,15 @@ export declare const prepend: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const size: (self: TxChunk) => Effect.Effect; /** - * Checks if the `TxChunk` is empty. + * Checks whether the `TxChunk` is empty. + * + * **Example** (Checking for an empty chunk) * - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -634,14 +701,15 @@ export declare const size: (self: TxChunk) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const isEmpty: (self: TxChunk) => Effect.Effect; /** - * Checks if the `TxChunk` is non-empty. + * Checks whether the `TxChunk` is non-empty. + * + * **Example** (Checking for a non-empty chunk) * - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -658,17 +726,20 @@ export declare const isEmpty: (self: TxChunk) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const isNonEmpty: (self: TxChunk) => Effect.Effect; /** * Takes the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the first n elements. It does not + * return a new TxChunk reference. + * + * **Example** (Taking leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -683,17 +754,20 @@ export declare const isNonEmpty: (self: TxChunk) => Effect.Effect * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const take: { /** * Takes the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the first n elements. It does not + * return a new TxChunk reference. + * + * **Example** (Taking leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -708,17 +782,20 @@ export declare const take: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (n: number): (self: TxChunk) => Effect.Effect; /** * Takes the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the first n elements. It does not + * return a new TxChunk reference. + * + * **Example** (Taking leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -733,18 +810,21 @@ export declare const take: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, n: number): Effect.Effect; }; /** * Drops the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing the first n elements. It does not return a + * new TxChunk reference. + * + * **Example** (Dropping leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -759,17 +839,20 @@ export declare const take: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const drop: { /** * Drops the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing the first n elements. It does not return a + * new TxChunk reference. + * + * **Example** (Dropping leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -784,17 +867,20 @@ export declare const drop: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (n: number): (self: TxChunk) => Effect.Effect; /** * Drops the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing the first n elements. It does not return a + * new TxChunk reference. + * + * **Example** (Dropping leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -809,18 +895,21 @@ export declare const drop: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, n: number): Effect.Effect; }; /** * Takes a slice of the `TxChunk` from `start` to `end` (exclusive). * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the elements in the specified range. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the elements in the specified range. It + * does not return a new TxChunk reference. + * + * **Example** (Taking a slice) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -835,17 +924,20 @@ export declare const drop: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const slice: { /** * Takes a slice of the `TxChunk` from `start` to `end` (exclusive). * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the elements in the specified range. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the elements in the specified range. It + * does not return a new TxChunk reference. + * + * **Example** (Taking a slice) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -860,17 +952,20 @@ export declare const slice: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (start: number, end: number): (self: TxChunk) => Effect.Effect; /** * Takes a slice of the `TxChunk` from `start` to `end` (exclusive). * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the elements in the specified range. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the elements in the specified range. It + * does not return a new TxChunk reference. + * + * **Example** (Taking a slice) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -885,27 +980,29 @@ export declare const slice: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, start: number, end: number): Effect.Effect; }; /** - * Maps each element of the `TxChunk` using the provided function. - * Note: This only works when the mapped type B is assignable to A. + * Maps each element of the `TxChunk` using a function that returns the same + * element type. * - * **Mutation behavior**: This function mutates the original TxChunk by transforming - * each element in place. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original `TxChunk` by transforming each element in place. It does not + * return a new `TxChunk` reference. + * + * **Example** (Mapping elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4]) * - * // Transform each element (must maintain same type) - * // Transform each element (must maintain same type) - automatically transactional + * // Transform each element atomically (must maintain same type) * yield* TxChunk.map(txChunk, (n) => n * 2) * * const result = yield* TxChunk.get(txChunk) @@ -913,26 +1010,28 @@ export declare const slice: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const map: { /** - * Maps each element of the `TxChunk` using the provided function. - * Note: This only works when the mapped type B is assignable to A. + * Maps each element of the `TxChunk` using a function that returns the same + * element type. * - * **Mutation behavior**: This function mutates the original TxChunk by transforming - * each element in place. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original `TxChunk` by transforming each element in place. It does not + * return a new `TxChunk` reference. + * + * **Example** (Mapping elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4]) * - * // Transform each element (must maintain same type) - * // Transform each element (must maintain same type) - automatically transactional + * // Transform each element atomically (must maintain same type) * yield* TxChunk.map(txChunk, (n) => n * 2) * * const result = yield* TxChunk.get(txChunk) @@ -940,26 +1039,28 @@ export declare const map: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (f: (a: NoInfer) => A): (self: TxChunk) => Effect.Effect; /** - * Maps each element of the `TxChunk` using the provided function. - * Note: This only works when the mapped type B is assignable to A. + * Maps each element of the `TxChunk` using a function that returns the same + * element type. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxChunk by transforming - * each element in place. It does not return a new TxChunk reference. + * This function mutates the original `TxChunk` by transforming each element in place. It does not + * return a new `TxChunk` reference. + * + * **Example** (Mapping elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4]) * - * // Transform each element (must maintain same type) - * // Transform each element (must maintain same type) - automatically transactional + * // Transform each element atomically (must maintain same type) * yield* TxChunk.map(txChunk, (n) => n * 2) * * const result = yield* TxChunk.get(txChunk) @@ -967,26 +1068,28 @@ export declare const map: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, f: (a: A) => A): Effect.Effect; }; /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -994,25 +1097,27 @@ export declare const map: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const filter: { /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -1020,25 +1125,27 @@ export declare const filter: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (refinement: (a: A) => a is B): (self: TxChunk) => Effect.Effect; /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -1046,25 +1153,27 @@ export declare const filter: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (a: A) => boolean): (self: TxChunk) => Effect.Effect; /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -1072,25 +1181,27 @@ export declare const filter: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, refinement: (a: A) => a is B): Effect.Effect; /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -1098,18 +1209,21 @@ export declare const filter: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, predicate: (a: A) => boolean): Effect.Effect; }; /** * Concatenates another chunk to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other chunk. It does + * not return a new TxChunk reference. + * + * **Example** (Appending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1117,8 +1231,7 @@ export declare const filter: { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * const otherChunk = Chunk.fromIterable([4, 5, 6]) * - * // Append all elements from another chunk - * // Append all elements from another chunk - automatically transactional + * // Append all elements from another chunk atomically * yield* TxChunk.appendAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1126,17 +1239,20 @@ export declare const filter: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const appendAll: { /** * Concatenates another chunk to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other chunk. It does + * not return a new TxChunk reference. + * + * **Example** (Appending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1144,8 +1260,7 @@ export declare const appendAll: { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * const otherChunk = Chunk.fromIterable([4, 5, 6]) * - * // Append all elements from another chunk - * // Append all elements from another chunk - automatically transactional + * // Append all elements from another chunk atomically * yield* TxChunk.appendAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1153,17 +1268,20 @@ export declare const appendAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (other: Chunk.Chunk): (self: TxChunk) => Effect.Effect; /** * Concatenates another chunk to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other chunk. It does + * not return a new TxChunk reference. + * + * **Example** (Appending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1171,8 +1289,7 @@ export declare const appendAll: { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * const otherChunk = Chunk.fromIterable([4, 5, 6]) * - * // Append all elements from another chunk - * // Append all elements from another chunk - automatically transactional + * // Append all elements from another chunk atomically * yield* TxChunk.appendAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1180,18 +1297,21 @@ export declare const appendAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, other: Chunk.Chunk): Effect.Effect; }; /** * Concatenates another chunk to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by prepending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by prepending all elements from the other chunk. It + * does not return a new TxChunk reference. + * + * **Example** (Prepending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1199,8 +1319,7 @@ export declare const appendAll: { * const txChunk = yield* TxChunk.fromIterable([4, 5, 6]) * const otherChunk = Chunk.fromIterable([1, 2, 3]) * - * // Prepend all elements from another chunk - * // Prepend all elements from another chunk - automatically transactional + * // Prepend all elements from another chunk atomically * yield* TxChunk.prependAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1208,17 +1327,20 @@ export declare const appendAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const prependAll: { /** * Concatenates another chunk to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by prepending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by prepending all elements from the other chunk. It + * does not return a new TxChunk reference. + * + * **Example** (Prepending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1226,8 +1348,7 @@ export declare const prependAll: { * const txChunk = yield* TxChunk.fromIterable([4, 5, 6]) * const otherChunk = Chunk.fromIterable([1, 2, 3]) * - * // Prepend all elements from another chunk - * // Prepend all elements from another chunk - automatically transactional + * // Prepend all elements from another chunk atomically * yield* TxChunk.prependAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1235,17 +1356,20 @@ export declare const prependAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (other: Chunk.Chunk): (self: TxChunk) => Effect.Effect; /** * Concatenates another chunk to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by prepending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by prepending all elements from the other chunk. It + * does not return a new TxChunk reference. + * + * **Example** (Prepending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1253,8 +1377,7 @@ export declare const prependAll: { * const txChunk = yield* TxChunk.fromIterable([4, 5, 6]) * const otherChunk = Chunk.fromIterable([1, 2, 3]) * - * // Prepend all elements from another chunk - * // Prepend all elements from another chunk - automatically transactional + * // Prepend all elements from another chunk atomically * yield* TxChunk.prependAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -1262,20 +1385,21 @@ export declare const prependAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxChunk, other: Chunk.Chunk): Effect.Effect; }; /** * Concatenates another `TxChunk` to the end of this `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other TxChunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other TxChunk. It + * does not return a new TxChunk reference. + * + * **Example** (Concatenating TxChunks) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1294,17 +1418,21 @@ export declare const prependAll: { * console.log(Chunk.toReadonlyArray(original)) // [4, 5, 6] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ export declare const concat: { /** * Concatenates another `TxChunk` to the end of this `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other TxChunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other TxChunk. It + * does not return a new TxChunk reference. + * + * **Example** (Concatenating TxChunks) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1323,17 +1451,21 @@ export declare const concat: { * console.log(Chunk.toReadonlyArray(original)) // [4, 5, 6] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ (other: TxChunk): (self: TxChunk) => Effect.Effect; /** * Concatenates another `TxChunk` to the end of this `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other TxChunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other TxChunk. It + * does not return a new TxChunk reference. + * + * **Example** (Concatenating TxChunks) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -1352,6 +1484,9 @@ export declare const concat: { * console.log(Chunk.toReadonlyArray(original)) // [4, 5, 6] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ (self: TxChunk, other: TxChunk): Effect.Effect; }; diff --git a/.opencode/node_modules/effect/dist/TxChunk.d.ts.map b/.opencode/node_modules/effect/dist/TxChunk.d.ts.map index 2cba2df52e9916c4f37993de5cae987656549cdf..f213f7a9f66d640309ddf26d7de461bcc92fdec8 100644 --- a/.opencode/node_modules/effect/dist/TxChunk.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxChunk.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxChunk.d.ts","sourceRoot":"","sources":["../src/TxChunk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,QAAA,MAAM,MAAM,iCAAiC,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH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AO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrE;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAKlE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,MAAM,EAAE;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAQ9D,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxChunk.js b/.opencode/node_modules/effect/dist/TxChunk.js index a39c719d3287e2b937750e0897b650653afe96c4..97cb99fb42efe562c25156a96b52e3f252d9dd0b 100644 --- a/.opencode/node_modules/effect/dist/TxChunk.js +++ b/.opencode/node_modules/effect/dist/TxChunk.js @@ -1,11 +1,12 @@ /** - * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) - * semantics for chunk operations. It uses a `TxRef>` internally to ensure all operations - * are performed atomically within transactions. + * Stores a `Chunk` inside transactional state. * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxChunk values change. + * A `TxChunk` keeps its current `Chunk` in a `TxRef`, so reads and + * updates can be committed atomically with other transactional operations. This + * module offers a transactional version of common chunk workflows, including + * creating collections, reading or replacing the current chunk, adding or + * removing values, checking size, slicing, mapping, filtering, and combining + * chunks. * * @since 4.0.0 */ @@ -37,12 +38,13 @@ const TxChunkProto = { /** * Creates a new `TxChunk` with the specified initial chunk. * - * **Return behavior**: This function returns a new TxChunk reference containing - * the provided initial chunk. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference containing the provided initial chunk. No existing + * TxChunk instances are modified. + * + * **Example** (Creating a TxChunk from a chunk) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -56,17 +58,21 @@ const TxChunkProto = { * console.log(Chunk.toReadonlyArray(result)) // [1, 2, 3] * }) * ``` + * + * @category constructors + * @since 4.0.0 */ export const make = initial => Effect.map(TxRef.make(initial), ref => makeUnsafe(ref)); /** * Creates a new empty `TxChunk`. * - * **Return behavior**: This function returns a new TxChunk reference that is - * initially empty. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference that is initially empty. No existing TxChunk + * instances are modified. + * + * **Example** (Creating an empty TxChunk) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -85,17 +91,21 @@ export const make = initial => Effect.map(TxRef.make(initial), ref => makeUnsafe * console.log(isStillEmpty) // false * }) * ``` + * + * @category constructors + * @since 4.0.0 */ export const empty = () => Effect.map(TxRef.make(Chunk.empty()), ref => makeUnsafe(ref)); /** * Creates a new `TxChunk` from an iterable. * - * **Return behavior**: This function returns a new TxChunk reference containing - * elements from the provided iterable. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference containing elements from the provided iterable. No + * existing TxChunk instances are modified. + * + * **Example** (Creating from an iterable) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -119,15 +129,21 @@ export const empty = () => Effect.map(TxRef.make(Chunk.empty()), ref => makeUnsa * console.log(Chunk.toReadonlyArray(updated)) // [0, 1, 2, 3, 4, 5, 6] * }) * ``` + * + * @category constructors + * @since 4.0.0 */ export const fromIterable = iterable => Effect.map(TxRef.make(Chunk.fromIterable(iterable)), ref => makeUnsafe(ref)); /** * Creates a new `TxChunk` with the specified TxRef. * - * **Return behavior**: This function returns a new TxChunk reference wrapping - * the provided TxRef. No existing TxChunk instances are modified. + * **Details** + * + * This function returns a new TxChunk reference wrapping the provided TxRef. No existing TxChunk + * instances are modified. + * + * **Example** (Wrapping an existing TxRef) * - * @example * ```ts * import { Chunk, TxChunk, TxRef } from "effect" * @@ -136,8 +152,8 @@ export const fromIterable = iterable => Effect.map(TxRef.make(Chunk.fromIterable * const txChunk = TxChunk.makeUnsafe(ref) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const makeUnsafe = ref => { const txChunk = Object.create(TxChunkProto); @@ -148,12 +164,13 @@ export const makeUnsafe = ref => { /** * Modifies the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Modifying while returning a value) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -172,23 +189,28 @@ export const makeUnsafe = ref => { * console.log(Chunk.toReadonlyArray(newChunk)) // [1, 2, 3, 4] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ export const modify = /*#__PURE__*/dual(2, (self, f) => TxRef.modify(self.ref, f)); /** * Updates the value of the `TxChunk` using the provided function. * - * **Mutation behavior**: This function mutates the original TxChunk by updating - * its internal state. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by updating its internal state. It does not return a + * new TxChunk reference. + * + * **Example** (Updating the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * - * // Update the chunk by reversing it - * // Update the chunk by reversing it - automatically transactional + * // Update the chunk by reversing it atomically * yield* TxChunk.update(txChunk, (chunk) => Chunk.reverse(chunk)) * * const result = yield* TxChunk.get(txChunk) @@ -196,14 +218,15 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => TxRef.modify(self.ref, f * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const update = /*#__PURE__*/dual(2, (self, f) => TxRef.update(self.ref, f)); /** * Reads the current chunk from the `TxChunk`. * - * @example + * **Example** (Reading the current chunk) + * * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -220,17 +243,20 @@ export const update = /*#__PURE__*/dual(2, (self, f) => TxRef.update(self.ref, f * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const get = self => TxRef.get(self.ref); /** * Sets the value of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by replacing - * its internal state with the provided chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by replacing its internal state with the provided + * chunk. It does not return a new TxChunk reference. + * + * **Example** (Replacing the stored chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -246,17 +272,20 @@ export const get = self => TxRef.get(self.ref); * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const set = /*#__PURE__*/dual(2, (self, chunk) => TxRef.set(self.ref, chunk)); /** * Appends an element to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the end. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the end. It does not return a + * new TxChunk reference. + * + * **Example** (Appending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -271,17 +300,20 @@ export const set = /*#__PURE__*/dual(2, (self, chunk) => TxRef.set(self.ref, chu * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const append = /*#__PURE__*/dual(2, (self, element) => update(self, current => Chunk.append(current, element))); /** * Prepends an element to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by adding - * the element to the beginning. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by adding the element to the beginning. It does not + * return a new TxChunk reference. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -296,14 +328,15 @@ export const append = /*#__PURE__*/dual(2, (self, element) => update(self, curre * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const prepend = /*#__PURE__*/dual(2, (self, element) => update(self, current => Chunk.prepend(current, element))); /** * Gets the size of the `TxChunk`. * - * @example + * **Example** (Getting the size) + * * ```ts * import { Effect, TxChunk } from "effect" * @@ -321,14 +354,15 @@ export const prepend = /*#__PURE__*/dual(2, (self, element) => update(self, curr * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const size = self => modify(self, current => [Chunk.size(current), current]); /** - * Checks if the `TxChunk` is empty. + * Checks whether the `TxChunk` is empty. + * + * **Example** (Checking for an empty chunk) * - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -345,14 +379,15 @@ export const size = self => modify(self, current => [Chunk.size(current), curren * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const isEmpty = self => modify(self, current => [Chunk.isEmpty(current), current]); /** - * Checks if the `TxChunk` is non-empty. + * Checks whether the `TxChunk` is non-empty. + * + * **Example** (Checking for a non-empty chunk) * - * @example * ```ts * import { Effect, TxChunk } from "effect" * @@ -369,17 +404,20 @@ export const isEmpty = self => modify(self, current => [Chunk.isEmpty(current), * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const isNonEmpty = self => modify(self, current => [Chunk.isNonEmpty(current), current]); /** * Takes the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the first n elements. It does not + * return a new TxChunk reference. + * + * **Example** (Taking leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -394,17 +432,20 @@ export const isNonEmpty = self => modify(self, current => [Chunk.isNonEmpty(curr * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const take = /*#__PURE__*/dual(2, (self, n) => update(self, current => Chunk.take(current, n))); /** * Drops the first `n` elements from the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * the first n elements. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing the first n elements. It does not return a + * new TxChunk reference. + * + * **Example** (Dropping leading elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -419,17 +460,20 @@ export const take = /*#__PURE__*/dual(2, (self, n) => update(self, current => Ch * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const drop = /*#__PURE__*/dual(2, (self, n) => update(self, current => Chunk.drop(current, n))); /** * Takes a slice of the `TxChunk` from `start` to `end` (exclusive). * - * **Mutation behavior**: This function mutates the original TxChunk by keeping - * only the elements in the specified range. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by keeping only the elements in the specified range. It + * does not return a new TxChunk reference. + * + * **Example** (Taking a slice) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -444,26 +488,28 @@ export const drop = /*#__PURE__*/dual(2, (self, n) => update(self, current => Ch * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const slice = /*#__PURE__*/dual(3, (self, start, end) => update(self, current => Chunk.take(Chunk.drop(current, start), end - start))); /** - * Maps each element of the `TxChunk` using the provided function. - * Note: This only works when the mapped type B is assignable to A. + * Maps each element of the `TxChunk` using a function that returns the same + * element type. * - * **Mutation behavior**: This function mutates the original TxChunk by transforming - * each element in place. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original `TxChunk` by transforming each element in place. It does not + * return a new `TxChunk` reference. + * + * **Example** (Mapping elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4]) * - * // Transform each element (must maintain same type) - * // Transform each element (must maintain same type) - automatically transactional + * // Transform each element atomically (must maintain same type) * yield* TxChunk.map(txChunk, (n) => n * 2) * * const result = yield* TxChunk.get(txChunk) @@ -471,25 +517,27 @@ export const slice = /*#__PURE__*/dual(3, (self, start, end) => update(self, cur * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => update(self, current => Chunk.map(current, f))); /** * Filters the `TxChunk` keeping only elements that satisfy the predicate. * - * **Mutation behavior**: This function mutates the original TxChunk by removing - * elements that don't match the predicate. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by removing elements that don't match the predicate. It + * does not return a new TxChunk reference. + * + * **Example** (Filtering elements) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * * const program = Effect.gen(function*() { * const txChunk = yield* TxChunk.fromIterable([1, 2, 3, 4, 5, 6]) * - * // Keep only even numbers - * // Keep only even numbers - automatically transactional + * // Keep only even numbers atomically * yield* TxChunk.filter(txChunk, (n) => n % 2 === 0) * * const result = yield* TxChunk.get(txChunk) @@ -497,17 +545,20 @@ export const map = /*#__PURE__*/dual(2, (self, f) => update(self, current => Chu * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => update(self, current => Chunk.filter(current, predicate))); /** * Concatenates another chunk to the end of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other chunk. It does + * not return a new TxChunk reference. + * + * **Example** (Appending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -515,8 +566,7 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => update(self, cur * const txChunk = yield* TxChunk.fromIterable([1, 2, 3]) * const otherChunk = Chunk.fromIterable([4, 5, 6]) * - * // Append all elements from another chunk - * // Append all elements from another chunk - automatically transactional + * // Append all elements from another chunk atomically * yield* TxChunk.appendAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -524,17 +574,20 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => update(self, cur * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const appendAll = /*#__PURE__*/dual(2, (self, other) => update(self, current => Chunk.appendAll(current, other))); /** * Concatenates another chunk to the beginning of the `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by prepending - * all elements from the other chunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by prepending all elements from the other chunk. It + * does not return a new TxChunk reference. + * + * **Example** (Prepending another chunk) * - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -542,8 +595,7 @@ export const appendAll = /*#__PURE__*/dual(2, (self, other) => update(self, curr * const txChunk = yield* TxChunk.fromIterable([4, 5, 6]) * const otherChunk = Chunk.fromIterable([1, 2, 3]) * - * // Prepend all elements from another chunk - * // Prepend all elements from another chunk - automatically transactional + * // Prepend all elements from another chunk atomically * yield* TxChunk.prependAll(txChunk, otherChunk) * * const result = yield* TxChunk.get(txChunk) @@ -551,19 +603,20 @@ export const appendAll = /*#__PURE__*/dual(2, (self, other) => update(self, curr * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const prependAll = /*#__PURE__*/dual(2, (self, other) => update(self, current => Chunk.prependAll(current, other))); /** * Concatenates another `TxChunk` to the end of this `TxChunk`. * - * **Mutation behavior**: This function mutates the original TxChunk by appending - * all elements from the other TxChunk. It does not return a new TxChunk reference. + * **Details** + * + * This function mutates the original TxChunk by appending all elements from the other TxChunk. It + * does not return a new TxChunk reference. + * + * **Example** (Concatenating TxChunks) * - * @since 4.0.0 - * @category Combinators - * @example * ```ts * import { Chunk, Effect, TxChunk } from "effect" * @@ -582,6 +635,9 @@ export const prependAll = /*#__PURE__*/dual(2, (self, other) => update(self, cur * console.log(Chunk.toReadonlyArray(original)) // [4, 5, 6] * }) * ``` + * + * @category combinators + * @since 4.0.0 */ export const concat = /*#__PURE__*/dual(2, (self, other) => Effect.gen(function* () { const otherChunk = yield* get(other); diff --git a/.opencode/node_modules/effect/dist/TxChunk.js.map b/.opencode/node_modules/effect/dist/TxChunk.js.map index f4e08b447142b61cba8c4ba702c68a4dc5c8a7fb..2e64bb22c68e27a69bb9b407484bbf9e0385610b 100644 --- a/.opencode/node_modules/effect/dist/TxChunk.js.map +++ b/.opencode/node_modules/effect/dist/TxChunk.js.map @@ -1 +1 @@ -{"version":3,"file":"TxChunk.js","names":["Chunk","Effect","format","dual","NodeInspectSymbol","toJson","pipeArguments","TxRef","TypeId","TxChunkProto","toJSON","toString","ref","_id","pipe","arguments","make","initial","map","makeUnsafe","empty","fromIterable","iterable","txChunk","Object","create","modify","self","f","update","get","set","chunk","append","element","current","prepend","size","isEmpty","isNonEmpty","take","n","drop","slice","start","end","filter","predicate","appendAll","other","prependAll","concat","gen","otherChunk","tx"],"sources":["../src/TxChunk.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,MAAMC,MAAM,GAAG,8BAA8B;AAgD7C,MAAMC,YAAY,GAAG;EACnB,CAACL,iBAAiB,IAAC;IACjB,OAAO,IAAI,CAACM,MAAM,EAA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AAU,GAAG,OAAOvB,GAAG,CAACmB,KAAK,CAAC;EACpC,OAAOD,SAAS,CAACrB,IAAI,EAAE0B,UAAU,CAAC;AACpC,CAAC,CAAC,CAACvC,IAAI,CAACb,MAAM,CAACqD,EAAE,CAAC,CACrB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxChunk.js","names":["Chunk","Effect","format","dual","NodeInspectSymbol","toJson","pipeArguments","TxRef","TypeId","TxChunkProto","toJSON","toString","ref","_id","pipe","arguments","make","initial","map","makeUnsafe","empty","fromIterable","iterable","txChunk","Object","create","modify","self","f","update","get","set","chunk","append","element","current","prepend","size","isEmpty","isNonEmpty","take","n","drop","slice","start","end","filter","predicate","appendAll","other","prependAll","concat","gen","otherChunk","tx"],"sources":["../src/TxChunk.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,MAAMC,MAAM,GAAG,8BAA8B;AAmD7C,MAAMC,YAAY,GAAG;EACnB,CAACL,iBAAiB,IAAC;IACjB,OAAO,IAAI,CAACM,MAAM,EAAE;EACtB,CAAC;EACDC,QAAQA,CAAA;IACN,OAAO,WAAWT,MAAM,CAACG,MAAM,CAAE,IAAI,CAAEO,GAAG,CAAC,CAAC,GAAG;EACjD,CAAC;EACDF,MAAMA,CAAA;IACJ,OAAO;MACLG,GAAG,EAAE,SAAS;MACdD,GAAG,EAAEP,MAAM,CAAE,IAAI,CAAEO,GAAG;KACvB;EACH,CAAC;EACDE,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC;CACD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AAK,CAACkB,GAAG,CAACiB,OAAO,EAAEP,CAAC,CAAC,CAAC,CAC/G;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMkB,MAAM,gBAiHf3C,IAAI,CACN,CAAC,EACD,CAAIwB,IAAgB,EAAEoB,SAA4B,KAChDlB,MAAM,CAACF,IAAI,EAAGQ,OAAO,IAAKnC,KAAK,CAAC8C,MAAM,CAACX,OAAO,EAAEY,SAAS,CAAC,CAAC,CAC9D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,SAAS,gBA2DlB7C,IAAI,CACN,CAAC,EACD,CAAIwB,IAAgB,EAAEsB,KAAqB,KACzCpB,MAAM,CAACF,IAAI,EAAGQ,OAAO,IAAKnC,KAAK,CAACgD,SAAS,CAACb,OAAO,EAAEc,KAAK,CAAC,CAAC,CAC7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,UAAU,gBA2DnB/C,IAAI,CACN,CAAC,EACD,CAAIwB,IAAgB,EAAEsB,KAAqB,KACzCpB,MAAM,CAACF,IAAI,EAAGQ,OAAO,IAAKnC,KAAK,CAACkD,UAAU,CAACf,OAAO,EAAEc,KAAK,CAAC,CAAC,CAC9D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAME,MAAM,gBAmEfhD,IAAI,CACN,CAAC,EACD,CAAIwB,IAAgB,EAAEsB,KAAiB,KACrChD,MAAM,CAACmD,GAAG,CAAC,aAAS;EAClB,MAAMC,UAAU,GAAG,OAAOvB,GAAG,CAACmB,KAAK,CAAC;EACpC,OAAOD,SAAS,CAACrB,IAAI,EAAE0B,UAAU,CAAC;AACpC,CAAC,CAAC,CAACvC,IAAI,CAACb,MAAM,CAACqD,EAAE,CAAC,CACrB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxDeferred.d.ts b/.opencode/node_modules/effect/dist/TxDeferred.d.ts index 2315aea8c5ae5ff70132e8d42793e604d3cb3ae8..807ca4d153c1440c1d8c235cb3d7c2480d5f09a1 100644 --- a/.opencode/node_modules/effect/dist/TxDeferred.d.ts +++ b/.opencode/node_modules/effect/dist/TxDeferred.d.ts @@ -1,6 +1,11 @@ /** - * A transactional deferred value — a write-once cell that can be read within transactions. - * Readers retry until a value is set; once set, the value is immutable. + * Transactional deferred values for coordinating Effect transactions. + * + * A `TxDeferred` is a write-once cell whose completion is a + * `Result` stored in transactional state. Readers can wait for the value + * from inside a transaction: while the cell is empty the transaction retries, + * and when another transaction completes the deferred the waiting transaction + * can resume with either the success value or the typed failure. * * @since 4.0.0 */ @@ -12,12 +17,17 @@ import type { Result } from "./Result.ts"; import * as TxRef from "./TxRef.ts"; declare const TypeId = "~effect/transactions/TxDeferred"; /** - * A transactional deferred — a write-once cell readable within transactions. + * A transactional deferred is a write-once cell readable within transactions. + * Readers block (retry the transaction) until a value is committed, and writers + * succeed only on the first call; subsequent writes return `false`. + * + * **When to use** * - * Readers block (retry the transaction) until a value is committed. - * Writers succeed only on the first call; subsequent writes return `false`. + * Use to coordinate transaction-local readers and one-time completion with a + * success or failure result. + * + * **Example** (Completing a transactional deferred) * - * @example * ```ts * import { Effect, TxDeferred } from "effect" * @@ -38,8 +48,8 @@ declare const TypeId = "~effect/transactions/TxDeferred"; * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxDeferred extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -48,7 +58,12 @@ export interface TxDeferred extends Inspectable, Pip /** * Creates a new empty `TxDeferred`. * - * @example + * **When to use** + * + * Use to create a transactional deferred that can be completed exactly once. + * + * **Example** (Creating a transactional deferred) + * * ```ts * import { Effect, Option, TxDeferred } from "effect" * @@ -59,15 +74,16 @@ export interface TxDeferred extends Inspectable, Pip * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: () => Effect.Effect>; /** * Reads the deferred value. Retries the transaction if the deferred has not * been completed yet. * - * @example + * **Example** (Awaiting a deferred value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -79,8 +95,8 @@ export declare const make: () => Effect.Effect>; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 4.0.0 */ declare const await_: (self: TxDeferred) => Effect.Effect; export { @@ -88,15 +104,27 @@ export { * Reads the deferred value. Retries the transaction if the deferred has not * been completed yet. * - * @since 4.0.0 + * **When to use** + * + * Use to read the success value of a `TxDeferred` while retrying until the + * deferred is completed. + * + * @see {@link poll} for inspecting the current completion state without retrying the transaction + * * @category getters + * @since 4.0.0 */ await_ as await }; /** * Reads the current state of the deferred without retrying. Returns `None` if * not yet completed. * - * @example + * **When to use** + * + * Use to inspect a `TxDeferred` without retrying when it is not completed yet. + * + * **Example** (Polling a deferred) + * * ```ts * import { Effect, Option, Result, TxDeferred } from "effect" * @@ -111,15 +139,20 @@ await_ as await }; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const poll: (self: TxDeferred) => Effect.Effect>>; /** * Completes the deferred with a `Result`. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with an already computed `Result`. + * + * **Example** (Completing with a result) + * * ```ts * import { Effect, Result, TxDeferred } from "effect" * @@ -132,15 +165,20 @@ export declare const poll: (self: TxDeferred) => Effect.Effect(result: Result): (self: TxDeferred) => Effect.Effect; /** * Completes the deferred with a `Result`. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with an already computed `Result`. + * + * **Example** (Completing with a result) + * * ```ts * import { Effect, Result, TxDeferred } from "effect" * @@ -174,8 +217,8 @@ export declare const done: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxDeferred, result: Result): Effect.Effect; }; @@ -183,7 +226,12 @@ export declare const done: { * Completes the deferred with a success value. Returns `true` if this was the * first completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a successful value. + * + * **Example** (Completing with a success value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -196,15 +244,20 @@ export declare const done: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const succeed: { /** * Completes the deferred with a success value. Returns `true` if this was the * first completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a successful value. + * + * **Example** (Completing with a success value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -217,15 +270,20 @@ export declare const succeed: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (value: A): (self: TxDeferred) => Effect.Effect; /** * Completes the deferred with a success value. Returns `true` if this was the * first completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a successful value. + * + * **Example** (Completing with a success value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -238,8 +296,8 @@ export declare const succeed: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxDeferred, value: A): Effect.Effect; }; @@ -247,7 +305,12 @@ export declare const succeed: { * Completes the deferred with a failure. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a typed failure value. + * + * **Example** (Completing with a failure) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -260,15 +323,20 @@ export declare const succeed: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const fail: { /** * Completes the deferred with a failure. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a typed failure value. + * + * **Example** (Completing with a failure) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -281,15 +349,20 @@ export declare const fail: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (error: E): (self: TxDeferred) => Effect.Effect; /** * Completes the deferred with a failure. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a typed failure value. + * + * **Example** (Completing with a failure) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -302,15 +375,20 @@ export declare const fail: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxDeferred, error: E): Effect.Effect; }; /** * Determines if the provided value is a `TxDeferred`. * - * @example + * **When to use** + * + * Use to narrow an unknown value before treating it as a transactional deferred. + * + * **Example** (Checking transactional deferreds) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -321,8 +399,8 @@ export declare const fail: { * }) * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxDeferred: (u: unknown) => u is TxDeferred; //# sourceMappingURL=TxDeferred.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxDeferred.d.ts.map b/.opencode/node_modules/effect/dist/TxDeferred.d.ts.map index c89d90a141558bb505956088e7a5f20bfcc1d789..48954b2bf52510f136b929bd7006fe93d5c77fae 100644 --- a/.opencode/node_modules/effect/dist/TxDeferred.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxDeferred.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxDeferred.d.ts","sourceRoot":"","sources":["../src/TxDeferred.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,QAAA,MAAM,MAAM,oCAAoC,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,E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CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;CAIjE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,IAAI,EAAE;IACjB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACpE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;CAIjE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,CAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxDeferred.js b/.opencode/node_modules/effect/dist/TxDeferred.js index 27395d9f02da1cdf9f90c7ed6e97703dd782acc4..91447e4fc9eab906c1b23e998075aba89e3e882d 100644 --- a/.opencode/node_modules/effect/dist/TxDeferred.js +++ b/.opencode/node_modules/effect/dist/TxDeferred.js @@ -1,6 +1,11 @@ /** - * A transactional deferred value — a write-once cell that can be read within transactions. - * Readers retry until a value is set; once set, the value is immutable. + * Transactional deferred values for coordinating Effect transactions. + * + * A `TxDeferred` is a write-once cell whose completion is a + * `Result` stored in transactional state. Readers can wait for the value + * from inside a transaction: while the cell is empty the transaction retries, + * and when another transaction completes the deferred the waiting transaction + * can resume with either the success value or the typed failure. * * @since 4.0.0 */ @@ -35,7 +40,12 @@ const makeTxDeferred = ref => { /** * Creates a new empty `TxDeferred`. * - * @example + * **When to use** + * + * Use to create a transactional deferred that can be completed exactly once. + * + * **Example** (Creating a transactional deferred) + * * ```ts * import { Effect, Option, TxDeferred } from "effect" * @@ -46,15 +56,16 @@ const makeTxDeferred = ref => { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const make = () => Effect.map(TxRef.make(O.none()), makeTxDeferred); /** * Reads the deferred value. Retries the transaction if the deferred has not * been completed yet. * - * @example + * **Example** (Awaiting a deferred value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -66,8 +77,8 @@ export const make = () => Effect.map(TxRef.make(O.none()), makeTxDeferred); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 4.0.0 */ const await_ = self => Effect.gen(function* () { const option = yield* TxRef.get(self.ref); @@ -81,15 +92,27 @@ export { * Reads the deferred value. Retries the transaction if the deferred has not * been completed yet. * - * @since 4.0.0 + * **When to use** + * + * Use to read the success value of a `TxDeferred` while retrying until the + * deferred is completed. + * + * @see {@link poll} for inspecting the current completion state without retrying the transaction + * * @category getters + * @since 4.0.0 */ await_ as await }; /** * Reads the current state of the deferred without retrying. Returns `None` if * not yet completed. * - * @example + * **When to use** + * + * Use to inspect a `TxDeferred` without retrying when it is not completed yet. + * + * **Example** (Polling a deferred) + * * ```ts * import { Effect, Option, Result, TxDeferred } from "effect" * @@ -104,15 +127,20 @@ await_ as await }; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const poll = self => TxRef.get(self.ref); /** * Completes the deferred with a `Result`. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with an already computed `Result`. + * + * **Example** (Completing with a result) + * * ```ts * import { Effect, Result, TxDeferred } from "effect" * @@ -125,8 +153,8 @@ export const poll = self => TxRef.get(self.ref); * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const done = /*#__PURE__*/dual(2, (self, result) => TxRef.modify(self.ref, current => { if (O.isSome(current)) { @@ -138,7 +166,12 @@ export const done = /*#__PURE__*/dual(2, (self, result) => TxRef.modify(self.ref * Completes the deferred with a success value. Returns `true` if this was the * first completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a successful value. + * + * **Example** (Completing with a success value) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -151,15 +184,20 @@ export const done = /*#__PURE__*/dual(2, (self, result) => TxRef.modify(self.ref * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, Res.succeed(value))); /** * Completes the deferred with a failure. Returns `true` if this was the first * completion, `false` if already completed. * - * @example + * **When to use** + * + * Use to complete a `TxDeferred` with a typed failure value. + * + * **Example** (Completing with a failure) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -172,14 +210,19 @@ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, Res.succ * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, Res.fail(error))); /** * Determines if the provided value is a `TxDeferred`. * - * @example + * **When to use** + * + * Use to narrow an unknown value before treating it as a transactional deferred. + * + * **Example** (Checking transactional deferreds) + * * ```ts * import { Effect, TxDeferred } from "effect" * @@ -190,8 +233,8 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, Res.fail(er * }) * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxDeferred = u => hasProperty(u, TypeId); //# sourceMappingURL=TxDeferred.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxDeferred.js.map b/.opencode/node_modules/effect/dist/TxDeferred.js.map index 087f41d5c60f273eb82684096e260387107c7395..192ab3af1e2c98281f293fd7c92e1c169e0d4a1e 100644 --- a/.opencode/node_modules/effect/dist/TxDeferred.js.map +++ b/.opencode/node_modules/effect/dist/TxDeferred.js.map @@ -1 +1 @@ -{"version":3,"file":"TxDeferred.js","names":["Effect","dual","NodeInspectSymbol","toJson","O","pipeArguments","hasProperty","Res","TxRef","TypeId","TxDeferredProto","toJSON","_id","pipe","arguments","makeTxDeferred","ref","self","Object","create","make","map","none","await_","gen","option","get","isNone","txRetry","isSuccess","value","success","fail","failure","tx","await","poll","done","result","modify","current","isSome","some","succeed","error","isTxDeferred","u"],"sources":["../src/TxDeferred.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAOA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,OAAO,KAAKC,CAAC,MAAM,aAAa;AAEhC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,GAAG,MAAM,aAAa;AAClC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,iCAAiC;AAqChD,MAAMC,eAAe,GAA8D;EACjF,CAACR,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDQ,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE;KACN;EACH,CAAC;EACDC,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC;CACD;AAED,MAAMC,cAAc,GAAUC,GAAsC,IAAsB;EACxF,MAAMC,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACT,eAAe,CAAC;EAC3CO,IAAI,CAACR,MAAM,CAAC,GAAGA,MAAM;EACrBQ,IAAI,CAACD,GAAG,GAAGA,GAAG;EACd,OAAOC,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMG,IAAI,GAAGA,CAAA,KAClBpB,MAAM,CAACqB,GAAG,CAACb,KAAK,CAACY,IAAI,CAAuBhB,CAAC,CAACkB,IAAI,EAAE,CAAC,E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AAsB,EAAEa,KAAQ,KAA6BO,IAAI,CAACpB,IAAI,EAAEV,GAAG,CAACoC,OAAO,CAACb,KAAK,CAAC,CAAC,CACnG;AAED;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAME,IAAI,gBA2Cb/B,IAAI,CACN,CAAC,EACD,CAAOgB,IAAsB,EAAE2B,KAAQ,KAA6BP,IAAI,CAACpB,IAAI,EAAEV,GAAG,CAACyB,IAAI,CAACY,KAAK,CAAC,CAAC,CAChG;AAED;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,YAAY,GAAIC,CAAU,IAAwCxC,WAAW,CAACwC,CAAC,EAAErC,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxDeferred.js","names":["Effect","dual","NodeInspectSymbol","toJson","O","pipeArguments","hasProperty","Res","TxRef","TypeId","TxDeferredProto","toJSON","_id","pipe","arguments","makeTxDeferred","ref","self","Object","create","make","map","none","await_","gen","option","get","isNone","txRetry","isSuccess","value","success","fail","failure","tx","await","poll","done","result","modify","current","isSome","some","succeed","error","isTxDeferred","u"],"sources":["../src/TxDeferred.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAYA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,OAAO,KAAKC,CAAC,MAAM,aAAa;AAEhC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,GAAG,MAAM,aAAa;AAClC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,iCAAiC;AA0ChD,MAAMC,eAAe,GAA8D;EACjF,CAACR,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDQ,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE;K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;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMqB,IAAI,gBAqDbpC,IAAI,CACN,CAAC,EACD,CAAOgB,IAAsB,EAAEqB,MAAoB,KACjD9B,KAAK,CAAC+B,MAAM,CAACtB,IAAI,CAACD,GAAG,EAAGwB,OAAO,IAAI;EACjC,IAAIpC,CAAC,CAACqC,MAAM,CAACD,OAAO,CAAC,EAAE;IACrB,OAAO,CAAC,KAAK,EAAEA,OAAO,CAAC;EACzB;EACA,OAAO,CAAC,IAAI,EAAEpC,CAAC,CAACsC,IAAI,CAACJ,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC,CACL;AAED;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMK,OAAO,gBAqDhB1C,IAAI,CACN,CAAC,EACD,CAAOgB,IAAsB,EAAEa,KAAQ,KAA6BO,IAAI,CAACpB,IAAI,EAAEV,GAAG,CAACoC,OAAO,CAACb,KAAK,CAAC,CAAC,CACnG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAME,IAAI,gBAqDb/B,IAAI,CACN,CAAC,EACD,CAAOgB,IAAsB,EAAE2B,KAAQ,KAA6BP,IAAI,CAACpB,IAAI,EAAEV,GAAG,CAACyB,IAAI,CAACY,KAAK,CAAC,CAAC,CAChG;AAED;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,YAAY,GAAIC,CAAU,IAAwCxC,WAAW,CAACwC,CAAC,EAAErC,MAAM,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxHashMap.d.ts b/.opencode/node_modules/effect/dist/TxHashMap.d.ts index cec542b38a6f1faa9c6b18d4546198df95412e84..44677eb1b5ed7f377eb584ee94c624678b61ed08 100644 --- a/.opencode/node_modules/effect/dist/TxHashMap.d.ts +++ b/.opencode/node_modules/effect/dist/TxHashMap.d.ts @@ -1,4 +1,12 @@ /** + * Transactional hash maps for storing and updating key-value pairs inside + * Effect transactions. + * + * A `TxHashMap` stores an immutable `HashMap` in a `TxRef`, so map reads and + * writes can commit atomically with other transactional operations. Use it for + * shared registries, counters, indexes, and other maps that need safe + * read-modify-write sequences alongside related transactional state. + * * @since 2.0.0 */ import * as Effect from "./Effect.ts"; @@ -14,7 +22,8 @@ declare const TypeId = "~effect/transactions/TxHashMap"; * on key-value pairs within Effect transactions. It uses an immutable HashMap internally * with TxRef for transactional semantics, ensuring all operations are performed atomically. * - * @example + * **Example** (Using transactional hash maps) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -43,8 +52,8 @@ declare const TypeId = "~effect/transactions/TxHashMap"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ export interface TxHashMap extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -54,7 +63,8 @@ export interface TxHashMap extends Inspectable, Pipeable { * The TxHashMap namespace contains type-level utilities and helper types * for working with TxHashMap instances. * - * @example + * **Example** (Reusing extracted TxHashMap types) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -82,14 +92,14 @@ export interface TxHashMap extends Inspectable, Pipeable { * }) * ``` * - * @since 2.0.0 - * @category models + * @since 4.0.0 */ export declare namespace TxHashMap { /** * Extracts the key type from a TxHashMap type. * - * @example + * **Example** (Extracting key types) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -109,14 +119,15 @@ export declare namespace TxHashMap { * }) * ``` * - * @since 2.0.0 - * @category type-level + * @category utility types + * @since 4.0.0 */ type Key> = T extends TxHashMap ? K : never; /** * Extracts the value type from a TxHashMap type. * - * @example + * **Example** (Extracting value types) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -140,14 +151,15 @@ export declare namespace TxHashMap { * }) * ``` * - * @since 2.0.0 - * @category type-level + * @category utility types + * @since 4.0.0 */ type Value> = T extends TxHashMap ? V : never; /** * Extracts the entry type from a TxHashMap type. * - * @example + * **Example** (Extracting entry types) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -174,15 +186,16 @@ export declare namespace TxHashMap { * }) * ``` * - * @since 2.0.0 - * @category type-level + * @category utility types + * @since 4.0.0 */ type Entry> = T extends TxHashMap ? readonly [K, V] : never; } /** * Creates an empty TxHashMap. * - * @example + * **Example** (Creating an empty map) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -204,14 +217,15 @@ export declare namespace TxHashMap { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const empty: () => Effect.Effect>; /** * Creates a TxHashMap from the provided key-value pairs. * - * @example + * **Example** (Creating a map from entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -236,14 +250,15 @@ export declare const empty: () => Effect.Effect>; * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: (...entries: Array) => Effect.Effect>; /** * Creates a TxHashMap from an iterable of key-value pairs. * - * @example + * **Example** (Creating a map from an iterable) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -271,14 +286,15 @@ export declare const make: (...entries: Array) => Effect. * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const fromIterable: (entries: Iterable) => Effect.Effect>; /** - * Safely lookup the value for the specified key in the TxHashMap. + * Looks up the value for the specified key in the TxHashMap. + * + * **Example** (Looking up values safely) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -303,14 +319,15 @@ export declare const fromIterable: (entries: Iterable) => * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const get: { /** - * Safely lookup the value for the specified key in the TxHashMap. + * Looks up the value for the specified key in the TxHashMap. + * + * **Example** (Looking up values safely) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -335,14 +352,15 @@ export declare const get: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (key: K1): (self: TxHashMap) => Effect.Effect>; /** - * Safely lookup the value for the specified key in the TxHashMap. + * Looks up the value for the specified key in the TxHashMap. + * + * **Example** (Looking up values safely) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -367,18 +385,21 @@ export declare const get: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, key: K1): Effect.Effect>; }; /** * Sets the value for the specified key in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * its internal state. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating its internal state. + * It does not return a new TxHashMap reference. + * + * **Example** (Setting values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -403,17 +424,20 @@ export declare const get: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const set: { /** * Sets the value for the specified key in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * its internal state. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating its internal state. + * It does not return a new TxHashMap reference. + * + * **Example** (Setting values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -438,17 +462,20 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (key: K, value: V): (self: TxHashMap) => Effect.Effect; /** * Sets the value for the specified key in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * its internal state. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating its internal state. + * It does not return a new TxHashMap reference. + * + * **Example** (Setting values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -473,15 +500,16 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, key: K, value: V): Effect.Effect; }; /** - * Checks if the specified key exists in the TxHashMap. + * Checks whether the specified key exists in the TxHashMap. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -505,14 +533,15 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const has: { /** - * Checks if the specified key exists in the TxHashMap. + * Checks whether the specified key exists in the TxHashMap. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -536,14 +565,15 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (key: K1): (self: TxHashMap) => Effect.Effect; /** - * Checks if the specified key exists in the TxHashMap. + * Checks whether the specified key exists in the TxHashMap. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -567,18 +597,21 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, key: K1): Effect.Effect; }; /** * Removes the specified key from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * the specified key-value pair. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing the specified + * key-value pair. It does not return a new TxHashMap reference. + * + * **Example** (Removing keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -606,17 +639,20 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const remove: { /** * Removes the specified key from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * the specified key-value pair. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing the specified + * key-value pair. It does not return a new TxHashMap reference. + * + * **Example** (Removing keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -644,17 +680,20 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (key: K1): (self: TxHashMap) => Effect.Effect; /** * Removes the specified key from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * the specified key-value pair. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing the specified + * key-value pair. It does not return a new TxHashMap reference. + * + * **Example** (Removing keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -682,18 +721,21 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, key: K1): Effect.Effect; }; /** * Removes all entries from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by clearing - * all key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by clearing all key-value pairs. + * It does not return a new TxHashMap reference. + * + * **Example** (Clearing all entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -720,14 +762,15 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const clear: (self: TxHashMap) => Effect.Effect; /** * Returns the number of entries in the TxHashMap. * - * @example + * **Example** (Counting entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -753,14 +796,15 @@ export declare const clear: (self: TxHashMap) => Effect.Effect * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const size: (self: TxHashMap) => Effect.Effect; /** - * Checks if the TxHashMap is empty. + * Checks whether the TxHashMap is empty. + * + * **Example** (Checking for an empty map) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -782,14 +826,15 @@ export declare const size: (self: TxHashMap) => Effect.Effect(self: TxHashMap) => Effect.Effect; /** - * Checks if the TxHashMap is non-empty. + * Checks whether the TxHashMap is non-empty. + * + * **Example** (Checking for a non-empty map) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -806,17 +851,20 @@ export declare const isEmpty: (self: TxHashMap) => Effect.Effect(self: TxHashMap) => Effect.Effect; /** - * Updates the value for the specified key if it exists. + * Updates the value for the specified key if it exists, returning the previous value in `Some`; returns `None` and leaves the map unchanged when the key is absent. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * the value at the specified key. It does not return a new TxHashMap reference. + * This function mutates the original TxHashMap by updating the value at the + * specified key. It does not return a new TxHashMap reference. + * + * **Example** (Updating existing values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -850,17 +898,20 @@ export declare const isNonEmpty: (self: TxHashMap) => Effect.Effect< * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const modify: { /** - * Updates the value for the specified key if it exists. + * Updates the value for the specified key if it exists, returning the previous value in `Some`; returns `None` and leaves the map unchanged when the key is absent. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * the value at the specified key. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating the value at the + * specified key. It does not return a new TxHashMap reference. + * + * **Example** (Updating existing values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -894,17 +945,20 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (key: K, f: (value: V) => V): (self: TxHashMap) => Effect.Effect>; /** - * Updates the value for the specified key if it exists. + * Updates the value for the specified key if it exists, returning the previous value in `Some`; returns `None` and leaves the map unchanged when the key is absent. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * the value at the specified key. It does not return a new TxHashMap reference. + * This function mutates the original TxHashMap by updating the value at the + * specified key. It does not return a new TxHashMap reference. + * + * **Example** (Updating existing values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -938,19 +992,22 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, key: K, f: (value: V) => V): Effect.Effect>; }; /** * Updates the value for the specified key using an Option-based update function. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating, - * adding, or removing the key-value pair based on the function result. It does not - * return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating, adding, or removing + * the key-value pair based on the function result. It does not return a new + * TxHashMap reference. + * + * **Example** (Updating values with Option) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -989,18 +1046,21 @@ export declare const modify: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const modifyAt: { /** * Updates the value for the specified key using an Option-based update function. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating, - * adding, or removing the key-value pair based on the function result. It does not - * return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating, adding, or removing + * the key-value pair based on the function result. It does not return a new + * TxHashMap reference. + * + * **Example** (Updating values with Option) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1039,18 +1099,21 @@ export declare const modifyAt: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (key: K, f: (value: Option.Option) => Option.Option): (self: TxHashMap) => Effect.Effect; /** * Updates the value for the specified key using an Option-based update function. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating, - * adding, or removing the key-value pair based on the function result. It does not - * return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating, adding, or removing + * the key-value pair based on the function result. It does not return a new + * TxHashMap reference. + * + * **Example** (Updating values with Option) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1089,15 +1152,16 @@ export declare const modifyAt: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, key: K, f: (value: Option.Option) => Option.Option): Effect.Effect; }; /** * Returns an array of all keys in the TxHashMap. * - * @example + * **Example** (Reading keys) + * * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -1121,14 +1185,15 @@ export declare const modifyAt: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const keys: (self: TxHashMap) => Effect.Effect>; /** * Returns an array of all values in the TxHashMap. * - * @example + * **Example** (Reading values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1140,12 +1205,12 @@ export declare const keys: (self: TxHashMap) => Effect.Effect a - b)) // [87, 92, 95] * * // Calculate average * const average = allScores.reduce((sum, score) => sum + score, 0) / * allScores.length - * console.log(average) // 91.33 + * console.log(average.toFixed(2)) // "91.33" * * // Find maximum * const maxScore = Math.max(...allScores) @@ -1153,14 +1218,15 @@ export declare const keys: (self: TxHashMap) => Effect.Effect(self: TxHashMap) => Effect.Effect>; /** * Returns an array of all key-value pairs in the TxHashMap. * - * @example + * **Example** (Reading entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1172,11 +1238,12 @@ export declare const values: (self: TxHashMap) => Effect.Effect left.localeCompare(right)) + * console.log(sortedEntries) * // [["host", "localhost"], ["port", "3000"], ["ssl", "false"]] * * // Process configuration entries - * for (const [key, value] of allEntries) { + * for (const [key, value] of sortedEntries) { * console.log(`${key}=${value}`) * } * // host=localhost @@ -1185,14 +1252,15 @@ export declare const values: (self: TxHashMap) => Effect.Effect(self: TxHashMap) => Effect.Effect>; /** * Returns an immutable snapshot of the current TxHashMap state. * - * @example + * **Example** (Taking immutable snapshots) + * * ```ts * import { Effect, HashMap, TxHashMap } from "effect" * @@ -1220,18 +1288,21 @@ export declare const entries: (self: TxHashMap) => Effect.Effect(self: TxHashMap) => Effect.Effect>; /** * Merges another HashMap into this TxHashMap. If both maps contain the same key, * the value from the other map will be used. * - * **Mutation behavior**: This function mutates the original TxHashMap by merging - * the provided HashMap into it. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by merging the provided HashMap + * into it. It does not return a new TxHashMap reference. + * + * **Example** (Merging HashMaps) * - * @example * ```ts * import { Effect, HashMap, TxHashMap } from "effect" * @@ -1268,18 +1339,21 @@ export declare const snapshot: (self: TxHashMap) => Effect.Effect(other: HashMap.HashMap): (self: TxHashMap) => Effect.Effect; /** * Merges another HashMap into this TxHashMap. If both maps contain the same key, * the value from the other map will be used. * - * **Mutation behavior**: This function mutates the original TxHashMap by merging - * the provided HashMap into it. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by merging the provided HashMap + * into it. It does not return a new TxHashMap reference. + * + * **Example** (Merging HashMaps) * - * @example * ```ts * import { Effect, HashMap, TxHashMap } from "effect" * @@ -1364,18 +1441,21 @@ export declare const union: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, other: HashMap.HashMap): Effect.Effect; }; /** * Removes multiple keys from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * all specified keys. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing all specified keys. + * It does not return a new TxHashMap reference. + * + * **Example** (Removing multiple keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1408,17 +1488,20 @@ export declare const union: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const removeMany: { /** * Removes multiple keys from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * all specified keys. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing all specified keys. + * It does not return a new TxHashMap reference. + * + * **Example** (Removing multiple keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1451,17 +1534,20 @@ export declare const removeMany: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (keys: Iterable): (self: TxHashMap) => Effect.Effect; /** * Removes multiple keys from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * all specified keys. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing all specified keys. + * It does not return a new TxHashMap reference. + * + * **Example** (Removing multiple keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1494,18 +1580,21 @@ export declare const removeMany: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, keys: Iterable): Effect.Effect; }; /** * Sets multiple key-value pairs in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by setting - * all provided key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by setting all provided key-value + * pairs. It does not return a new TxHashMap reference. + * + * **Example** (Setting multiple entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1553,17 +1642,20 @@ export declare const removeMany: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const setMany: { /** * Sets multiple key-value pairs in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by setting - * all provided key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by setting all provided key-value + * pairs. It does not return a new TxHashMap reference. + * + * **Example** (Setting multiple entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1611,17 +1703,20 @@ export declare const setMany: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (entries: Iterable): (self: TxHashMap) => Effect.Effect; /** * Sets multiple key-value pairs in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by setting - * all provided key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by setting all provided key-value + * pairs. It does not return a new TxHashMap reference. + * + * **Example** (Setting multiple entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1669,15 +1764,16 @@ export declare const setMany: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, entries: Iterable): Effect.Effect; }; /** * Returns `true` if the specified value is a `TxHashMap`, `false` otherwise. * - * @example + * **Example** (Checking TxHashMap values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1700,23 +1796,29 @@ export declare const setMany: { * }) * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxHashMap: (value: unknown) => value is TxHashMap; /** - * Lookup the value for the specified key in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Looks up the value for the specified key using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Looking up values with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a cache with user sessions * const cache = yield* TxHashMap.make( - * ["session_abc123", { userId: "user1", lastActive: Date.now() }], - * ["session_def456", { userId: "user2", lastActive: Date.now() }] + * ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }], + * ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }] * ) * * // When you have precomputed hash (e.g., from another lookup) @@ -1737,23 +1839,29 @@ export declare const isTxHashMap: (value: unknown) => value is TxHashMap(key: K1, hash: number): (self: TxHashMap) => Effect.Effect>; /** - * Lookup the value for the specified key in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Looks up the value for the specified key using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Looking up values with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a cache with user sessions * const cache = yield* TxHashMap.make( - * ["session_abc123", { userId: "user1", lastActive: Date.now() }], - * ["session_def456", { userId: "user2", lastActive: Date.now() }] + * ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }], + * ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }] * ) * * // When you have precomputed hash (e.g., from another lookup) @@ -1811,16 +1925,22 @@ export declare const getHash: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, key: K1, hash: number): Effect.Effect>; }; /** - * Checks if the specified key has an entry in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Checks whether the specified key has an entry using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Checking keys with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * @@ -1858,15 +1978,21 @@ export declare const getHash: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const hasHash: { /** - * Checks if the specified key has an entry in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Checks whether the specified key has an entry using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Checking keys with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * @@ -1904,15 +2030,21 @@ export declare const hasHash: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (key: K1, hash: number): (self: TxHashMap) => Effect.Effect; /** - * Checks if the specified key has an entry in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Checks whether the specified key has an entry using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Checking keys with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * @@ -1950,18 +2082,21 @@ export declare const hasHash: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, key: K1, hash: number): Effect.Effect; }; /** * Transforms all values in the TxHashMap using the provided function, preserving keys. * - * **Return behavior**: This function returns a new TxHashMap reference with the - * transformed values. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with the transformed values. + * The original TxHashMap is not modified. + * + * **Example** (Mapping values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1997,17 +2132,20 @@ export declare const hasHash: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const map: { /** * Transforms all values in the TxHashMap using the provided function, preserving keys. * - * **Return behavior**: This function returns a new TxHashMap reference with the - * transformed values. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with the transformed values. + * The original TxHashMap is not modified. + * + * **Example** (Mapping values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2043,17 +2181,20 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (f: (value: V, key: K) => A): (self: TxHashMap) => Effect.Effect>; /** * Transforms all values in the TxHashMap using the provided function, preserving keys. * - * **Return behavior**: This function returns a new TxHashMap reference with the - * transformed values. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with the transformed values. + * The original TxHashMap is not modified. + * + * **Example** (Mapping values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2089,18 +2230,21 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, f: (value: V, key: K) => A): Effect.Effect>; }; /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2139,17 +2283,20 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const filter: { /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2188,17 +2335,20 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => value is B): (self: TxHashMap) => Effect.Effect>; /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2237,17 +2387,20 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => boolean): (self: TxHashMap) => Effect.Effect>; /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2286,17 +2439,20 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => value is B): Effect.Effect>; /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2335,8 +2491,8 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => boolean): Effect.Effect>; }; @@ -2344,7 +2500,8 @@ export declare const filter: { * Reduces the TxHashMap entries to a single value by applying a reducer function. * Iterates over all key-value pairs and accumulates them into a final result. * - * @example + * **Example** (Reducing entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2391,15 +2548,16 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const reduce: { /** * Reduces the TxHashMap entries to a single value by applying a reducer function. * Iterates over all key-value pairs and accumulates them into a final result. * - * @example + * **Example** (Reducing entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2446,15 +2604,16 @@ export declare const reduce: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (zero: A, f: (accumulator: A, value: V, key: K) => A): (self: TxHashMap) => Effect.Effect; /** * Reduces the TxHashMap entries to a single value by applying a reducer function. * Iterates over all key-value pairs and accumulates them into a final result. * - * @example + * **Example** (Reducing entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2501,8 +2660,8 @@ export declare const reduce: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, zero: A, f: (accumulator: A, value: V, key: K) => A): Effect.Effect; }; @@ -2510,10 +2669,13 @@ export declare const reduce: { * Combines filtering and mapping in a single operation. Applies a filter to each * entry, keeping only successful results and transforming them. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the transformed entries that succeeded. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the transformed + * entries that succeeded. The original TxHashMap is not modified. + * + * **Example** (Filtering and mapping entries) * - * @example * ```ts * import { Effect, Option, Result, TxHashMap } from "effect" * @@ -2560,18 +2722,21 @@ export declare const reduce: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const filterMap: { /** * Combines filtering and mapping in a single operation. Applies a filter to each * entry, keeping only successful results and transforming them. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the transformed entries that succeeded. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the transformed + * entries that succeeded. The original TxHashMap is not modified. + * + * **Example** (Filtering and mapping entries) * - * @example * ```ts * import { Effect, Option, Result, TxHashMap } from "effect" * @@ -2618,18 +2783,21 @@ export declare const filterMap: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (f: (input: V, key: K) => Result): (self: TxHashMap) => Effect.Effect>; /** * Combines filtering and mapping in a single operation. Applies a filter to each * entry, keeping only successful results and transforming them. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the transformed entries that succeeded. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the transformed + * entries that succeeded. The original TxHashMap is not modified. + * + * **Example** (Filtering and mapping entries) * - * @example * ```ts * import { Effect, Option, Result, TxHashMap } from "effect" * @@ -2676,24 +2844,26 @@ export declare const filterMap: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, f: (input: V, key: K) => Result): Effect.Effect>; }; /** - * Checks if any entry in the TxHashMap matches the given predicate. + * Checks whether any entry in the TxHashMap matches the given predicate. + * + * **Example** (Checking entries with a predicate) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a user status map + * const currentTime = 1_700_000_000_000 * const userStatuses = yield* TxHashMap.make( - * ["alice", { status: "online", lastSeen: Date.now() }], - * ["bob", { status: "offline", lastSeen: Date.now() - 3600000 }], - * ["charlie", { status: "online", lastSeen: Date.now() }] + * ["alice", { status: "online", lastSeen: currentTime }], + * ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }], + * ["charlie", { status: "online", lastSeen: currentTime }] * ) * * // Check if any users are online @@ -2712,29 +2882,31 @@ export declare const filterMap: { * * // Data-last usage with pipe * const hasRecentActivity = yield* userStatuses.pipe( - * TxHashMap.hasBy((user) => Date.now() - user.lastSeen < 1800000) // 30 minutes + * TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes * ) * console.log(hasRecentActivity) // true * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const hasBy: { /** - * Checks if any entry in the TxHashMap matches the given predicate. + * Checks whether any entry in the TxHashMap matches the given predicate. + * + * **Example** (Checking entries with a predicate) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a user status map + * const currentTime = 1_700_000_000_000 * const userStatuses = yield* TxHashMap.make( - * ["alice", { status: "online", lastSeen: Date.now() }], - * ["bob", { status: "offline", lastSeen: Date.now() - 3600000 }], - * ["charlie", { status: "online", lastSeen: Date.now() }] + * ["alice", { status: "online", lastSeen: currentTime }], + * ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }], + * ["charlie", { status: "online", lastSeen: currentTime }] * ) * * // Check if any users are online @@ -2753,29 +2925,31 @@ export declare const hasBy: { * * // Data-last usage with pipe * const hasRecentActivity = yield* userStatuses.pipe( - * TxHashMap.hasBy((user) => Date.now() - user.lastSeen < 1800000) // 30 minutes + * TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes * ) * console.log(hasRecentActivity) // true * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => boolean): (self: TxHashMap) => Effect.Effect; /** - * Checks if any entry in the TxHashMap matches the given predicate. + * Checks whether any entry in the TxHashMap matches the given predicate. + * + * **Example** (Checking entries with a predicate) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a user status map + * const currentTime = 1_700_000_000_000 * const userStatuses = yield* TxHashMap.make( - * ["alice", { status: "online", lastSeen: Date.now() }], - * ["bob", { status: "offline", lastSeen: Date.now() - 3600000 }], - * ["charlie", { status: "online", lastSeen: Date.now() }] + * ["alice", { status: "online", lastSeen: currentTime }], + * ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }], + * ["charlie", { status: "online", lastSeen: currentTime }] * ) * * // Check if any users are online @@ -2794,14 +2968,14 @@ export declare const hasBy: { * * // Data-last usage with pipe * const hasRecentActivity = yield* userStatuses.pipe( - * TxHashMap.hasBy((user) => Date.now() - user.lastSeen < 1800000) // 30 minutes + * TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes * ) * console.log(hasRecentActivity) // true * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => boolean): Effect.Effect; }; @@ -2809,7 +2983,8 @@ export declare const hasBy: { * Finds the first entry in the TxHashMap that matches the given predicate. * Returns the key-value pair as a tuple wrapped in an Option. * - * @example + * **Example** (Finding the first matching entry) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2844,15 +3019,16 @@ export declare const hasBy: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const findFirst: { /** * Finds the first entry in the TxHashMap that matches the given predicate. * Returns the key-value pair as a tuple wrapped in an Option. * - * @example + * **Example** (Finding the first matching entry) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2887,15 +3063,16 @@ export declare const findFirst: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => boolean): (self: TxHashMap) => Effect.Effect>; /** * Finds the first entry in the TxHashMap that matches the given predicate. * Returns the key-value pair as a tuple wrapped in an Option. * - * @example + * **Example** (Finding the first matching entry) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2930,15 +3107,16 @@ export declare const findFirst: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => boolean): Effect.Effect>; }; /** - * Checks if at least one entry in the TxHashMap satisfies the given predicate. + * Checks whether at least one entry in the TxHashMap satisfies the given predicate. + * + * **Example** (Checking whether some entries match) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -2972,14 +3150,15 @@ export declare const findFirst: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const some: { /** - * Checks if at least one entry in the TxHashMap satisfies the given predicate. + * Checks whether at least one entry in the TxHashMap satisfies the given predicate. + * + * **Example** (Checking whether some entries match) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3013,14 +3192,15 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => boolean): (self: TxHashMap) => Effect.Effect; /** - * Checks if at least one entry in the TxHashMap satisfies the given predicate. + * Checks whether at least one entry in the TxHashMap satisfies the given predicate. + * + * **Example** (Checking whether some entries match) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3054,15 +3234,16 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => boolean): Effect.Effect; }; /** - * Checks if all entries in the TxHashMap satisfy the given predicate. + * Checks whether all entries in the TxHashMap satisfy the given predicate. + * + * **Example** (Checking whether every entry matches) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3096,14 +3277,15 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const every: { /** - * Checks if all entries in the TxHashMap satisfy the given predicate. + * Checks whether all entries in the TxHashMap satisfy the given predicate. + * + * **Example** (Checking whether every entry matches) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3137,14 +3319,15 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (predicate: (value: V, key: K) => boolean): (self: TxHashMap) => Effect.Effect; /** - * Checks if all entries in the TxHashMap satisfy the given predicate. + * Checks whether all entries in the TxHashMap satisfy the given predicate. + * + * **Example** (Checking whether every entry matches) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3178,8 +3361,8 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, predicate: (value: V, key: K) => boolean): Effect.Effect; }; @@ -3187,7 +3370,8 @@ export declare const every: { * Executes a side-effect function for each entry in the TxHashMap. * The function receives the value and key as parameters and can perform effects. * - * @example + * **Example** (Running effects for each entry) + * * ```ts * import { Console, Effect, TxHashMap } from "effect" * @@ -3221,15 +3405,16 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const forEach: { /** * Executes a side-effect function for each entry in the TxHashMap. * The function receives the value and key as parameters and can perform effects. * - * @example + * **Example** (Running effects for each entry) + * * ```ts * import { Console, Effect, TxHashMap } from "effect" * @@ -3263,15 +3448,16 @@ export declare const forEach: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (f: (value: V, key: K) => Effect.Effect): (self: TxHashMap) => Effect.Effect; /** * Executes a side-effect function for each entry in the TxHashMap. * The function receives the value and key as parameters and can perform effects. * - * @example + * **Example** (Running effects for each entry) + * * ```ts * import { Console, Effect, TxHashMap } from "effect" * @@ -3305,19 +3491,21 @@ export declare const forEach: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashMap, f: (value: V, key: K) => Effect.Effect): Effect.Effect; }; /** - * Transforms the TxHashMap by applying a function that returns a TxHashMap to each entry, - * then flattening the results. Useful for complex transformations that require creating new maps. + * Maps each entry effectfully to a `TxHashMap` and flattens the produced maps. + * + * **Details** * - * **Return behavior**: This function returns a new TxHashMap reference with the - * flattened results. The original TxHashMap is not modified. + * This function returns a new TxHashMap reference with the flattened results. + * The original TxHashMap is not modified. + * + * **Example** (Flat mapping entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3358,18 +3546,20 @@ export declare const forEach: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const flatMap: { /** - * Transforms the TxHashMap by applying a function that returns a TxHashMap to each entry, - * then flattening the results. Useful for complex transformations that require creating new maps. + * Maps each entry effectfully to a `TxHashMap` and flattens the produced maps. + * + * **Details** + * + * This function returns a new TxHashMap reference with the flattened results. + * The original TxHashMap is not modified. * - * **Return behavior**: This function returns a new TxHashMap reference with the - * flattened results. The original TxHashMap is not modified. + * **Example** (Flat mapping entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3410,18 +3600,20 @@ export declare const flatMap: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (f: (value: V, key: K) => Effect.Effect>): (self: TxHashMap) => Effect.Effect>; /** - * Transforms the TxHashMap by applying a function that returns a TxHashMap to each entry, - * then flattening the results. Useful for complex transformations that require creating new maps. + * Maps each entry effectfully to a `TxHashMap` and flattens the produced maps. + * + * **Details** * - * **Return behavior**: This function returns a new TxHashMap reference with the - * flattened results. The original TxHashMap is not modified. + * This function returns a new TxHashMap reference with the flattened results. + * The original TxHashMap is not modified. + * + * **Example** (Flat mapping entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3462,18 +3654,21 @@ export declare const flatMap: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: TxHashMap, f: (value: V, key: K) => Effect.Effect>): Effect.Effect>; }; /** * Removes all None values from a TxHashMap containing Option values. * - * **Return behavior**: This function returns a new TxHashMap reference with only - * the Some values unwrapped. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with only the Some values + * unwrapped. The original TxHashMap is not modified. + * + * **Example** (Compacting optional values) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -3505,19 +3700,21 @@ export declare const flatMap: { * // Useful for cleaning up optional data processing results * const userAges = yield* TxHashMap.map(validUsers, (user) => user.age) * const ageEntries = yield* TxHashMap.entries(userAges) - * console.log(ageEntries) // [["alice", 30], ["charlie", 25], ["eve", 28]] + * const sortedAgeEntries = ageEntries.toSorted(([left], [right]) => left.localeCompare(right)) + * console.log(sortedAgeEntries) // [["alice", 30], ["charlie", 25], ["eve", 28]] * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const compact: (self: TxHashMap>) => Effect.Effect>; /** * Returns an array of all key-value pairs in the TxHashMap. * This is an alias for the `entries` function, providing API consistency with HashMap. * - * @example + * **Example** (Converting to entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3530,29 +3727,32 @@ export declare const compact: (self: TxHashMap>) => Ef * * // Get all entries as an array * const allEntries = yield* TxHashMap.toEntries(settings) - * console.log(allEntries) - * // [["theme", "dark"], ["language", "en-US"], ["timezone", "UTC"]] + * const sortedEntries = allEntries.toSorted(([left], [right]) => left.localeCompare(right)) + * console.log(sortedEntries) + * // [["language", "en-US"], ["theme", "dark"], ["timezone", "UTC"]] * * // Process entries - * for (const [setting, value] of allEntries) { + * for (const [setting, value] of sortedEntries) { * console.log(`${setting}: ${value}`) * } * * // Convert to object for JSON serialization - * const settingsObj = Object.fromEntries(allEntries) + * const settingsObj = Object.fromEntries(sortedEntries) * console.log(JSON.stringify(settingsObj)) + * // {"language":"en-US","theme":"dark","timezone":"UTC"} * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const toEntries: (self: TxHashMap) => Effect.Effect>; /** * Returns an array of all values in the TxHashMap. * This is an alias for the `values` function, providing API consistency with HashMap. * - * @example + * **Example** (Converting to values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -3565,24 +3765,23 @@ export declare const toEntries: (self: TxHashMap) => Effect.Effect sum + (product.price * product.stock), * 0 * ) - * console.log(`Total inventory value: $${totalValue}`) // $8,435 + * console.log(`Total inventory value: $${totalValue}`) // Total inventory value: $8025 * * // Find products with low stock * const lowStockProducts = products.filter((product) => product.stock < 10) - * console.log(`${lowStockProducts.length} products with low stock`) + * console.log(`${lowStockProducts.length} product with low stock`) // 1 product with low stock * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const toValues: (self: TxHashMap) => Effect.Effect>; export {}; diff --git a/.opencode/node_modules/effect/dist/TxHashMap.d.ts.map b/.opencode/node_modules/effect/dist/TxHashMap.d.ts.map index a53a439ed3a3f717d23ace1a1d42e5f956af69ad..56d918eadba937db3f6d0598eb6914ad41f21f32 100644 --- a/.opencode/node_modules/effect/dist/TxHashMap.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxHashMap.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxHashMap.d.ts","sourceRoot":"","sources":["../src/TxHashMap.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,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,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAiB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxHashMap.js b/.opencode/node_modules/effect/dist/TxHashMap.js index 73411b53b920ada1df0dc6c8a65629c7e0b38fa0..d0ce1a0407b3240cdbd13bd2b0b99f70494be80f 100644 --- a/.opencode/node_modules/effect/dist/TxHashMap.js +++ b/.opencode/node_modules/effect/dist/TxHashMap.js @@ -1,4 +1,12 @@ /** + * Transactional hash maps for storing and updating key-value pairs inside + * Effect transactions. + * + * A `TxHashMap` stores an immutable `HashMap` in a `TxRef`, so map reads and + * writes can commit atomically with other transactional operations. Use it for + * shared registries, counters, indexes, and other maps that need safe + * read-modify-write sequences alongside related transactional state. + * * @since 2.0.0 */ import * as Effect from "./Effect.js"; @@ -32,7 +40,8 @@ const TxHashMapProto = { /** * Creates an empty TxHashMap. * - * @example + * **Example** (Creating an empty map) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -54,8 +63,8 @@ const TxHashMapProto = { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const empty = () => Effect.gen(function* () { const ref = yield* TxRef.make(HashMap.empty()); @@ -66,7 +75,8 @@ export const empty = () => Effect.gen(function* () { /** * Creates a TxHashMap from the provided key-value pairs. * - * @example + * **Example** (Creating a map from entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -91,8 +101,8 @@ export const empty = () => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = (...entries) => Effect.gen(function* () { const hashMap = HashMap.make(...entries); @@ -104,7 +114,8 @@ export const make = (...entries) => Effect.gen(function* () { /** * Creates a TxHashMap from an iterable of key-value pairs. * - * @example + * **Example** (Creating a map from an iterable) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -132,8 +143,8 @@ export const make = (...entries) => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fromIterable = entries => Effect.gen(function* () { const hashMap = HashMap.fromIterable(entries); @@ -143,9 +154,10 @@ export const fromIterable = entries => Effect.gen(function* () { }); }); /** - * Safely lookup the value for the specified key in the TxHashMap. + * Looks up the value for the specified key in the TxHashMap. + * + * **Example** (Looking up values safely) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -170,8 +182,8 @@ export const fromIterable = entries => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const get = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); @@ -180,10 +192,13 @@ export const get = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { /** * Sets the value for the specified key in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * its internal state. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating its internal state. + * It does not return a new TxHashMap reference. + * + * **Example** (Setting values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -208,14 +223,15 @@ export const get = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const set = /*#__PURE__*/dual(3, (self, key, value) => TxRef.update(self.ref, map => HashMap.set(map, key, value))); /** - * Checks if the specified key exists in the TxHashMap. + * Checks whether the specified key exists in the TxHashMap. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -239,8 +255,8 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => TxRef.update(self. * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const has = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); @@ -249,10 +265,13 @@ export const has = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { /** * Removes the specified key from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * the specified key-value pair. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing the specified + * key-value pair. It does not return a new TxHashMap reference. + * + * **Example** (Removing keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -280,8 +299,8 @@ export const has = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const remove = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -294,10 +313,13 @@ export const remove = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* ( /** * Removes all entries from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by clearing - * all key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by clearing all key-value pairs. + * It does not return a new TxHashMap reference. + * + * **Example** (Clearing all entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -324,14 +346,15 @@ export const remove = /*#__PURE__*/dual(2, (self, key) => Effect.gen(function* ( * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const clear = self => TxRef.set(self.ref, HashMap.empty()); /** * Returns the number of entries in the TxHashMap. * - * @example + * **Example** (Counting entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -357,17 +380,18 @@ export const clear = self => TxRef.set(self.ref, HashMap.empty()); * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const size = self => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); return HashMap.size(map); }); /** - * Checks if the TxHashMap is empty. + * Checks whether the TxHashMap is empty. + * + * **Example** (Checking for an empty map) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -389,17 +413,18 @@ export const size = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const isEmpty = self => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); return HashMap.isEmpty(map); }); /** - * Checks if the TxHashMap is non-empty. + * Checks whether the TxHashMap is non-empty. + * + * **Example** (Checking for a non-empty map) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -416,17 +441,20 @@ export const isEmpty = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const isNonEmpty = self => Effect.map(isEmpty(self), empty => !empty); /** - * Updates the value for the specified key if it exists. + * Updates the value for the specified key if it exists, returning the previous value in `Some`; returns `None` and leaves the map unchanged when the key is absent. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating - * the value at the specified key. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating the value at the + * specified key. It does not return a new TxHashMap reference. + * + * **Example** (Updating existing values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -460,8 +488,8 @@ export const isNonEmpty = self => Effect.map(isEmpty(self), empty => !empty); * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const modify = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -476,11 +504,14 @@ export const modify = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(function /** * Updates the value for the specified key using an Option-based update function. * - * **Mutation behavior**: This function mutates the original TxHashMap by updating, - * adding, or removing the key-value pair based on the function result. It does not - * return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by updating, adding, or removing + * the key-value pair based on the function result. It does not return a new + * TxHashMap reference. + * + * **Example** (Updating values with Option) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -519,8 +550,8 @@ export const modify = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(function * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const modifyAt = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -535,7 +566,8 @@ export const modifyAt = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(functi /** * Returns an array of all keys in the TxHashMap. * - * @example + * **Example** (Reading keys) + * * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -559,8 +591,8 @@ export const modifyAt = /*#__PURE__*/dual(3, (self, key, f) => Effect.gen(functi * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const keys = self => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); @@ -569,7 +601,8 @@ export const keys = self => Effect.gen(function* () { /** * Returns an array of all values in the TxHashMap. * - * @example + * **Example** (Reading values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -581,12 +614,12 @@ export const keys = self => Effect.gen(function* () { * ) * * const allScores = yield* TxHashMap.values(scores) - * console.log(allScores.sort()) // [87, 92, 95] + * console.log(allScores.sort((a, b) => a - b)) // [87, 92, 95] * * // Calculate average * const average = allScores.reduce((sum, score) => sum + score, 0) / * allScores.length - * console.log(average) // 91.33 + * console.log(average.toFixed(2)) // "91.33" * * // Find maximum * const maxScore = Math.max(...allScores) @@ -594,8 +627,8 @@ export const keys = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const values = self => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); @@ -604,7 +637,8 @@ export const values = self => Effect.gen(function* () { /** * Returns an array of all key-value pairs in the TxHashMap. * - * @example + * **Example** (Reading entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -616,11 +650,12 @@ export const values = self => Effect.gen(function* () { * ) * * const allEntries = yield* TxHashMap.entries(config) - * console.log(allEntries) + * const sortedEntries = allEntries.toSorted(([left], [right]) => left.localeCompare(right)) + * console.log(sortedEntries) * // [["host", "localhost"], ["port", "3000"], ["ssl", "false"]] * * // Process configuration entries - * for (const [key, value] of allEntries) { + * for (const [key, value] of sortedEntries) { * console.log(`${key}=${value}`) * } * // host=localhost @@ -629,8 +664,8 @@ export const values = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const entries = self => Effect.gen(function* () { const map = yield* TxRef.get(self.ref); @@ -639,7 +674,8 @@ export const entries = self => Effect.gen(function* () { /** * Returns an immutable snapshot of the current TxHashMap state. * - * @example + * **Example** (Taking immutable snapshots) + * * ```ts * import { Effect, HashMap, TxHashMap } from "effect" * @@ -667,18 +703,21 @@ export const entries = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const snapshot = self => TxRef.get(self.ref); /** * Merges another HashMap into this TxHashMap. If both maps contain the same key, * the value from the other map will be used. * - * **Mutation behavior**: This function mutates the original TxHashMap by merging - * the provided HashMap into it. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by merging the provided HashMap + * into it. It does not return a new TxHashMap reference. + * + * **Example** (Merging HashMaps) * - * @example * ```ts * import { Effect, HashMap, TxHashMap } from "effect" * @@ -715,17 +754,20 @@ export const snapshot = self => TxRef.get(self.ref); * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const union = /*#__PURE__*/dual(2, (self, other) => TxRef.update(self.ref, map => HashMap.union(map, other))); /** * Removes multiple keys from the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by removing - * all specified keys. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by removing all specified keys. + * It does not return a new TxHashMap reference. + * + * **Example** (Removing multiple keys) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -758,17 +800,20 @@ export const union = /*#__PURE__*/dual(2, (self, other) => TxRef.update(self.ref * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const removeMany = /*#__PURE__*/dual(2, (self, keys) => TxRef.update(self.ref, map => HashMap.removeMany(map, keys))); /** * Sets multiple key-value pairs in the TxHashMap. * - * **Mutation behavior**: This function mutates the original TxHashMap by setting - * all provided key-value pairs. It does not return a new TxHashMap reference. + * **Details** + * + * This function mutates the original TxHashMap by setting all provided key-value + * pairs. It does not return a new TxHashMap reference. + * + * **Example** (Setting multiple entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -816,14 +861,15 @@ export const removeMany = /*#__PURE__*/dual(2, (self, keys) => TxRef.update(self * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const setMany = /*#__PURE__*/dual(2, (self, entries) => TxRef.update(self.ref, map => HashMap.setMany(map, entries))); /** * Returns `true` if the specified value is a `TxHashMap`, `false` otherwise. * - * @example + * **Example** (Checking TxHashMap values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -846,25 +892,31 @@ export const setMany = /*#__PURE__*/dual(2, (self, entries) => TxRef.update(self * }) * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export const isTxHashMap = value => { return hasProperty(value, TypeId); }; /** - * Lookup the value for the specified key in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Looks up the value for the specified key using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Looking up values with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a cache with user sessions * const cache = yield* TxHashMap.make( - * ["session_abc123", { userId: "user1", lastActive: Date.now() }], - * ["session_def456", { userId: "user2", lastActive: Date.now() }] + * ["session_abc123", { userId: "user1", lastActive: 1_700_000_000_000 }], + * ["session_def456", { userId: "user2", lastActive: 1_700_000_060_000 }] * ) * * // When you have precomputed hash (e.g., from another lookup) @@ -885,15 +937,21 @@ export const isTxHashMap = value => { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const getHash = /*#__PURE__*/dual(3, (self, key, hash) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.getHash(map, key, hash)))); /** - * Checks if the specified key has an entry in the TxHashMap using a custom hash. - * This can provide performance benefits when the hash is precomputed. + * Checks whether the specified key has an entry using a caller-supplied hash. + * + * **Gotchas** + * + * The supplied hash must be the hash for the same key, such as a precomputed + * `Hash.hash(key)` value. If the hash does not match the key, an existing entry + * may not be found. + * + * **Example** (Checking keys with precomputed hashes) * - * @example * ```ts * import { Effect, Hash, TxHashMap } from "effect" * @@ -931,17 +989,20 @@ export const getHash = /*#__PURE__*/dual(3, (self, key, hash) => TxRef.get(self. * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const hasHash = /*#__PURE__*/dual(3, (self, key, hash) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.hasHash(map, key, hash)))); /** * Transforms all values in the TxHashMap using the provided function, preserving keys. * - * **Return behavior**: This function returns a new TxHashMap reference with the - * transformed values. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with the transformed values. + * The original TxHashMap is not modified. + * + * **Example** (Mapping values) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -977,8 +1038,8 @@ export const hasHash = /*#__PURE__*/dual(3, (self, key, hash) => TxRef.get(self. * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -988,10 +1049,13 @@ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { /** * Filters the TxHashMap to keep only entries that satisfy the provided predicate. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the entries that match the condition. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the entries + * that match the condition. The original TxHashMap is not modified. + * + * **Example** (Filtering entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1030,8 +1094,8 @@ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -1042,7 +1106,8 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(funct * Reduces the TxHashMap entries to a single value by applying a reducer function. * Iterates over all key-value pairs and accumulates them into a final result. * - * @example + * **Example** (Reducing entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1089,18 +1154,21 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(funct * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const reduce = /*#__PURE__*/dual(3, (self, zero, f) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.reduce(map, zero, f)))); /** * Combines filtering and mapping in a single operation. Applies a filter to each * entry, keeping only successful results and transforming them. * - * **Return behavior**: This function returns a new TxHashMap reference containing - * only the transformed entries that succeeded. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference containing only the transformed + * entries that succeeded. The original TxHashMap is not modified. + * + * **Example** (Filtering and mapping entries) * - * @example * ```ts * import { Effect, Option, Result, TxHashMap } from "effect" * @@ -1147,8 +1215,8 @@ export const reduce = /*#__PURE__*/dual(3, (self, zero, f) => TxRef.get(self.ref * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const filterMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -1156,18 +1224,20 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* return yield* fromHashMap(filteredMap); }).pipe(Effect.tx)); /** - * Checks if any entry in the TxHashMap matches the given predicate. + * Checks whether any entry in the TxHashMap matches the given predicate. + * + * **Example** (Checking entries with a predicate) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * * const program = Effect.gen(function*() { * // Create a user status map + * const currentTime = 1_700_000_000_000 * const userStatuses = yield* TxHashMap.make( - * ["alice", { status: "online", lastSeen: Date.now() }], - * ["bob", { status: "offline", lastSeen: Date.now() - 3600000 }], - * ["charlie", { status: "online", lastSeen: Date.now() }] + * ["alice", { status: "online", lastSeen: currentTime }], + * ["bob", { status: "offline", lastSeen: currentTime - 3_600_000 }], + * ["charlie", { status: "online", lastSeen: currentTime }] * ) * * // Check if any users are online @@ -1186,21 +1256,22 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* * * // Data-last usage with pipe * const hasRecentActivity = yield* userStatuses.pipe( - * TxHashMap.hasBy((user) => Date.now() - user.lastSeen < 1800000) // 30 minutes + * TxHashMap.hasBy((user) => currentTime - user.lastSeen < 1_800_000) // 30 minutes * ) * console.log(hasRecentActivity) // true * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const hasBy = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.hasBy(map, predicate)))); /** * Finds the first entry in the TxHashMap that matches the given predicate. * Returns the key-value pair as a tuple wrapped in an Option. * - * @example + * **Example** (Finding the first matching entry) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1235,14 +1306,15 @@ export const hasBy = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.re * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const findFirst = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.findFirst(map, predicate)))); /** - * Checks if at least one entry in the TxHashMap satisfies the given predicate. + * Checks whether at least one entry in the TxHashMap satisfies the given predicate. + * + * **Example** (Checking whether some entries match) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1276,14 +1348,15 @@ export const findFirst = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(sel * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const some = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.some(map, predicate)))); /** - * Checks if all entries in the TxHashMap satisfy the given predicate. + * Checks whether all entries in the TxHashMap satisfy the given predicate. + * + * **Example** (Checking whether every entry matches) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1317,15 +1390,16 @@ export const some = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.ref * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const every = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.ref).pipe(Effect.map(map => HashMap.every(map, predicate)))); /** * Executes a side-effect function for each entry in the TxHashMap. * The function receives the value and key as parameters and can perform effects. * - * @example + * **Example** (Running effects for each entry) + * * ```ts * import { Console, Effect, TxHashMap } from "effect" * @@ -1359,8 +1433,8 @@ export const every = /*#__PURE__*/dual(2, (self, predicate) => TxRef.get(self.re * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const forEach = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -1368,13 +1442,15 @@ export const forEach = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () yield* Effect.forEach(entries, ([key, value]) => f(value, key)); })); /** - * Transforms the TxHashMap by applying a function that returns a TxHashMap to each entry, - * then flattening the results. Useful for complex transformations that require creating new maps. + * Maps each entry effectfully to a `TxHashMap` and flattens the produced maps. + * + * **Details** * - * **Return behavior**: This function returns a new TxHashMap reference with the - * flattened results. The original TxHashMap is not modified. + * This function returns a new TxHashMap reference with the flattened results. + * The original TxHashMap is not modified. + * + * **Example** (Flat mapping entries) * - * @example * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1415,8 +1491,8 @@ export const forEach = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const flatMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -1432,10 +1508,13 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () /** * Removes all None values from a TxHashMap containing Option values. * - * **Return behavior**: This function returns a new TxHashMap reference with only - * the Some values unwrapped. The original TxHashMap is not modified. + * **Details** + * + * This function returns a new TxHashMap reference with only the Some values + * unwrapped. The original TxHashMap is not modified. + * + * **Example** (Compacting optional values) * - * @example * ```ts * import { Effect, Option, TxHashMap } from "effect" * @@ -1467,12 +1546,13 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () * // Useful for cleaning up optional data processing results * const userAges = yield* TxHashMap.map(validUsers, (user) => user.age) * const ageEntries = yield* TxHashMap.entries(userAges) - * console.log(ageEntries) // [["alice", 30], ["charlie", 25], ["eve", 28]] + * const sortedAgeEntries = ageEntries.toSorted(([left], [right]) => left.localeCompare(right)) + * console.log(sortedAgeEntries) // [["alice", 30], ["charlie", 25], ["eve", 28]] * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const compact = self => Effect.gen(function* () { const currentMap = yield* TxRef.get(self.ref); @@ -1483,7 +1563,8 @@ export const compact = self => Effect.gen(function* () { * Returns an array of all key-value pairs in the TxHashMap. * This is an alias for the `entries` function, providing API consistency with HashMap. * - * @example + * **Example** (Converting to entries) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1496,29 +1577,32 @@ export const compact = self => Effect.gen(function* () { * * // Get all entries as an array * const allEntries = yield* TxHashMap.toEntries(settings) - * console.log(allEntries) - * // [["theme", "dark"], ["language", "en-US"], ["timezone", "UTC"]] + * const sortedEntries = allEntries.toSorted(([left], [right]) => left.localeCompare(right)) + * console.log(sortedEntries) + * // [["language", "en-US"], ["theme", "dark"], ["timezone", "UTC"]] * * // Process entries - * for (const [setting, value] of allEntries) { + * for (const [setting, value] of sortedEntries) { * console.log(`${setting}: ${value}`) * } * * // Convert to object for JSON serialization - * const settingsObj = Object.fromEntries(allEntries) + * const settingsObj = Object.fromEntries(sortedEntries) * console.log(JSON.stringify(settingsObj)) + * // {"language":"en-US","theme":"dark","timezone":"UTC"} * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const toEntries = self => entries(self); /** * Returns an array of all values in the TxHashMap. * This is an alias for the `values` function, providing API consistency with HashMap. * - * @example + * **Example** (Converting to values) + * * ```ts * import { Effect, TxHashMap } from "effect" * @@ -1531,24 +1615,23 @@ export const toEntries = self => entries(self); * * // Get all product information * const products = yield* TxHashMap.toValues(inventory) - * console.log(products) - * // [{ price: 999, stock: 5 }, { price: 29, stock: 50 }, { price: 79, stock: 20 }] + * console.log(products.length) // 3 * * // Calculate total inventory value * const totalValue = products.reduce( * (sum, product) => sum + (product.price * product.stock), * 0 * ) - * console.log(`Total inventory value: $${totalValue}`) // $8,435 + * console.log(`Total inventory value: $${totalValue}`) // Total inventory value: $8025 * * // Find products with low stock * const lowStockProducts = products.filter((product) => product.stock < 10) - * console.log(`${lowStockProducts.length} products with low stock`) + * console.log(`${lowStockProducts.length} product with low stock`) // 1 product with low stock * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const toValues = self => values(self); /** diff --git a/.opencode/node_modules/effect/dist/TxHashMap.js.map b/.opencode/node_modules/effect/dist/TxHashMap.js.map index abce3a54377b2c1a6ceac735af44a203326cf57f..174fc21f88a97ae3bb2ebf4eef6ac93cdbff58a8 100644 --- a/.opencode/node_modules/effect/dist/TxHashMap.js.map +++ b/.opencode/node_modules/effect/dist/TxHashMap.js.map @@ -1 +1 @@ -{"version":3,"file":"TxHashMap.js","names":["Effect","format","dual","HashMap","NodeInspectSymbol","toJson","Option","pipeArguments","hasProperty","TxRef","TypeId","TxHashMapProto","toString","ref","toJSON","_id","pipe","arguments","empty","gen","make","Object","assign","create","entries","hashMap","fromIterable","get","self","key","map","set","value","update","has","remove","currentMap","existed","tx","clear","size","isEmpty","isNonEmpty","modify","f","currentValue","isSome","newValue","none","modifyAt","keys","Array","from","values","toValues","toEntries","snapshot","union","other","removeMany","setMany","isTxHashMap","getHash","hash","hasHash","mappedMap","fromHashMap","filter","predicate","filteredMap","reduce","zero","filterMap","hasBy","findFirst","some","every","forEach","flatMap","result","mapE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MuE,YAAY,GAAGjF,OAAO,CAACgF,OAAO,CAAC/C,UAAU,CAAC;EAChD,OAAO,OAAO8B,WAAW,CAACkB,YAAY,CAAC;AACzC,CAAC,CAAC,CAACpE,IAAI,CAAChB,MAAM,CAACsC,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMiB,SAAS,GACpB3B,IAAqB,IACqBJ,OAAO,CAACI,IAAI,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,OAAO,MAAM0B,QAAQ,GAAU1B,IAAqB,IAA8ByB,MAAM,CAACzB,IAAI,CAAC;AAE9F;;;AAGA,MAAMsC,WAAW,GAAUzC,OAA8B,IACvDzB,MAAM,CAACmB,GAAG,CAAC,aAAS;EAClB,MAAMN,GAAG,GAAG,OAAOJ,KAAK,CAACW,IAAI,CAACK,OAAO,CAAC;EACtC,OAAOJ,MAAM,CAACC,MAAM,CAACD,MAAM,CAACE,MAAM,CAACZ,cAAc,CAAC,EAAE;IAAEE;EAAG,CAAE,CAAC;AAC9D,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxHashMap.js","names":["Effect","format","dual","HashMap","NodeInspectSymbol","toJson","Option","pipeArguments","hasProperty","TxRef","TypeId","TxHashMapProto","toString","ref","toJSON","_id","pipe","arguments","empty","gen","make","Object","assign","create","entries","hashMap","fromIterable","get","self","key","map","set","value","update","has","remove","currentMap","existed","tx","clear","size","isEmpty","isNonEmpty","modify","f","currentValue","isSome","newValue","none","modifyAt","keys","Array","from","values","toValues","toEntries","snapshot","union","other","removeMany","setMany","isTxHashMap","getHash","hash","hasHash","mappedMap","fromHashMap","filter","predicate","filteredMap","reduce","zero","filterMap","hasBy","findFirst","some","every","forEach","flatMap","result","mapEntries","newMap","newEntries","compact","compactedMap"],"sources":["../src/TxHashMap.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAYA,OAAO,KAA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AY,GAAGjF,OAAO,CAACgF,OAAO,CAAC/C,UAAU,CAAC;EAChD,OAAO,OAAO8B,WAAW,CAACkB,YAAY,CAAC;AACzC,CAAC,CAAC,CAACpE,IAAI,CAAChB,MAAM,CAACsC,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAMiB,SAAS,GACpB3B,IAAqB,IACqBJ,OAAO,CAACI,IAAI,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,OAAO,MAAM0B,QAAQ,GAAU1B,IAAqB,IAA8ByB,MAAM,CAACzB,IAAI,CAAC;AAE9F;;;AAGA,MAAMsC,WAAW,GAAUzC,OAA8B,IACvDzB,MAAM,CAACmB,GAAG,CAAC,aAAS;EAClB,MAAMN,GAAG,GAAG,OAAOJ,KAAK,CAACW,IAAI,CAACK,OAAO,CAAC;EACtC,OAAOJ,MAAM,CAACC,MAAM,CAACD,MAAM,CAACE,MAAM,CAACZ,cAAc,CAAC,EAAE;IAAEE;EAAG,CAAE,CAAC;AAC9D,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxHashSet.d.ts b/.opencode/node_modules/effect/dist/TxHashSet.d.ts index 83c501fe5b24ea453651dea657fc34177431781d..7c407ffdad39ada4afca985593e9daab48df8fc7 100644 --- a/.opencode/node_modules/effect/dist/TxHashSet.d.ts +++ b/.opencode/node_modules/effect/dist/TxHashSet.d.ts @@ -1,4 +1,15 @@ /** + * Transactional hash sets for storing unique values inside Effect + * transactions. + * + * A `TxHashSet` keeps an immutable `HashSet` inside a `TxRef`, so membership + * checks and updates can commit atomically with other transactional operations. + * Use it when several pieces of shared transactional state must change + * together, such as adding a value only after checking related state. The + * module includes the usual set operations, including adding, removing, + * membership checks, set algebra, mapping, filtering, reducing, and conversion + * back to `HashSet`. + * * @since 2.0.0 */ import * as Effect from "./Effect.ts"; @@ -10,23 +21,14 @@ import * as TxRef from "./TxRef.ts"; import type { NoInfer } from "./Types.ts"; declare const TypeId = "~effect/transactions/TxHashSet"; /** - * A TxHashSet is a transactional hash set data structure that provides atomic operations - * on unique values within Effect transactions. It uses an immutable HashSet internally - * with TxRef for transactional semantics, ensuring all operations are performed atomically. + * A TxHashSet is a transactional hash set data structure that provides atomic operations on unique values within Effect transactions. It uses an immutable HashSet internally with TxRef for transactional semantics, ensuring all operations are performed atomically. * - * ## Mutation vs Return Behavior + * **Details** * - * **Mutation operations** (add, remove, clear) modify the original TxHashSet and return `Effect` or `Effect`: - * - These operations mutate the TxHashSet in place - * - They do not create new TxHashSet instances - * - Examples: `add`, `remove`, `clear` + * Mutation operations such as `add`, `remove`, and `clear` update the original TxHashSet and return `Effect` or `Effect`. Transform operations such as `union`, `intersection`, `difference`, `map`, and `filter` create new TxHashSet instances and leave the original TxHashSet unchanged. * - * **Transform operations** (union, intersection, difference, map, filter) create new TxHashSet instances: - * - These operations return `Effect>` with a new instance - * - The original TxHashSet remains unchanged - * - Examples: `union`, `intersection`, `difference`, `map`, `filter` + * **Example** (Using transactional hash sets) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -55,8 +57,8 @@ declare const TypeId = "~effect/transactions/TxHashSet"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ export interface TxHashSet extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -66,7 +68,8 @@ export interface TxHashSet extends Inspectable, Pipeable { * The TxHashSet namespace contains type-level utilities and helper types * for working with TxHashSet instances. * - * @example + * **Example** (Extracting value types inside transactions) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -84,34 +87,39 @@ export interface TxHashSet extends Inspectable, Pipeable { * }) * ``` * - * @since 2.0.0 - * @category models + * @since 4.0.0 */ export declare namespace TxHashSet { /** - * @example + * Extracts the value type from a `TxHashSet` type. + * + * **Example** (Extracting a TxHashSet value type) + * * ```ts - * import { TxHashSet } from "effect" + * import type { TxHashSet } from "effect" * - * const fruits = TxHashSet.make("apple", "banana", "cherry") + * type FruitSet = TxHashSet.TxHashSet<"apple" | "banana" | "cherry"> * * // Extract the value type - * type Fruit = TxHashSet.TxHashSet.Value // string + * type Fruit = TxHashSet.TxHashSet.Value // "apple" | "banana" | "cherry" * * const processFruit = (fruit: Fruit) => { * return `Processing ${fruit}` * } + * + * console.log(processFruit("apple")) // Processing apple * ``` * - * @since 2.0.0 - * @category type-level + * @category utility types + * @since 4.0.0 */ type Value = T extends TxHashSet ? V : never; } /** * Creates an empty TxHashSet. * - * @example + * **Example** (Creating an empty transactional hash set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -128,14 +136,15 @@ export declare namespace TxHashSet { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const empty: () => Effect.Effect>; /** * Creates a TxHashSet from a variable number of values. * - * @example + * **Example** (Creating transactional hash sets from values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -151,14 +160,15 @@ export declare const empty: () => Effect.Effect>; * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: >(...values: Values) => Effect.Effect>; /** * Creates a TxHashSet from an iterable collection of values. * - * @example + * **Example** (Creating a transactional hash set from an iterable) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -171,21 +181,21 @@ export declare const make: >(...values: Values * * const fromString = yield* TxHashSet.fromIterable("hello") * const values = yield* TxHashSet.toHashSet(fromString) - * console.log(Array.from(values)) // ["h", "e", "l", "o"] + * console.log(Array.from(values).sort()) // ["e", "h", "l", "o"] * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const fromIterable: (values: Iterable) => Effect.Effect>; /** * Creates a TxHashSet from an existing HashSet. * - * @example + * **Example** (Creating a transactional hash set from a HashSet) + * * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const hashSet = HashSet.make("x", "y", "z") @@ -201,17 +211,17 @@ export declare const fromIterable: (values: Iterable) => Effect.Effect(hashSet: HashSet.HashSet) => Effect.Effect>; /** - * Checks if a value is a TxHashSet. + * Checks whether a value is a TxHashSet. + * + * **Example** (Checking for a TxHashSet) * - * @example * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const txSet = yield* TxHashSet.make(1, 2, 3) @@ -225,17 +235,19 @@ export declare const fromHashSet: (hashSet: HashSet.HashSet) => Effect.Eff * }) * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxHashSet: (u: unknown) => u is TxHashSet; /** * Adds a value to the TxHashSet. If the value already exists, the operation has no effect. * - * **Mutation behavior**: This function mutates the original TxHashSet by adding - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by adding the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Adding values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -252,17 +264,19 @@ export declare const isTxHashSet: (u: unknown) => u is TxHashSet; * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const add: { /** * Adds a value to the TxHashSet. If the value already exists, the operation has no effect. * - * **Mutation behavior**: This function mutates the original TxHashSet by adding - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by adding the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Adding values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -279,17 +293,19 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (value: V): (self: TxHashSet) => Effect.Effect; /** * Adds a value to the TxHashSet. If the value already exists, the operation has no effect. * - * **Mutation behavior**: This function mutates the original TxHashSet by adding - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by adding the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Adding values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -306,18 +322,20 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: TxHashSet, value: V): Effect.Effect; }; /** * Removes a value from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by removing - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by removing the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Removing values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -335,17 +353,19 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export declare const remove: { /** * Removes a value from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by removing - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by removing the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Removing values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -363,17 +383,19 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (value: V): (self: TxHashSet) => Effect.Effect; /** * Removes a value from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by removing - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by removing the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Removing values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -391,15 +413,16 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ (self: TxHashSet, value: V): Effect.Effect; }; /** - * Checks if the TxHashSet contains the specified value. + * Checks whether the TxHashSet contains the specified value. + * + * **Example** (Checking membership) * - * @example * ```ts * import { Effect, Equal, Hash, TxHashSet } from "effect" * @@ -427,14 +450,15 @@ export declare const remove: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const has: { /** - * Checks if the TxHashSet contains the specified value. + * Checks whether the TxHashSet contains the specified value. + * + * **Example** (Checking membership) * - * @example * ```ts * import { Effect, Equal, Hash, TxHashSet } from "effect" * @@ -462,14 +486,15 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (value: V): (self: TxHashSet) => Effect.Effect; /** - * Checks if the TxHashSet contains the specified value. + * Checks whether the TxHashSet contains the specified value. + * + * **Example** (Checking membership) * - * @example * ```ts * import { Effect, Equal, Hash, TxHashSet } from "effect" * @@ -497,15 +522,16 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: TxHashSet, value: V): Effect.Effect; }; /** * Returns the number of values in the TxHashSet. * - * @example + * **Example** (Getting the set size) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -521,14 +547,15 @@ export declare const has: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const size: (self: TxHashSet) => Effect.Effect; /** - * Checks if the TxHashSet is empty. + * Checks whether the TxHashSet is empty. + * + * **Example** (Checking whether a set is empty) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -541,17 +568,19 @@ export declare const size: (self: TxHashSet) => Effect.Effect; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const isEmpty: (self: TxHashSet) => Effect.Effect; /** * Removes all values from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by clearing - * all values. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by clearing all values. It does not return a new TxHashSet reference. + * + * **Example** (Clearing all values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -565,14 +594,15 @@ export declare const isEmpty: (self: TxHashSet) => Effect.Effect; * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 4.0.0 */ export declare const clear: (self: TxHashSet) => Effect.Effect; /** * Creates the union of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Combining sets with union) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -587,14 +617,15 @@ export declare const clear: (self: TxHashSet) => Effect.Effect; * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const union: { /** * Creates the union of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Combining sets with union) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -609,14 +640,15 @@ export declare const union: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (that: TxHashSet): (self: TxHashSet) => Effect.Effect>; /** * Creates the union of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Combining sets with union) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -631,15 +663,16 @@ export declare const union: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashSet, that: TxHashSet): Effect.Effect>; }; /** * Creates the intersection of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Finding common values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -654,14 +687,15 @@ export declare const union: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const intersection: { /** * Creates the intersection of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Finding common values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -676,14 +710,15 @@ export declare const intersection: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (that: TxHashSet): (self: TxHashSet) => Effect.Effect>; /** * Creates the intersection of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Finding common values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -698,15 +733,16 @@ export declare const intersection: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashSet, that: TxHashSet): Effect.Effect>; }; /** * Creates the difference of two TxHashSets (elements in the first set that are not in the second), returning a new TxHashSet. * - * @example + * **Example** (Finding values absent from another set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -721,14 +757,15 @@ export declare const intersection: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const difference: { /** * Creates the difference of two TxHashSets (elements in the first set that are not in the second), returning a new TxHashSet. * - * @example + * **Example** (Finding values absent from another set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -743,14 +780,15 @@ export declare const difference: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (that: TxHashSet): (self: TxHashSet) => Effect.Effect>; /** * Creates the difference of two TxHashSets (elements in the first set that are not in the second), returning a new TxHashSet. * - * @example + * **Example** (Finding values absent from another set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -765,15 +803,16 @@ export declare const difference: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: TxHashSet, that: TxHashSet): Effect.Effect>; }; /** - * Checks if a TxHashSet is a subset of another TxHashSet. + * Checks whether a TxHashSet is a subset of another TxHashSet. + * + * **Example** (Checking subset relationships) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -789,14 +828,15 @@ export declare const difference: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export declare const isSubset: { /** - * Checks if a TxHashSet is a subset of another TxHashSet. + * Checks whether a TxHashSet is a subset of another TxHashSet. + * + * **Example** (Checking subset relationships) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -812,14 +852,15 @@ export declare const isSubset: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (that: TxHashSet): (self: TxHashSet) => Effect.Effect; /** - * Checks if a TxHashSet is a subset of another TxHashSet. + * Checks whether a TxHashSet is a subset of another TxHashSet. + * + * **Example** (Checking subset relationships) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -835,15 +876,16 @@ export declare const isSubset: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (self: TxHashSet, that: TxHashSet): Effect.Effect; }; /** - * Tests whether at least one value in the TxHashSet satisfies the predicate. + * Checks whether at least one value in the TxHashSet satisfies the predicate. + * + * **Example** (Testing whether some values match) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -858,14 +900,15 @@ export declare const isSubset: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export declare const some: { /** - * Tests whether at least one value in the TxHashSet satisfies the predicate. + * Checks whether at least one value in the TxHashSet satisfies the predicate. + * + * **Example** (Testing whether some values match) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -880,14 +923,15 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (predicate: Predicate): (self: TxHashSet) => Effect.Effect; /** - * Tests whether at least one value in the TxHashSet satisfies the predicate. + * Checks whether at least one value in the TxHashSet satisfies the predicate. + * + * **Example** (Testing whether some values match) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -902,15 +946,16 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (self: TxHashSet, predicate: Predicate): Effect.Effect; }; /** - * Tests whether all values in the TxHashSet satisfy the predicate. + * Checks whether all values in the TxHashSet satisfy the predicate. + * + * **Example** (Testing whether every value matches) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -925,14 +970,15 @@ export declare const some: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export declare const every: { /** - * Tests whether all values in the TxHashSet satisfy the predicate. + * Checks whether all values in the TxHashSet satisfy the predicate. + * + * **Example** (Testing whether every value matches) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -947,14 +993,15 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (predicate: Predicate): (self: TxHashSet) => Effect.Effect; /** - * Tests whether all values in the TxHashSet satisfy the predicate. + * Checks whether all values in the TxHashSet satisfy the predicate. + * + * **Example** (Testing whether every value matches) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -969,15 +1016,16 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ (self: TxHashSet, predicate: Predicate): Effect.Effect; }; /** * Maps each value in the TxHashSet using the provided function, returning a new TxHashSet. * - * @example + * **Example** (Mapping values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -997,14 +1045,15 @@ export declare const every: { * }) * ``` * - * @since 2.0.0 * @category mapping + * @since 4.0.0 */ export declare const map: { /** * Maps each value in the TxHashSet using the provided function, returning a new TxHashSet. * - * @example + * **Example** (Mapping values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1024,14 +1073,15 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category mapping + * @since 4.0.0 */ (f: (value: V) => U): (self: TxHashSet) => Effect.Effect>; /** * Maps each value in the TxHashSet using the provided function, returning a new TxHashSet. * - * @example + * **Example** (Mapping values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1051,15 +1101,16 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category mapping + * @since 4.0.0 */ (self: TxHashSet, f: (value: V) => U): Effect.Effect>; }; /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1073,14 +1124,15 @@ export declare const map: { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ export declare const filter: { /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1094,14 +1146,15 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ (refinement: Refinement, U>): (self: TxHashSet) => Effect.Effect>; /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1115,14 +1168,15 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ (predicate: Predicate>): (self: TxHashSet) => Effect.Effect>; /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1136,14 +1190,15 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ (self: TxHashSet, refinement: Refinement): Effect.Effect>; /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1157,15 +1212,16 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ (self: TxHashSet, predicate: Predicate): Effect.Effect>; }; /** * Reduces the TxHashSet to a single value by iterating through the values and applying an accumulator function. * - * @example + * **Example** (Reducing values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1181,14 +1237,15 @@ export declare const filter: { * }) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const reduce: { /** * Reduces the TxHashSet to a single value by iterating through the values and applying an accumulator function. * - * @example + * **Example** (Reducing values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1204,14 +1261,15 @@ export declare const reduce: { * }) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (zero: U, f: (accumulator: U, value: V) => U): (self: TxHashSet) => Effect.Effect; /** * Reduces the TxHashSet to a single value by iterating through the values and applying an accumulator function. * - * @example + * **Example** (Reducing values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -1227,18 +1285,18 @@ export declare const reduce: { * }) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (self: TxHashSet, zero: U, f: (accumulator: U, value: V) => U): Effect.Effect; }; /** * Converts the TxHashSet to an immutable HashSet snapshot. * - * @example + * **Example** (Taking a HashSet snapshot) + * * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const txSet = yield* TxHashSet.make("x", "y", "z") @@ -1254,8 +1312,8 @@ export declare const reduce: { * }) * ``` * + * @category converting * @since 2.0.0 - * @category conversions */ export declare const toHashSet: (self: TxHashSet) => Effect.Effect>; export {}; diff --git a/.opencode/node_modules/effect/dist/TxHashSet.d.ts.map b/.opencode/node_modules/effect/dist/TxHashSet.d.ts.map index ca8a85eb32ec9664782712157ca834cc652d88ab..4480085f2215b5631ca15998abdd2a2f38268d85 100644 --- a/.opencode/node_modules/effect/dist/TxHashSet.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxHashSet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxHashSet.d.ts","sourceRoot":"","sources":["../src/TxHashSet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,QAAA,MAAM,MAAM,mCAAmC,CAAA;AAqB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,WAAW,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,WAAW,EAAE,QAAQ;IAChE,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;IAChC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;CAC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AAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAsDtF,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,MAAM,SAAS,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAwB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxHashSet.js b/.opencode/node_modules/effect/dist/TxHashSet.js index 71395648b7e1108944c2eda6a4b61331530b326b..00c3e262d17ea9a3ef093da7553f7baeb66efe06 100644 --- a/.opencode/node_modules/effect/dist/TxHashSet.js +++ b/.opencode/node_modules/effect/dist/TxHashSet.js @@ -1,4 +1,15 @@ /** + * Transactional hash sets for storing unique values inside Effect + * transactions. + * + * A `TxHashSet` keeps an immutable `HashSet` inside a `TxRef`, so membership + * checks and updates can commit atomically with other transactional operations. + * Use it when several pieces of shared transactional state must change + * together, such as adding a value only after checking related state. The + * module includes the usual set operations, including adding, removing, + * membership checks, set algebra, mapping, filtering, reducing, and conversion + * back to `HashSet`. + * * @since 2.0.0 */ import * as Effect from "./Effect.js"; @@ -36,7 +47,8 @@ const makeTxHashSet = ref => { /** * Creates an empty TxHashSet. * - * @example + * **Example** (Creating an empty transactional hash set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -53,8 +65,8 @@ const makeTxHashSet = ref => { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const empty = () => Effect.gen(function* () { const ref = yield* TxRef.make(HashSet.empty()); @@ -63,7 +75,8 @@ export const empty = () => Effect.gen(function* () { /** * Creates a TxHashSet from a variable number of values. * - * @example + * **Example** (Creating transactional hash sets from values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -79,8 +92,8 @@ export const empty = () => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = (...values) => Effect.gen(function* () { const hashSet = HashSet.make(...values); @@ -90,7 +103,8 @@ export const make = (...values) => Effect.gen(function* () { /** * Creates a TxHashSet from an iterable collection of values. * - * @example + * **Example** (Creating a transactional hash set from an iterable) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -103,12 +117,12 @@ export const make = (...values) => Effect.gen(function* () { * * const fromString = yield* TxHashSet.fromIterable("hello") * const values = yield* TxHashSet.toHashSet(fromString) - * console.log(Array.from(values)) // ["h", "e", "l", "o"] + * console.log(Array.from(values).sort()) // ["e", "h", "l", "o"] * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fromIterable = values => Effect.gen(function* () { const hashSet = HashSet.fromIterable(values); @@ -118,10 +132,10 @@ export const fromIterable = values => Effect.gen(function* () { /** * Creates a TxHashSet from an existing HashSet. * - * @example + * **Example** (Creating a transactional hash set from a HashSet) + * * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const hashSet = HashSet.make("x", "y", "z") @@ -137,20 +151,20 @@ export const fromIterable = values => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const fromHashSet = hashSet => Effect.gen(function* () { const ref = yield* TxRef.make(hashSet); return makeTxHashSet(ref); }); /** - * Checks if a value is a TxHashSet. + * Checks whether a value is a TxHashSet. + * + * **Example** (Checking for a TxHashSet) * - * @example * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const txSet = yield* TxHashSet.make(1, 2, 3) @@ -164,17 +178,19 @@ export const fromHashSet = hashSet => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category guards + * @since 4.0.0 */ export const isTxHashSet = u => hasProperty(u, TypeId); /** * Adds a value to the TxHashSet. If the value already exists, the operation has no effect. * - * **Mutation behavior**: This function mutates the original TxHashSet by adding - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by adding the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Adding values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -191,17 +207,19 @@ export const isTxHashSet = u => hasProperty(u, TypeId); * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const add = /*#__PURE__*/dual(2, (self, value) => TxRef.update(self.ref, set => HashSet.add(set, value))); /** * Removes a value from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by removing - * the specified value. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by removing the specified value. It does not return a new TxHashSet reference. + * + * **Example** (Removing values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -219,8 +237,8 @@ export const add = /*#__PURE__*/dual(2, (self, value) => TxRef.update(self.ref, * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 2.0.0 */ export const remove = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () { const currentSet = yield* TxRef.get(self.ref); @@ -231,9 +249,10 @@ export const remove = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* return existed; }).pipe(Effect.tx)); /** - * Checks if the TxHashSet contains the specified value. + * Checks whether the TxHashSet contains the specified value. + * + * **Example** (Checking membership) * - * @example * ```ts * import { Effect, Equal, Hash, TxHashSet } from "effect" * @@ -261,8 +280,8 @@ export const remove = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* * }) * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const has = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); @@ -271,7 +290,8 @@ export const has = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () /** * Returns the number of values in the TxHashSet. * - * @example + * **Example** (Getting the set size) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -287,17 +307,18 @@ export const has = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const size = self => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); return HashSet.size(set); }); /** - * Checks if the TxHashSet is empty. + * Checks whether the TxHashSet is empty. + * + * **Example** (Checking whether a set is empty) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -310,8 +331,8 @@ export const size = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const isEmpty = self => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); @@ -320,10 +341,12 @@ export const isEmpty = self => Effect.gen(function* () { /** * Removes all values from the TxHashSet. * - * **Mutation behavior**: This function mutates the original TxHashSet by clearing - * all values. It does not return a new TxHashSet reference. + * **Details** + * + * This function mutates the original TxHashSet by clearing all values. It does not return a new TxHashSet reference. + * + * **Example** (Clearing all values) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -337,14 +360,15 @@ export const isEmpty = self => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category mutations + * @since 4.0.0 */ export const clear = self => TxRef.set(self.ref, HashSet.empty()); /** * Creates the union of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Combining sets with union) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -359,8 +383,8 @@ export const clear = self => TxRef.set(self.ref, HashSet.empty()); * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const union = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* () { const set1 = yield* TxRef.get(self.ref); @@ -371,7 +395,8 @@ export const union = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* ( /** * Creates the intersection of two TxHashSets, returning a new TxHashSet. * - * @example + * **Example** (Finding common values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -386,8 +411,8 @@ export const union = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* ( * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const intersection = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* () { const set1 = yield* TxRef.get(self.ref); @@ -398,7 +423,8 @@ export const intersection = /*#__PURE__*/dual(2, (self, that) => Effect.gen(func /** * Creates the difference of two TxHashSets (elements in the first set that are not in the second), returning a new TxHashSet. * - * @example + * **Example** (Finding values absent from another set) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -413,8 +439,8 @@ export const intersection = /*#__PURE__*/dual(2, (self, that) => Effect.gen(func * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const difference = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* () { const set1 = yield* TxRef.get(self.ref); @@ -423,9 +449,10 @@ export const difference = /*#__PURE__*/dual(2, (self, that) => Effect.gen(functi return yield* fromHashSet(diff); }).pipe(Effect.tx)); /** - * Checks if a TxHashSet is a subset of another TxHashSet. + * Checks whether a TxHashSet is a subset of another TxHashSet. + * + * **Example** (Checking subset relationships) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -441,8 +468,8 @@ export const difference = /*#__PURE__*/dual(2, (self, that) => Effect.gen(functi * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export const isSubset = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function* () { const set1 = yield* TxRef.get(self.ref); @@ -450,9 +477,10 @@ export const isSubset = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function return HashSet.isSubset(set1, set2); }).pipe(Effect.tx)); /** - * Tests whether at least one value in the TxHashSet satisfies the predicate. + * Checks whether at least one value in the TxHashSet satisfies the predicate. + * + * **Example** (Testing whether some values match) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -467,17 +495,18 @@ export const isSubset = /*#__PURE__*/dual(2, (self, that) => Effect.gen(function * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export const some = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); return HashSet.some(set, predicate); })); /** - * Tests whether all values in the TxHashSet satisfy the predicate. + * Checks whether all values in the TxHashSet satisfy the predicate. + * + * **Example** (Testing whether every value matches) * - * @example * ```ts * import { Effect, TxHashSet } from "effect" * @@ -492,8 +521,8 @@ export const some = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(functio * }) * ``` * - * @since 2.0.0 * @category elements + * @since 4.0.0 */ export const every = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); @@ -502,7 +531,8 @@ export const every = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(functi /** * Maps each value in the TxHashSet using the provided function, returning a new TxHashSet. * - * @example + * **Example** (Mapping values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -522,8 +552,8 @@ export const every = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(functi * }) * ``` * - * @since 2.0.0 * @category mapping + * @since 4.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const currentSet = yield* TxRef.get(self.ref); @@ -533,7 +563,8 @@ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { /** * Filters the TxHashSet keeping only values that satisfy the predicate, returning a new TxHashSet. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -547,8 +578,8 @@ export const map = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { * }) * ``` * - * @since 2.0.0 * @category filtering + * @since 4.0.0 */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(function* () { const currentSet = yield* TxRef.get(self.ref); @@ -558,7 +589,8 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(funct /** * Reduces the TxHashSet to a single value by iterating through the values and applying an accumulator function. * - * @example + * **Example** (Reducing values) + * * ```ts * import { Effect, TxHashSet } from "effect" * @@ -574,8 +606,8 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => Effect.gen(funct * }) * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const reduce = /*#__PURE__*/dual(3, (self, zero, f) => Effect.gen(function* () { const set = yield* TxRef.get(self.ref); @@ -584,10 +616,10 @@ export const reduce = /*#__PURE__*/dual(3, (self, zero, f) => Effect.gen(functio /** * Converts the TxHashSet to an immutable HashSet snapshot. * - * @example + * **Example** (Taking a HashSet snapshot) + * * ```ts - * import { Effect, TxHashSet } from "effect" - * import * as HashSet from "effect/HashSet" + * import { Effect, HashSet, TxHashSet } from "effect" * * const program = Effect.gen(function*() { * const txSet = yield* TxHashSet.make("x", "y", "z") @@ -603,8 +635,8 @@ export const reduce = /*#__PURE__*/dual(3, (self, zero, f) => Effect.gen(functio * }) * ``` * + * @category converting * @since 2.0.0 - * @category conversions */ export const toHashSet = self => TxRef.get(self.ref); //# sourceMappingURL=TxHashSet.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxHashSet.js.map b/.opencode/node_modules/effect/dist/TxHashSet.js.map index a7265c0158f4d71e471da966c636a73f09a8c7e5..eb19bae36f34b66a5dcf68f099b15471035fb7ef 100644 --- a/.opencode/node_modules/effect/dist/TxHashSet.js.map +++ b/.opencode/node_modules/effect/dist/TxHashSet.js.map @@ -1 +1 @@ -{"version":3,"file":"TxHashSet.js","names":["Effect","format","dual","HashSet","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxHashSetProto","toString","ref","toJSON","_id","pipe","arguments","makeTxHashSet","self","Object","create","empty","gen","make","values","hashSet","fromIterable","fromHashSet","isTxHashSet","u","add","value","update","set","remove","currentSet","get","existed","has","tx","size","isEmpty","clear","union","that","set1","set2","combined","intersection","common","difference","diff","isSubset","some","predicate","every","map","f","mappedSet","filter","filteredSet","reduce","zero","toHashSet"],"sources":["../src/TxHashSet.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,OAAO,MAAM,cAAc;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,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC;EAC7C,MAAMgD,WAAW,GAAGzD,OAAO,CAACwD,MAAM,CAACxB,UAAU,EAAEmB,SAAS,CAAC;EACzD,OAAO,OAAO3B,WAAW,CAACiC,WAAW,CAAC;AACxC,CAAC,CAAC,CAAC7C,IAAI,CAACf,MAAM,CAACuC,EAAE,CAAC,CAAC;AAErB;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMsB,MAAM,gBA+Cf3D,IAAI,CA+CN,CAAC,EAAE,CAAOgB,IAAkB,EAAE4C,IAAO,EAAEL,CAAkC,KACzEzD,MAAM,CAACsB,GAAG,CAAC,aAAS;EAClB,MAAMW,GAAG,GAAG,OAAOzB,KAAK,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC;EACtC,OAAOT,OAAO,CAAC0D,MAAM,CAAC5B,GAAG,EAAE6B,IAAI,EAAEL,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMM,SAAS,GAAO7C,IAAkB,IAAwCV,KAAK,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxHashSet.js","names":["Effect","format","dual","HashSet","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxHashSetProto","toString","ref","toJSON","_id","pipe","arguments","makeTxHashSet","self","Object","create","empty","gen","make","values","hashSet","fromIterable","fromHashSet","isTxHashSet","u","add","value","update","set","remove","currentSet","get","existed","has","tx","size","isEmpty","clear","union","that","set1","set2","combined","intersection","common","difference","diff","isSubset","some","predicate","every","map","f","mappedSet","filter","filteredSet","reduce","zero","toHashSet"],"sources":["../src/TxHashSet.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;AAeA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,MAAM,QAAQ,gBAAg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,EAAEoC,SAAuB,KAClDtD,MAAM,CAACsB,GAAG,CAAC,aAAS;EAClB,MAAMa,UAAU,GAAG,OAAO3B,KAAK,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC;EAC7C,MAAMgD,WAAW,GAAGzD,OAAO,CAACwD,MAAM,CAACxB,UAAU,EAAEmB,SAAS,CAAC;EACzD,OAAO,OAAO3B,WAAW,CAACiC,WAAW,CAAC;AACxC,CAAC,CAAC,CAAC7C,IAAI,CAACf,MAAM,CAACuC,EAAE,CAAC,CAAC;AAErB;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMsB,MAAM,gBAiDf3D,IAAI,CAiDN,CAAC,EAAE,CAAOgB,IAAkB,EAAE4C,IAAO,EAAEL,CAAkC,KACzEzD,MAAM,CAACsB,GAAG,CAAC,aAAS;EAClB,MAAMW,GAAG,GAAG,OAAOzB,KAAK,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC;EACtC,OAAOT,OAAO,CAAC0D,MAAM,CAAC5B,GAAG,EAAE6B,IAAI,EAAEL,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMM,SAAS,GAAO7C,IAAkB,IAAwCV,KAAK,CAAC4B,GAAG,CAAClB,IAAI,CAACN,GAAG,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts b/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts index 403f29a052e8f176fbc2e76bf044890054cd479f..0c7f16a0d47fae262685e4c7671f89bd673eb450 100644 --- a/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts +++ b/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts @@ -1,6 +1,13 @@ /** - * A transactional priority queue. Elements are dequeued in order determined by the - * provided `Order` instance. All operations participate in the STM transaction system. + * Transactional priority queues whose state is stored in a `TxRef`. Elements + * are kept in the order defined by the `Order` supplied at construction time, + * and dequeue operations return the first element according to that ordering. + * + * Use `TxPriorityQueue` when multiple fibers coordinate through a shared queue + * and queue operations need to compose with other transactional state changes. + * The retrying `peek` and `take` operations wait transactionally when the queue + * is empty, so they can be combined with other transactional reads and writes in + * one atomic workflow. * * @since 4.0.0 */ @@ -16,11 +23,14 @@ declare const TypeId = "~effect/transactions/TxPriorityQueue"; /** * A transactional priority queue backed by a sorted `Chunk`. * + * **Details** + * * Elements are stored in ascending order according to the `Order` provided at * construction time. `take` returns the smallest element, `peek` observes it * without removing. * - * @example + * **Example** (Dequeuing values by priority) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -34,8 +44,8 @@ declare const TypeId = "~effect/transactions/TxPriorityQueue"; * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxPriorityQueue extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -45,7 +55,8 @@ export interface TxPriorityQueue extends Inspectable, Pipeable { /** * Creates an empty `TxPriorityQueue` with the given ordering. * - * @example + * **Example** (Creating an empty priority queue) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -56,14 +67,15 @@ export interface TxPriorityQueue extends Inspectable, Pipeable { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const empty: (order: Order) => Effect.Effect>; /** * Creates a `TxPriorityQueue` from an iterable of elements. * - * @example + * **Example** (Creating a priority queue from an iterable) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -74,14 +86,15 @@ export declare const empty: (order: Order) => Effect.Effect(order: Order): (iterable: Iterable) => Effect.Effect>; /** * Creates a `TxPriorityQueue` from an iterable of elements. * - * @example + * **Example** (Creating a priority queue from an iterable) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -110,15 +124,16 @@ export declare const fromIterable: { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ (order: Order, iterable: Iterable): Effect.Effect>; }; /** * Creates a `TxPriorityQueue` from variadic elements. * - * @example + * **Example** (Creating a priority queue from variadic values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -129,14 +144,15 @@ export declare const fromIterable: { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: (order: Order) => (...elements: Array) => Effect.Effect>; /** * Returns the number of elements in the queue. * - * @example + * **Example** (Getting the queue size) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -147,14 +163,15 @@ export declare const make: (order: Order) => (...elements: Array) => Ef * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const size: (self: TxPriorityQueue) => Effect.Effect; /** * Returns `true` if the queue is empty. * - * @example + * **Example** (Checking whether a queue is empty) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -165,14 +182,15 @@ export declare const size: (self: TxPriorityQueue) => Effect.Effect(self: TxPriorityQueue) => Effect.Effect; /** * Returns `true` if the queue has at least one element. * - * @example + * **Example** (Checking whether a queue has elements) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -183,15 +201,20 @@ export declare const isEmpty: (self: TxPriorityQueue) => Effect.Effect(self: TxPriorityQueue) => Effect.Effect; /** - * Observes the smallest element without removing it. Retries if the queue is - * empty. + * Observes the smallest element without removing it. + * + * **When to use** + * + * Use to inspect the next prioritized value and retry transactionally while + * the queue is empty. + * + * **Example** (Peeking at the next value) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -202,15 +225,20 @@ export declare const isNonEmpty: (self: TxPriorityQueue) => Effect.Effect< * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const peek: (self: TxPriorityQueue) => Effect.Effect; /** - * Observes the smallest element without removing it. Returns `None` if the + * Observes the smallest element without removing it, returning `None` when the * queue is empty. * - * @example + * **When to use** + * + * Use to inspect the next prioritized value without retrying on an empty queue. + * + * **Example** (Peeking without retrying) + * * ```ts * import { Effect, Option, Order, TxPriorityQueue } from "effect" * @@ -221,14 +249,15 @@ export declare const peek: (self: TxPriorityQueue) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const peekOption: (self: TxPriorityQueue) => Effect.Effect>; /** * Inserts an element into the queue in sorted position. * - * @example + * **Example** (Offering a value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -241,14 +270,15 @@ export declare const peekOption: (self: TxPriorityQueue) => Effect.Effect< * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const offer: { /** * Inserts an element into the queue in sorted position. * - * @example + * **Example** (Offering a value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -261,14 +291,15 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (value: A): (self: TxPriorityQueue) => Effect.Effect; /** * Inserts an element into the queue in sorted position. * - * @example + * **Example** (Offering a value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -281,15 +312,16 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxPriorityQueue, value: A): Effect.Effect; }; /** * Inserts all elements from an iterable into the queue. * - * @example + * **Example** (Offering multiple values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -301,14 +333,15 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const offerAll: { /** * Inserts all elements from an iterable into the queue. * - * @example + * **Example** (Offering multiple values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -320,14 +353,15 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (values: Iterable): (self: TxPriorityQueue) => Effect.Effect; /** * Inserts all elements from an iterable into the queue. * - * @example + * **Example** (Offering multiple values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -339,15 +373,16 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxPriorityQueue, values: Iterable): Effect.Effect; }; /** * Takes the smallest element from the queue. Retries if the queue is empty. * - * @example + * **Example** (Taking the next value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -358,14 +393,15 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const take: (self: TxPriorityQueue) => Effect.Effect; /** * Takes all elements from the queue, returning them in priority order. * - * @example + * **Example** (Taking all values in priority order) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -376,14 +412,15 @@ export declare const take: (self: TxPriorityQueue) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const takeAll: (self: TxPriorityQueue) => Effect.Effect>; /** * Tries to take the smallest element. Returns `None` if the queue is empty. * - * @example + * **Example** (Taking without retrying) + * * ```ts * import { Effect, Option, Order, TxPriorityQueue } from "effect" * @@ -394,14 +431,15 @@ export declare const takeAll: (self: TxPriorityQueue) => Effect.Effect(self: TxPriorityQueue) => Effect.Effect>; /** * Takes up to `n` elements from the queue in priority order. * - * @example + * **Example** (Taking up to a limit) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -412,14 +450,15 @@ export declare const takeOption: (self: TxPriorityQueue) => Effect.Effect< * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const takeUpTo: { /** * Takes up to `n` elements from the queue in priority order. * - * @example + * **Example** (Taking up to a limit) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -430,14 +469,15 @@ export declare const takeUpTo: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (n: number): (self: TxPriorityQueue) => Effect.Effect>; /** * Takes up to `n` elements from the queue in priority order. * - * @example + * **Example** (Taking up to a limit) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -448,15 +488,16 @@ export declare const takeUpTo: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxPriorityQueue, n: number): Effect.Effect>; }; /** * Removes elements matching the predicate. * - * @example + * **Example** (Removing matching values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -468,14 +509,15 @@ export declare const takeUpTo: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ export declare const removeIf: { /** * Removes elements matching the predicate. * - * @example + * **Example** (Removing matching values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -487,14 +529,15 @@ export declare const removeIf: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ (predicate: Predicate): (self: TxPriorityQueue) => Effect.Effect; /** * Removes elements matching the predicate. * - * @example + * **Example** (Removing matching values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -506,15 +549,16 @@ export declare const removeIf: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ (self: TxPriorityQueue, predicate: Predicate): Effect.Effect; }; /** - * Retains only elements matching the predicate. + * Keeps only elements matching the predicate. + * + * **Example** (Retaining matching values) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -526,14 +570,15 @@ export declare const removeIf: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ export declare const retainIf: { /** - * Retains only elements matching the predicate. + * Keeps only elements matching the predicate. + * + * **Example** (Retaining matching values) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -545,14 +590,15 @@ export declare const retainIf: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ (predicate: Predicate): (self: TxPriorityQueue) => Effect.Effect; /** - * Retains only elements matching the predicate. + * Keeps only elements matching the predicate. + * + * **Example** (Retaining matching values) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -564,15 +610,16 @@ export declare const retainIf: { * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ (self: TxPriorityQueue, predicate: Predicate): Effect.Effect; }; /** * Returns all elements in priority order without removing them. * - * @example + * **Example** (Reading values in priority order) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -583,14 +630,15 @@ export declare const retainIf: { * }) * ``` * - * @since 4.0.0 - * @category conversions + * @category converting + * @since 2.0.0 */ export declare const toArray: (self: TxPriorityQueue) => Effect.Effect>; /** * Determines if the provided value is a `TxPriorityQueue`. * - * @example + * **Example** (Checking for a TxPriorityQueue) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -601,8 +649,8 @@ export declare const toArray: (self: TxPriorityQueue) => Effect.Effect u is TxPriorityQueue; export {}; diff --git a/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts.map b/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts.map index 132464139ce7123c80b93ffd7752174dba20b599..acae4b9425bd9ff9878af268652258f7e1997e5c 100644 --- a/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxPriorityQueue.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxPriorityQueue.d.ts","sourceRoot":"","sources":["../src/TxPriorityQueue.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,QAAA,MAAM,MAAM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;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,EAAE;IACrB;;;;;;;;;;;;;;;;;;OAkBG;IACH,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC/E;;;;;;;;;;;;;;;;;;OAkBG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAK5E,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,MAAM,eAAe,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAChC,CAAA;AAE5C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,eAAe,CAAC,OAAO,CAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxPriorityQueue.js b/.opencode/node_modules/effect/dist/TxPriorityQueue.js index 196b7813846c071a66f9b78bca87bc6cb4dfd158..893168af2d48db0ad4afd17062e4f141d9a88682 100644 --- a/.opencode/node_modules/effect/dist/TxPriorityQueue.js +++ b/.opencode/node_modules/effect/dist/TxPriorityQueue.js @@ -1,6 +1,13 @@ /** - * A transactional priority queue. Elements are dequeued in order determined by the - * provided `Order` instance. All operations participate in the STM transaction system. + * Transactional priority queues whose state is stored in a `TxRef`. Elements + * are kept in the order defined by the `Order` supplied at construction time, + * and dequeue operations return the first element according to that ordering. + * + * Use `TxPriorityQueue` when multiple fibers coordinate through a shared queue + * and queue operations need to compose with other transactional state changes. + * The retrying `peek` and `take` operations wait transactionally when the queue + * is empty, so they can be combined with other transactional reads and writes in + * one atomic workflow. * * @since 4.0.0 */ @@ -54,7 +61,8 @@ const insertSorted = (chunk, value, ord) => { /** * Creates an empty `TxPriorityQueue` with the given ordering. * - * @example + * **Example** (Creating an empty priority queue) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -65,14 +73,15 @@ const insertSorted = (chunk, value, ord) => { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const empty = order => Effect.map(TxRef.make(C.empty()), ref => makeTxPriorityQueue(ref, order)); /** * Creates a `TxPriorityQueue` from an iterable of elements. * - * @example + * **Example** (Creating a priority queue from an iterable) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -83,8 +92,8 @@ export const empty = order => Effect.map(TxRef.make(C.empty()), ref => makeTxPri * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const fromIterable = /*#__PURE__*/dual(2, (order, iterable) => { const arr = Array.from(iterable).sort((a, b) => order(a, b)); @@ -93,7 +102,8 @@ export const fromIterable = /*#__PURE__*/dual(2, (order, iterable) => { /** * Creates a `TxPriorityQueue` from variadic elements. * - * @example + * **Example** (Creating a priority queue from variadic values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -104,14 +114,15 @@ export const fromIterable = /*#__PURE__*/dual(2, (order, iterable) => { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const make = order => (...elements) => fromIterable(order, elements); /** * Returns the number of elements in the queue. * - * @example + * **Example** (Getting the queue size) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -122,14 +133,15 @@ export const make = order => (...elements) => fromIterable(order, elements); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const size = self => Effect.map(TxRef.get(self.ref), C.size); /** * Returns `true` if the queue is empty. * - * @example + * **Example** (Checking whether a queue is empty) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -140,14 +152,15 @@ export const size = self => Effect.map(TxRef.get(self.ref), C.size); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const isEmpty = self => Effect.map(size(self), n => n === 0); /** * Returns `true` if the queue has at least one element. * - * @example + * **Example** (Checking whether a queue has elements) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -158,15 +171,20 @@ export const isEmpty = self => Effect.map(size(self), n => n === 0); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const isNonEmpty = self => Effect.map(size(self), n => n > 0); /** - * Observes the smallest element without removing it. Retries if the queue is - * empty. + * Observes the smallest element without removing it. + * + * **When to use** + * + * Use to inspect the next prioritized value and retry transactionally while + * the queue is empty. + * + * **Example** (Peeking at the next value) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -177,8 +195,8 @@ export const isNonEmpty = self => Effect.map(size(self), n => n > 0); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const peek = self => Effect.gen(function* () { const chunk = yield* TxRef.get(self.ref); @@ -189,10 +207,15 @@ export const peek = self => Effect.gen(function* () { return head.value; }).pipe(Effect.tx); /** - * Observes the smallest element without removing it. Returns `None` if the + * Observes the smallest element without removing it, returning `None` when the * queue is empty. * - * @example + * **When to use** + * + * Use to inspect the next prioritized value without retrying on an empty queue. + * + * **Example** (Peeking without retrying) + * * ```ts * import { Effect, Option, Order, TxPriorityQueue } from "effect" * @@ -203,14 +226,15 @@ export const peek = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const peekOption = self => Effect.map(TxRef.get(self.ref), C.head); /** * Inserts an element into the queue in sorted position. * - * @example + * **Example** (Offering a value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -223,14 +247,15 @@ export const peekOption = self => Effect.map(TxRef.get(self.ref), C.head); * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const offer = /*#__PURE__*/dual(2, (self, value) => TxRef.update(self.ref, chunk => insertSorted(chunk, value, self.ord))); /** * Inserts all elements from an iterable into the queue. * - * @example + * **Example** (Offering multiple values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -242,8 +267,8 @@ export const offer = /*#__PURE__*/dual(2, (self, value) => TxRef.update(self.ref * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const offerAll = /*#__PURE__*/dual(2, (self, values) => TxRef.update(self.ref, chunk => { const arr = [...C.toArray(chunk), ...values].sort((a, b) => self.ord(a, b)); @@ -252,7 +277,8 @@ export const offerAll = /*#__PURE__*/dual(2, (self, values) => TxRef.update(self /** * Takes the smallest element from the queue. Retries if the queue is empty. * - * @example + * **Example** (Taking the next value) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -263,8 +289,8 @@ export const offerAll = /*#__PURE__*/dual(2, (self, values) => TxRef.update(self * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const take = self => Effect.gen(function* () { const chunk = yield* TxRef.get(self.ref); @@ -278,7 +304,8 @@ export const take = self => Effect.gen(function* () { /** * Takes all elements from the queue, returning them in priority order. * - * @example + * **Example** (Taking all values in priority order) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -289,14 +316,15 @@ export const take = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const takeAll = self => Effect.map(TxRef.modify(self.ref, chunk => [chunk, C.empty()]), C.toArray); /** * Tries to take the smallest element. Returns `None` if the queue is empty. * - * @example + * **Example** (Taking without retrying) + * * ```ts * import { Effect, Option, Order, TxPriorityQueue } from "effect" * @@ -307,8 +335,8 @@ export const takeAll = self => Effect.map(TxRef.modify(self.ref, chunk => [chunk * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const takeOption = self => TxRef.modify(self.ref, chunk => { const head = C.head(chunk); @@ -320,7 +348,8 @@ export const takeOption = self => TxRef.modify(self.ref, chunk => { /** * Takes up to `n` elements from the queue in priority order. * - * @example + * **Example** (Taking up to a limit) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -331,8 +360,8 @@ export const takeOption = self => TxRef.modify(self.ref, chunk => { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const takeUpTo = /*#__PURE__*/dual(2, (self, n) => Effect.map(TxRef.modify(self.ref, chunk => { const taken = C.take(chunk, n); @@ -342,7 +371,8 @@ export const takeUpTo = /*#__PURE__*/dual(2, (self, n) => Effect.map(TxRef.modif /** * Removes elements matching the predicate. * - * @example + * **Example** (Removing matching values) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -354,14 +384,15 @@ export const takeUpTo = /*#__PURE__*/dual(2, (self, n) => Effect.map(TxRef.modif * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ export const removeIf = /*#__PURE__*/dual(2, (self, predicate) => TxRef.update(self.ref, chunk => C.filter(chunk, a => !predicate(a)))); /** - * Retains only elements matching the predicate. + * Keeps only elements matching the predicate. + * + * **Example** (Retaining matching values) * - * @example * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -373,14 +404,15 @@ export const removeIf = /*#__PURE__*/dual(2, (self, predicate) => TxRef.update(s * }) * ``` * - * @since 4.0.0 * @category filtering + * @since 2.0.0 */ export const retainIf = /*#__PURE__*/dual(2, (self, predicate) => TxRef.update(self.ref, chunk => C.filter(chunk, predicate))); /** * Returns all elements in priority order without removing them. * - * @example + * **Example** (Reading values in priority order) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -391,14 +423,15 @@ export const retainIf = /*#__PURE__*/dual(2, (self, predicate) => TxRef.update(s * }) * ``` * - * @since 4.0.0 - * @category conversions + * @category converting + * @since 2.0.0 */ export const toArray = self => Effect.map(TxRef.get(self.ref), C.toArray); /** * Determines if the provided value is a `TxPriorityQueue`. * - * @example + * **Example** (Checking for a TxPriorityQueue) + * * ```ts * import { Effect, Order, TxPriorityQueue } from "effect" * @@ -409,8 +442,8 @@ export const toArray = self => Effect.map(TxRef.get(self.ref), C.toArray); * }) * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxPriorityQueue = u => hasProperty(u, TypeId); //# sourceMappingURL=TxPriorityQueue.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxPriorityQueue.js.map b/.opencode/node_modules/effect/dist/TxPriorityQueue.js.map index 86014621f6a0e9db3ab7f8c836ef8f47dfb540d6..d0d7c6a6a0a5144092c6ec85d237276ae043a571 100644 --- a/.opencode/node_modules/effect/dist/TxPriorityQueue.js.map +++ b/.opencode/node_modules/effect/dist/TxPriorityQueue.js.map @@ -1 +1 @@ -{"version":3,"file":"TxPriorityQueue.js","names":["C","Effect","dual","NodeInspectSymbol","toJson","O","pipeArguments","hasProperty","TxRef","TypeId","TxPriorityQueueProto","toJSON","_id","pipe","arguments","makeTxPriorityQueue","ref","ord","self","Object","create","insertSorted","chunk","value","arr","toArray","lo","hi","length","mid","out","Array","i","fromIterable","empty","order","map","make","iterable","from","sort","a","b","elements","size","get","isEmpty","n","isNonEmpty","peek","gen","head","isNone","txRetry","tx","peekOption","offer","update","offerAll","values","take","set","drop","takeAll","modify","takeOption","none","some","takeUpTo","taken","rest","removeIf","predicate","filter","retainIf","isTxPriorityQueue","u"],"sources":["../src/TxPriorityQueue.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAQA,OAAO,KAAKA,CAAC,MAAM,YAAY;AAC/B,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,OAAO,KAAKC,CAAC,MAAM,aAAa;AAGhC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAwB,gBAAgB;AAC5D,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,sCAAsC;AAgCrD,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;;;;;;;;;;;;;;AAkBA,OAAO,MAAM8C,QAAQ,gBAuCjBrE,IAAI,CACN,CAAC,EACD,CAAIgB,IAAwB,EAAEsD,SAAuB,KACnDhE,KAAK,CAACiD,MAAM,CAACvC,IAAI,CAACF,GAAG,EAAGM,KAAK,IAAKtB,CAAC,CAACyE,MAAM,CAACnD,KAAK,EAAGmB,CAAC,IAAK,CAAC+B,SAAS,CAAC/B,CAAC,CAAC,CAAC,CAAC,CAC3E;AAED;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMiC,QAAQ,gBAuCjBxE,IAAI,CACN,CAAC,EACD,CAAIgB,IAAwB,EAAEsD,SAAuB,KACnDhE,KAAK,CAACiD,MAAM,CAACvC,IAAI,CAACF,GAAG,EAAGM,KAAK,IAAKtB,CAAC,CAACyE,MAAM,CAACnD,KAAK,EAAEkD,SAAS,CAAC,CAAC,CAChE;AAED;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAM/C,OAAO,GAAOP,IAAwB,IACjDjB,MAAM,CAACmC,GAAG,CAAC5B,KAAK,CAACqC,GAAG,CAAC3B,IAAI,CAACF,GAAG,CAAC,EAAEhB,CAAC,CAACyB,OAAO,CAAC;AAE5C;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMkD,iBAAiB,GAAIC,CAAU,IAAoCrE,WAAW,CAACqE,CAAC,EAAEnE,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxPriorityQueue.js","names":["C","Effect","dual","NodeInspectSymbol","toJson","O","pipeArguments","hasProperty","TxRef","TypeId","TxPriorityQueueProto","toJSON","_id","pipe","arguments","makeTxPriorityQueue","ref","ord","self","Object","create","insertSorted","chunk","value","arr","toArray","lo","hi","length","mid","out","Array","i","fromIterable","empty","order","map","make","iterable","from","sort","a","b","elements","size","get","isEmpty","n","isNonEmpty","peek","gen","head","isNone","txRetry","tx","peekOption","offer","update","offerAll","values","take","set","drop","takeAll","modify","takeOption","none","some","takeUpTo","taken","rest","removeI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;;;;;;;;;AAkBA,OAAO,MAAMkD,iBAAiB,GAAIC,CAAU,IAAoCrE,WAAW,CAACqE,CAAC,EAAEnE,MAAM,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxPubSub.d.ts b/.opencode/node_modules/effect/dist/TxPubSub.d.ts index cd2f82f4267e50a76e98d9feada7ca19a24fbe0c..56b28a78894b09d165fdbba0447694f9fbf247d8 100644 --- a/.opencode/node_modules/effect/dist/TxPubSub.d.ts +++ b/.opencode/node_modules/effect/dist/TxPubSub.d.ts @@ -1,9 +1,11 @@ /** - * TxPubSub is a transactional publish/subscribe hub that provides Software Transactional Memory - * (STM) semantics for message broadcasting. Publishers broadcast messages to all current - * subscribers, with each subscriber receiving its own copy of every published message. + * Broadcasts values to subscribers inside Effect transactions. * - * Supports multiple queue strategies: bounded, unbounded, dropping, and sliding. + * A `TxPubSub` is a transactional publish/subscribe hub. Each subscriber + * owns a `TxQueue`, and each published value is offered to the subscriber + * queues that are registered at the time of publication. This module includes + * bounded, dropping, sliding, and unbounded hubs, publishing helpers, scoped + * subscriptions, shutdown operations, and a guard. * * @since 4.0.0 */ @@ -17,7 +19,8 @@ declare const TypeId = "~effect/transactions/TxPubSub"; * A TxPubSub represents a transactional publish/subscribe hub that broadcasts messages * to all current subscribers using Software Transactional Memory (STM) semantics. * - * @example + * **Example** (Subscribing to a transactional pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -35,8 +38,8 @@ declare const TypeId = "~effect/transactions/TxPubSub"; * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxPubSub extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -47,7 +50,8 @@ export interface TxPubSub extends Inspectable, Pipeable { * Creates a bounded TxPubSub with the specified capacity. When a subscriber's * queue is full, the publisher will retry the transaction until space is available. * - * @example + * **Example** (Creating a bounded pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -65,15 +69,16 @@ export interface TxPubSub extends Inspectable, Pipeable { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const bounded: (capacity: number) => Effect.Effect>; /** * Creates a dropping TxPubSub with the specified capacity. When a subscriber's * queue is full, the message is dropped for that subscriber. * - * @example + * **Example** (Creating a dropping pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -94,15 +99,16 @@ export declare const bounded: (capacity: number) => Effect.Effect(capacity: number) => Effect.Effect>; /** * Creates a sliding TxPubSub with the specified capacity. When a subscriber's * queue is full, the oldest message in that subscriber's queue is dropped. * - * @example + * **Example** (Creating a sliding pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -122,14 +128,15 @@ export declare const dropping: (capacity: number) => Effect.Effect(capacity: number) => Effect.Effect>; /** * Creates an unbounded TxPubSub with unlimited capacity. Messages are always accepted. * - * @example + * **Example** (Creating an unbounded pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -147,14 +154,15 @@ export declare const sliding: (capacity: number) => Effect.Effect() => Effect.Effect>; /** * Returns the capacity of the TxPubSub. * - * @example + * **Example** (Reading pub/sub capacity) + * * ```ts * import { Effect, TxPubSub } from "effect" * @@ -164,14 +172,15 @@ export declare const unbounded: () => Effect.Effect>; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const capacity: (self: TxPubSub) => number; /** * Returns the current number of messages across all subscriber queues (the max). * - * @example + * **Example** (Reading subscriber queue size) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -190,14 +199,15 @@ export declare const capacity: (self: TxPubSub) => number; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const size: (self: TxPubSub) => Effect.Effect; /** - * Checks if the TxPubSub has no pending messages (all subscriber queues are empty). + * Checks whether the TxPubSub has no pending messages (all subscriber queues are empty). + * + * **Example** (Checking whether a pub/sub is empty) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -208,14 +218,15 @@ export declare const size: (self: TxPubSub) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const isEmpty: (self: TxPubSub) => Effect.Effect; /** - * Checks if any subscriber queue is at capacity. + * Checks whether any subscriber queue is at capacity. + * + * **Example** (Checking whether a pub/sub is full) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -226,14 +237,15 @@ export declare const isEmpty: (self: TxPubSub) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const isFull: (self: TxPubSub) => Effect.Effect; /** - * Checks if the TxPubSub has been shut down. + * Checks whether the TxPubSub has been shut down. + * + * **Example** (Checking whether a pub/sub is shut down) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -245,21 +257,19 @@ export declare const isFull: (self: TxPubSub) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const isShutdown: (self: TxPubSub) => Effect.Effect; /** * Publishes a message to all current subscribers. * - * Returns `true` if the message was delivered to all subscribers, or `false` if - * the hub is shut down or the message was dropped for any subscriber (dropping strategy). + * **Details** * - * For bounded strategy, retries the transaction if any subscriber queue is full. - * For sliding strategy, drops oldest messages in full subscriber queues. - * For dropping strategy, drops the message for full subscriber queues and returns `false`. + * Returns `true` if the message was delivered to all subscribers, or `false` if the hub is shut down or the message was dropped for any subscriber. For the bounded strategy, the transaction retries if any subscriber queue is full. For the sliding strategy, full subscriber queues drop their oldest messages. For the dropping strategy, full subscriber queues drop the new message and the operation returns `false`. + * + * **Example** (Publishing a message to subscribers) * - * @example * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -281,21 +291,19 @@ export declare const isShutdown: (self: TxPubSub) => Effect.Effect(value: A): (self: TxPubSub) => Effect.Effect; /** * Publishes a message to all current subscribers. * - * Returns `true` if the message was delivered to all subscribers, or `false` if - * the hub is shut down or the message was dropped for any subscriber (dropping strategy). + * **Details** + * + * Returns `true` if the message was delivered to all subscribers, or `false` if the hub is shut down or the message was dropped for any subscriber. For the bounded strategy, the transaction retries if any subscriber queue is full. For the sliding strategy, full subscriber queues drop their oldest messages. For the dropping strategy, full subscriber queues drop the new message and the operation returns `false`. * - * For bounded strategy, retries the transaction if any subscriber queue is full. - * For sliding strategy, drops oldest messages in full subscriber queues. - * For dropping strategy, drops the message for full subscriber queues and returns `false`. + * **Example** (Publishing a message to subscribers) * - * @example * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -353,17 +359,20 @@ export declare const publish: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxPubSub, value: A): Effect.Effect; }; /** * Publishes all messages from an iterable to all current subscribers. * + * **Details** + * * Returns `true` if all messages were delivered to all subscribers. * - * @example + * **Example** (Publishing multiple messages to subscribers) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -383,16 +392,19 @@ export declare const publish: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const publishAll: { /** * Publishes all messages from an iterable to all current subscribers. * + * **Details** + * * Returns `true` if all messages were delivered to all subscribers. * - * @example + * **Example** (Publishing multiple messages to subscribers) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -412,16 +424,19 @@ export declare const publishAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (values: Iterable): (self: TxPubSub) => Effect.Effect; /** * Publishes all messages from an iterable to all current subscribers. * + * **Details** + * * Returns `true` if all messages were delivered to all subscribers. * - * @example + * **Example** (Publishing multiple messages to subscribers) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -441,17 +456,20 @@ export declare const publishAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxPubSub, values: Iterable): Effect.Effect; }; /** - * Subscribes to the TxPubSub, returning a TxQueue that receives all messages - * published after subscription. The subscription is automatically removed when - * the scope is closed. + * Subscribes to the TxPubSub, returning a scoped `TxQueue` for messages published after subscription. + * + * **Details** + * + * The returned queue uses the hub's capacity strategy: bounded subscriptions backpressure publishers when full, dropping subscriptions may miss new messages when full, and sliding subscriptions may evict older queued messages. The subscription is automatically removed when the scope is closed. + * + * **Example** (Subscribing multiple queues) * - * @example * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -473,57 +491,118 @@ export declare const publishAll: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const subscribe: (self: TxPubSub) => Effect.Effect, never, Scope.Scope>; /** * Creates a subscriber queue and registers it with the pub/sub. * - * This is the transactional acquire step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction - * (e.g. `TxSubscriptionRef.changes`). + * **When to use** + * + * Use to create and register a subscriber queue inside a larger transaction + * when registration must be atomic with other Tx operations. + * + * **Details** + * + * This is the transactional acquire step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction, such as `TxSubscriptionRef.changes`. + * + * @see {@link subscribe} for the scoped acquire and release wrapper when no custom transaction composition is needed + * @see {@link releaseSubscriber} to remove and shut down a queue returned by `acquireSubscriber` * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ export declare const acquireSubscriber: (self: TxPubSub) => Effect.Effect, never, Effect.Transaction>; /** * Removes a subscriber queue from the pub/sub and shuts it down. * - * This is the transactional release step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction. + * **When to use** + * + * Use to release a manually acquired subscriber queue inside a larger + * transaction, removing it from the pub/sub and shutting it down together with + * related transactional cleanup. + * + * **Details** + * + * This is the transactional release step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction. + * + * **Gotchas** + * + * The supplied queue is shut down after being removed, so callers should pass a + * queue acquired for this pub/sub. + * + * @see {@link acquireSubscriber} for the matching transactional acquire step + * @see {@link subscribe} for the scoped acquire and release wrapper * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ export declare const releaseSubscriber: { /** * Removes a subscriber queue from the pub/sub and shuts it down. * - * This is the transactional release step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction. + * **When to use** + * + * Use to release a manually acquired subscriber queue inside a larger + * transaction, removing it from the pub/sub and shutting it down together with + * related transactional cleanup. + * + * **Details** + * + * This is the transactional release step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction. + * + * **Gotchas** + * + * The supplied queue is shut down after being removed, so callers should pass a + * queue acquired for this pub/sub. + * + * @see {@link acquireSubscriber} for the matching transactional acquire step + * @see {@link subscribe} for the scoped acquire and release wrapper * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ (queue: TxQueue.TxQueue): (self: TxPubSub) => Effect.Effect; /** * Removes a subscriber queue from the pub/sub and shuts it down. * - * This is the transactional release step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction. + * **When to use** + * + * Use to release a manually acquired subscriber queue inside a larger + * transaction, removing it from the pub/sub and shutting it down together with + * related transactional cleanup. + * + * **Details** + * + * This is the transactional release step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction. + * + * **Gotchas** + * + * The supplied queue is shut down after being removed, so callers should pass a + * queue acquired for this pub/sub. + * + * @see {@link acquireSubscriber} for the matching transactional acquire step + * @see {@link subscribe} for the scoped acquire and release wrapper * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ (self: TxPubSub, queue: TxQueue.TxQueue): Effect.Effect; }; /** - * Shuts down the TxPubSub and all subscriber queues. Subsequent publish operations - * will return `false`. Subsequent subscribe operations will receive an already-shutdown queue. + * Shuts down the TxPubSub and all subscriber queues registered at the time of shutdown. + * + * **Details** + * + * After shutdown, `publish` and `publishAll` return `false`, and `awaitShutdown` completes. The operation is idempotent. + * + * **Gotchas** + * + * Subscribers acquired after shutdown are not automatically shut down by this call. + * + * **Example** (Shutting down a pub/sub) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -539,14 +618,15 @@ export declare const releaseSubscriber: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const shutdown: (self: TxPubSub) => Effect.Effect; /** * Waits for the TxPubSub to be shut down. * - * @example + * **Example** (Waiting for shutdown) + * * ```ts * import { Effect, TxPubSub } from "effect" * @@ -559,14 +639,15 @@ export declare const shutdown: (self: TxPubSub) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const awaitShutdown: (self: TxPubSub) => Effect.Effect; /** - * Checks if the given value is a TxPubSub. + * Checks whether the given value is a TxPubSub. + * + * **Example** (Checking for a TxPubSub) * - * @example * ```ts * import { TxPubSub } from "effect" * @@ -577,8 +658,8 @@ export declare const awaitShutdown: (self: TxPubSub) => Effect.Effect u is TxPubSub; export {}; diff --git a/.opencode/node_modules/effect/dist/TxPubSub.d.ts.map b/.opencode/node_modules/effect/dist/TxPubSub.d.ts.map index db19850492725240b5dd891f76a4dd9c3a09f84c..8ec82b3a9c6a35a5a94bd9da88896db3c38f9f22 100644 --- a/.opencode/node_modules/effect/dist/TxPubSub.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxPubSub.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxPubSub.d.ts","sourceRoot":"","sources":["../src/TxPubSub.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC,QAAA,MAAM,MAAM,kCAAkC,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,WAAW,EAAE,QAAQ;IAC/D,QAAQ,CAAC,CAAC,MAAM,CAA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TxPubSub.js b/.opencode/node_modules/effect/dist/TxPubSub.js index 13bd2b06fa964213995d3c8a74d021a157a7c565..f2fbff09bd16c84db4136781e16163ae49b18db9 100644 --- a/.opencode/node_modules/effect/dist/TxPubSub.js +++ b/.opencode/node_modules/effect/dist/TxPubSub.js @@ -1,9 +1,11 @@ /** - * TxPubSub is a transactional publish/subscribe hub that provides Software Transactional Memory - * (STM) semantics for message broadcasting. Publishers broadcast messages to all current - * subscribers, with each subscriber receiving its own copy of every published message. + * Broadcasts values to subscribers inside Effect transactions. * - * Supports multiple queue strategies: bounded, unbounded, dropping, and sliding. + * A `TxPubSub` is a transactional publish/subscribe hub. Each subscriber + * owns a `TxQueue`, and each published value is offered to the subscriber + * queues that are registered at the time of publication. This module includes + * bounded, dropping, sliding, and unbounded hubs, publishing helpers, scoped + * subscriptions, shutdown operations, and a guard. * * @since 4.0.0 */ @@ -49,7 +51,8 @@ const makeTxPubSub = (subscribersRef, shutdownRef, strategy, cap) => { * Creates a bounded TxPubSub with the specified capacity. When a subscriber's * queue is full, the publisher will retry the transaction until space is available. * - * @example + * **Example** (Creating a bounded pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -67,8 +70,8 @@ const makeTxPubSub = (subscribersRef, shutdownRef, strategy, cap) => { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const bounded = capacity => Effect.gen(function* () { const subscribersRef = yield* TxRef.make([]); @@ -79,7 +82,8 @@ export const bounded = capacity => Effect.gen(function* () { * Creates a dropping TxPubSub with the specified capacity. When a subscriber's * queue is full, the message is dropped for that subscriber. * - * @example + * **Example** (Creating a dropping pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -100,8 +104,8 @@ export const bounded = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const dropping = capacity => Effect.gen(function* () { const subscribersRef = yield* TxRef.make([]); @@ -112,7 +116,8 @@ export const dropping = capacity => Effect.gen(function* () { * Creates a sliding TxPubSub with the specified capacity. When a subscriber's * queue is full, the oldest message in that subscriber's queue is dropped. * - * @example + * **Example** (Creating a sliding pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -132,8 +137,8 @@ export const dropping = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const sliding = capacity => Effect.gen(function* () { const subscribersRef = yield* TxRef.make([]); @@ -143,7 +148,8 @@ export const sliding = capacity => Effect.gen(function* () { /** * Creates an unbounded TxPubSub with unlimited capacity. Messages are always accepted. * - * @example + * **Example** (Creating an unbounded pub/sub) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -161,8 +167,8 @@ export const sliding = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const unbounded = () => Effect.gen(function* () { const subscribersRef = yield* TxRef.make([]); @@ -175,7 +181,8 @@ export const unbounded = () => Effect.gen(function* () { /** * Returns the capacity of the TxPubSub. * - * @example + * **Example** (Reading pub/sub capacity) + * * ```ts * import { Effect, TxPubSub } from "effect" * @@ -185,14 +192,15 @@ export const unbounded = () => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const capacity = self => self.capacity; /** * Returns the current number of messages across all subscriber queues (the max). * - * @example + * **Example** (Reading subscriber queue size) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -211,8 +219,8 @@ export const capacity = self => self.capacity; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const size = self => Effect.gen(function* () { const subscribers = yield* TxRef.get(self.subscribersRef); @@ -224,9 +232,10 @@ export const size = self => Effect.gen(function* () { return maxSize; }).pipe(Effect.tx); /** - * Checks if the TxPubSub has no pending messages (all subscriber queues are empty). + * Checks whether the TxPubSub has no pending messages (all subscriber queues are empty). + * + * **Example** (Checking whether a pub/sub is empty) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -237,14 +246,15 @@ export const size = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const isEmpty = self => Effect.map(size(self), s => s === 0); /** - * Checks if any subscriber queue is at capacity. + * Checks whether any subscriber queue is at capacity. + * + * **Example** (Checking whether a pub/sub is full) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -255,8 +265,8 @@ export const isEmpty = self => Effect.map(size(self), s => s === 0); * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const isFull = self => Effect.gen(function* () { if (self.capacity === Number.POSITIVE_INFINITY) return false; @@ -267,9 +277,10 @@ export const isFull = self => Effect.gen(function* () { return false; }).pipe(Effect.tx); /** - * Checks if the TxPubSub has been shut down. + * Checks whether the TxPubSub has been shut down. + * + * **Example** (Checking whether a pub/sub is shut down) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -281,8 +292,8 @@ export const isFull = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const isShutdown = self => TxRef.get(self.shutdownRef); // ============================================================================= @@ -291,14 +302,12 @@ export const isShutdown = self => TxRef.get(self.shutdownRef); /** * Publishes a message to all current subscribers. * - * Returns `true` if the message was delivered to all subscribers, or `false` if - * the hub is shut down or the message was dropped for any subscriber (dropping strategy). + * **Details** + * + * Returns `true` if the message was delivered to all subscribers, or `false` if the hub is shut down or the message was dropped for any subscriber. For the bounded strategy, the transaction retries if any subscriber queue is full. For the sliding strategy, full subscriber queues drop their oldest messages. For the dropping strategy, full subscriber queues drop the new message and the operation returns `false`. * - * For bounded strategy, retries the transaction if any subscriber queue is full. - * For sliding strategy, drops oldest messages in full subscriber queues. - * For dropping strategy, drops the message for full subscriber queues and returns `false`. + * **Example** (Publishing a message to subscribers) * - * @example * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -320,8 +329,8 @@ export const isShutdown = self => TxRef.get(self.shutdownRef); * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const publish = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () { if (yield* TxRef.get(self.shutdownRef)) return false; @@ -336,9 +345,12 @@ export const publish = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function /** * Publishes all messages from an iterable to all current subscribers. * + * **Details** + * * Returns `true` if all messages were delivered to all subscribers. * - * @example + * **Example** (Publishing multiple messages to subscribers) + * * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -358,8 +370,8 @@ export const publish = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const publishAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(function* () { if (yield* TxRef.get(self.shutdownRef)) return false; @@ -371,11 +383,14 @@ export const publishAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(func return allAccepted; }).pipe(Effect.tx)); /** - * Subscribes to the TxPubSub, returning a TxQueue that receives all messages - * published after subscription. The subscription is automatically removed when - * the scope is closed. + * Subscribes to the TxPubSub, returning a scoped `TxQueue` for messages published after subscription. + * + * **Details** + * + * The returned queue uses the hub's capacity strategy: bounded subscriptions backpressure publishers when full, dropping subscriptions may miss new messages when full, and sliding subscriptions may evict older queued messages. The subscription is automatically removed when the scope is closed. + * + * **Example** (Subscribing multiple queues) * - * @example * ```ts * import { Effect, TxPubSub, TxQueue } from "effect" * @@ -397,19 +412,27 @@ export const publishAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(func * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const subscribe = self => Effect.acquireRelease(Effect.tx(acquireSubscriber(self)), queue => Effect.tx(releaseSubscriber(self, queue))); /** * Creates a subscriber queue and registers it with the pub/sub. * - * This is the transactional acquire step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction - * (e.g. `TxSubscriptionRef.changes`). + * **When to use** + * + * Use to create and register a subscriber queue inside a larger transaction + * when registration must be atomic with other Tx operations. + * + * **Details** + * + * This is the transactional acquire step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction, such as `TxSubscriptionRef.changes`. + * + * @see {@link subscribe} for the scoped acquire and release wrapper when no custom transaction composition is needed + * @see {@link releaseSubscriber} to remove and shut down a queue returned by `acquireSubscriber` * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ export const acquireSubscriber = self => Effect.gen(function* () { const queue = yield* makeSubscriberQueue(self.strategy, self.capacity); @@ -419,11 +442,26 @@ export const acquireSubscriber = self => Effect.gen(function* () { /** * Removes a subscriber queue from the pub/sub and shuts it down. * - * This is the transactional release step of `subscribe`, exposed so that - * callers can compose it with other Tx operations in a single transaction. + * **When to use** + * + * Use to release a manually acquired subscriber queue inside a larger + * transaction, removing it from the pub/sub and shutting it down together with + * related transactional cleanup. + * + * **Details** + * + * This is the transactional release step of `subscribe`, exposed so that callers can compose it with other Tx operations in a single transaction. + * + * **Gotchas** + * + * The supplied queue is shut down after being removed, so callers should pass a + * queue acquired for this pub/sub. + * + * @see {@link acquireSubscriber} for the matching transactional acquire step + * @see {@link subscribe} for the scoped acquire and release wrapper * - * @since 4.0.0 * @category mutations + * @since 4.0.0 */ export const releaseSubscriber = /*#__PURE__*/dual(2, (self, queue) => Effect.gen(function* () { yield* TxRef.update(self.subscribersRef, subs => subs.filter(q => q !== queue)); @@ -442,10 +480,18 @@ const makeSubscriberQueue = (strategy, cap) => { } }; /** - * Shuts down the TxPubSub and all subscriber queues. Subsequent publish operations - * will return `false`. Subsequent subscribe operations will receive an already-shutdown queue. + * Shuts down the TxPubSub and all subscriber queues registered at the time of shutdown. + * + * **Details** + * + * After shutdown, `publish` and `publishAll` return `false`, and `awaitShutdown` completes. The operation is idempotent. + * + * **Gotchas** + * + * Subscribers acquired after shutdown are not automatically shut down by this call. + * + * **Example** (Shutting down a pub/sub) * - * @example * ```ts * import { Effect, TxPubSub } from "effect" * @@ -461,8 +507,8 @@ const makeSubscriberQueue = (strategy, cap) => { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const shutdown = self => Effect.gen(function* () { const alreadyShutdown = yield* TxRef.get(self.shutdownRef); @@ -476,7 +522,8 @@ export const shutdown = self => Effect.gen(function* () { /** * Waits for the TxPubSub to be shut down. * - * @example + * **Example** (Waiting for shutdown) + * * ```ts * import { Effect, TxPubSub } from "effect" * @@ -489,8 +536,8 @@ export const shutdown = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const awaitShutdown = self => Effect.gen(function* () { const shut = yield* TxRef.get(self.shutdownRef); @@ -501,9 +548,10 @@ export const awaitShutdown = self => Effect.gen(function* () { // Guards // ============================================================================= /** - * Checks if the given value is a TxPubSub. + * Checks whether the given value is a TxPubSub. + * + * **Example** (Checking for a TxPubSub) * - * @example * ```ts * import { TxPubSub } from "effect" * @@ -514,8 +562,8 @@ export const awaitShutdown = self => Effect.gen(function* () { * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxPubSub = u => hasProperty(u, TypeId); //# sourceMappingURL=TxPubSub.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxPubSub.js.map b/.opencode/node_modules/effect/dist/TxPubSub.js.map index 526cc72642f2dfe60a98abff33f4f44cacf42bed..33ccb10cf196a9aa81b602cd51bfd7682827dc3e 100644 --- a/.opencode/node_modules/effect/dist/TxPubSub.js.map +++ b/.opencode/node_modules/effect/dist/TxPubSub.js.map @@ -1 +1 @@ -{"version":3,"file":"TxPubSub.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxQueue","TxRef","TypeId","TxPubSubProto","toJSON","_id","strategy","capacity","toString","pipe","arguments","makeTxPubSub","subscribersRef","shutdownRef","cap","self","Object","create","bounded","gen","make","tx","dropping","sliding","unbounded","Number","POSITIVE_INFINITY","size","subscribers","get","maxSize","queue","s","isEmpty","map","isFull","isShutdown","publish","value","allAccepted","accepted","offer","publishAll","values","subscribe","acquireRelease","acquireSubscriber","releaseSubscriber","makeSubscriberQueue","update","subs","filter","q","shutdown","alreadyShutdown","set","awaitShutdown","shut","txRetry","isTxPubSub","u"],"sources":["../src/TxPubSub.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;AASA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,+BAA+B;AAqC9C,MAAMC,aAAa,GAAoG;EACrH,CAACP,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDO,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,UAAU;MACfC,QAAQ,EAAE,IAAI,CAACA,QAAQ;MACvBC,QAAQ,EAAE,IAAI,CAACA;KAChB;EACH,CAAC;EACDC,QAAQA,CAAA;IACN,OAAO,YAAY,IAAI,CAACF,QAAQ,KAAK,IAAI,CAACC,QAAQ,GAAG;EACvD,CAAC;EACDE,IAAIA,CAAA;IACF,OAAOX,aAAa,CAAC,IAAI,EAAEY,SAAS,CAAC;EACvC;CACD;AAED,MAAMC,YAAY,GAAGA,CACnBC,cAAsD,EACtDC,WAAiC,EACjCP,QAA0D,EAC1DQ,GAAW,KACI;EACf,MAAMC,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACd,aAAa,CAAC;EACzCY,IAAI,CAACb,MAAM,CAAC,GAAGA,MAAM;EACrBa,IAAI,CAACH,cAAc,GAAGA,cAAc;EACpCG,IAAI,CAACF,WAAW,GAAGA,WAAW;EAC9BE,IAAI,CAACT,QAAQ,GAAGA,QAAQ;EACxBS,IAAI,CAACR,QA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,OAAO,CAACqD,QAAQ,CAACtB,KAAK,CAAC;EAChC;AACF,CAAC,CAAC,CAACtB,IAAI,CAACf,MAAM,CAAC2B,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMmC,aAAa,GAAOzC,IAAiB,IAChDrB,MAAM,CAACyB,GAAG,CAAC,aAAS;EAClB,MAAMsC,IAAI,GAAG,OAAOxD,KAAK,CAAC4B,GAAG,CAACd,IAAI,CAACF,WAAW,CAAC;EAC/C,IAAI4C,IAAI,EAAE;EACV,OAAO,OAAO/D,MAAM,CAACgE,OAAO;AAC9B,CAAC,CAAC,CAACjD,IAAI,CAACf,MAAM,CAAC2B,EAAE,CAAC;AAEpB;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMsC,UAAU,GAAIC,CAAU,IAA6B7D,WAAW,CAAC6D,CAAC,EAAE1D,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxPubSub.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxQueue","TxRef","TypeId","TxPubSubProto","toJSON","_id","strategy","capacity","toString","pipe","arguments","makeTxPubSub","subscribersRef","shutdownRef","cap","self","Object","create","bounded","gen","make","tx","dropping","sliding","unbounded","Number","POSITIVE_INFINITY","size","subscribers","get","maxSize","queue","s","isEmpty","map","isFull","isShutdown","publish","value","allAccepted","accepted","offer","publishAll","values","subscribe","acquireRelease","acquireSubscriber","releaseSubscriber","makeSubscriberQueue","update","subs","filter","q","shutdown","alreadyShutdown","set","awaitShutdown","shut","txRetry","isTxPubSub","u"],"sources":["../src/TxPubSub.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAA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AAI,CAACF,WAAW,CAAC;EAC/C,IAAI4C,IAAI,EAAE;EACV,OAAO,OAAO/D,MAAM,CAACgE,OAAO;AAC9B,CAAC,CAAC,CAACjD,IAAI,CAACf,MAAM,CAAC2B,EAAE,CAAC;AAEpB;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMsC,UAAU,GAAIC,CAAU,IAA6B7D,WAAW,CAAC6D,CAAC,EAAE1D,MAAM,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxQueue.d.ts b/.opencode/node_modules/effect/dist/TxQueue.d.ts index f6d147c7a661405ae465217bec01bc01c5e3978c..446633c126594293b405dea5af18e4bad780eee0 100644 --- a/.opencode/node_modules/effect/dist/TxQueue.d.ts +++ b/.opencode/node_modules/effect/dist/TxQueue.d.ts @@ -1,11 +1,12 @@ /** - * TxQueue is a transactional queue data structure that provides Software Transactional Memory (STM) - * semantics for queue operations. It uses TxRef for transactional state management and supports - * multiple queue strategies: bounded, unbounded, dropping, and sliding. + * Transactional queues whose state changes participate in Effect transactions. * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxQueue values change. + * A `TxQueue` stores values of type `A`, exposes write-only `TxEnqueue` + * and read-only `TxDequeue` handles, and can complete, fail, or shut down with + * causes observed by consumers. Queue operations can retry transactionally when + * they cannot proceed, such as taking from an empty open queue or offering to a + * full bounded queue. This makes the queue useful for coordinating producers + * and consumers alongside other transactional state changes. * * @since 4.0.0 */ @@ -21,12 +22,15 @@ import type * as Types from "./Types.ts"; /** * Represents the state of a transactional queue with sophisticated lifecycle management. * + * **Details** + * * The queue progresses through three states: * - **Open**: Accepting offers and serving takes normally * - **Closing**: No new offers accepted, serving remaining items until empty * - **Done**: Terminal state with completion cause, no further operations possible * - * @example + * **Example** (Inspecting queue lifecycle states) + * * ```ts * import type { TxQueue } from "effect" * @@ -42,8 +46,8 @@ import type * as Types from "./Types.ts"; * } * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export type State<_A, E> = { readonly _tag: "Open"; @@ -60,31 +64,14 @@ declare const TypeId = "~effect/transactions/TxQueue"; /** * Namespace containing type definitions for TxEnqueue variance annotations. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Use variance types for type-level operations - * declare const variance: TxQueue.TxEnqueue.Variance - * ``` - * * @since 4.0.0 - * @category models */ export declare namespace TxEnqueue { /** * Variance annotation interface for TxEnqueue contravariance. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Demonstrates contravariant type behavior for both A and E - * declare const variance: TxQueue.TxEnqueue.Variance - * ``` - * - * @since 4.0.0 * @category models + * @since 4.0.0 */ interface Variance { readonly _A: Types.Contravariant; @@ -94,31 +81,14 @@ export declare namespace TxEnqueue { /** * Namespace containing type definitions for TxDequeue variance annotations. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Use variance types for type-level operations - * declare const variance: TxQueue.TxDequeue.Variance - * ``` - * * @since 4.0.0 - * @category models */ export declare namespace TxDequeue { /** * Variance annotation interface for TxDequeue covariance. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Demonstrates covariant type behavior for both A and E - * declare const variance: TxQueue.TxDequeue.Variance - * ``` - * - * @since 4.0.0 * @category models + * @since 4.0.0 */ interface Variance { readonly _A: Types.Covariant; @@ -128,31 +98,14 @@ export declare namespace TxDequeue { /** * Namespace containing type definitions for TxQueue variance annotations. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Use variance types for type-level operations - * declare const variance: TxQueue.TxQueue.Variance - * ``` - * * @since 4.0.0 - * @category models */ export declare namespace TxQueue { /** * Variance annotation interface for TxQueue invariance. * - * @example - * ```ts - * import type { TxQueue } from "effect" - * - * // Demonstrates invariant type behavior for both A and E - * declare const variance: TxQueue.TxQueue.Variance - * ``` - * - * @since 4.0.0 * @category models + * @since 4.0.0 */ interface Variance { readonly _A: Types.Invariant; @@ -164,8 +117,8 @@ export declare namespace TxQueue { * This interface contains the core properties needed for queue state inspection * operations like size, capacity, and completion status. * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxQueueState extends Inspectable { readonly strategy: "bounded" | "unbounded" | "dropping" | "sliding"; @@ -177,10 +130,11 @@ export interface TxQueueState extends Inspectable { * A TxEnqueue represents the write-only interface of a transactional queue, providing * operations for adding elements (enqueue operations) and inspecting queue state. * - * @example + * **Example** (Offering values through enqueue handles) + * * ```ts - * import type { Cause } from "effect" * import { Effect, TxQueue } from "effect" + * import type { Cause } from "effect" * * const program = Effect.gen(function*() { * // Queue without error channel @@ -202,8 +156,8 @@ export interface TxQueueState extends Inspectable { * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxEnqueue extends TxQueueState { readonly [EnqueueTypeId]: TxEnqueue.Variance; @@ -212,18 +166,20 @@ export interface TxEnqueue extends TxQueueState { * A TxDequeue represents the read-only interface of a transactional queue, providing * operations for consuming elements (dequeue operations) and inspecting queue state. * - * @example + * **Example** (Taking values through dequeue handles) + * * ```ts * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * // Queue without error channel * const queue = yield* TxQueue.bounded(10) + * yield* TxQueue.offer(queue, 42) * const item = yield* TxQueue.take(queue) + * console.log(item) // 42 * * // Queue with error channel - errors propagate through E-channel * const faultTolerantQueue = yield* TxQueue.bounded(10) - * yield* TxQueue.offer(faultTolerantQueue, 42) * yield* TxQueue.fail(faultTolerantQueue, "processing failed") * * // All dequeue operations now fail with the error directly @@ -232,8 +188,8 @@ export interface TxEnqueue extends TxQueueState { * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxDequeue extends TxQueueState { readonly [DequeueTypeId]: TxDequeue.Variance; @@ -242,7 +198,8 @@ export interface TxDequeue extends TxQueueState { * A TxQueue represents a transactional queue data structure that provides both * enqueue and dequeue operations with Software Transactional Memory (STM) semantics. * - * @example + * **Example** (Combining enqueue and dequeue operations) + * * ```ts * import { Effect, TxQueue } from "effect" * @@ -259,21 +216,23 @@ export interface TxDequeue extends TxQueueState { * const faultTolerantQueue = yield* TxQueue.bounded(10) * * // Operations can handle queue-level failures - * yield* TxQueue.shutdown(faultTolerantQueue) - * const result = yield* Effect.flip(TxQueue.take(faultTolerantQueue)) // never + * yield* TxQueue.fail(faultTolerantQueue, "queue failed") + * const result = yield* Effect.flip(TxQueue.take(faultTolerantQueue)) + * console.log(result) // "queue failed" * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxQueue extends TxEnqueue, TxDequeue { readonly [TypeId]: TxQueue.Variance; } /** - * Checks if the given value is a TxEnqueue. + * Checks whether the given value is a TxEnqueue. + * + * **Example** (Checking enqueue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -285,14 +244,15 @@ export interface TxQueue extends TxEnqueue, Tx * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxEnqueue: (u: unknown) => u is TxEnqueue; /** - * Checks if the given value is a TxDequeue. + * Checks whether the given value is a TxDequeue. + * + * **Example** (Checking dequeue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -304,14 +264,15 @@ export declare const isTxEnqueue: (u: unknown) => u is * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxDequeue: (u: unknown) => u is TxDequeue; /** - * Checks if the given value is a TxQueue. + * Checks whether the given value is a TxQueue. + * + * **Example** (Checking queue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -323,17 +284,19 @@ export declare const isTxDequeue: (u: unknown) => u is * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isTxQueue: (u: unknown) => u is TxQueue; /** * Creates a new bounded `TxQueue` with the specified capacity. * - * **Return behavior**: This function returns a new TxQueue reference with - * the specified capacity. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with the specified capacity. No existing TxQueue instances are modified. + * + * **Example** (Creating bounded queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -353,17 +316,19 @@ export declare const isTxQueue: (u: unknown) => u is T * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const bounded: (capacity: number) => Effect.Effect>; /** * Creates a new unbounded `TxQueue` with unlimited capacity. * - * **Return behavior**: This function returns a new TxQueue reference with - * unlimited capacity. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with unlimited capacity. No existing TxQueue instances are modified. + * + * **Example** (Creating unbounded queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -383,17 +348,19 @@ export declare const bounded: (capacity: number) => Effect * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const unbounded: () => Effect.Effect>; /** * Creates a new dropping `TxQueue` with the specified capacity that drops new items when full. * - * **Return behavior**: This function returns a new TxQueue reference with - * dropping strategy. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with dropping strategy. No existing TxQueue instances are modified. + * + * **Example** (Creating dropping queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -411,17 +378,19 @@ export declare const unbounded: () => Effect.Effect(capacity: number) => Effect.Effect>; /** * Creates a new sliding `TxQueue` with the specified capacity that evicts old items when full. * - * **Return behavior**: This function returns a new TxQueue reference with - * sliding strategy. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with sliding strategy. No existing TxQueue instances are modified. + * + * **Example** (Creating sliding queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -441,17 +410,19 @@ export declare const dropping: (capacity: number) => Effec * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const sliding: (capacity: number) => Effect.Effect>; /** - * Offers an item to the queue. + * Offers an item to the queue and returns whether it was accepted. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * the item according to the queue's strategy. It does not return a new TxQueue reference. + * Open unbounded queues always accept; open bounded queues retry while full; dropping queues return `false` when full; sliding queues evict the oldest item when full. Closing or done queues return `false`. This function mutates the original TxQueue by adding the item according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -464,17 +435,19 @@ export declare const sliding: (capacity: number) => Effect * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const offer: { /** - * Offers an item to the queue. + * Offers an item to the queue and returns whether it was accepted. * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * the item according to the queue's strategy. It does not return a new TxQueue reference. + * **Details** + * + * Open unbounded queues always accept; open bounded queues retry while full; dropping queues return `false` when full; sliding queues evict the oldest item when full. Closing or done queues return `false`. This function mutates the original TxQueue by adding the item according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -487,17 +460,19 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (value: A): (self: TxEnqueue) => Effect.Effect; /** - * Offers an item to the queue. + * Offers an item to the queue and returns whether it was accepted. * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * the item according to the queue's strategy. It does not return a new TxQueue reference. + * **Details** + * + * Open unbounded queues always accept; open bounded queues retry while full; dropping queues return `false` when full; sliding queues evict the oldest item when full. Closing or done queues return `false`. This function mutates the original TxQueue by adding the item according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -510,22 +485,23 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (self: TxEnqueue, value: A): Effect.Effect; }; /** - * Offers multiple items to the queue. + * Offers multiple items to the queue, returning the items that were not + * accepted. * - * Returns an array of items that were rejected (not added to the queue). + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * items according to the queue's strategy. It does not return a new TxQueue reference. + * Each item follows `offer` semantics: bounded queues retry while full, dropping queues reject new items when full, sliding queues evict old items to accept new items, and closing or done queues reject all items. This function mutates the original TxQueue by adding items according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering multiple values) * - * @example * ```ts - * import { Chunk, Effect, TxQueue } from "effect" + * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) @@ -537,21 +513,22 @@ export declare const offer: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const offerAll: { /** - * Offers multiple items to the queue. + * Offers multiple items to the queue, returning the items that were not + * accepted. * - * Returns an array of items that were rejected (not added to the queue). + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * items according to the queue's strategy. It does not return a new TxQueue reference. + * Each item follows `offer` semantics: bounded queues retry while full, dropping queues reject new items when full, sliding queues evict old items to accept new items, and closing or done queues reject all items. This function mutates the original TxQueue by adding items according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering multiple values) * - * @example * ```ts - * import { Chunk, Effect, TxQueue } from "effect" + * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) @@ -563,21 +540,22 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (values: Iterable): (self: TxEnqueue) => Effect.Effect>; /** - * Offers multiple items to the queue. + * Offers multiple items to the queue, returning the items that were not + * accepted. + * + * **Details** * - * Returns an array of items that were rejected (not added to the queue). + * Each item follows `offer` semantics: bounded queues retry while full, dropping queues reject new items when full, sliding queues evict old items to accept new items, and closing or done queues reject all items. This function mutates the original TxQueue by adding items according to the queue's strategy. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * items according to the queue's strategy. It does not return a new TxQueue reference. + * **Example** (Offering multiple values) * - * @example * ```ts - * import { Chunk, Effect, TxQueue } from "effect" + * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) @@ -589,18 +567,21 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (self: TxEnqueue, values: Iterable): Effect.Effect>; }; /** - * Takes an item from the queue. + * Takes the next item from the queue, retrying the transaction while the queue + * is empty. + * + * **Details** + * + * If the queue is done, the effect fails with the queue's completion cause. This function mutates the original TxQueue by removing the first item. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * the first item. It does not return a new TxQueue reference. + * **Example** (Taking a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -619,14 +600,15 @@ export declare const offerAll: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const take: (self: TxDequeue) => Effect.Effect; /** * Tries to take an item from the queue without blocking. * - * @example + * **Example** (Polling without blocking) + * * ```ts * import { Effect, Option, TxQueue } from "effect" * @@ -643,22 +625,19 @@ export declare const take: (self: TxDequeue) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const poll: (self: TxDequeue) => Effect.Effect>; /** * Takes all items from the queue. Blocks if the queue is empty. * - * If the queue is already in a failed state, the error is propagated through the E-channel. - * Follows the same patterns as `take` - waits when there are no elements. + * **Details** * - * Returns a non-empty array since it blocks until at least one item is available. + * If the queue is already in a failed state, the error is propagated through the E-channel. This follows the same patterns as `take` and waits when there are no elements. It returns a non-empty array because it blocks until at least one item is available. This function mutates the original TxQueue by removing all items. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * all items. It does not return a new TxQueue reference. + * **Example** (Taking all queued values) * - * @example * ```ts * import { Array, Effect, TxQueue } from "effect" * @@ -684,124 +663,111 @@ export declare const poll: (self: TxDequeue) => Effect.Effect(self: TxEnqueue) => Effect.Effect; /** - * Fails the queue with the specified error. + * Fails the queue with the specified error, discarding any buffered items. * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as failed. It does not return a new TxQueue reference. + * **Details** + * + * The queue transitions directly to done with `Cause.fail(error)`. Returns `false` if the queue was already closing or done. + * + * **Example** (Failing queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1076,18 +1067,20 @@ export declare const fail: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxEnqueue, error: E): Effect.Effect; }; /** - * Completes the queue with the specified exit value. + * Completes the queue with the specified cause. + * + * **Details** + * + * If the queue is empty, it transitions directly to done. If it still contains items, it enters the closing state so buffered items can be drained before the cause is observed. Returns `false` if the queue was already closing or done. * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as completed. It does not return a new TxQueue reference. + * **Example** (Failing queues with causes) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * @@ -1101,17 +1094,19 @@ export declare const fail: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const failCause: { /** - * Completes the queue with the specified exit value. + * Completes the queue with the specified cause. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as completed. It does not return a new TxQueue reference. + * If the queue is empty, it transitions directly to done. If it still contains items, it enters the closing state so buffered items can be drained before the cause is observed. Returns `false` if the queue was already closing or done. + * + * **Example** (Failing queues with causes) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * @@ -1125,17 +1120,19 @@ export declare const failCause: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (cause: Cause.Cause): (self: TxEnqueue) => Effect.Effect; /** - * Completes the queue with the specified exit value. + * Completes the queue with the specified cause. * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as completed. It does not return a new TxQueue reference. + * **Details** + * + * If the queue is empty, it transitions directly to done. If it still contains items, it enters the closing state so buffered items can be drained before the cause is observed. Returns `false` if the queue was already closing or done. + * + * **Example** (Failing queues with causes) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * @@ -1149,28 +1146,25 @@ export declare const failCause: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ (self: TxEnqueue, cause: Cause.Cause): Effect.Effect; }; /** - * Ends a queue by signaling completion with a Done error. + * Ends a queue by signaling completion with a `Cause.Done` error. + * + * **Details** + * + * This is a convenience wrapper around `failCause` for queues whose error channel can contain `Cause.Done`. If buffered items remain, the queue enters the closing state and those items may still be consumed before later `take` or `peek` operations fail with `Cause.Done`. * - * This function provides a clean way to signal the end of a queue by calling - * `failCause` with `Cause.Done`. This is a convenience function for - * queues that are typed to accept `Cause.Done` in their error channel. - * When a queue is ended, all subsequent operations (take, peek, etc.) will fail with - * `Cause.Done`, propagating through the E-channel. + * **Example** (Ending queues) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) - * yield* TxQueue.offer(queue, 1) - * yield* TxQueue.offer(queue, 2) * * // Signal the end of the queue * const result = yield* TxQueue.end(queue) @@ -1185,18 +1179,20 @@ export declare const failCause: { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const end: (self: TxEnqueue) => Effect.Effect; /** - * Clears all elements from the queue without affecting its state. - * Returns the cleared elements, or an empty array if the queue is done with Done or interrupt. + * Removes and returns all currently buffered elements without changing the + * queue state. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * all elements. It does not return a new TxQueue reference. + * If the queue is already done with a `Cause.Done` error, returns an empty array. If the queue is done for any other cause, including interruption or failure, that cause is propagated. + * + * **Example** (Clearing queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1215,21 +1211,19 @@ export declare const end: (self: TxEnqueue) => Effect.E * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const clear: (self: TxEnqueue) => Effect.Effect, ExcludeDone>; /** * Shuts down the queue immediately by clearing all items and interrupting it (legacy compatibility). * - * This operation performs two atomic steps: - * 1. **Clears** all items from the queue using `clear()` - * 2. **Interrupts** the queue using `interrupt()` + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by clearing - * its contents and marking it as shutdown. It does not return a new TxQueue reference. + * This operation clears all items from the queue using `clear`, then interrupts the queue using `interrupt`. This function mutates the original TxQueue by clearing its contents and marking it as shutdown. It does not return a new TxQueue reference. + * + * **Example** (Shutting down queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1250,14 +1244,15 @@ export declare const clear: (self: TxEnqueue) => Effect.Effect(self: TxEnqueue) => Effect.Effect; /** - * Checks if the queue is in the open state. + * Checks whether the queue is in the open state. + * + * **Example** (Checking open state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1273,14 +1268,15 @@ export declare const shutdown: (self: TxEnqueue) => Effect.Effect Effect.Effect; /** - * Checks if the queue is in the closing state. + * Checks whether the queue is in the closing state. + * + * **Example** (Checking closing state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1297,14 +1293,15 @@ export declare const isOpen: (self: TxQueueState) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const isClosing: (self: TxQueueState) => Effect.Effect; /** - * Checks if the queue is done (completed or failed). + * Checks whether the queue is done (completed or failed). + * + * **Example** (Checking done state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1320,14 +1317,15 @@ export declare const isClosing: (self: TxQueueState) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const isDone: (self: TxQueueState) => Effect.Effect; /** - * Checks if the queue is shutdown (legacy compatibility). + * Checks whether the queue is shutdown (legacy compatibility). + * + * **Example** (Checking shutdown state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1343,14 +1341,15 @@ export declare const isDone: (self: TxQueueState) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const isShutdown: (self: TxQueueState) => Effect.Effect; /** * Waits for the queue to complete (either successfully or with failure). * - * @example + * **Example** (Awaiting queue completion) + * * ```ts * import { Effect, TxQueue } from "effect" * @@ -1366,8 +1365,8 @@ export declare const isShutdown: (self: TxQueueState) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const awaitCompletion: (self: TxQueueState) => Effect.Effect; export {}; diff --git a/.opencode/node_modules/effect/dist/TxQueue.d.ts.map b/.opencode/node_modules/effect/dist/TxQueue.d.ts.map index 2fea78b8e1bf0db3b97069689efc8f05be4ec43a..a7cb53267efdc685e5bfaa21146e770437cd1144 100644 --- a/.opencode/node_modules/effect/dist/TxQueue.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxQueue.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxQueue.d.ts","sourceRoot":"","sources":["../src/TxQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,KAAK,GAAG,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,KAAK,WAAW,EAAe,MAAM,WAAW,CAAA;AACzD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,KAAK,CAAC,EAAE,EAAE,CAAC,IACnB;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,GACC;IACA,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;CAC/B,GACC;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,E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,GAAI,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CACO,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CACO,CAAA;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CACO,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAiB,CAAA;AAEtF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAUnD,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxQueue.js b/.opencode/node_modules/effect/dist/TxQueue.js index de56182c2d2b264ee9b4d56cfd7071b799566f52..5c780134ad87d6af247568bf4b421bdf80e735c6 100644 --- a/.opencode/node_modules/effect/dist/TxQueue.js +++ b/.opencode/node_modules/effect/dist/TxQueue.js @@ -12,9 +12,10 @@ const EnqueueTypeId = "~effect/transactions/TxQueue/Enqueue"; const DequeueTypeId = "~effect/transactions/TxQueue/Dequeue"; const TypeId = "~effect/transactions/TxQueue"; /** - * Checks if the given value is a TxEnqueue. + * Checks whether the given value is a TxEnqueue. + * + * **Example** (Checking enqueue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -26,14 +27,15 @@ const TypeId = "~effect/transactions/TxQueue"; * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxEnqueue = u => hasProperty(u, EnqueueTypeId); /** - * Checks if the given value is a TxDequeue. + * Checks whether the given value is a TxDequeue. + * + * **Example** (Checking dequeue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -45,14 +47,15 @@ export const isTxEnqueue = u => hasProperty(u, EnqueueTypeId); * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxDequeue = u => hasProperty(u, DequeueTypeId); /** - * Checks if the given value is a TxQueue. + * Checks whether the given value is a TxQueue. + * + * **Example** (Checking queue handles) * - * @example * ```ts * import { TxQueue } from "effect" * @@ -64,8 +67,8 @@ export const isTxDequeue = u => hasProperty(u, DequeueTypeId); * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxQueue = u => hasProperty(u, TypeId); // ============================================================================= @@ -104,10 +107,12 @@ const TxQueueProto = { /** * Creates a new bounded `TxQueue` with the specified capacity. * - * **Return behavior**: This function returns a new TxQueue reference with - * the specified capacity. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with the specified capacity. No existing TxQueue instances are modified. + * + * **Example** (Creating bounded queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -127,8 +132,8 @@ const TxQueueProto = { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const bounded = capacity => Effect.gen(function* () { const items = yield* TxChunk.empty(); @@ -145,10 +150,12 @@ export const bounded = capacity => Effect.gen(function* () { /** * Creates a new unbounded `TxQueue` with unlimited capacity. * - * **Return behavior**: This function returns a new TxQueue reference with - * unlimited capacity. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with unlimited capacity. No existing TxQueue instances are modified. + * + * **Example** (Creating unbounded queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -168,8 +175,8 @@ export const bounded = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const unbounded = () => Effect.gen(function* () { const items = yield* TxChunk.empty(); @@ -186,10 +193,12 @@ export const unbounded = () => Effect.gen(function* () { /** * Creates a new dropping `TxQueue` with the specified capacity that drops new items when full. * - * **Return behavior**: This function returns a new TxQueue reference with - * dropping strategy. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with dropping strategy. No existing TxQueue instances are modified. + * + * **Example** (Creating dropping queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -207,8 +216,8 @@ export const unbounded = () => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const dropping = capacity => Effect.gen(function* () { const items = yield* TxChunk.empty(); @@ -225,10 +234,12 @@ export const dropping = capacity => Effect.gen(function* () { /** * Creates a new sliding `TxQueue` with the specified capacity that evicts old items when full. * - * **Return behavior**: This function returns a new TxQueue reference with - * sliding strategy. No existing TxQueue instances are modified. + * **Details** + * + * This function returns a new TxQueue reference with sliding strategy. No existing TxQueue instances are modified. + * + * **Example** (Creating sliding queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -248,8 +259,8 @@ export const dropping = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const sliding = capacity => Effect.gen(function* () { const items = yield* TxChunk.empty(); @@ -267,12 +278,14 @@ export const sliding = capacity => Effect.gen(function* () { // Core Queue Operations // ============================================================================= /** - * Offers an item to the queue. + * Offers an item to the queue and returns whether it was accepted. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * the item according to the queue's strategy. It does not return a new TxQueue reference. + * Open unbounded queues always accept; open bounded queues retry while full; dropping queues return `false` when full; sliding queues evict the oldest item when full. Closing or done queues return `false`. This function mutates the original TxQueue by adding the item according to the queue's strategy. It does not return a new TxQueue reference. + * + * **Example** (Offering a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -285,8 +298,8 @@ export const sliding = capacity => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const offer = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -317,16 +330,17 @@ export const offer = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* return yield* Effect.txRetry; }).pipe(Effect.tx)); /** - * Offers multiple items to the queue. + * Offers multiple items to the queue, returning the items that were not + * accepted. + * + * **Details** * - * Returns an array of items that were rejected (not added to the queue). + * Each item follows `offer` semantics: bounded queues retry while full, dropping queues reject new items when full, sliding queues evict old items to accept new items, and closing or done queues reject all items. This function mutates the original TxQueue by adding items according to the queue's strategy. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by adding - * items according to the queue's strategy. It does not return a new TxQueue reference. + * **Example** (Offering multiple values) * - * @example * ```ts - * import { Chunk, Effect, TxQueue } from "effect" + * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) @@ -338,8 +352,8 @@ export const offer = /*#__PURE__*/dual(2, (self, value) => Effect.gen(function* * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const offerAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(function* () { const rejected = []; @@ -352,12 +366,15 @@ export const offerAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(functi return rejected; }).pipe(Effect.tx)); /** - * Takes an item from the queue. + * Takes the next item from the queue, retrying the transaction while the queue + * is empty. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * the first item. It does not return a new TxQueue reference. + * If the queue is done, the effect fails with the queue's completion cause. This function mutates the original TxQueue by removing the first item. It does not return a new TxQueue reference. + * + * **Example** (Taking a value) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -376,8 +393,8 @@ export const offerAll = /*#__PURE__*/dual(2, (self, values) => Effect.gen(functi * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const take = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -408,7 +425,8 @@ export const take = self => Effect.gen(function* () { /** * Tries to take an item from the queue without blocking. * - * @example + * **Example** (Polling without blocking) + * * ```ts * import { Effect, Option, TxQueue } from "effect" * @@ -425,8 +443,8 @@ export const take = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const poll = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -444,15 +462,12 @@ export const poll = self => Effect.gen(function* () { /** * Takes all items from the queue. Blocks if the queue is empty. * - * If the queue is already in a failed state, the error is propagated through the E-channel. - * Follows the same patterns as `take` - waits when there are no elements. + * **Details** * - * Returns a non-empty array since it blocks until at least one item is available. + * If the queue is already in a failed state, the error is propagated through the E-channel. This follows the same patterns as `take` and waits when there are no elements. It returns a non-empty array because it blocks until at least one item is available. This function mutates the original TxQueue by removing all items. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * all items. It does not return a new TxQueue reference. + * **Example** (Taking all queued values) * - * @example * ```ts * import { Array, Effect, TxQueue } from "effect" * @@ -478,8 +493,8 @@ export const poll = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const takeAll = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -505,39 +520,33 @@ export const takeAll = self => Effect.gen(function* () { return items; }).pipe(Effect.tx); /** - * Takes exactly N items from the queue in a single atomic transaction. + * Takes up to `n` items from the queue in a single transaction. * - * This function waits (retries the transaction) until N items are available, then takes - * exactly N items. The only exception is when N exceeds the queue's capacity - in that - * case, it takes up to the queue's capacity and returns immediately. + * **Details** * - * **Behavior**: - * - **Normal case**: Waits for exactly N items to be available - * - **Bounded queue with N > capacity**: Takes up to capacity items immediately - * - **Closing queue**: Takes available items and transitions to Done state + * For an open queue, waits until `min(n, capacity)` items are available, then removes that many items. If `n` is less than or equal to zero, returns an empty array without modifying the queue. If the queue is closing, drains the currently available items and transitions to `Done`. If the queue is already done, the effect fails with the queue's completion cause. This function mutates the original TxQueue by removing the taken items. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * the taken items. It does not return a new TxQueue reference. + * **Example** (Taking a fixed number of values) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(5) - * yield* TxQueue.offerAll(queue, [1, 2, 3]) + * yield* TxQueue.offerAll(queue, [1, 2, 3, 4]) * - * // This will wait until 4 items are available - * // (will retry transaction until more items are offered) * const items = yield* TxQueue.takeN(queue, 4) + * console.log(items) // [1, 2, 3, 4] * * // This requests more than capacity (5), so takes all available (up to 5) - * const all = yield* TxQueue.takeN(queue, 10) // Takes at most 5 items + * yield* TxQueue.offerAll(queue, [5, 6, 7, 8, 9]) + * const all = yield* TxQueue.takeN(queue, 10) + * console.log(all) // [5, 6, 7, 8, 9] * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const takeN = /*#__PURE__*/dual(2, (self, n) => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -592,10 +601,15 @@ export const takeN = /*#__PURE__*/dual(2, (self, n) => Effect.gen(function* () { return Chunk.toArray(taken); }).pipe(Effect.tx)); /** - * Takes a variable number of items between a specified minimum and maximum from the queue. - * Waits for at least the minimum number of items to be available. + * Takes between `min` and `max` currently available items, waiting for `min` on + * an open queue. + * + * **Details** + * + * If the queue is closing, drains the currently available items even when fewer than `min` are available and transitions to `Done`. Invalid ranges (`min <= 0`, `max <= 0`, or `min > max`) return an empty array. If the queue is already done, the effect fails with the queue's completion cause. + * + * **Example** (Taking batches within bounds) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -616,8 +630,8 @@ export const takeN = /*#__PURE__*/dual(2, (self, n) => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category taking + * @since 2.0.0 */ export const takeBetween = /*#__PURE__*/dual(3, (self, min, max) => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -669,10 +683,14 @@ export const takeBetween = /*#__PURE__*/dual(3, (self, min, max) => Effect.gen(f return Chunk.toArray(taken); }).pipe(Effect.tx)); /** - * Views the next item without removing it. If the queue is in a failed state, - * the error is propagated through the E-channel. + * Waits transactionally for the next item and returns it without removing it. + * + * **Details** + * + * If the queue is open but empty, the transaction retries until an item is available or the queue completes. If the queue is done, the queue's completion cause is propagated through the error channel. + * + * **Example** (Peeking without removing values) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -700,8 +718,8 @@ export const takeBetween = /*#__PURE__*/dual(3, (self, min, max) => Effect.gen(f * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const peek = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -718,7 +736,8 @@ export const peek = self => Effect.gen(function* () { /** * Gets the current size of the queue. * - * @example + * **Example** (Reading queue size) + * * ```ts * import { Effect, TxQueue } from "effect" * @@ -731,14 +750,15 @@ export const peek = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const size = self => TxChunk.size(self.items); /** - * Checks if the queue is empty. + * Checks whether the queue is empty. + * + * **Example** (Checking whether a queue is empty) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -754,14 +774,15 @@ export const size = self => TxChunk.size(self.items); * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const isEmpty = self => TxChunk.isEmpty(self.items); /** - * Checks if the queue is at capacity. + * Checks whether the queue is at capacity. + * + * **Example** (Checking whether a queue is full) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -777,17 +798,19 @@ export const isEmpty = self => TxChunk.isEmpty(self.items); * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const isFull = self => self.capacity === Number.POSITIVE_INFINITY ? Effect.succeed(false) : Effect.map(size(self), currentSize => currentSize >= self.capacity); /** - * Interrupts the queue, transitioning it to a closing state. + * Interrupts the queue gracefully with the current fiber's interruption cause. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it for graceful closure. It does not return a new TxQueue reference. + * If the queue still contains items, it enters the closing state so buffered items can be drained before consumers observe the interruption. If it is empty, it transitions directly to done. Returns `false` if the queue was already closing or done. + * + * **Example** (Interrupting queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -801,17 +824,19 @@ export const isFull = self => self.capacity === Number.POSITIVE_INFINITY ? Effec * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const interrupt = self => Effect.withFiber(fiber => failCause(self, Cause.interrupt(fiber.id))); /** - * Fails the queue with the specified error. + * Fails the queue with the specified error, discarding any buffered items. + * + * **Details** + * + * The queue transitions directly to done with `Cause.fail(error)`. Returns `false` if the queue was already closing or done. * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as failed. It does not return a new TxQueue reference. + * **Example** (Failing queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -824,8 +849,8 @@ export const interrupt = self => Effect.withFiber(fiber => failCause(self, Cause * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const fail = /*#__PURE__*/dual(2, (self, error) => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -841,12 +866,14 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => Effect.gen(function* ( return true; }).pipe(Effect.tx)); /** - * Completes the queue with the specified exit value. + * Completes the queue with the specified cause. + * + * **Details** * - * **Mutation behavior**: This function mutates the original TxQueue by marking - * it as completed. It does not return a new TxQueue reference. + * If the queue is empty, it transitions directly to done. If it still contains items, it enters the closing state so buffered items can be drained before the cause is observed. Returns `false` if the queue was already closing or done. + * + * **Example** (Failing queues with causes) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * @@ -860,8 +887,8 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => Effect.gen(function* ( * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const failCause = /*#__PURE__*/dual(2, (self, cause) => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -884,22 +911,19 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => Effect.gen(functi return true; }).pipe(Effect.tx)); /** - * Ends a queue by signaling completion with a Done error. + * Ends a queue by signaling completion with a `Cause.Done` error. * - * This function provides a clean way to signal the end of a queue by calling - * `failCause` with `Cause.Done`. This is a convenience function for - * queues that are typed to accept `Cause.Done` in their error channel. - * When a queue is ended, all subsequent operations (take, peek, etc.) will fail with - * `Cause.Done`, propagating through the E-channel. + * **Details** + * + * This is a convenience wrapper around `failCause` for queues whose error channel can contain `Cause.Done`. If buffered items remain, the queue enters the closing state and those items may still be consumed before later `take` or `peek` operations fail with `Cause.Done`. + * + * **Example** (Ending queues) * - * @example * ```ts * import { Cause, Effect, TxQueue } from "effect" * * const program = Effect.gen(function*() { * const queue = yield* TxQueue.bounded(10) - * yield* TxQueue.offer(queue, 1) - * yield* TxQueue.offer(queue, 2) * * // Signal the end of the queue * const result = yield* TxQueue.end(queue) @@ -914,18 +938,20 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => Effect.gen(functi * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const end = self => failCause(self, Cause.fail(Cause.Done())); /** - * Clears all elements from the queue without affecting its state. - * Returns the cleared elements, or an empty array if the queue is done with Done or interrupt. + * Removes and returns all currently buffered elements without changing the + * queue state. + * + * **Details** + * + * If the queue is already done with a `Cause.Done` error, returns an empty array. If the queue is done for any other cause, including interruption or failure, that cause is propagated. * - * **Mutation behavior**: This function mutates the original TxQueue by removing - * all elements. It does not return a new TxQueue reference. + * **Example** (Clearing queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -944,8 +970,8 @@ export const end = self => failCause(self, Cause.fail(Cause.Done())); * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const clear = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -963,14 +989,12 @@ export const clear = self => Effect.gen(function* () { /** * Shuts down the queue immediately by clearing all items and interrupting it (legacy compatibility). * - * This operation performs two atomic steps: - * 1. **Clears** all items from the queue using `clear()` - * 2. **Interrupts** the queue using `interrupt()` + * **Details** + * + * This operation clears all items from the queue using `clear`, then interrupts the queue using `interrupt`. This function mutates the original TxQueue by clearing its contents and marking it as shutdown. It does not return a new TxQueue reference. * - * **Mutation behavior**: This function mutates the original TxQueue by clearing - * its contents and marking it as shutdown. It does not return a new TxQueue reference. + * **Example** (Shutting down queues) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -991,17 +1015,18 @@ export const clear = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const shutdown = self => Effect.gen(function* () { yield* Effect.ignore(clear(self)); return yield* interrupt(self); }).pipe(Effect.tx); /** - * Checks if the queue is in the open state. + * Checks whether the queue is in the open state. + * + * **Example** (Checking open state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1017,14 +1042,15 @@ export const shutdown = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const isOpen = self => Effect.map(TxRef.get(self.stateRef), state => state._tag === "Open"); /** - * Checks if the queue is in the closing state. + * Checks whether the queue is in the closing state. + * + * **Example** (Checking closing state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1041,14 +1067,15 @@ export const isOpen = self => Effect.map(TxRef.get(self.stateRef), state => stat * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const isClosing = self => Effect.map(TxRef.get(self.stateRef), state => state._tag === "Closing"); /** - * Checks if the queue is done (completed or failed). + * Checks whether the queue is done (completed or failed). + * + * **Example** (Checking done state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1064,14 +1091,15 @@ export const isClosing = self => Effect.map(TxRef.get(self.stateRef), state => s * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const isDone = self => Effect.map(TxRef.get(self.stateRef), state => state._tag === "Done"); /** - * Checks if the queue is shutdown (legacy compatibility). + * Checks whether the queue is shutdown (legacy compatibility). + * + * **Example** (Checking shutdown state) * - * @example * ```ts * import { Effect, TxQueue } from "effect" * @@ -1087,14 +1115,15 @@ export const isDone = self => Effect.map(TxRef.get(self.stateRef), state => stat * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const isShutdown = self => isDone(self); /** * Waits for the queue to complete (either successfully or with failure). * - * @example + * **Example** (Awaiting queue completion) + * * ```ts * import { Effect, TxQueue } from "effect" * @@ -1110,8 +1139,8 @@ export const isShutdown = self => isDone(self); * }) * ``` * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const awaitCompletion = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); diff --git a/.opencode/node_modules/effect/dist/TxQueue.js.map b/.opencode/node_modules/effect/dist/TxQueue.js.map index c27898d75027893fee925dc4c7ec8142ea90e61b..292415293e6c183ca21d86b2e837b94980eb9966 100644 --- a/.opencode/node_modules/effect/dist/TxQueue.js.map +++ b/.opencode/node_modules/effect/dist/TxQueue.js.map @@ -1 +1 @@ -{"version":3,"file":"TxQueue.js","names":["Cause","Chunk","Effect","dual","NodeInspectSymbol","toJson","Option","hasProperty","isDoneCause","TxChunk","TxRef","EnqueueTypeId","DequeueTypeId","TypeId","isTxEnqueue","u","isTxDequeue","isTxQueue","TxQueueProto","_A","_","_E","toString","strategy","capacity","toJSON","_id","bounded","gen","items","empty","stateRef","make","_tag","txQueue","Object","create","pipe","tx","unbounded","Number","POSITIVE_INFINITY","dropping","sliding","offer","self","value","state","get","currentSize","size","append","drop","txRetry","offerAll","values","rejected","accepted","push","take","failCause","cause","isEmpty","chunk","head","isNone","set","poll","none","some","takeAll","toArray","takeN","n","requestedCount","maxPossible","Math","min","shouldWaitForFull","minimumRequired","taken","toTake","takeBetween","max","peek","isFull","succeed","map","interrupt","withFiber","fiber","id","fail","error","end","Done","clear","shutdown","ignore","isOpen","isClosing","isDone","isShutdown","awaitCompletion"],"sources":["../src/TxQueue.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAA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,CAAC,EAAGgB,KAAK,IAAKA,KAAK,CAACd,IAAI,KAAK,SAAS,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMoE,MAAM,GAAIxD,IAAkB,IACvC3C,MAAM,CAACqF,GAAG,CAAC7E,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC,EAAGgB,KAAK,IAAKA,KAAK,CAACd,IAAI,KAAK,MAAM,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMqE,UAAU,GAAIzD,IAAkB,IAA6BwD,MAAM,CAACxD,IAAI,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAM0D,eAAe,GAAI1D,IAAkB,IAChD3C,MAAM,CAAC0B,GAAG,CAAC,aAAS;EAClB,MAAMmB,KAAK,GAAG,OAAOrC,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC;EAE7C,IAAIgB,KAAK,CAACd,IAAI,KAAK,MAAM,EAAE;IACzB,OAAO,KAAK,CAAC;EACf;EAEA;EACA,OAAO,OAAO/B,MAAM,CAACmD,OAAO;AAC9B,CAAC,CAAC,CAAChB,IAAI,CAACnC,MAAM,CAACoC,EAAE,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxQueue.js","names":["Cause","Chunk","Effect","dual","NodeInspectSymbol","toJson","Option","hasProperty","isDoneCause","TxChunk","TxRef","EnqueueTypeId","DequeueTypeId","TypeId","isTxEnqueue","u","isTxDequeue","isTxQueue","TxQueueProto","_A","_","_E","toString","strategy","capacity","toJSON","_id","bounded","gen","items","empty","stateRef","make","_tag","txQueue","Object","create","pipe","tx","unbounded","Number","POSITIVE_INFINITY","dropping","sliding","offer","self","value","state","get","currentSize","size","append","drop","txRetry","offerAll","values","rejected","accepted","push","take","failCause","cause","isEmpty","chunk","head","isNone","set","poll","none","some","takeAll","toArray","takeN","n","requestedCount","maxPossible","Math","min","shouldWaitForFull","minimumRequired","taken","toTake","takeBetween","max","peek","isFull","succeed","map","interrupt","withFiber","fiber","id","fail","error","end","Done","clear","shutdown","ignore","isOpen","isClosing","isDone","isShutdown","awaitCompletion"],"sources":["../src/TxQueue.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAC5D,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAA2BC,WAAW,QAAQ,WAAW;AACzD,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,KAAK,MAAM,YAAY;AA8CnC,MAAMC,aAAa,GAAG,sCAAsC;AAC5D,MAAMC,aAAa,GAAG,sCAAsC;AAC5D,MAAMC,MAAM,GAAG,8BAA8B;AAgL7C;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,WAAW,GAA8BC,CAAU,IAA2BR,WAAW,CAACQ,CAAC,EAAEJ,aAAa,CAAC;AAExH;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMK,WAAW,GAA8BD,CAAU,IAA2BR,WAAW,CAACQ,CAAC,EAAEH,aAAa,CAAC;AAExH;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMK,SAAS,GAA8BF,CAAU,IAAyBR,WAAW,CAACQ,CAAC,EAAEF,MAAM,CAAC;AAE7G;AACA;AACA;AAEA,MAAMK,YAAY,GAAG;EACnB,CAACP,aAAa,GAAG;IAAEQ,EAAE,EAAGC,CAAQ,IAAKA,CAAC;IAAEC,EAAE,EAAGD,CAAQ,IAAKA;EAAC,CAAE;EAC7D,CAACR,aAAa,GAAG;IAAEO,EAAE,EAAGC,CAAQ,IAAKA,CAAC;IAAEC,EA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E,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC,EAAGgB,KAAK,IAAKA,KAAK,CAACd,IAAI,KAAK,MAAM,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMmE,SAAS,GAAIvD,IAAkB,IAC1C3C,MAAM,CAACqF,GAAG,CAAC7E,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC,EAAGgB,KAAK,IAAKA,KAAK,CAACd,IAAI,KAAK,SAAS,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMoE,MAAM,GAAIxD,IAAkB,IACvC3C,MAAM,CAACqF,GAAG,CAAC7E,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC,EAAGgB,KAAK,IAAKA,KAAK,CAACd,IAAI,KAAK,MAAM,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMqE,UAAU,GAAIzD,IAAkB,IAA6BwD,MAAM,CAACxD,IAAI,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAM0D,eAAe,GAAI1D,IAAkB,IAChD3C,MAAM,CAAC0B,GAAG,CAAC,aAAS;EAClB,MAAMmB,KAAK,GAAG,OAAOrC,KAAK,CAACsC,GAAG,CAACH,IAAI,CAACd,QAAQ,CAAC;EAE7C,IAAIgB,KAAK,CAACd,IAAI,KAAK,MAAM,EAAE;IACzB,OAAO,KAAK,CAAC;EACf;EAEA;EACA,OAAO,OAAO/B,MAAM,CAACmD,OAAO;AAC9B,CAAC,CAAC,CAAChB,IAAI,CAACnC,MAAM,CAACoC,EAAE,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts b/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts index 17180974d02df3ad61b3b8935d421de8efeb9a00..8b625007c53305b266f58aba5bad761e580638e8 100644 --- a/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts +++ b/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts @@ -1,8 +1,12 @@ /** - * TxReentrantLock is a transactional read/write lock with reentrant semantics using Software - * Transactional Memory (STM). Multiple readers can hold the lock concurrently, OR a single - * writer can hold exclusive access. A fiber holding a write lock may acquire additional - * read or write locks (reentrancy). + * Coordinates shared access inside transactions with read and write locks. + * + * A `TxReentrantLock` lets many fibers hold read locks at the same time, or one + * fiber hold a write lock for exclusive access. Lock ownership is tracked by + * fiber, so a fiber that already holds the lock can acquire it again and later + * release each acquisition. Attempts that cannot proceed retry transactionally + * until the lock becomes available. This module includes manual, scoped, and + * wrapper-style operations for read and write locking. * * @since 4.0.0 */ @@ -16,7 +20,8 @@ declare const TypeId = "~effect/transactions/TxReentrantLock"; * Multiple readers can hold the lock concurrently, or a single writer can hold exclusive * access. A fiber holding the write lock may acquire additional read/write locks (reentrancy). * - * @example + * **Example** (Using read and write locks) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -31,8 +36,8 @@ declare const TypeId = "~effect/transactions/TxReentrantLock"; * }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface TxReentrantLock extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -40,7 +45,8 @@ export interface TxReentrantLock extends Inspectable, Pipeable { /** * Creates a new TxReentrantLock. * - * @example + * **Example** (Creating a reentrant lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -51,8 +57,8 @@ export interface TxReentrantLock extends Inspectable, Pipeable { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: () => Effect.Effect; /** @@ -60,7 +66,8 @@ export declare const make: () => Effect.Effect; * If the current fiber already holds the write lock, the read lock is granted (reentrancy). * Returns the current number of read locks held by this fiber. * - * @example + * **Example** (Acquiring a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -72,17 +79,28 @@ export declare const make: () => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const acquireRead: (self: TxReentrantLock) => Effect.Effect; /** - * Acquires a write lock. Blocks if any other fiber holds any lock. - * If the current fiber already holds the write lock, the count is incremented (reentrancy). - * If the current fiber holds a read lock, the write lock is granted (upgrade). + * Acquires the write lock for the current fiber. + * + * **When to use** + * + * Use to enter an exclusive section manually when `withWriteLock` is not the + * right shape. + * + * **Details** + * + * Blocks if any other fiber holds a read or write lock. If the current fiber + * already holds the write lock, the count is incremented. If the current fiber + * holds a read lock, the write lock is granted as an upgrade. + * * Returns the current number of write locks held by this fiber. * - * @example + * **Example** (Acquiring a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -94,15 +112,23 @@ export declare const acquireRead: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** - * Releases a read lock held by the current fiber. + * Releases one read lock held by the current fiber. + * + * **When to use** + * + * Use to leave a manually acquired read lock. + * + * **Details** + * * Returns the remaining number of read locks held by this fiber. * - * @example + * **Example** (Releasing a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -114,15 +140,23 @@ export declare const acquireWrite: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** - * Releases a write lock held by the current fiber. + * Releases one write lock held by the current fiber. + * + * **When to use** + * + * Use to leave a manually acquired write lock. + * + * **Details** + * * Returns the remaining number of write locks held by this fiber. * - * @example + * **Example** (Releasing a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -134,15 +168,16 @@ export declare const releaseRead: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** * Acquires a read lock for the duration of the scope. * The lock is automatically released when the scope closes. * - * @example + * **Example** (Holding a scoped read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -159,15 +194,16 @@ export declare const releaseWrite: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** * Acquires a write lock for the duration of the scope. * The lock is automatically released when the scope closes. * - * @example + * **Example** (Holding a scoped write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -184,15 +220,16 @@ export declare const readLock: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** * Runs the provided effect while holding a read lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -206,15 +243,16 @@ export declare const writeLock: (self: TxReentrantLock) => Effect.Effect(effect: Effect.Effect): (self: TxReentrantLock) => Effect.Effect; /** * Runs the provided effect while holding a read lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -250,8 +289,8 @@ export declare const withReadLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxReentrantLock, effect: Effect.Effect): Effect.Effect; }; @@ -259,7 +298,8 @@ export declare const withReadLock: { * Runs the provided effect while holding a write lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -273,15 +313,16 @@ export declare const withReadLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const withWriteLock: { /** * Runs the provided effect while holding a write lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -295,15 +336,16 @@ export declare const withWriteLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (effect: Effect.Effect): (self: TxReentrantLock) => Effect.Effect; /** * Runs the provided effect while holding a write lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -317,15 +359,21 @@ export declare const withWriteLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxReentrantLock, effect: Effect.Effect): Effect.Effect; }; /** - * Alias for `withWriteLock`. Runs the provided effect while holding a write lock. + * Runs an effect while holding a write lock. + * + * **When to use** + * + * Use when you need to run an effect with exclusive write access through a + * `TxReentrantLock` and prefer the concise lock helper. + * + * **Example** (Running an effect with exclusive access) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -339,14 +387,20 @@ export declare const withWriteLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export declare const withLock: { /** - * Alias for `withWriteLock`. Runs the provided effect while holding a write lock. + * Runs an effect while holding a write lock. + * + * **When to use** + * + * Use when you need to run an effect with exclusive write access through a + * `TxReentrantLock` and prefer the concise lock helper. + * + * **Example** (Running an effect with exclusive access) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -360,14 +414,20 @@ export declare const withLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (effect: Effect.Effect): (self: TxReentrantLock) => Effect.Effect; /** - * Alias for `withWriteLock`. Runs the provided effect while holding a write lock. + * Runs an effect while holding a write lock. + * + * **When to use** + * + * Use when you need to run an effect with exclusive write access through a + * `TxReentrantLock` and prefer the concise lock helper. + * + * **Example** (Running an effect with exclusive access) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -381,15 +441,16 @@ export declare const withLock: { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ (self: TxReentrantLock, effect: Effect.Effect): Effect.Effect; }; /** * Returns the total number of read locks held across all fibers. * - * @example + * **Example** (Counting read locks) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -402,14 +463,15 @@ export declare const withLock: { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const readLocks: (self: TxReentrantLock) => Effect.Effect; /** * Returns the number of write locks held (0 or the reentrant count). * - * @example + * **Example** (Counting write locks) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -420,14 +482,15 @@ export declare const readLocks: (self: TxReentrantLock) => Effect.Effect * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const writeLocks: (self: TxReentrantLock) => Effect.Effect; /** - * Checks if the lock is held by any fiber (read or write). + * Checks whether the lock is held by any fiber (read or write). + * + * **Example** (Checking whether a lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -438,14 +501,15 @@ export declare const writeLocks: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** - * Checks if any fiber holds a read lock. + * Checks whether any fiber holds a read lock. + * + * **Example** (Checking whether a read lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -456,14 +520,15 @@ export declare const locked: (self: TxReentrantLock) => Effect.Effect; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export declare const readLocked: (self: TxReentrantLock) => Effect.Effect; /** - * Checks if any fiber holds a write lock. + * Checks whether any fiber holds a write lock. + * + * **Example** (Checking whether a write lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -474,14 +539,15 @@ export declare const readLocked: (self: TxReentrantLock) => Effect.Effect Effect.Effect; /** - * Checks if the given value is a TxReentrantLock. + * Checks whether the given value is a TxReentrantLock. + * + * **Example** (Checking for TxReentrantLock values) * - * @example * ```ts * import { TxReentrantLock } from "effect" * @@ -492,8 +558,8 @@ export declare const writeLocked: (self: TxReentrantLock) => Effect.Effect u is TxReentrantLock; export {}; diff --git a/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts.map b/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts.map index d1d19ad64c3ee30b6e14ffaa88ba76bb04a6b589..d1d3ecc6b65bbb2ddfade796544a70c0f978cd5b 100644 --- a/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxReentrantLock.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxReentrantLock.d.ts","sourceRoot":"","sources":["../src/TxReentrantLock.ts"],"names":[],"mappings":"AAAA;;;;;;;GAO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;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,eAAe,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAIhE,CAAA;AAEJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,eAAe,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAIpE,CAAA;AAEJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,eAAe,KAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAIrE,CAAA;AAMJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,eAAyC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxReentrantLock.js b/.opencode/node_modules/effect/dist/TxReentrantLock.js index 187b0f80bd1c7c7f41c5f1e0eb80c931837d277c..450856d3617f98041506cf11b8bbf551ae381855 100644 --- a/.opencode/node_modules/effect/dist/TxReentrantLock.js +++ b/.opencode/node_modules/effect/dist/TxReentrantLock.js @@ -1,8 +1,12 @@ /** - * TxReentrantLock is a transactional read/write lock with reentrant semantics using Software - * Transactional Memory (STM). Multiple readers can hold the lock concurrently, OR a single - * writer can hold exclusive access. A fiber holding a write lock may acquire additional - * read or write locks (reentrancy). + * Coordinates shared access inside transactions with read and write locks. + * + * A `TxReentrantLock` lets many fibers hold read locks at the same time, or one + * fiber hold a write lock for exclusive access. Lock ownership is tracked by + * fiber, so a fiber that already holds the lock can acquire it again and later + * release each acquisition. Attempts that cannot proceed retry transactionally + * until the lock becomes available. This module includes manual, scoped, and + * wrapper-style operations for read and write locking. * * @since 4.0.0 */ @@ -40,7 +44,8 @@ const TxReentrantLockProto = { /** * Creates a new TxReentrantLock. * - * @example + * **Example** (Creating a reentrant lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -51,8 +56,8 @@ const TxReentrantLockProto = { * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const make = () => Effect.gen(function* () { const stateRef = yield* TxRef.make(emptyState); @@ -69,7 +74,8 @@ export const make = () => Effect.gen(function* () { * If the current fiber already holds the write lock, the read lock is granted (reentrancy). * Returns the current number of read locks held by this fiber. * - * @example + * **Example** (Acquiring a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -81,8 +87,8 @@ export const make = () => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const acquireRead = self => Effect.withFiber(fiber => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -101,12 +107,23 @@ export const acquireRead = self => Effect.withFiber(fiber => Effect.gen(function return newCount; }).pipe(Effect.tx)); /** - * Acquires a write lock. Blocks if any other fiber holds any lock. - * If the current fiber already holds the write lock, the count is incremented (reentrancy). - * If the current fiber holds a read lock, the write lock is granted (upgrade). + * Acquires the write lock for the current fiber. + * + * **When to use** + * + * Use to enter an exclusive section manually when `withWriteLock` is not the + * right shape. + * + * **Details** + * + * Blocks if any other fiber holds a read or write lock. If the current fiber + * already holds the write lock, the count is incremented. If the current fiber + * holds a read lock, the write lock is granted as an upgrade. + * * Returns the current number of write locks held by this fiber. * - * @example + * **Example** (Acquiring a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -118,8 +135,8 @@ export const acquireRead = self => Effect.withFiber(fiber => Effect.gen(function * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const acquireWrite = self => Effect.withFiber(fiber => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -152,10 +169,18 @@ export const acquireWrite = self => Effect.withFiber(fiber => Effect.gen(functio return 1; }).pipe(Effect.tx)); /** - * Releases a read lock held by the current fiber. + * Releases one read lock held by the current fiber. + * + * **When to use** + * + * Use to leave a manually acquired read lock. + * + * **Details** + * * Returns the remaining number of read locks held by this fiber. * - * @example + * **Example** (Releasing a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -167,8 +192,8 @@ export const acquireWrite = self => Effect.withFiber(fiber => Effect.gen(functio * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const releaseRead = self => Effect.withFiber(fiber => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -184,10 +209,18 @@ export const releaseRead = self => Effect.withFiber(fiber => Effect.gen(function return newCount; }).pipe(Effect.tx)); /** - * Releases a write lock held by the current fiber. + * Releases one write lock held by the current fiber. + * + * **When to use** + * + * Use to leave a manually acquired write lock. + * + * **Details** + * * Returns the remaining number of write locks held by this fiber. * - * @example + * **Example** (Releasing a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -199,8 +232,8 @@ export const releaseRead = self => Effect.withFiber(fiber => Effect.gen(function * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const releaseWrite = self => Effect.withFiber(fiber => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -218,7 +251,8 @@ export const releaseWrite = self => Effect.withFiber(fiber => Effect.gen(functio * Acquires a read lock for the duration of the scope. * The lock is automatically released when the scope closes. * - * @example + * **Example** (Holding a scoped read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -235,15 +269,16 @@ export const releaseWrite = self => Effect.withFiber(fiber => Effect.gen(functio * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const readLock = self => Effect.acquireRelease(acquireRead(self), () => releaseRead(self)); /** * Acquires a write lock for the duration of the scope. * The lock is automatically released when the scope closes. * - * @example + * **Example** (Holding a scoped write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -260,15 +295,16 @@ export const readLock = self => Effect.acquireRelease(acquireRead(self), () => r * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const writeLock = self => Effect.acquireRelease(acquireWrite(self), () => releaseWrite(self)); /** * Runs the provided effect while holding a read lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a read lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -282,8 +318,8 @@ export const writeLock = self => Effect.acquireRelease(acquireWrite(self), () => * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const withReadLock = (...args) => { if (args.length === 1) { @@ -297,7 +333,8 @@ export const withReadLock = (...args) => { * Runs the provided effect while holding a write lock. The lock is automatically * released after the effect completes, fails, or is interrupted. * - * @example + * **Example** (Running an effect with a write lock) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -311,8 +348,8 @@ export const withReadLock = (...args) => { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const withWriteLock = (...args) => { if (args.length === 1) { @@ -323,9 +360,15 @@ export const withWriteLock = (...args) => { return Effect.acquireUseRelease(acquireWrite(self), () => effect, () => releaseWrite(self)); }; /** - * Alias for `withWriteLock`. Runs the provided effect while holding a write lock. + * Runs an effect while holding a write lock. + * + * **When to use** + * + * Use when you need to run an effect with exclusive write access through a + * `TxReentrantLock` and prefer the concise lock helper. + * + * **Example** (Running an effect with exclusive access) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -339,8 +382,8 @@ export const withWriteLock = (...args) => { * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 2.0.0 */ export const withLock = withWriteLock; // ============================================================================= @@ -349,7 +392,8 @@ export const withLock = withWriteLock; /** * Returns the total number of read locks held across all fibers. * - * @example + * **Example** (Counting read locks) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -362,8 +406,8 @@ export const withLock = withWriteLock; * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const readLocks = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -376,7 +420,8 @@ export const readLocks = self => Effect.gen(function* () { /** * Returns the number of write locks held (0 or the reentrant count). * - * @example + * **Example** (Counting write locks) + * * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -387,17 +432,18 @@ export const readLocks = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const writeLocks = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); return Option.isSome(state.writer) ? state.writer.value[1] : 0; }); /** - * Checks if the lock is held by any fiber (read or write). + * Checks whether the lock is held by any fiber (read or write). + * + * **Example** (Checking whether a lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -408,17 +454,18 @@ export const writeLocks = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const locked = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); return HashMap.size(state.readers) > 0 || Option.isSome(state.writer); }); /** - * Checks if any fiber holds a read lock. + * Checks whether any fiber holds a read lock. + * + * **Example** (Checking whether a read lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -429,17 +476,18 @@ export const locked = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const readLocked = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); return HashMap.size(state.readers) > 0; }); /** - * Checks if any fiber holds a write lock. + * Checks whether any fiber holds a write lock. + * + * **Example** (Checking whether a write lock is held) * - * @example * ```ts * import { Effect, TxReentrantLock } from "effect" * @@ -450,8 +498,8 @@ export const readLocked = self => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 * @category getters + * @since 2.0.0 */ export const writeLocked = self => Effect.gen(function* () { const state = yield* TxRef.get(self.stateRef); @@ -461,9 +509,10 @@ export const writeLocked = self => Effect.gen(function* () { // Guards // ============================================================================= /** - * Checks if the given value is a TxReentrantLock. + * Checks whether the given value is a TxReentrantLock. + * + * **Example** (Checking for TxReentrantLock values) * - * @example * ```ts * import { TxReentrantLock } from "effect" * @@ -474,8 +523,8 @@ export const writeLocked = self => Effect.gen(function* () { * } * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isTxReentrantLock = u => hasProperty(u, TypeId); //# sourceMappingURL=TxReentrantLock.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxReentrantLock.js.map b/.opencode/node_modules/effect/dist/TxReentrantLock.js.map index feb6b1696c89b8848126d09ecaa37ee71792d988..bcdc24406cc473b217d498e1fe42c3d285e9e619 100644 --- a/.opencode/node_modules/effect/dist/TxReentrantLock.js.map +++ b/.opencode/node_modules/effect/dist/TxReentrantLock.js.map @@ -1 +1 @@ -{"version":3,"file":"TxReentrantLock.js","names":["Effect","HashMap","NodeInspectSymbol","toJson","Option","pipeArguments","hasProperty","TxRef","TypeId","emptyState","readers","empty","writer","none","TxReentrantLockProto","toJSON","_id","toString","pipe","arguments","make","gen","stateRef","self","Object","create","tx","acquireRead","withFiber","fiber","state","get","fiberId","id","isSome","value","txRetry","currentCount","getOrElse","newCount","set","acquireWrite","readerId","some","releaseRead","newReaders","remove","releaseWrite","isNone","newWriter","readLock","acquireRelease","writeLock","withReadLock","args","length","effect","acquireUseRelease","withWriteLock","withLock","readLocks","total","count","writeLocks","locked","size","readLocked","writeLocked","isTxReentrantLock","u"],"sources":["../src/TxReentrantLock.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;AAQA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAC5D,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,sCAAsC;AAWrD,MAAMC,UAAU,GAAc;EAC5BC,OAAO,eAAET,OAAO,CAACU,KAAK,EAAkB;EACxCC,MAAM,eAAER,MAAM,CAACS,IAAI;CACpB;AA+BD,MAAMC,oBAAoB,GAAsD;EAC9E,CAACZ,iBAAiB,IAAC;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R,IAAI,CAACD,QAAQ,CAAC;EAC7C,OAAOrB,OAAO,CAACgE,IAAI,CAACnC,KAAK,CAACpB,OAAO,CAAC,GAAG,CAAC,IAAIN,MAAM,CAAC8B,MAAM,CAACJ,KAAK,CAAClB,MAAM,CAAC;AACvE,CAAC,CAAC;AAEJ;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMsD,UAAU,GAAI3C,IAAqB,IAC9CvB,MAAM,CAACqB,GAAG,CAAC,aAAS;EAClB,MAAMS,KAAK,GAAG,OAAOvB,KAAK,CAACwB,GAAG,CAACR,IAAI,CAACD,QAAQ,CAAC;EAC7C,OAAOrB,OAAO,CAACgE,IAAI,CAACnC,KAAK,CAACpB,OAAO,CAAC,GAAG,CAAC;AACxC,CAAC,CAAC;AAEJ;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMyD,WAAW,GAAI5C,IAAqB,IAC/CvB,MAAM,CAACqB,GAAG,CAAC,aAAS;EAClB,MAAMS,KAAK,GAAG,OAAOvB,KAAK,CAACwB,GAAG,CAACR,IAAI,CAACD,QAAQ,CAAC;EAC7C,OAAOlB,MAAM,CAAC8B,MAAM,CAACJ,KAAK,CAAClB,MAAM,CAAC;AACpC,CAAC,CAAC;AAEJ;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMwD,iBAAiB,GAAIC,CAAU,IAA2B/D,WAAW,CAAC+D,CAAC,EAAE7D,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxReentrantLock.js","names":["Effect","HashMap","NodeInspectSymbol","toJson","Option","pipeArguments","hasProperty","TxRef","TypeId","emptyState","readers","empty","writer","none","TxReentrantLockProto","toJSON","_id","toString","pipe","arguments","make","gen","stateRef","self","Object","create","tx","acquireRead","withFiber","fiber","state","get","fiberId","id","isSome","value","txRetry","currentCount","getOrElse","newCount","set","acquireWrite","readerId","some","releaseRead","newReaders","remove","releaseWrite","isNone","newWriter","readLock","acquireRelease","writeLock","withReadLock","args","length","effect","acquireUseRelease","withWriteLock","withLock","readLocks","total","count","writeLocks","locked","size","readLocked","writeLocked","isTxReentrantLock","u"],"sources":["../src/TxReentrantLock.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAC5D,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,sCAAsC;AAWrD,MAAMC,UAAU,GAAc;EAC5BC,OAAO,eAAET,OAAO,CAACU,KAAK,EAAkB;EACxCC,MAAM,eAAER,MAAM,CAACS,IAAI;CACpB;AAgCD,MAAMC,oBAAoB,GAAsD;EAC9E,CAACZ,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDY,MAAMA,CAAA;IACJ,OAAO;MAAEC,GAAG,EAAE;IAAiB,CAAE;EACnC,CAAC;EACDC,QAAQA,CAAA;IACN,OAAO,iBAAiB;EAC1B,CAAC;EACDC,IAAIA,CAAA;IACF,OAAOb,aAAa,CAAC,IAAI,EAAEc,SAAS,CAAC;EACvC;CACD;AAED;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,IAAI,GAAGA,CAAA,KAClBpB,MAAM,CAACqB,GAAG,CAAC,aAAS;EAClB,MAAMC,QAAQ,GAAG,OAAOf,KAAK,CAACa,IAAI,CAAYX,UAAU,CAAC;EACzD,MAAMc,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACX,oBAAoB,CAAC;EAChDS,IAAI,CAACf,MAAM,CAAC,GAAGA,MAAM;EACrBe,IAAI,CAACD,QAAQ,GAAGA,QAAQ;EACxB,OA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vB,MAAM,CAACqB,GAAG,CAAC,aAAS;EAClB,MAAMS,KAAK,GAAG,OAAOvB,KAAK,CAACwB,GAAG,CAACR,IAAI,CAACD,QAAQ,CAAC;EAC7C,OAAOlB,MAAM,CAAC8B,MAAM,CAACJ,KAAK,CAAClB,MAAM,CAAC;AACpC,CAAC,CAAC;AAEJ;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMwD,iBAAiB,GAAIC,CAAU,IAA2B/D,WAAW,CAAC+D,CAAC,EAAE7D,MAAM,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxRef.d.ts b/.opencode/node_modules/effect/dist/TxRef.d.ts index 2a4af6b9038ea1dd5f62495afbc5881f2c786431..87259cf2bd5a3fcbd459d2980affa24d6e7e5275 100644 --- a/.opencode/node_modules/effect/dist/TxRef.d.ts +++ b/.opencode/node_modules/effect/dist/TxRef.d.ts @@ -1,10 +1,13 @@ /** - * TxRef is a transactional value, it can be read and modified within the body of a transaction. + * Transactional references for coordinating mutable state with Effect + * transactions. A `TxRef` stores a current value, but reads and writes inside + * `Effect.tx` are recorded in a transaction journal and committed together only + * when the outermost transaction succeeds. * - * Accessed values are tracked by the transaction in order to detect conflicts and in order to - * track changes, a transaction will retry whenever a conflict is detected or whenever the - * transaction explicitely calls to `Effect.txRetry` and any of the accessed TxRef values - * change. + * This is the basic building block behind the other transactional collections + * in Effect. The module provides effectful and unsafe constructors plus the + * core operations for reading, setting, updating, and modifying a transactional + * value while returning a separate result. * * @since 4.0.0 */ @@ -15,14 +18,20 @@ declare const TypeId = "~effect/transactions/TxRef"; /** * TxRef is a transactional value, it can be read and modified within the body of a transaction. * + * **When to use** + * + * Use to store mutable state that must be read and modified inside Effect + * transactions. + * + * **Details** + * * Accessed values are tracked by the transaction in order to detect conflicts and in order to * track changes, a transaction will retry whenever a conflict is detected or whenever the * transaction explicitely calls to `Effect.txRetry` and any of the accessed TxRef values * change. * - * @since 4.0.0 - * @category Models - * @example + * **Example** (Using a transactional reference) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -40,6 +49,9 @@ declare const TypeId = "~effect/transactions/TxRef"; * console.log(final) // 1 * }) * ``` + * + * @category models + * @since 4.0.0 */ export interface TxRef extends Pipeable { readonly [TypeId]: typeof TypeId; @@ -50,9 +62,12 @@ export interface TxRef extends Pipeable { /** * Creates a new `TxRef` with the specified initial value. * - * @since 4.0.0 - * @category Constructors - * @example + * **When to use** + * + * Use to create a `TxRef` inside an `Effect` workflow. + * + * **Example** (Creating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -71,14 +86,21 @@ export interface TxRef extends Pipeable { * console.log(yield* TxRef.get(name)) // "Bob" * }) * ``` + * + * @category constructors + * @since 2.0.0 */ export declare const make: (initial: A) => Effect.Effect, never, never>; /** - * Creates a new `TxRef` with the specified initial value. + * Creates a new `TxRef` synchronously with the specified initial value. + * + * **When to use** + * + * Use to construct a `TxRef` synchronously when it must be created outside an + * `Effect` workflow. + * + * **Example** (Creating transactional references unsafely) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { TxRef } from "effect" * @@ -90,14 +112,21 @@ export declare const make: (initial: A) => Effect.Effect, never, nev * console.log(counter.value) // 0 * console.log(config.value) // { timeout: 5000, retries: 3 } * ``` + * + * @category constructors + * @since 4.0.0 */ export declare const makeUnsafe: (initial: A) => TxRef; /** * Modifies the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to update a `TxRef` and return a computed result from the same + * transaction step. + * + * **Example** (Modifying transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -111,14 +140,21 @@ export declare const makeUnsafe: (initial: A) => TxRef; * console.log(yield* TxRef.get(counter)) // 1 (the new value: current + 1) * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export declare const modify: { /** * Modifies the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to update a `TxRef` and return a computed result from the same + * transaction step. + * + * **Example** (Modifying transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -132,14 +168,21 @@ export declare const modify: { * console.log(yield* TxRef.get(counter)) // 1 (the new value: current + 1) * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (f: (current: NoInfer) => [returnValue: R, newValue: A]): (self: TxRef) => Effect.Effect; /** * Modifies the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to update a `TxRef` and return a computed result from the same + * transaction step. + * + * **Example** (Modifying transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -153,15 +196,21 @@ export declare const modify: { * console.log(yield* TxRef.get(counter)) // 1 (the new value: current + 1) * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (self: TxRef, f: (current: A) => [returnValue: R, newValue: A]): Effect.Effect; }; /** * Updates the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to transform a `TxRef` when no result value is needed. + * + * **Example** (Updating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -176,14 +225,20 @@ export declare const modify: { * console.log(yield* TxRef.get(counter)) // 20 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export declare const update: { /** * Updates the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to transform a `TxRef` when no result value is needed. + * + * **Example** (Updating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -198,14 +253,20 @@ export declare const update: { * console.log(yield* TxRef.get(counter)) // 20 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (f: (current: NoInfer) => A): (self: TxRef) => Effect.Effect; /** * Updates the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to transform a `TxRef` when no result value is needed. + * + * **Example** (Updating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -220,15 +281,21 @@ export declare const update: { * console.log(yield* TxRef.get(counter)) // 20 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (self: TxRef, f: (current: A) => A): Effect.Effect; }; /** * Reads the current value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to read the current value of a `TxRef`. + * + * **Example** (Reading transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -243,14 +310,20 @@ export declare const update: { * console.log(value) // 42 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export declare const get: (self: TxRef) => Effect.Effect; /** * Sets the value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to replace the value of a `TxRef`. + * + * **Example** (Setting transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -265,14 +338,20 @@ export declare const get: (self: TxRef) => Effect.Effect; * console.log(yield* TxRef.get(counter)) // 100 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export declare const set: { /** * Sets the value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to replace the value of a `TxRef`. + * + * **Example** (Setting transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -287,14 +366,20 @@ export declare const set: { * console.log(yield* TxRef.get(counter)) // 100 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (value: A): (self: TxRef) => Effect.Effect; /** * Sets the value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to replace the value of a `TxRef`. + * + * **Example** (Setting transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -309,6 +394,9 @@ export declare const set: { * console.log(yield* TxRef.get(counter)) // 100 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ (self: TxRef, value: A): Effect.Effect; }; diff --git a/.opencode/node_modules/effect/dist/TxRef.d.ts.map b/.opencode/node_modules/effect/dist/TxRef.d.ts.map index 5da731ca6a43013c283566fc79c077c40a84cd1e..92243badd36a0439841ef6e29422254e377e78fc 100644 --- a/.opencode/node_modules/effect/dist/T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AE,KAAK,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACtD;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAIA,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxRef.js b/.opencode/node_modules/effect/dist/TxRef.js index c68cbcd12052162bdc9536a9ebd086af9b65a05a..913ca829c5204bd52544c9f025465c3467477700 100644 --- a/.opencode/node_modules/effect/dist/TxRef.js +++ b/.opencode/node_modules/effect/dist/TxRef.js @@ -1,10 +1,13 @@ /** - * TxRef is a transactional value, it can be read and modified within the body of a transaction. + * Transactional references for coordinating mutable state with Effect + * transactions. A `TxRef` stores a current value, but reads and writes inside + * `Effect.tx` are recorded in a transaction journal and committed together only + * when the outermost transaction succeeds. * - * Accessed values are tracked by the transaction in order to detect conflicts and in order to - * track changes, a transaction will retry whenever a conflict is detected or whenever the - * transaction explicitely calls to `Effect.txRetry` and any of the accessed TxRef values - * change. + * This is the basic building block behind the other transactional collections + * in Effect. The module provides effectful and unsafe constructors plus the + * core operations for reading, setting, updating, and modifying a transactional + * value while returning a separate result. * * @since 4.0.0 */ @@ -15,9 +18,12 @@ const TypeId = "~effect/transactions/TxRef"; /** * Creates a new `TxRef` with the specified initial value. * - * @since 4.0.0 - * @category Constructors - * @example + * **When to use** + * + * Use to create a `TxRef` inside an `Effect` workflow. + * + * **Example** (Creating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -36,14 +42,21 @@ const TypeId = "~effect/transactions/TxRef"; * console.log(yield* TxRef.get(name)) // "Bob" * }) * ``` + * + * @category constructors + * @since 2.0.0 */ export const make = initial => Effect.sync(() => makeUnsafe(initial)); /** - * Creates a new `TxRef` with the specified initial value. + * Creates a new `TxRef` synchronously with the specified initial value. + * + * **When to use** + * + * Use to construct a `TxRef` synchronously when it must be created outside an + * `Effect` workflow. + * + * **Example** (Creating transactional references unsafely) * - * @since 4.0.0 - * @category Constructors - * @example * ```ts * import { TxRef } from "effect" * @@ -55,6 +68,9 @@ export const make = initial => Effect.sync(() => makeUnsafe(initial)); * console.log(counter.value) // 0 * console.log(config.value) // { timeout: 5000, retries: 3 } * ``` + * + * @category constructors + * @since 4.0.0 */ export const makeUnsafe = initial => ({ [TypeId]: TypeId, @@ -68,9 +84,13 @@ export const makeUnsafe = initial => ({ /** * Modifies the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to update a `TxRef` and return a computed result from the same + * transaction step. + * + * **Example** (Modifying transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -84,8 +104,11 @@ export const makeUnsafe = initial => ({ * console.log(yield* TxRef.get(counter)) // 1 (the new value: current + 1) * }) * ``` + * + * @category combinators + * @since 2.0.0 */ -export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.Transaction.asEffect().pipe(Effect.flatMap(state => Effect.sync(() => { +export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.Transaction.pipe(Effect.flatMap(state => Effect.sync(() => { if (!state.journal.has(self)) { state.journal.set(self, { version: self.version, @@ -100,9 +123,12 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.Transaction.asEff /** * Updates the value of the `TxRef` using the provided function. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to transform a `TxRef` when no result value is needed. + * + * **Example** (Updating transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -117,14 +143,20 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.Transaction.asEff * console.log(yield* TxRef.get(counter)) // 20 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export const update = /*#__PURE__*/dual(2, (self, f) => modify(self, current => [void 0, f(current)])); /** * Reads the current value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to read the current value of a `TxRef`. + * + * **Example** (Reading transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -139,14 +171,20 @@ export const update = /*#__PURE__*/dual(2, (self, f) => modify(self, current => * console.log(value) // 42 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export const get = self => modify(self, current => [current, current]); /** * Sets the value of the `TxRef`. * - * @since 4.0.0 - * @category Combinators - * @example + * **When to use** + * + * Use to replace the value of a `TxRef`. + * + * **Example** (Setting transactional references) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -161,6 +199,9 @@ export const get = self => modify(self, current => [current, current]); * console.log(yield* TxRef.get(counter)) // 100 * }) * ``` + * + * @category combinators + * @since 2.0.0 */ export const set = /*#__PURE__*/dual(2, (self, value) => update(self, () => value)); //# sourceMappingURL=TxRef.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxRef.js.map b/.opencode/node_modules/effect/dist/TxRef.js.map index 8d211a17218475f88dbf2b7bf907f0e2c8273a0d..1b38b1fd9a6dfa6a5fb32531b62404fda833db46 100644 --- a/.opencode/node_modules/effect/dist/TxRef.js.map +++ b/.opencode/node_modules/effect/dist/TxRef.js.map @@ -1 +1 @@ -{"version":3,"file":"TxRef.js","names":["Effect","dual","pipeArguments","TypeId","make","initial","sync","makeUnsafe","pending","Map","pipe","arguments","version","value","modify","self","f","Transaction","asEffect","flatMap","state","journal","has","set","current","get","returnValue","next","tx","update"],"sources":["../src/TxRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAUA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,aAAa,QAAQ,eAAe;AAI7C,MAAMC,MAAM,GAAG,4BAA4B;AAuC3C;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,IAAI,GAAOC,OAAU,IAAKL,MAAM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AI,EAAGS,OAAO,IAAK,CAAC,KAAK,CAAC,EAAER,CAAC,CAACQ,OAAO,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,GAAG,GAAOV,IAAc,IAAuBD,MAAM,CAACC,IAAI,EAAGS,OAAO,IAAK,CAACA,OAAO,EAAEA,OAAO,CAAC,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMD,GAAG,gBA6CZtB,IAAI,CAAC,CAAC,EAAE,CACVc,IAAc,EACdF,KAAQ,KACgBgB,MAAM,CAACd,IAAI,EAAE,MAAMF,KAAK,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxRef.js","names":["Effect","dual","pipeArguments","TypeId","make","initial","sync","makeUnsafe","pending","Map","pipe","arguments","version","value","modify","self","f","Transaction","flatMap","state","journal","has","set","current","get","returnValue","next","tx","update"],"sources":["../src/TxRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAaA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,aAAa,QAAQ,eAAe;AAI7C,MAAMC,MAAM,GAAG,4BAA4B;AAgD3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,IAAI,GAAOC,OAAU,IAAKL,MAAM,CAACM,IAAI,CAAC,MAAMC,UAAU,CAACF,OAAO,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAME,UAAU,GAAOF,OAAU,KAAgB;EACtD,CAACF,MAAM,GAAGA,MAAM;EAChBK,OAAO,EAAE,IAAIC,GAAG,EAAE;EAClBC,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC,CAAC;EACDC,OAAO,EAAE,CAAC;EACVC,KAAK,EAAER;CACR,CAAC;AAEF;;;;;;;;;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Vc,IAAc,EACdF,KAAQ,KACgBe,MAAM,CAACb,IAAI,EAAE,MAAMF,KAAK,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSemaphore.d.ts b/.opencode/node_modules/effect/dist/TxSemaphore.d.ts index f8322f4e6cbaaebaa9846ded015bce7318101886..d6497ef53f3ac25b186fe67670f28995847429fa 100644 --- a/.opencode/node_modules/effect/dist/TxSemaphore.d.ts +++ b/.opencode/node_modules/effect/dist/TxSemaphore.d.ts @@ -1,4 +1,12 @@ /** + * Coordinates access to limited resources inside transactions. + * + * A `TxSemaphore` has a fixed capacity and stores its available permit count in + * a `TxRef`. Acquiring or releasing permits can therefore commit atomically + * with other transactional state changes. This module includes operations for + * creating semaphores, checking capacity and availability, acquiring or + * releasing permits, and running effects while permits are held. + * * @since 4.0.0 */ import * as Effect from "./Effect.ts"; @@ -8,12 +16,18 @@ import type * as Scope from "./Scope.ts"; import * as TxRef from "./TxRef.ts"; declare const TypeId = "~effect/transactions/TxSemaphore"; /** - * A transactional semaphore that manages permits using Software Transactional Memory (STM) semantics. + * A transactional semaphore that manages permits using Software Transactional + * Memory (STM) semantics, providing atomic permit acquisition and release + * operations within Effect transactions for concurrency control over limited + * resources. + * + * **When to use** + * + * Use to coordinate permit accounting atomically with other transactional + * state changes. * - * TxSemaphore provides atomic permit acquisition and release operations within Effect transactions, - * ensuring thread-safe concurrency control for limited resources. + * **Example** (Managing permits transactionally) * - * @example * ```ts * import { Effect, TxSemaphore } from "effect" * @@ -33,8 +47,12 @@ declare const TypeId = "~effect/transactions/TxSemaphore"; * }) * ``` * - * @since 4.0.0 + * @see {@link make} for creating a transactional semaphore + * @see {@link withPermit} for automatically acquiring and releasing one permit + * @see {@link acquire} for manually acquiring one permit transactionally + * * @category models + * @since 4.0.0 */ export interface TxSemaphore extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -44,7 +62,12 @@ export interface TxSemaphore extends Inspectable, Pipeable { /** * Creates a new TxSemaphore with the specified number of permits. * - * @example + * **When to use** + * + * Use to create a transactional semaphore with a fixed permit capacity. + * + * **Example** (Creating a semaphore) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -64,18 +87,22 @@ export interface TxSemaphore extends Inspectable, Pipeable { * }) * ``` * - * @param permits - The initial number of permits (must be non-negative) - * @returns Effect that succeeds with a new TxSemaphore - * @throws Defect if permits is negative + * @see {@link available} for reading the current available permit count + * @see {@link capacity} for reading the fixed total permit count * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: (permits: number) => Effect.Effect; /** * Gets the current number of available permits in the semaphore. * - * @example + * **When to use** + * + * Use to inspect how many permits are currently available. + * + * **Example** (Checking available permits) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -96,17 +123,21 @@ export declare const make: (permits: number) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore to inspect - * @returns Effect that succeeds with the current number of available permits + * @see {@link capacity} for reading the fixed total permit count * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const available: (self: TxSemaphore) => Effect.Effect; /** * Gets the maximum capacity (total permits) of the semaphore. * - * @example + * **When to use** + * + * Use to inspect the fixed total number of permits managed by the semaphore. + * + * **Example** (Checking semaphore capacity) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -123,18 +154,23 @@ export declare const available: (self: TxSemaphore) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore to inspect - * @returns Effect that succeeds with the semaphore's maximum capacity + * @see {@link available} for reading the current available permit count * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const capacity: (self: TxSemaphore) => Effect.Effect; /** * Acquires a single permit from the semaphore. If no permits are available, * the effect will block until one becomes available. * - * @example + * **When to use** + * + * Use to manually acquire one permit transactionally, waiting until one is + * available. + * + * **Example** (Acquiring a permit) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -154,18 +190,34 @@ export declare const capacity: (self: TxSemaphore) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore from which to acquire a permit - * @returns Effect that succeeds when a permit is acquired + * @see {@link tryAcquire} for a non-blocking single-permit attempt + * @see {@link release} for returning one permit + * @see {@link withPermit} for automatic acquire and release around an effect * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const acquire: (self: TxSemaphore) => Effect.Effect; /** - * Acquires the specified number of permits from the semaphore. If not enough - * permits are available, the effect will block until they become available. + * Acquires the specified number of permits from the semaphore. + * + * **When to use** + * + * Use to manually acquire multiple permits transactionally, waiting until all + * requested permits are available. + * + * **Details** + * + * If fewer than `n` permits are available, the transaction retries until enough + * permits are released. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever because the capacity is fixed. + * + * **Example** (Acquiring multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -181,19 +233,25 @@ export declare const acquire: (self: TxSemaphore) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore from which to acquire permits - * @param n - The number of permits to acquire (must be positive) - * @returns Effect that succeeds when the permits are acquired + * @see {@link tryAcquireN} for a non-blocking multi-permit attempt + * @see {@link releaseN} for returning multiple permits + * @see {@link withPermits} for automatic acquire and release around an effect * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const acquireN: (self: TxSemaphore, n: number) => Effect.Effect; /** - * Tries to acquire a single permit from the semaphore without blocking. - * Returns true if successful, false if no permits are available. + * Tries to acquire a single permit from the semaphore without blocking, + * returning `true` if successful or `false` if no permits are available. + * + * **When to use** + * + * Use to attempt a single-permit acquisition without retrying when no permit is + * available. + * + * **Example** (Trying to acquire a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -210,18 +268,25 @@ export declare const acquireN: (self: TxSemaphore, n: number) => Effect.Effect Effect.Effect; /** - * Tries to acquire the specified number of permits from the semaphore without blocking. - * Returns true if successful, false if not enough permits are available. + * Tries to acquire the specified number of permits from the semaphore without + * blocking, returning `true` if successful or `false` if not enough permits are + * available. + * + * **When to use** + * + * Use to attempt a multi-permit acquisition without retrying when not enough + * permits are available. + * + * **Example** (Trying to acquire multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -238,18 +303,28 @@ export declare const tryAcquire: (self: TxSemaphore) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore from which to try acquiring permits - * @param n - The number of permits to try acquiring (must be positive) - * @returns Effect that succeeds with true if permits acquired, false otherwise + * @see {@link acquireN} for waiting until all requested permits are available + * @see {@link tryAcquire} for attempting to acquire one permit without blocking * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export declare const tryAcquireN: (self: TxSemaphore, n: number) => Effect.Effect; /** - * Releases a single permit back to the semaphore, making it available for acquisition. + * Releases one permit back to the semaphore, making it available for + * acquisition. + * + * **When to use** + * + * Use to manually return one permit after a transactional acquire. + * + * **Details** + * + * If the semaphore is already at capacity, this operation leaves the permit + * count unchanged. + * + * **Example** (Releasing a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -268,17 +343,30 @@ export declare const tryAcquireN: (self: TxSemaphore, n: number) => Effect.Effec * }) * ``` * - * @param self - The TxSemaphore to which to release a permit - * @returns Effect that succeeds when the permit is released + * @see {@link acquire} for manually acquiring one permit + * @see {@link releaseN} for returning multiple permits * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const release: (self: TxSemaphore) => Effect.Effect; /** * Releases the specified number of permits back to the semaphore. * - * @example + * **When to use** + * + * Use to manually return multiple permits after a transactional acquire. + * + * **Details** + * + * The available permit count is capped at the semaphore capacity. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. + * + * **Example** (Releasing multiple permits) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -297,12 +385,11 @@ export declare const release: (self: TxSemaphore) => Effect.Effect; * }) * ``` * - * @param self - The TxSemaphore to which to release permits - * @param n - The number of permits to release (must be positive) - * @returns Effect that succeeds when the permits are released + * @see {@link acquireN} for manually acquiring multiple permits + * @see {@link release} for returning one permit * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const releaseN: (self: TxSemaphore, n: number) => Effect.Effect; /** @@ -310,10 +397,18 @@ export declare const releaseN: (self: TxSemaphore, n: number) => Effect.Effect Effect.Effect(effect: Effect.Effect) => Effect.Effect; /** @@ -388,10 +491,18 @@ export declare const withPermit: { * automatically acquired before execution and released afterwards, even if the * effect fails or is interrupted. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing one + * transactional permit. + * + * **Details** + * + * The permit acquisition and release operations use atomic semantics to ensure + * proper resource management with Effect's scoped operations. + * + * **Example** (Running an effect with a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -414,24 +525,36 @@ export declare const withPermit: { * }) * ``` * - * @param self - The TxSemaphore to acquire a permit from - * @param effect - The effect to execute with the permit - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits + * @see {@link withPermitScoped} for acquiring one permit for the current scope + * @see {@link acquire} for manual single-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (self: TxSemaphore, effect: Effect.Effect): Effect.Effect; }; /** - * Executes an effect with the specified number of permits from the semaphore. - * The permits are automatically acquired before execution and released afterwards, - * even if the effect fails or is interrupted. + * Runs an effect while holding the specified number of permits from the + * semaphore. + * + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing multiple + * transactional permits. + * + * **Details** + * + * The permits are acquired before the effect starts and released after it + * completes, fails, or is interrupted. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **Example** (Running an effect with multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -454,24 +577,34 @@ export declare const withPermit: { * }) * ``` * - * @param self - The TxSemaphore to acquire permits from - * @param n - The number of permits to acquire (must be positive) - * @param effect - The effect to execute with the permits - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermit} for automatically acquiring and releasing one permit + * @see {@link acquireN} for manual multi-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const withPermits: { /** - * Executes an effect with the specified number of permits from the semaphore. - * The permits are automatically acquired before execution and released afterwards, - * even if the effect fails or is interrupted. + * Runs an effect while holding the specified number of permits from the + * semaphore. + * + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing multiple + * transactional permits. + * + * **Details** + * + * The permits are acquired before the effect starts and released after it + * completes, fails, or is interrupted. + * + * **Gotchas** * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever. + * + * **Example** (Running an effect with multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -494,24 +627,34 @@ export declare const withPermits: { * }) * ``` * - * @param self - The TxSemaphore to acquire permits from - * @param n - The number of permits to acquire (must be positive) - * @param effect - The effect to execute with the permits - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermit} for automatically acquiring and releasing one permit + * @see {@link acquireN} for manual multi-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (self: TxSemaphore, n: number): (effect: Effect.Effect) => Effect.Effect; /** - * Executes an effect with the specified number of permits from the semaphore. - * The permits are automatically acquired before execution and released afterwards, - * even if the effect fails or is interrupted. + * Runs an effect while holding the specified number of permits from the + * semaphore. + * + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing multiple + * transactional permits. + * + * **Details** + * + * The permits are acquired before the effect starts and released after it + * completes, fails, or is interrupted. + * + * **Gotchas** * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever. + * + * **Example** (Running an effect with multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -534,13 +677,11 @@ export declare const withPermits: { * }) * ``` * - * @param self - The TxSemaphore to acquire permits from - * @param n - The number of permits to acquire (must be positive) - * @param effect - The effect to execute with the permits - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermit} for automatically acquiring and releasing one permit + * @see {@link acquireN} for manual multi-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ (self: TxSemaphore, n: number, effect: Effect.Effect): Effect.Effect; }; @@ -549,10 +690,18 @@ export declare const withPermits: { * will be automatically released when the scope is closed, even if effects * within the scope fail or are interrupted. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **When to use** + * + * Use to acquire one transactional permit for the lifetime of the current + * scope. + * + * **Details** + * + * The permit acquisition and release operations use atomic semantics to ensure + * proper resource management with Effect's scoped operations. + * + * **Example** (Acquiring a scoped permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -577,17 +726,22 @@ export declare const withPermits: { * }) * ``` * - * @param self - The TxSemaphore to acquire a permit from - * @returns Effect that succeeds when the permit is acquired (within scope) + * @see {@link withPermit} for acquiring one permit around a single effect + * @see {@link acquire} for manual single-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export declare const withPermitScoped: (self: TxSemaphore) => Effect.Effect; /** * Determines if the provided value is a TxSemaphore. * - * @example + * **When to use** + * + * Use to narrow an unknown value before treating it as a `TxSemaphore`. + * + * **Example** (Checking semaphore values) + * * ```ts * import { Effect, TxSemaphore } from "effect" * @@ -606,8 +760,10 @@ export declare const withPermitScoped: (self: TxSemaphore) => Effect.Effect u is TxSemaphore; export {}; diff --git a/.opencode/node_modules/effect/dist/TxSemaphore.d.ts.map b/.opencode/node_modules/effect/dist/TxSemaphore.d.ts.map index 21dbde5bc53b47f7331dc8dd39b90e5a9d7be9c8..2a560051a99073b11792c33acddafacbd77ca9fe 100644 --- a/.opencode/node_modules/effect/dist/TxSemaphore.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxSemaphore.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxSemaphore.d.ts","sourceRoot":"","sources":["../src/TxSemaphore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,QAAA,MAAM,MAAM,qCAAqC,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,QAAQ;IACxD,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;IAChC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAyBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,IAAI,GAAI,SAAS,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAQ5C,CAAA;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAA+B,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,WAAW,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAkC,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,aAAa,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,WAAqC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSemaphore.js b/.opencode/node_modules/effect/dist/TxSemaphore.js index ce1fe92005ad1bfddeace934413c01d6b45fe3f6..263967ade993ac282cc754526082577214a1b952 100644 --- a/.opencode/node_modules/effect/dist/TxSemaphore.js +++ b/.opencode/node_modules/effect/dist/TxSemaphore.js @@ -1,4 +1,12 @@ /** + * Coordinates access to limited resources inside transactions. + * + * A `TxSemaphore` has a fixed capacity and stores its available permit count in + * a `TxRef`. Acquiring or releasing permits can therefore commit atomically + * with other transactional state changes. This module includes operations for + * creating semaphores, checking capacity and availability, acquiring or + * releasing permits, and running effects while permits are held. + * * @since 4.0.0 */ import * as Effect from "./Effect.js"; @@ -31,7 +39,12 @@ const makeTxSemaphore = (permitsRef, capacity) => { /** * Creates a new TxSemaphore with the specified number of permits. * - * @example + * **When to use** + * + * Use to create a transactional semaphore with a fixed permit capacity. + * + * **Example** (Creating a semaphore) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -51,12 +64,11 @@ const makeTxSemaphore = (permitsRef, capacity) => { * }) * ``` * - * @param permits - The initial number of permits (must be non-negative) - * @returns Effect that succeeds with a new TxSemaphore - * @throws Defect if permits is negative + * @see {@link available} for reading the current available permit count + * @see {@link capacity} for reading the fixed total permit count * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const make = permits => Effect.gen(function* () { if (permits < 0) { @@ -68,7 +80,12 @@ export const make = permits => Effect.gen(function* () { /** * Gets the current number of available permits in the semaphore. * - * @example + * **When to use** + * + * Use to inspect how many permits are currently available. + * + * **Example** (Checking available permits) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -89,17 +106,21 @@ export const make = permits => Effect.gen(function* () { * }) * ``` * - * @param self - The TxSemaphore to inspect - * @returns Effect that succeeds with the current number of available permits + * @see {@link capacity} for reading the fixed total permit count * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const available = self => TxRef.get(self.permitsRef); /** * Gets the maximum capacity (total permits) of the semaphore. * - * @example + * **When to use** + * + * Use to inspect the fixed total number of permits managed by the semaphore. + * + * **Example** (Checking semaphore capacity) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -116,18 +137,23 @@ export const available = self => TxRef.get(self.permitsRef); * }) * ``` * - * @param self - The TxSemaphore to inspect - * @returns Effect that succeeds with the semaphore's maximum capacity + * @see {@link available} for reading the current available permit count * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const capacity = self => Effect.succeed(self.capacity); /** * Acquires a single permit from the semaphore. If no permits are available, * the effect will block until one becomes available. * - * @example + * **When to use** + * + * Use to manually acquire one permit transactionally, waiting until one is + * available. + * + * **Example** (Acquiring a permit) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -147,11 +173,12 @@ export const capacity = self => Effect.succeed(self.capacity); * }) * ``` * - * @param self - The TxSemaphore from which to acquire a permit - * @returns Effect that succeeds when a permit is acquired + * @see {@link tryAcquire} for a non-blocking single-permit attempt + * @see {@link release} for returning one permit + * @see {@link withPermit} for automatic acquire and release around an effect * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const acquire = self => Effect.gen(function* () { const permits = yield* TxRef.get(self.permitsRef); @@ -161,10 +188,25 @@ export const acquire = self => Effect.gen(function* () { yield* TxRef.set(self.permitsRef, permits - 1); }).pipe(Effect.tx); /** - * Acquires the specified number of permits from the semaphore. If not enough - * permits are available, the effect will block until they become available. + * Acquires the specified number of permits from the semaphore. + * + * **When to use** + * + * Use to manually acquire multiple permits transactionally, waiting until all + * requested permits are available. + * + * **Details** + * + * If fewer than `n` permits are available, the transaction retries until enough + * permits are released. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever because the capacity is fixed. + * + * **Example** (Acquiring multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -180,12 +222,12 @@ export const acquire = self => Effect.gen(function* () { * }) * ``` * - * @param self - The TxSemaphore from which to acquire permits - * @param n - The number of permits to acquire (must be positive) - * @returns Effect that succeeds when the permits are acquired + * @see {@link tryAcquireN} for a non-blocking multi-permit attempt + * @see {@link releaseN} for returning multiple permits + * @see {@link withPermits} for automatic acquire and release around an effect * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const acquireN = (self, n) => { if (n <= 0) { @@ -200,10 +242,16 @@ export const acquireN = (self, n) => { }).pipe(Effect.tx); }; /** - * Tries to acquire a single permit from the semaphore without blocking. - * Returns true if successful, false if no permits are available. + * Tries to acquire a single permit from the semaphore without blocking, + * returning `true` if successful or `false` if no permits are available. + * + * **When to use** + * + * Use to attempt a single-permit acquisition without retrying when no permit is + * available. + * + * **Example** (Trying to acquire a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -220,11 +268,11 @@ export const acquireN = (self, n) => { * }) * ``` * - * @param self - The TxSemaphore from which to try acquiring a permit - * @returns Effect that succeeds with true if permit acquired, false otherwise + * @see {@link acquire} for waiting until one permit is available + * @see {@link tryAcquireN} for attempting to acquire multiple permits without blocking * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const tryAcquire = self => TxRef.modify(self.permitsRef, permits => { if (permits > 0) { @@ -233,10 +281,17 @@ export const tryAcquire = self => TxRef.modify(self.permitsRef, permits => { return [false, permits]; }); /** - * Tries to acquire the specified number of permits from the semaphore without blocking. - * Returns true if successful, false if not enough permits are available. + * Tries to acquire the specified number of permits from the semaphore without + * blocking, returning `true` if successful or `false` if not enough permits are + * available. + * + * **When to use** + * + * Use to attempt a multi-permit acquisition without retrying when not enough + * permits are available. + * + * **Example** (Trying to acquire multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -253,12 +308,11 @@ export const tryAcquire = self => TxRef.modify(self.permitsRef, permits => { * }) * ``` * - * @param self - The TxSemaphore from which to try acquiring permits - * @param n - The number of permits to try acquiring (must be positive) - * @returns Effect that succeeds with true if permits acquired, false otherwise + * @see {@link acquireN} for waiting until all requested permits are available + * @see {@link tryAcquire} for attempting to acquire one permit without blocking * - * @since 4.0.0 * @category combinators + * @since 4.0.0 */ export const tryAcquireN = (self, n) => { if (n <= 0) { @@ -272,9 +326,20 @@ export const tryAcquireN = (self, n) => { }); }; /** - * Releases a single permit back to the semaphore, making it available for acquisition. + * Releases one permit back to the semaphore, making it available for + * acquisition. + * + * **When to use** + * + * Use to manually return one permit after a transactional acquire. + * + * **Details** + * + * If the semaphore is already at capacity, this operation leaves the permit + * count unchanged. + * + * **Example** (Releasing a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -293,17 +358,30 @@ export const tryAcquireN = (self, n) => { * }) * ``` * - * @param self - The TxSemaphore to which to release a permit - * @returns Effect that succeeds when the permit is released + * @see {@link acquire} for manually acquiring one permit + * @see {@link releaseN} for returning multiple permits * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const release = self => TxRef.update(self.permitsRef, permits => permits >= self.capacity ? permits : permits + 1); /** * Releases the specified number of permits back to the semaphore. * - * @example + * **When to use** + * + * Use to manually return multiple permits after a transactional acquire. + * + * **Details** + * + * The available permit count is capped at the semaphore capacity. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. + * + * **Example** (Releasing multiple permits) + * * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -322,12 +400,11 @@ export const release = self => TxRef.update(self.permitsRef, permits => permits * }) * ``` * - * @param self - The TxSemaphore to which to release permits - * @param n - The number of permits to release (must be positive) - * @returns Effect that succeeds when the permits are released + * @see {@link acquireN} for manually acquiring multiple permits + * @see {@link release} for returning one permit * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const releaseN = (self, n) => { if (n <= 0) { @@ -343,10 +420,18 @@ export const releaseN = (self, n) => { * automatically acquired before execution and released afterwards, even if the * effect fails or is interrupted. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing one + * transactional permit. + * + * **Details** + * + * The permit acquisition and release operations use atomic semantics to ensure + * proper resource management with Effect's scoped operations. + * + * **Example** (Running an effect with a permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -369,12 +454,12 @@ export const releaseN = (self, n) => { * }) * ``` * - * @param self - The TxSemaphore to acquire a permit from - * @param effect - The effect to execute with the permit - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermits} for automatically acquiring and releasing multiple permits + * @see {@link withPermitScoped} for acquiring one permit for the current scope + * @see {@link acquire} for manual single-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const withPermit = (...args) => { if (args.length === 1) { @@ -385,14 +470,26 @@ export const withPermit = (...args) => { return Effect.acquireUseRelease(acquire(self), () => effect, () => release(self)); }; /** - * Executes an effect with the specified number of permits from the semaphore. - * The permits are automatically acquired before execution and released afterwards, - * even if the effect fails or is interrupted. + * Runs an effect while holding the specified number of permits from the + * semaphore. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **When to use** + * + * Use to run an effect while automatically acquiring and releasing multiple + * transactional permits. + * + * **Details** + * + * The permits are acquired before the effect starts and released after it + * completes, fails, or is interrupted. + * + * **Gotchas** + * + * Passing a non-positive `n` dies with a defect. Passing a value greater than + * the semaphore capacity can wait forever. + * + * **Example** (Running an effect with multiple permits) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -415,13 +512,11 @@ export const withPermit = (...args) => { * }) * ``` * - * @param self - The TxSemaphore to acquire permits from - * @param n - The number of permits to acquire (must be positive) - * @param effect - The effect to execute with the permits - * @returns Effect that succeeds with the result of the provided effect + * @see {@link withPermit} for automatically acquiring and releasing one permit + * @see {@link acquireN} for manual multi-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const withPermits = (...args) => { if (args.length === 2) { @@ -436,10 +531,18 @@ export const withPermits = (...args) => { * will be automatically released when the scope is closed, even if effects * within the scope fail or are interrupted. * - * **Note**: The permit acquisition and release operations use atomic semantics - * to ensure proper resource management with Effect's scoped operations. + * **When to use** + * + * Use to acquire one transactional permit for the lifetime of the current + * scope. + * + * **Details** + * + * The permit acquisition and release operations use atomic semantics to ensure + * proper resource management with Effect's scoped operations. + * + * **Example** (Acquiring a scoped permit) * - * @example * ```ts * import { Console, Effect, TxSemaphore } from "effect" * @@ -464,17 +567,22 @@ export const withPermits = (...args) => { * }) * ``` * - * @param self - The TxSemaphore to acquire a permit from - * @returns Effect that succeeds when the permit is acquired (within scope) + * @see {@link withPermit} for acquiring one permit around a single effect + * @see {@link acquire} for manual single-permit acquisition * - * @since 4.0.0 * @category combinators + * @since 2.0.0 */ export const withPermitScoped = self => Effect.acquireRelease(acquire(self), () => release(self)); /** * Determines if the provided value is a TxSemaphore. * - * @example + * **When to use** + * + * Use to narrow an unknown value before treating it as a `TxSemaphore`. + * + * **Example** (Checking semaphore values) + * * ```ts * import { Effect, TxSemaphore } from "effect" * @@ -493,8 +601,10 @@ export const withPermitScoped = self => Effect.acquireRelease(acquire(self), () * }) * ``` * - * @since 4.0.0 + * @see {@link make} for creating a `TxSemaphore` + * * @category guards + * @since 4.0.0 */ export const isTxSemaphore = u => hasProperty(u, TypeId); //# sourceMappingURL=TxSemaphore.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSemaphore.js.map b/.opencode/node_modules/effect/dist/TxSemaphore.js.map index 3b6790430c4e7bbb29a753a947d8532a6b3bd351..c1d541a5d740aee3ea599c539d1101ebfad9e13e 100644 --- a/.opencode/node_modules/effect/dist/TxSemaphore.js.map +++ b/.opencode/node_modules/effect/dist/TxSemaphore.js.map @@ -1 +1 @@ -{"version":3,"file":"TxSemaphore.js","names":["Effect","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxSemaphoreProto","toJSON","_id","capacity","pipe","arguments","makeTxSemaphore","permitsRef","self","Object","create","make","permits","gen","die","Error","tx","available","get","succeed","acquire","txRetry","set","acquireN","n","tryAcquire","modify","tryAcquireN","release","update","releaseN","newPermits","withPermit","args","length","effect","acquireUseRelease","withPermits","withPermitScoped","acquireRelease","isTxSemaphore","u"],"sources":["../src/TxSemaphore.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA,OAAO,KAAKA,MAAM,MAAM,aAAa;AAErC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,kCAAkC;AAqCjD,MAAMC,gBAAgB,GAAiE;EACrF,CAACN,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDM,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,aAAa;MAClBC,QAAQ,EAAE,IAAI,CAACA;KAChB;EACH,CAAC;EACDC,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC;CACD;AAED,MAAMC,eAAe,GAAGA,CAACC,UAA+B,EAAEJ,QAAgB,KAAiB;EACzF,MAAMK,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACV,gBAAgB,CAAC;EAC5CQ,IAAI,CAACT,MAAM,CAAC,GAAGA,MAAM;EACrBS,IAAI,CAACD,UAAU,GAAGA,UAAU;EAC5BC,IAAI,CAACL,QAAQ,GAAGA,QAAQ;EACxB,OAAOK,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,OAAO,MAAMG,IAAI,GAAIC,OAAe,IAClCnB,MAAM,CAACoB,GAAG,CAAC,aAAS;EAClB,IAAID,OAAO,GAAG,CAAC,EAAE;IACf,OAAO,OAAOnB,MA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;;;;;;;;;;;AAuCA,OAAO,MAAM6B,WAAW,GAiFnBA,CAAC,GAAGJ,IAAgB,KAAI;EAC3B,IAAIA,IAAI,CAACC,MAAM,KAAK,CAAC,EAAE;IACrB,MAAM,CAAC1B,IAAI,EAAEgB,CAAC,CAAC,GAAGS,IAAI;IACtB,OAAQE,MAAoC,IAC1C1C,MAAM,CAAC2C,iBAAiB,CACtBb,QAAQ,CAACf,IAAI,EAAEgB,CAAC,CAAC,EACjB,MAAMW,MAAM,EACZ,MAAML,QAAQ,CAACtB,IAAI,EAAEgB,CAAC,CAAC,CACxB;EACL;EACA,MAAM,CAAChB,IAAI,EAAEgB,CAAC,EAAEW,MAAM,CAAC,GAAGF,IAAI;EAC9B,OAAOxC,MAAM,CAAC2C,iBAAiB,CAC7Bb,QAAQ,CAACf,IAAI,EAAEgB,CAAC,CAAC,EACjB,MAAMW,MAAM,EACZ,MAAML,QAAQ,CAACtB,IAAI,EAAEgB,CAAC,CAAC,CACxB;AACH,CAAS;AAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,OAAO,MAAMc,gBAAgB,GAAI9B,IAAiB,IAChDf,MAAM,CAAC8C,cAAc,CACnBnB,OAAO,CAACZ,IAAI,CAAC,EACb,MAAMoB,OAAO,CAACpB,IAAI,CAAC,CACpB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMgC,aAAa,GAAIC,CAAU,IAAuB5C,WAAW,CAAC4C,CAAC,EAAE1C,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxSemaphore.js","names":["Effect","NodeInspectSymbol","toJson","pipeArguments","hasProperty","TxRef","TypeId","TxSemaphoreProto","toJSON","_id","capacity","pipe","arguments","makeTxSemaphore","permitsRef","self","Object","create","make","permits","gen","die","Error","tx","available","get","succeed","acquire","txRetry","set","acquireN","n","tryAcquire","modify","tryAcquireN","release","update","releaseN","newPermits","withPermit","args","length","effect","acquireUseRelease","withPermits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AC,GAAGJ,IAAgB,KAAI;EAC3B,IAAIA,IAAI,CAACC,MAAM,KAAK,CAAC,EAAE;IACrB,MAAM,CAAC1B,IAAI,EAAEgB,CAAC,CAAC,GAAGS,IAAI;IACtB,OAAQE,MAAoC,IAC1C1C,MAAM,CAAC2C,iBAAiB,CACtBb,QAAQ,CAACf,IAAI,EAAEgB,CAAC,CAAC,EACjB,MAAMW,MAAM,EACZ,MAAML,QAAQ,CAACtB,IAAI,EAAEgB,CAAC,CAAC,CACxB;EACL;EACA,MAAM,CAAChB,IAAI,EAAEgB,CAAC,EAAEW,MAAM,CAAC,GAAGF,IAAI;EAC9B,OAAOxC,MAAM,CAAC2C,iBAAiB,CAC7Bb,QAAQ,CAACf,IAAI,EAAEgB,CAAC,CAAC,EACjB,MAAMW,MAAM,EACZ,MAAML,QAAQ,CAACtB,IAAI,EAAEgB,CAAC,CAAC,CACxB;AACH,CAAS;AAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMc,gBAAgB,GAAI9B,IAAiB,IAChDf,MAAM,CAAC8C,cAAc,CACnBnB,OAAO,CAACZ,IAAI,CAAC,EACb,MAAMoB,OAAO,CAACpB,IAAI,CAAC,CACpB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMgC,aAAa,GAAIC,CAAU,IAAuB5C,WAAW,CAAC4C,CAAC,EAAE1C,MAAM,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts b/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts index e1b4d80f4b2d68e64fbbff2053472341390e68cc..da177fa1726fb76538626d4e0a2fa8a0a463cf22 100644 --- a/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts +++ b/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts @@ -1,6 +1,11 @@ /** - * TxSubscriptionRef is a TxRef that allows subscribing to all committed changes. Subscribers - * receive the current value followed by every subsequent update via a transactional queue. + * Stores transactional state and publishes committed changes. + * + * A `TxSubscriptionRef` combines a `TxRef` for the current value with a + * transactional pub/sub channel for updates. Subscribers first receive the + * current value and then every later value that is published by committed + * updates. This module includes constructors, reads, writes, update and modify + * helpers, transactional-queue subscriptions, stream subscriptions, and a guard. * * @since 4.0.0 */ @@ -16,9 +21,15 @@ declare const TypeId = "~effect/transactions/TxSubscriptionRef"; * committed changes. Subscribers receive the current value followed by every subsequent * update via a transactional dequeue. * - * @example + * **When to use** + * + * Use to store transactional state whose committed changes must be observable by + * subscribers. + * + * **Example** (Subscribing to transactional changes) + * * ```ts - * import { Effect, TxSubscriptionRef, TxQueue } from "effect" + * import { Effect, TxQueue, TxSubscriptionRef } from "effect" * * const program = Effect.gen(function*() { * const ref = yield* TxSubscriptionRef.make(0) @@ -37,8 +48,12 @@ declare const TypeId = "~effect/transactions/TxSubscriptionRef"; * }) * ``` * - * @since 4.0.0 + * @see {@link make} for creating a transactional subscription reference + * @see {@link changes} for subscribing through a transactional queue + * @see {@link changesStream} for subscribing through a `Stream` + * * @category models + * @since 4.0.0 */ export interface TxSubscriptionRef extends Inspectable, Pipeable { readonly [TypeId]: typeof TypeId; @@ -46,7 +61,13 @@ export interface TxSubscriptionRef extends Inspectable, Pipeable { /** * Creates a new TxSubscriptionRef with the specified initial value. * - * @example + * **When to use** + * + * Use to create a `TxSubscriptionRef` that publishes every committed update to + * subscribers. + * + * **Example** (Creating a transactional subscription reference) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -57,14 +78,22 @@ export interface TxSubscriptionRef extends Inspectable, Pipeable { * }) * ``` * - * @since 4.0.0 + * @see {@link changes} for subscribing to the created reference + * * @category constructors + * @since 3.10.0 */ export declare const make: (value: A) => Effect.Effect>; /** * Reads the current value of the TxSubscriptionRef. * - * @example + * **When to use** + * + * Use to read the current `TxSubscriptionRef` value without subscribing to + * future changes. + * + * **Example** (Reading the current value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -75,15 +104,23 @@ export declare const make: (value: A) => Effect.Effect>; * }) * ``` * - * @since 4.0.0 + * @see {@link changes} for reading the current value and subsequent updates + * * @category getters + * @since 3.10.0 */ export declare const get: (self: TxSubscriptionRef) => Effect.Effect; /** * Modifies the value of the TxSubscriptionRef using a function that returns both a * result and the new value. The new value is published to all subscribers atomically. * - * @example + * **When to use** + * + * Use to compute a separate return value and next `TxSubscriptionRef` state in + * one transactional update. + * + * **Example** (Modifying and returning a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -95,15 +132,24 @@ export declare const get: (self: TxSubscriptionRef) => Effect.Effect; * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the next value without a separate return value + * @see {@link set} for replacing the value directly + * * @category mutations + * @since 3.10.0 */ export declare const modify: { /** * Modifies the value of the TxSubscriptionRef using a function that returns both a * result and the new value. The new value is published to all subscribers atomically. * - * @example + * **When to use** + * + * Use to compute a separate return value and next `TxSubscriptionRef` state in + * one transactional update. + * + * **Example** (Modifying and returning a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -115,15 +161,24 @@ export declare const modify: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the next value without a separate return value + * @see {@link set} for replacing the value directly + * * @category mutations + * @since 3.10.0 */ (f: (current: A) => [returnValue: B, newValue: A]): (self: TxSubscriptionRef) => Effect.Effect; /** * Modifies the value of the TxSubscriptionRef using a function that returns both a * result and the new value. The new value is published to all subscribers atomically. * - * @example + * **When to use** + * + * Use to compute a separate return value and next `TxSubscriptionRef` state in + * one transactional update. + * + * **Example** (Modifying and returning a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -135,15 +190,24 @@ export declare const modify: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the next value without a separate return value + * @see {@link set} for replacing the value directly + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, f: (current: A) => [returnValue: B, newValue: A]): Effect.Effect; }; /** * Sets the value of the TxSubscriptionRef and publishes the new value to all subscribers. * - * @example + * **When to use** + * + * Use to replace the current `TxSubscriptionRef` value with a known value and + * publish it. + * + * **Example** (Setting a new value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -154,14 +218,23 @@ export declare const modify: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the new value from the current value + * @see {@link getAndSet} for setting while returning the previous value + * * @category mutations + * @since 3.10.0 */ export declare const set: { /** * Sets the value of the TxSubscriptionRef and publishes the new value to all subscribers. * - * @example + * **When to use** + * + * Use to replace the current `TxSubscriptionRef` value with a known value and + * publish it. + * + * **Example** (Setting a new value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -172,14 +245,23 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the new value from the current value + * @see {@link getAndSet} for setting while returning the previous value + * * @category mutations + * @since 3.10.0 */ (value: A): (self: TxSubscriptionRef) => Effect.Effect; /** * Sets the value of the TxSubscriptionRef and publishes the new value to all subscribers. * - * @example + * **When to use** + * + * Use to replace the current `TxSubscriptionRef` value with a known value and + * publish it. + * + * **Example** (Setting a new value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -190,8 +272,11 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the new value from the current value + * @see {@link getAndSet} for setting while returning the previous value + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, value: A): Effect.Effect; }; @@ -199,7 +284,13 @@ export declare const set: { * Updates the value of the TxSubscriptionRef using a function and publishes the new * value to all subscribers. * - * @example + * **When to use** + * + * Use to derive the next `TxSubscriptionRef` value from the current value and + * publish it. + * + * **Example** (Updating a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -210,15 +301,24 @@ export declare const set: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for replacing the value directly + * @see {@link updateAndGet} for returning the new value after the update + * * @category mutations + * @since 3.10.0 */ export declare const update: { /** * Updates the value of the TxSubscriptionRef using a function and publishes the new * value to all subscribers. * - * @example + * **When to use** + * + * Use to derive the next `TxSubscriptionRef` value from the current value and + * publish it. + * + * **Example** (Updating a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -229,15 +329,24 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for replacing the value directly + * @see {@link updateAndGet} for returning the new value after the update + * * @category mutations + * @since 3.10.0 */ (f: (current: A) => A): (self: TxSubscriptionRef) => Effect.Effect; /** * Updates the value of the TxSubscriptionRef using a function and publishes the new * value to all subscribers. * - * @example + * **When to use** + * + * Use to derive the next `TxSubscriptionRef` value from the current value and + * publish it. + * + * **Example** (Updating a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -248,8 +357,11 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for replacing the value directly + * @see {@link updateAndGet} for returning the new value after the update + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, f: (current: A) => A): Effect.Effect; }; @@ -257,7 +369,13 @@ export declare const update: { * Gets the current value and sets a new value atomically. Publishes the new value * to all subscribers. * - * @example + * **When to use** + * + * Use to replace a `TxSubscriptionRef` value while returning the previous value + * and publishing the update to subscribers. + * + * **Example** (Getting and setting atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -269,15 +387,24 @@ export declare const update: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for setting without returning the previous value + * @see {@link getAndUpdate} for deriving the new value from the previous value + * * @category mutations + * @since 3.10.0 */ export declare const getAndSet: { /** * Gets the current value and sets a new value atomically. Publishes the new value * to all subscribers. * - * @example + * **When to use** + * + * Use to replace a `TxSubscriptionRef` value while returning the previous value + * and publishing the update to subscribers. + * + * **Example** (Getting and setting atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -289,15 +416,24 @@ export declare const getAndSet: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for setting without returning the previous value + * @see {@link getAndUpdate} for deriving the new value from the previous value + * * @category mutations + * @since 3.10.0 */ (value: A): (self: TxSubscriptionRef) => Effect.Effect; /** * Gets the current value and sets a new value atomically. Publishes the new value * to all subscribers. * - * @example + * **When to use** + * + * Use to replace a `TxSubscriptionRef` value while returning the previous value + * and publishing the update to subscribers. + * + * **Example** (Getting and setting atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -309,8 +445,11 @@ export declare const getAndSet: { * }) * ``` * - * @since 4.0.0 + * @see {@link set} for setting without returning the previous value + * @see {@link getAndUpdate} for deriving the new value from the previous value + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, value: A): Effect.Effect; }; @@ -318,7 +457,13 @@ export declare const getAndSet: { * Gets the current value and updates it using a function atomically. Publishes * the new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning the + * previous value. + * + * **Example** (Getting and updating atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -330,15 +475,24 @@ export declare const getAndSet: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the previous value + * @see {@link updateAndGet} for returning the new value instead + * * @category mutations + * @since 3.10.0 */ export declare const getAndUpdate: { /** * Gets the current value and updates it using a function atomically. Publishes * the new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning the + * previous value. + * + * **Example** (Getting and updating atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -350,15 +504,24 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the previous value + * @see {@link updateAndGet} for returning the new value instead + * * @category mutations + * @since 3.10.0 */ (f: (current: A) => A): (self: TxSubscriptionRef) => Effect.Effect; /** * Gets the current value and updates it using a function atomically. Publishes * the new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning the + * previous value. + * + * **Example** (Getting and updating atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -370,8 +533,11 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the previous value + * @see {@link updateAndGet} for returning the new value instead + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, f: (current: A) => A): Effect.Effect; }; @@ -379,7 +545,13 @@ export declare const getAndUpdate: { * Updates the value using a function and returns the new value. Publishes the * new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning + * that new value. + * + * **Example** (Updating and reading atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -390,15 +562,24 @@ export declare const getAndUpdate: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for returning the previous value instead + * * @category mutations + * @since 3.10.0 */ export declare const updateAndGet: { /** * Updates the value using a function and returns the new value. Publishes the * new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning + * that new value. + * + * **Example** (Updating and reading atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -409,15 +590,24 @@ export declare const updateAndGet: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for returning the previous value instead + * * @category mutations + * @since 3.10.0 */ (f: (current: A) => A): (self: TxSubscriptionRef) => Effect.Effect; /** * Updates the value using a function and returns the new value. Publishes the * new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning + * that new value. + * + * **Example** (Updating and reading atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -428,8 +618,11 @@ export declare const updateAndGet: { * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for returning the previous value instead + * * @category mutations + * @since 3.10.0 */ (self: TxSubscriptionRef, f: (current: A) => A): Effect.Effect; }; @@ -437,9 +630,15 @@ export declare const updateAndGet: { * Subscribes to all changes of the TxSubscriptionRef. Returns a scoped TxDequeue * that first yields the current value, then every subsequent update. * - * @example + * **When to use** + * + * Use to subscribe to `TxSubscriptionRef` committed changes through a scoped + * transactional queue. + * + * **Example** (Subscribing to changes) + * * ```ts - * import { Effect, TxSubscriptionRef, TxQueue } from "effect" + * import { Effect, TxQueue, TxSubscriptionRef } from "effect" * * const program = Effect.gen(function*() { * const ref = yield* TxSubscriptionRef.make(0) @@ -458,15 +657,22 @@ export declare const updateAndGet: { * }) * ``` * - * @since 4.0.0 + * @see {@link changesStream} for subscribing through a `Stream` + * * @category subscriptions + * @since 3.10.0 */ export declare const changes: (self: TxSubscriptionRef) => Effect.Effect, never, Scope.Scope>; /** * Returns a Stream of all changes to the TxSubscriptionRef, starting with the * current value followed by every subsequent update. * - * @example + * **When to use** + * + * Use to consume `TxSubscriptionRef` committed changes as a `Stream`. + * + * **Example** (Streaming changes) + * * ```ts * import { Effect, Stream, TxSubscriptionRef } from "effect" * @@ -482,14 +688,21 @@ export declare const changes: (self: TxSubscriptionRef) => Effect.Effect(self: TxSubscriptionRef) => Stream.Stream; /** - * Checks if the given value is a TxSubscriptionRef. + * Checks whether the given value is a TxSubscriptionRef. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a `TxSubscriptionRef`. + * + * **Example** (Checking transactional subscription references) * - * @example * ```ts * import { TxSubscriptionRef } from "effect" * @@ -500,8 +713,10 @@ export declare const changesStream: (self: TxSubscriptionRef) => Stream.St * } * ``` * - * @since 4.0.0 + * @see {@link make} for creating a `TxSubscriptionRef` + * * @category guards + * @since 4.0.0 */ export declare const isTxSubscriptionRef: (u: unknown) => u is TxSubscriptionRef; export {}; diff --git a/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts.map b/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts.map index 3a2a265f667cb8d2a8be35b899fbe2476c37de54..5393dab365fbcd19064ece71704f2ae1cb209087 100644 --- a/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts.map +++ b/.opencode/node_modules/effect/dist/TxSubscriptionRef.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TxSubscriptionRef.d.ts","sourceRoot":"","sources":["../src/TxSubscriptionRef.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC,QAAA,MAAM,MAAM,2CAA2C,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,iBAAiB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,SAAQ,WAAW,EAAE,QAAQ;IACxE,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;CAKjC;AAqBD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CASjD,CAAA;AAMpB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,GAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAwB,CAAA;AAM3F;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,EAAE;IAKnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC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C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAWpD,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAMxF,CAAA;AAMH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,mBAAmB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSubscriptionRef.js b/.opencode/node_modules/effect/dist/TxSubscriptionRef.js index fd87b2f320aab1b8d8cd36f0726c6331a02bf5f0..77d5dd035f00c2a81385188521f9cf634141a7fb 100644 --- a/.opencode/node_modules/effect/dist/TxSubscriptionRef.js +++ b/.opencode/node_modules/effect/dist/TxSubscriptionRef.js @@ -1,6 +1,11 @@ /** - * TxSubscriptionRef is a TxRef that allows subscribing to all committed changes. Subscribers - * receive the current value followed by every subsequent update via a transactional queue. + * Stores transactional state and publishes committed changes. + * + * A `TxSubscriptionRef` combines a `TxRef` for the current value with a + * transactional pub/sub channel for updates. Subscribers first receive the + * current value and then every later value that is published by committed + * updates. This module includes constructors, reads, writes, update and modify + * helpers, transactional-queue subscriptions, stream subscriptions, and a guard. * * @since 4.0.0 */ @@ -36,7 +41,13 @@ const TxSubscriptionRefProto = { /** * Creates a new TxSubscriptionRef with the specified initial value. * - * @example + * **When to use** + * + * Use to create a `TxSubscriptionRef` that publishes every committed update to + * subscribers. + * + * **Example** (Creating a transactional subscription reference) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -47,8 +58,10 @@ const TxSubscriptionRefProto = { * }) * ``` * - * @since 4.0.0 + * @see {@link changes} for subscribing to the created reference + * * @category constructors + * @since 3.10.0 */ export const make = value => Effect.gen(function* () { const ref = yield* TxRef.make(value); @@ -65,7 +78,13 @@ export const make = value => Effect.gen(function* () { /** * Reads the current value of the TxSubscriptionRef. * - * @example + * **When to use** + * + * Use to read the current `TxSubscriptionRef` value without subscribing to + * future changes. + * + * **Example** (Reading the current value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -76,8 +95,10 @@ export const make = value => Effect.gen(function* () { * }) * ``` * - * @since 4.0.0 + * @see {@link changes} for reading the current value and subsequent updates + * * @category getters + * @since 3.10.0 */ export const get = self => TxRef.get(self.ref); // ============================================================================= @@ -87,7 +108,13 @@ export const get = self => TxRef.get(self.ref); * Modifies the value of the TxSubscriptionRef using a function that returns both a * result and the new value. The new value is published to all subscribers atomically. * - * @example + * **When to use** + * + * Use to compute a separate return value and next `TxSubscriptionRef` state in + * one transactional update. + * + * **Example** (Modifying and returning a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -99,8 +126,11 @@ export const get = self => TxRef.get(self.ref); * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the next value without a separate return value + * @see {@link set} for replacing the value directly + * * @category mutations + * @since 3.10.0 */ export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () { const current = yield* TxRef.get(self.ref); @@ -112,7 +142,13 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () /** * Sets the value of the TxSubscriptionRef and publishes the new value to all subscribers. * - * @example + * **When to use** + * + * Use to replace the current `TxSubscriptionRef` value with a known value and + * publish it. + * + * **Example** (Setting a new value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -123,15 +159,24 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => Effect.gen(function* () * }) * ``` * - * @since 4.0.0 + * @see {@link update} for deriving the new value from the current value + * @see {@link getAndSet} for setting while returning the previous value + * * @category mutations + * @since 3.10.0 */ export const set = /*#__PURE__*/dual(2, (self, value) => modify(self, () => [void 0, value])); /** * Updates the value of the TxSubscriptionRef using a function and publishes the new * value to all subscribers. * - * @example + * **When to use** + * + * Use to derive the next `TxSubscriptionRef` value from the current value and + * publish it. + * + * **Example** (Updating a value) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -142,15 +187,24 @@ export const set = /*#__PURE__*/dual(2, (self, value) => modify(self, () => [voi * }) * ``` * - * @since 4.0.0 + * @see {@link set} for replacing the value directly + * @see {@link updateAndGet} for returning the new value after the update + * * @category mutations + * @since 3.10.0 */ export const update = /*#__PURE__*/dual(2, (self, f) => modify(self, current => [void 0, f(current)])); /** * Gets the current value and sets a new value atomically. Publishes the new value * to all subscribers. * - * @example + * **When to use** + * + * Use to replace a `TxSubscriptionRef` value while returning the previous value + * and publishing the update to subscribers. + * + * **Example** (Getting and setting atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -162,15 +216,24 @@ export const update = /*#__PURE__*/dual(2, (self, f) => modify(self, current => * }) * ``` * - * @since 4.0.0 + * @see {@link set} for setting without returning the previous value + * @see {@link getAndUpdate} for deriving the new value from the previous value + * * @category mutations + * @since 3.10.0 */ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => modify(self, current => [current, value])); /** * Gets the current value and updates it using a function atomically. Publishes * the new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning the + * previous value. + * + * **Example** (Getting and updating atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -182,15 +245,24 @@ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => modify(self, curr * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the previous value + * @see {@link updateAndGet} for returning the new value instead + * * @category mutations + * @since 3.10.0 */ export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => modify(self, current => [current, f(current)])); /** * Updates the value using a function and returns the new value. Publishes the * new value to all subscribers. * - * @example + * **When to use** + * + * Use to derive and publish a new `TxSubscriptionRef` value while returning + * that new value. + * + * **Example** (Updating and reading atomically) + * * ```ts * import { Effect, TxSubscriptionRef } from "effect" * @@ -201,8 +273,11 @@ export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => modify(self, curre * }) * ``` * - * @since 4.0.0 + * @see {@link update} for updating without returning the new value + * @see {@link getAndUpdate} for returning the previous value instead + * * @category mutations + * @since 3.10.0 */ export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => modify(self, current => { const newValue = f(current); @@ -215,9 +290,15 @@ export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => modify(self, curre * Subscribes to all changes of the TxSubscriptionRef. Returns a scoped TxDequeue * that first yields the current value, then every subsequent update. * - * @example + * **When to use** + * + * Use to subscribe to `TxSubscriptionRef` committed changes through a scoped + * transactional queue. + * + * **Example** (Subscribing to changes) + * * ```ts - * import { Effect, TxSubscriptionRef, TxQueue } from "effect" + * import { Effect, TxQueue, TxSubscriptionRef } from "effect" * * const program = Effect.gen(function*() { * const ref = yield* TxSubscriptionRef.make(0) @@ -236,8 +317,10 @@ export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => modify(self, curre * }) * ``` * - * @since 4.0.0 + * @see {@link changesStream} for subscribing through a `Stream` + * * @category subscriptions + * @since 3.10.0 */ export const changes = self => Effect.acquireRelease(Effect.tx(Effect.gen(function* () { const sub = yield* TxPubSub.acquireSubscriber(self.pubsub); @@ -249,7 +332,12 @@ export const changes = self => Effect.acquireRelease(Effect.tx(Effect.gen(functi * Returns a Stream of all changes to the TxSubscriptionRef, starting with the * current value followed by every subsequent update. * - * @example + * **When to use** + * + * Use to consume `TxSubscriptionRef` committed changes as a `Stream`. + * + * **Example** (Streaming changes) + * * ```ts * import { Effect, Stream, TxSubscriptionRef } from "effect" * @@ -265,17 +353,24 @@ export const changes = self => Effect.acquireRelease(Effect.tx(Effect.gen(functi * }) * ``` * - * @since 4.0.0 + * @see {@link changes} for subscribing through a transactional queue + * * @category subscriptions + * @since 3.10.0 */ export const changesStream = self => Stream.unwrap(Effect.map(changes(self), sub => Stream.fromEffectRepeat(Effect.tx(TxQueue.take(sub))))); // ============================================================================= // Guards // ============================================================================= /** - * Checks if the given value is a TxSubscriptionRef. + * Checks whether the given value is a TxSubscriptionRef. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a `TxSubscriptionRef`. + * + * **Example** (Checking transactional subscription references) * - * @example * ```ts * import { TxSubscriptionRef } from "effect" * @@ -286,8 +381,10 @@ export const changesStream = self => Stream.unwrap(Effect.map(changes(self), sub * } * ``` * - * @since 4.0.0 + * @see {@link make} for creating a `TxSubscriptionRef` + * * @category guards + * @since 4.0.0 */ export const isTxSubscriptionRef = u => hasProperty(u, TypeId); //# sourceMappingURL=TxSubscriptionRef.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/TxSubscriptionRef.js.map b/.opencode/node_modules/effect/dist/TxSubscriptionRef.js.map index 568bd3653a0f4422ae0595b1983992b7550da1bd..3138f721486d1d5b8d22a556925df746774da941 100644 --- a/.opencode/node_modules/effect/dist/TxSubscriptionRef.js.map +++ b/.opencode/node_modules/effect/dist/TxSubscriptionRef.js.map @@ -1 +1 @@ -{"version":3,"file":"TxSubscriptionRef.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","Stream","TxPubSub","TxQueue","TxRef","TypeId","TxSubscriptionRefProto","toJSON","_id","toString","pipe","arguments","make","value","gen","ref","pubsub","unbounded","self","Object","create","tx","get","modify","f","current","returnValue","newValue","set","publish","update","getAndSet","getAndUpdate","updateAndGet","changes","acquireRelease","sub","acquireSubscriber","offer","queue","releaseSubscriber","changesStream","unwrap","map","fromEffectRepeat","take","isTxSubscriptionRef","u"],"sources":["../src/TxSubscriptionRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAMA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC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M,CAAC2C,gBAAgB,CAACjD,MAAM,CAAC0B,EAAE,CAAClB,OAAO,CAAC0C,IAAI,CAACT,GAAG,CAAC,CAAC,CAAC,CAC/D,CACF;AAEH;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMU,mBAAmB,GAAIC,CAAU,IAAsC/C,WAAW,CAAC+C,CAAC,EAAE1C,MAAM,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"TxSubscriptionRef.js","names":["Effect","dual","NodeInspectSymbol","toJson","pipeArguments","hasProperty","Stream","TxPubSub","TxQueue","TxRef","TypeId","TxSubscriptionRefProto","toJSON","_id","toString","pipe","arguments","make","value","gen","ref","pubsub","unbounded","self","Object","create","tx","get","modify","f","current","returnValue","newValue","set","publish","update","getAndSet","getAndUpdate","updateAndGet","changes","acquireRelease","sub","acquireSubscriber","offer","queue","releaseSubscriber","changesStream","unwrap","map","fromEffectRepeat","take","isTxSubscriptionRef","u"],"sources":["../src/TxSubscriptionRef.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AAEpC,SAASC,iBAAiB,EAAEC,MAAM,QAAQ,kBAAkB;AAE5D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,MAAMC,MAAM,GAAG,wCAAwC;AAiDvD,MAAMC,sBAAsB,GAAmE;EAC7F,CAACT,iBAAiB,IAAC;IACjB,OAAOC,MAAM,CAAC,IAAI,CAAC;EACrB,CAAC;EACDS,MAAMA,CAAA;IACJ,OAAO;MAAEC,GAAG,EAAE;IAAmB,CAAE;EACrC,CAAC;EACDC,QA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/effect/dist/Types.d.ts b/.opencode/node_modules/effect/dist/Types.d.ts index 7251b29e6d480d141b36d0cc1f1f7cefb9c52f12..9261a1eaf6c74b6be8eeb50b5cfe51ab3212911f 100644 --- a/.opencode/node_modules/effect/dist/Types.d.ts +++ b/.opencode/node_modules/effect/dist/Types.d.ts @@ -1,54 +1,10 @@ /** - * Type-level utility types for TypeScript. - * - * This module provides generic type aliases used throughout the Effect - * ecosystem. Everything here is compile-time only — there are no runtime - * values. Use these types to manipulate object shapes, tagged unions, tuples, - * and variance markers at the type level. - * - * ## Mental model - * - * - **Tagged union**: a union of objects each having a discriminating - * `_tag: string` field. {@link Tags}, {@link ExtractTag}, and - * {@link ExcludeTag} operate on these. - * - **Reason**: a nested error pattern where an error has a `reason` field - * containing a tagged union of sub-errors. {@link ReasonOf}, - * {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work - * with this pattern. - * - **Variance markers**: {@link Covariant}, {@link Contravariant}, and - * {@link Invariant} are function-type aliases encoding variance for phantom - * type parameters. - * - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into - * a single object type for cleaner IDE tooltips. - * - **Concurrency**: {@link Concurrency} is a union type - * (`number | "unbounded" | "inherit"`) used across Effect APIs that accept - * concurrency options. - * - **Marker types**: {@link unassigned} and {@link unhandled} are branded - * interfaces used internally to represent missing or unhandled type - * parameters. - * - * ## Common tasks - * - * - Flatten an intersection for readability → {@link Simplify} - * - Check type equality at compile time → {@link Equals} / {@link EqualsWith} - * - Merge two object types → {@link MergeLeft} / {@link MergeRight} - * - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag} - * - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason} - * - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast} - * - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable} - * - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant} - * - Check if a type is a union → {@link IsUnion} - * - * ## Gotchas - * - * - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf`) - * degrades to `Array`. - * - {@link MergeRecord} is an alias for {@link MergeLeft}; prefer - * {@link MergeLeft} or {@link MergeRight} for clarity. - * - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the - * built-in `NoInfer` from TypeScript 5.4+. - * - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but - * stops at primitives and functions. + * Provides compile-time utility types for TypeScript. + * + * Everything in this module is type-level only; it does not define runtime + * values. The types are used throughout Effect to work with tuple lengths, + * object shapes, tagged unions, reason-tagged errors, mutability, exactness, + * required keys, concurrency settings, and variance markers. * * @since 4.0.0 */ @@ -60,10 +16,13 @@ type TupleOf_> = `${N}` extends `- /** * Constructs a tuple type with exactly `N` elements of type `T`. * - * - Use when you need a fixed-length array type. - * - Use instead of manually writing `[T, T, T, ...]` for longer tuples. + * **When to use** + * + * Use when you need a fixed-length array type, especially instead of manually + * writing `[T, T, T, ...]` for longer tuples. + * + * **Details** * - * Behavior: * - If `N` is a literal number, produces a tuple of that exact length. * - If `N` is the general `number` type (non-literal), degrades to `Array`. * - Negative numbers produce `never`. @@ -92,12 +51,15 @@ export type TupleOf = N extends N ? number extends N ? Arra /** * Constructs a tuple type with at least `N` elements of type `T`. * - * - Use when you need a minimum-length array type that still allows additional - * elements. - * - Useful for variadic function signatures that require a minimum arity. + * **When to use** * - * Behavior: - * - Produces a tuple with `N` fixed positions followed by `...Array`. + * Use when you need a minimum-length array type that still allows additional + * elements. This is useful for variadic function signatures that require a + * minimum arity. + * + * **Details** + * + * Produces a tuple with `N` fixed positions followed by `...Array`. * * **Example** (Minimum-length tuple) * @@ -121,8 +83,13 @@ export type TupleOfAtLeast = [...TupleOf, ...Array /** * Extracts the `_tag` string literal types from a union. * - * - Use to get all discriminant values from a tagged union type. - * - Members without a `_tag` field are ignored (produce `never`). + * **When to use** + * + * Use to get all discriminant values from a tagged union type. + * + * **Details** + * + * Members without a `_tag` field are ignored and produce `never`. * * **Example** (Extracting tags) * @@ -150,8 +117,14 @@ export type Tags = E extends { /** * Excludes members of a tagged union by their `_tag` value. * - * - Use to narrow a union by removing a specific variant. - * - Non-tagged members of the union are preserved. + * **When to use** + * + * Use to remove tagged-union members whose `_tag` matches a specific value in + * type-level code. + * + * **Details** + * + * Non-tagged members of the union are preserved. * * **Example** (Removing a variant) * @@ -179,8 +152,14 @@ export type ExcludeTag = Exclude = E extends { /** * Transforms a union type into an intersection type. * - * - Use to combine all members of a union into a single type with all - * their properties. - * - Useful in advanced generic code where you need to merge union variants. + * **When to use** + * + * Use to combine all members of a union into a single type with all their + * properties. This is useful in advanced generic code where you need to merge + * union variants. + * + * **Details** * - * Behavior: * - Uses distributive conditional types and contra-variant inference. * - If the union members are incompatible (e.g. `string | number`), the * result is `never`. @@ -228,16 +210,21 @@ export type ExtractTag = E extends { * * @see {@link IsUnion} * - * @since 2.0.0 * @category types + * @since 2.0.0 */ export type UnionToIntersection = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never; /** * Flattens an intersection type into a single object type for readability. * - * - Use to clean up IDE tooltips that show `A & B & C` instead of a merged - * object. - * - Does not change the type semantically, only its display. + * **When to use** + * + * Use to clean up IDE tooltips that show `A & B & C` instead of a merged + * object. + * + * **Details** + * + * Does not change the type semantically, only its display. * * **Example** (Simplifying an intersection) * @@ -252,8 +239,8 @@ export type UnionToIntersection = (T extends any ? (x: T) => any : never) ext * @see {@link MergeLeft} * @see {@link MergeRight} * - * @since 2.0.0 * @category types + * @since 2.0.0 */ export type Simplify = { [K in keyof A]: A[K]; @@ -261,12 +248,15 @@ export type Simplify = { /** * Determines if two types are exactly equal at the type level. * - * - Use in conditional types or type-level tests to assert type equality. - * - Resolves to `true` if `X` and `Y` are identical, `false` otherwise. + * **When to use** + * + * Use to assert type equality in conditional types or type-level tests. + * + * **Details** * - * Behavior: * - Uses the `() => T extends X ? 1 : 2` trick for exact equality, * distinguishing between `any`, `unknown`, `never`, and other types. + * - Resolves to `true` if `X` and `Y` are identical, `false` otherwise. * * **Example** (Type equality check) * @@ -280,15 +270,20 @@ export type Simplify = { * * @see {@link EqualsWith} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Equals = (() => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? true : false; /** * Determines if two types are equal, returning custom types for each case. * - * - Use when you need a type-level if/else based on type equality. - * - Returns `Y` when `A` and `B` are equal, `N` otherwise. + * **When to use** + * + * Use when you need a type-level if/else based on type equality. + * + * **Details** + * + * Returns `Y` when `A` and `B` are equal, `N` otherwise. * * **Example** (Conditional type based on equality) * @@ -301,16 +296,22 @@ export type Equals = (() => T extends X ? 1 : 2) extends () => T ext * * @see {@link Equals} * - * @since 3.15.0 * @category models + * @since 3.15.0 */ export type EqualsWith = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? Y : N; /** - * Checks if an object type contains any of the specified keys. + * Checks whether an object type contains any of the specified keys. + * + * **When to use** + * + * Use to branch type-level logic when at least one key from a candidate key set + * exists on an object type. * - * - Use to conditionally branch based on the presence of keys in a type. - * - Returns `true` if at least one key from `Key` exists in `A`, `false` - * otherwise. + * **Details** + * + * Returns `true` if at least one key from `Key` exists in `A`, `false` + * otherwise. * * **Example** (Key presence check) * @@ -321,16 +322,21 @@ export type EqualsWith = (() => T extends A ? 1 : 2) extends ( * type No = Types.Has<{ a: number }, "b" | "c"> // false * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Has = (Key extends infer K ? K extends keyof A ? true : never : never) extends never ? false : true; /** - * Merges two object types where keys from `Source` take precedence over - * `Target` on conflict. + * Left-biased merge of two object types where keys from `Source` take + * precedence over `Target` on conflict. + * + * **When to use** + * + * Use when you want left-biased merging where the first argument wins. + * + * **Details** * - * - Use when you want left-biased merging (first argument wins). - * - Implemented as `MergeRight`. + * Implemented as `MergeRight`. * * **Example** (Left-biased merge) * @@ -345,19 +351,23 @@ export type Has = (Key extends infer K ? K extends keyof * ``` * * @see {@link MergeRight} - * @see {@link MergeRecord} * @see {@link Simplify} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type MergeLeft = MergeRight; /** - * Merges two object types where keys from `Source` take precedence over - * `Target` on conflict. + * Right-biased merge of two object types where keys from `Source` take + * precedence over `Target` on conflict. + * + * **When to use** * - * - Use when you want right-biased merging (second argument wins). - * - The result is automatically simplified via {@link Simplify}. + * Use when you want right-biased merging where the second argument wins. + * + * **Details** + * + * The result is automatically simplified via {@link Simplify}. * * **Example** (Right-biased merge) * @@ -374,41 +384,21 @@ export type MergeLeft = MergeRight; * @see {@link MergeLeft} * @see {@link Simplify} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type MergeRight = Simplify; /** - * Alias for {@link MergeLeft}. Merges two object types where keys from - * `Source` take precedence on conflict. - * - * Prefer {@link MergeLeft} or {@link MergeRight} for clarity about which - * side wins. - * - * **Example** (Merging records) - * - * ```ts - * import type { Types } from "effect" + * Describes the concurrency level for Effect operations that run multiple + * effects. * - * type Result = Types.MergeRecord< - * { a: number; b: number }, - * { a: string; c: boolean } - * > - * // { a: number; b: number; c: boolean } - * ``` + * **When to use** * - * @see {@link MergeLeft} - * @see {@link MergeRight} + * Use to type options that control how many effects may run at the same time. * - * @since 2.0.0 - * @category models - */ -export type MergeRecord = MergeLeft; -/** - * Describes the concurrency level for Effect operations that run multiple - * effects. + * **Details** * * - `number` — run at most N effects concurrently. * - `"unbounded"` — run all effects concurrently with no limit. @@ -425,16 +415,21 @@ export type MergeRecord = MergeLeft; * const inherit: Types.Concurrency = "inherit" * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Concurrency = number | "unbounded" | "inherit"; /** * Removes `readonly` from all properties of `T`. Supports arrays, tuples, * and records. * - * - Use when you need a mutable version of a readonly type. - * - Only affects the top level; nested properties remain readonly. + * **When to use** + * + * Use when you need a mutable version of a readonly type. + * + * **Details** + * + * Only affects the top level; nested properties remain readonly. * * **Example** (Shallow mutable conversion) * @@ -457,8 +452,8 @@ export type Concurrency = number | "unbounded" | "inherit"; * * @see {@link DeepMutable} * - * @since 2.0.0 * @category types + * @since 2.0.0 */ export type Mutable = { -readonly [P in keyof T]: T[P]; @@ -467,9 +462,14 @@ export type Mutable = { * Recursively removes `readonly` from all properties, including nested * objects, arrays, `Map`, and `Set`. * - * - Use when you need a fully mutable version of a deeply readonly type. - * - Recursion stops at primitives (`string`, `number`, `boolean`, `bigint`, - * `symbol`) and functions. + * **When to use** + * + * Use when you need a fully mutable version of a deeply readonly type. + * + * **Details** + * + * Recursion stops at primitives (`string`, `number`, `boolean`, `bigint`, + * `symbol`) and functions. * * **Example** (Deep mutable conversion) * @@ -485,8 +485,8 @@ export type Mutable = { * * @see {@link Mutable} * - * @since 3.1.0 * @category types + * @since 3.1.0 */ export type DeepMutable = T extends ReadonlyMap ? Map, DeepMutable> : T extends ReadonlySet ? Set> : T extends string | number | boolean | bigint | symbol | Function ? T : { -readonly [K in keyof T]: DeepMutable; @@ -495,9 +495,14 @@ export type DeepMutable = T extends ReadonlyMap ? Map = T extends ReadonlyMap ? Map("a", "b") * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type NoInfer = [A][A extends any ? 0 : never]; /** * Function-type alias encoding invariant variance for a phantom type * parameter. * - * - Use as a phantom field type to make a type parameter invariant (neither - * covariant nor contravariant). - * - A value of type `Invariant` cannot be assigned to `Invariant` - * unless `A` and `B` are the same type. + * **When to use** + * + * Use as a phantom field type to make a type parameter invariant, neither + * covariant nor contravariant. + * + * **Details** + * + * A value of type `Invariant` cannot be assigned to `Invariant` unless + * `A` and `B` are the same type. * * **Example** (Invariant phantom type) * @@ -538,20 +548,27 @@ export type NoInfer = [A][A extends any ? 0 : never]; * @see {@link Covariant} * @see {@link Contravariant} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Invariant = (_: A) => A; /** * Namespace for {@link Invariant}-related utilities. * + * **When to use** + * + * Use when referring to type-level helpers nested under `Invariant`. + * * @since 3.9.0 - * @category models */ export declare namespace Invariant { /** * Extracts the type parameter `A` from an `Invariant`. * + * **When to use** + * + * Use to recover the carried type from an invariant phantom marker. + * * **Example** (Extracting the inner type) * * ```ts @@ -563,8 +580,8 @@ export declare namespace Invariant { * * @see {@link Invariant} * - * @since 3.9.0 * @category models + * @since 3.9.0 */ type Type = A extends Invariant ? U : never; } @@ -572,10 +589,15 @@ export declare namespace Invariant { * Function-type alias encoding covariant variance for a phantom type * parameter. * - * - Use as a phantom field type to make a type parameter covariant - * (output position). - * - `Covariant` is assignable to `Covariant` when `A extends B` - * (subtype direction). + * **When to use** + * + * Use as a phantom field type to make a type parameter covariant in output + * position. + * + * **Details** + * + * `Covariant` is assignable to `Covariant` when `A extends B`, following + * the subtype direction. * * **Example** (Covariant phantom type) * @@ -592,20 +614,27 @@ export declare namespace Invariant { * @see {@link Contravariant} * @see {@link Invariant} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Covariant = (_: never) => A; /** * Namespace for {@link Covariant}-related utilities. * + * **When to use** + * + * Use when referring to type-level helpers nested under `Covariant`. + * * @since 3.9.0 - * @category models */ export declare namespace Covariant { /** * Extracts the type parameter `A` from a `Covariant`. * + * **When to use** + * + * Use to recover the carried type from a covariant phantom marker. + * * **Example** (Extracting the inner type) * * ```ts @@ -617,8 +646,8 @@ export declare namespace Covariant { * * @see {@link Covariant} * - * @since 3.9.0 * @category models + * @since 3.9.0 */ type Type = A extends Covariant ? U : never; } @@ -626,10 +655,15 @@ export declare namespace Covariant { * Function-type alias encoding contravariant variance for a phantom type * parameter. * - * - Use as a phantom field type to make a type parameter contravariant - * (input position). - * - `Contravariant` is assignable to `Contravariant` when `B extends A` - * (supertype direction). + * **When to use** + * + * Use as a phantom field type to make a type parameter contravariant in input + * position. + * + * **Details** + * + * `Contravariant` is assignable to `Contravariant` when `B extends A`, + * following the supertype direction. * * **Example** (Contravariant phantom type) * @@ -646,20 +680,27 @@ export declare namespace Covariant { * @see {@link Covariant} * @see {@link Invariant} * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Contravariant = (_: A) => void; /** * Namespace for {@link Contravariant}-related utilities. * + * **When to use** + * + * Use when referring to type-level helpers nested under `Contravariant`. + * * @since 3.9.0 - * @category models */ export declare namespace Contravariant { /** * Extracts the type parameter `A` from a `Contravariant`. * + * **When to use** + * + * Use to recover the carried type from a contravariant phantom marker. + * * **Example** (Extracting the inner type) * * ```ts @@ -671,8 +712,8 @@ export declare namespace Contravariant { * * @see {@link Contravariant} * - * @since 3.9.0 * @category models + * @since 3.9.0 */ type Type = A extends Contravariant ? U : never; } @@ -680,15 +721,24 @@ export declare namespace Contravariant { * Conditional type that returns `void` if `S` is an empty object type, * otherwise returns `S`. * - * @since 4.0.0 + * **When to use** + * + * Use to erase an empty object type from an API result or parameter position. + * * @category types + * @since 3.19.20 */ export type VoidIfEmpty = keyof S extends never ? void : S; /** * Excludes function types from a union, keeping only non-function members. * - * - Use to filter out callable types from a union. - * - Returns `never` if the entire union consists of function types. + * **When to use** + * + * Use to filter out callable types from a union. + * + * **Details** + * + * Returns `never` if the entire union consists of function types. * * **Example** (Filtering out functions) * @@ -699,16 +749,20 @@ export type VoidIfEmpty = keyof S extends never ? void : S; * // string | number * ``` * - * @since 2.0.0 * @category types + * @since 2.0.0 */ export type NotFunction = T extends Function ? never : T; /** * Constrains a type to prevent excess properties not present in `T`. * - * - Use in generic functions to catch accidental extra properties at - * compile time. - * - Extra keys from `U` that are not in `T` are mapped to `never`. + * **When to use** + * + * Use to catch accidental extra properties in generic functions at compile time. + * + * **Details** + * + * Extra keys from `U` that are not in `T` are mapped to `never`. * * **Example** (Preventing extra properties) * @@ -722,20 +776,27 @@ export type NotFunction = T extends Function ? never : T; * // { a: number; b: string; readonly c: never } * ``` * - * @since 3.9.0 * @category types + * @since 3.9.0 */ export type NoExcessProperties = T & Readonly, never>>; /** * Branded marker interface representing an unassigned type parameter. * + * **When to use** + * + * Use when Effect's type-level machinery needs to represent a type parameter + * that has not been assigned yet. + * + * **Details** + * * Used internally by the Effect type system to indicate that a type parameter * has not been assigned a concrete type. * * @see {@link unhandled} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export interface unassigned { readonly _: unique symbol; @@ -743,13 +804,20 @@ export interface unassigned { /** * Branded marker interface representing an unhandled error type. * + * **When to use** + * + * Use when Effect's type-level machinery needs to represent an error type that + * has not been handled yet. + * + * **Details** + * * Used internally by the Effect type system to indicate that an error type * has not been handled. * * @see {@link unassigned} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export interface unhandled { readonly _: unique symbol; @@ -757,12 +825,16 @@ export interface unhandled { /** * Checks whether a type `T` is a union type. * - * - Returns `true` if `T` is a union of two or more members. - * - Returns `false` for single types, `never`, or `any`. + * **When to use** + * + * Use to branch type-level logic depending on whether a type is a union. + * + * **Details** * - * Behavior: * - Compares `[T]` against `[UnionToIntersection]`. If they differ, `T` * must be a union. + * - Returns `true` if `T` is a union of two or more members. + * - Returns `false` for single types, `never`, or `any`. * * **Example** (Detecting union types) * @@ -775,16 +847,21 @@ export interface unhandled { * * @see {@link UnionToIntersection} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type IsUnion = [T] extends [UnionToIntersection] ? false : true; /** * Extracts the `reason` type from an error that has a `reason` field. * - * - Use with the nested error pattern where errors wrap sub-errors in a - * `reason` field. - * - Returns `never` if `E` has no `reason` field. + * **When to use** + * + * Use when an error type stores nested sub-errors in a `reason` field and you + * need that field's full union type as a standalone type. + * + * **Details** + * + * Returns `never` if `E` has no `reason` field. * * **Example** (Extracting reason types) * @@ -803,8 +880,8 @@ export type IsUnion = [T] extends [UnionToIntersection] ? false : true; * @see {@link ExtractReason} * @see {@link ExcludeReason} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type ReasonOf = E extends { readonly reason: infer R; @@ -812,8 +889,15 @@ export type ReasonOf = E extends { /** * Extracts the `_tag` values from the `reason` type of an error. * - * - Shorthand for `Tags>`. - * - Returns `never` if `E` has no `reason` field or the reason has no `_tag`. + * **When to use** + * + * Use to get the discriminant values available inside a nested `reason` + * error union. + * + * **Details** + * + * This is shorthand for `Tags>`. It returns `never` if `E` has no + * `reason` field or the reason has no `_tag`. * * **Example** (Getting reason tags) * @@ -831,8 +915,8 @@ export type ReasonOf = E extends { * @see {@link ReasonOf} * @see {@link ExtractReason} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type ReasonTags = E extends { readonly reason: { @@ -843,8 +927,14 @@ export type ReasonTags = E extends { * Extracts a specific reason variant by its `_tag` from an error's `reason` * field. * - * - Use to narrow down to a single reason variant from a nested error type. - * - Returns `never` if `E` has no matching reason variant. + * **When to use** + * + * Use when you need the nested reason variant type itself, selected by `_tag`, + * rather than the enclosing error type. + * + * **Details** + * + * Returns `never` if `E` has no matching reason variant. * * **Example** (Extracting a reason variant) * @@ -863,8 +953,8 @@ export type ReasonTags = E extends { * @see {@link ReasonOf} * @see {@link ReasonTags} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type ExtractReason = E extends { readonly reason: infer R; @@ -875,8 +965,14 @@ export type ExtractReason = E extends { * Narrows a specific reason variant by its `_tag` from an error's `reason` * field. * - * - Use to narrow down to a single reason variant from a nested error type. - * - Returns `never` if `E` has no matching reason variant. + * **When to use** + * + * Use to preserve the original error shape while narrowing its nested reason + * field to the matching variant. + * + * **Details** + * + * Returns `never` if `E` has no matching reason variant. * * **Example** (Narrowing a reason variant) * @@ -895,8 +991,8 @@ export type ExtractReason = E extends { * @see {@link ReasonOf} * @see {@link ReasonTags} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type NarrowReason = E extends { readonly reason: infer R; @@ -909,9 +1005,14 @@ export type NarrowReason = E extends { * Narrows an error's `reason` field to exclude a specific reason variant by * its `_tag`. * - * - Use to narrow the error to only the remaining reason variants after - * excluding the matched one. - * - Returns `never` if `E` has no `reason` field or no remaining variants. + * **When to use** + * + * Use to narrow the error to only the remaining reason variants after + * excluding the matched one. + * + * **Details** + * + * Returns `never` if `E` has no `reason` field or no remaining variants. * * **Example** (Omitting a reason variant) * @@ -931,8 +1032,8 @@ export type NarrowReason = E extends { * @see {@link ReasonOf} * @see {@link ReasonTags} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type OmitReason = E extends { readonly reason: infer R; @@ -945,8 +1046,14 @@ export type OmitReason = E extends { * Excludes a specific reason variant by its `_tag` from an error's `reason` * field. * - * - Use to remove a handled reason variant from an error's reason union. - * - Returns `never` if `E` has no `reason` field. + * **When to use** + * + * Use when you need the remaining nested reason union type after removing + * variants handled by `_tag`, rather than the enclosing error type. + * + * **Details** + * + * Returns `never` if `E` has no `reason` field. * * **Example** (Excluding a reason variant) * @@ -965,8 +1072,8 @@ export type OmitReason = E extends { * @see {@link ReasonOf} * @see {@link ReasonTags} * - * @since 4.0.0 * @category types + * @since 4.0.0 */ export type ExcludeReason = E extends { readonly reason: infer R; @@ -976,8 +1083,12 @@ export type ExcludeReason = E extends { /** * Extracts the required keys from a type. * - * @since 4.0.0 + * **When to use** + * + * Use to derive the keys whose properties must be present on an object type. + * * @category types + * @since 4.0.0 */ export type RequiredKeys = { [K in keyof T]-?: {} extends Pick ? never : K; diff --git a/.opencode/node_modules/effect/dist/Types.d.ts.map b/.opencode/node_modules/effect/dist/Types.d.ts.map index a2c2d55bd0cd541935243b9d5d7ed71a75de72f1..c4d6da798bb58fb85c2df043650f073d46a5cb95 100644 --- a/.opencode/node_modules/effect/dist/Types.d.ts.map +++ b/.opencode/node_modules/effect/dist/Types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH;;;GAGG;AACH,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,SAAS,IAAI,MAAM,EAAE,GAAG,KAAK,GAC9F,CAAC,CAAC,QAA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ef71c173b8118680513a09e557cefbc21b3988bb 100644 --- a/.opencode/node_modules/effect/dist/Types.js +++ b/.opencode/node_modules/effect/dist/Types.js @@ -1,54 +1,10 @@ /** - * Type-level utility types for TypeScript. + * Provides compile-time utility types for TypeScript. * - * This module provides generic type aliases used throughout the Effect - * ecosystem. Everything here is compile-time only — there are no runtime - * values. Use these types to manipulate object shapes, tagged unions, tuples, - * and variance markers at the type level. - * - * ## Mental model - * - * - **Tagged union**: a union of objects each having a discriminating - * `_tag: string` field. {@link Tags}, {@link ExtractTag}, and - * {@link ExcludeTag} operate on these. - * - **Reason**: a nested error pattern where an error has a `reason` field - * containing a tagged union of sub-errors. {@link ReasonOf}, - * {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work - * with this pattern. - * - **Variance markers**: {@link Covariant}, {@link Contravariant}, and - * {@link Invariant} are function-type aliases encoding variance for phantom - * type parameters. - * - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into - * a single object type for cleaner IDE tooltips. - * - **Concurrency**: {@link Concurrency} is a union type - * (`number | "unbounded" | "inherit"`) used across Effect APIs that accept - * concurrency options. - * - **Marker types**: {@link unassigned} and {@link unhandled} are branded - * interfaces used internally to represent missing or unhandled type - * parameters. - * - * ## Common tasks - * - * - Flatten an intersection for readability → {@link Simplify} - * - Check type equality at compile time → {@link Equals} / {@link EqualsWith} - * - Merge two object types → {@link MergeLeft} / {@link MergeRight} - * - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag} - * - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason} - * - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast} - * - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable} - * - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant} - * - Check if a type is a union → {@link IsUnion} - * - * ## Gotchas - * - * - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf`) - * degrades to `Array`. - * - {@link MergeRecord} is an alias for {@link MergeLeft}; prefer - * {@link MergeLeft} or {@link MergeRight} for clarity. - * - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the - * built-in `NoInfer` from TypeScript 5.4+. - * - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but - * stops at primitives and functions. + * Everything in this module is type-level only; it does not define runtime + * values. The types are used throughout Effect to work with tuple lengths, + * object shapes, tagged unions, reason-tagged errors, mutability, exactness, + * required keys, concurrency settings, and variance markers. * * @since 4.0.0 */ diff --git a/.opencode/node_modules/effect/dist/UndefinedOr.d.ts b/.opencode/node_modules/effect/dist/UndefinedOr.d.ts index 1e01d48a736ff1330ab19a0022f66150058af6e5..304e36bb7f46b3861767d5fdb525fc856016c6b1 100644 --- a/.opencode/node_modules/effect/dist/UndefinedOr.d.ts +++ b/.opencode/node_modules/effect/dist/UndefinedOr.d.ts @@ -1,29 +1,12 @@ /** - * This module provides small, allocation-free utilities for working with values of type - * `A | undefined`, where `undefined` means "no value". - * - * Why not `Option`? - * In TypeScript, `Option` is often unnecessary. If `undefined` already models absence - * in your domain, using `A | undefined` keeps types simple, avoids extra wrappers, and - * reduces overhead. The key is that `A` itself must not include `undefined`; in this - * module `undefined` is reserved to mean "no value". - * - * When to use `A | undefined`: - * - Absence can be represented by `undefined` in your domain model. - * - You do not need to distinguish between "no value" and "value is undefined". - * - You want straightforward ergonomics and zero extra allocations. - * - * When to prefer `Option`: - * - You must distinguish `None` from `Some(undefined)` (that is, `undefined` is a valid - * payload and carries meaning on its own). - * - You need a tagged representation for serialization or pattern matching across - * boundaries where `undefined` would be ambiguous. - * - You want the richer `Option` API and are comfortable with the extra wrapper. - * - * Lawfulness note: - * All helpers treat `undefined` as absence. Do not use these utilities with payloads - * where `A` can itself be `undefined`, or you will lose information. If you need to - * carry `undefined` as a valid payload, use `Option` instead. + * Works with values that may be `undefined`. + * + * Use this module for plain TypeScript values of type `A | undefined` when + * `undefined` is the only absence marker. It is a small alternative to wrapping + * values in `Option` when your data already uses `undefined` to mean "no + * value". The module includes helpers for mapping defined values, matching both + * cases, throwing when a value is missing, adapting throwing functions, and + * building reducers or combiners. * * @since 4.0.0 */ @@ -31,23 +14,77 @@ import * as Combiner from "./Combiner.ts"; import type { LazyArg } from "./Function.ts"; import * as Reducer from "./Reducer.ts"; /** + * Maps a defined value with `f`, or returns `undefined` unchanged. + * + * **When to use** + * + * Use to apply a pure transformation to an `A | undefined` value while + * preserving `undefined` as absence. + * + * @see {@link match} when you need to handle the `undefined` case explicitly + * + * @category mapping * @since 4.0.0 */ export declare const map: { /** + * Maps a defined value with `f`, or returns `undefined` unchanged. + * + * **When to use** + * + * Use to apply a pure transformation to an `A | undefined` value while + * preserving `undefined` as absence. + * + * @see {@link match} when you need to handle the `undefined` case explicitly + * + * @category mapping * @since 4.0.0 */ (f: (a: A) => B): (self: A | undefined) => B | undefined; /** + * Maps a defined value with `f`, or returns `undefined` unchanged. + * + * **When to use** + * + * Use to apply a pure transformation to an `A | undefined` value while + * preserving `undefined` as absence. + * + * @see {@link match} when you need to handle the `undefined` case explicitly + * + * @category mapping * @since 4.0.0 */ (self: A | undefined, f: (a: A) => B): B | undefined; }; /** + * Pattern matches on an `A | undefined` value, running `onDefined` when the + * value is present or evaluating `onUndefined` when the value is `undefined`. + * + * **When to use** + * + * Use when you need to turn an `A | undefined` into a non-optional result by + * handling both the defined and undefined branches in one expression. + * + * @see {@link map} for transforming defined values while preserving `undefined` + * @see {@link getOrThrowWith} for throwing when the value is `undefined` instead of returning a fallback branch + * + * @category pattern matching * @since 4.0.0 */ export declare const match: { /** + * Pattern matches on an `A | undefined` value, running `onDefined` when the + * value is present or evaluating `onUndefined` when the value is `undefined`. + * + * **When to use** + * + * Use when you need to turn an `A | undefined` into a non-optional result by + * handling both the defined and undefined branches in one expression. + * + * @see {@link map} for transforming defined values while preserving `undefined` + * @see {@link getOrThrowWith} for throwing when the value is `undefined` instead of returning a fallback branch + * + * @category pattern matching * @since 4.0.0 */ (options: { @@ -55,6 +92,18 @@ export declare const match: { readonly onDefined: (a: A) => C; }): (self: A | undefined) => B | C; /** + * Pattern matches on an `A | undefined` value, running `onDefined` when the + * value is present or evaluating `onUndefined` when the value is `undefined`. + * + * **When to use** + * + * Use when you need to turn an `A | undefined` into a non-optional result by + * handling both the defined and undefined branches in one expression. + * + * @see {@link map} for transforming defined values while preserving `undefined` + * @see {@link getOrThrowWith} for throwing when the value is `undefined` instead of returning a fallback branch + * + * @category pattern matching * @since 4.0.0 */ (self: A | undefined, options: { @@ -63,23 +112,105 @@ export declare const match: { }): B | C; }; /** + * Returns the defined value, or throws the value produced by `onUndefined` + * when the input is `undefined`. + * + * **When to use** + * + * Use when you need fail-fast unwrapping of an `A | undefined` value and want + * to provide the thrown error for the undefined case. + * + * **Details** + * + * Defined values are returned unchanged. When the input is `undefined`, + * `onUndefined` is called and its result is thrown. + * + * @see {@link getOrThrow} for the default-error sibling + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ export declare const getOrThrowWith: { /** + * Returns the defined value, or throws the value produced by `onUndefined` + * when the input is `undefined`. + * + * **When to use** + * + * Use when you need fail-fast unwrapping of an `A | undefined` value and want + * to provide the thrown error for the undefined case. + * + * **Details** + * + * Defined values are returned unchanged. When the input is `undefined`, + * `onUndefined` is called and its result is thrown. + * + * @see {@link getOrThrow} for the default-error sibling + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ (onUndefined: () => unknown): (self: A | undefined) => A; /** + * Returns the defined value, or throws the value produced by `onUndefined` + * when the input is `undefined`. + * + * **When to use** + * + * Use when you need fail-fast unwrapping of an `A | undefined` value and want + * to provide the thrown error for the undefined case. + * + * **Details** + * + * Defined values are returned unchanged. When the input is `undefined`, + * `onUndefined` is called and its result is thrown. + * + * @see {@link getOrThrow} for the default-error sibling + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ (self: A | undefined, onUndefined: () => unknown): A; }; /** + * Returns the defined value, or throws a default `Error` when the input is + * `undefined`. + * + * **When to use** + * + * Use when you need to unwrap a value that should already be defined and a + * generic missing-value `Error` is acceptable. + * + * **Details** + * + * Defined inputs are returned unchanged. `undefined` throws + * `new Error("getOrThrow called on a undefined")`. + * + * @see {@link getOrThrowWith} for the sibling that lets callers choose the thrown value + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ export declare const getOrThrow: (self: A | undefined) => A; /** + * Converts a throwing function into one that returns successful results + * unchanged and returns `undefined` when the function throws. + * + * **When to use** + * + * Use to adapt exception-throwing functions when `undefined` is the absence + * value you want to return for failures. + * + * **Gotchas** + * + * Thrown values are discarded. If the wrapped function can successfully return + * `undefined`, that success is indistinguishable from a thrown failure. + * + * @category converting * @since 4.0.0 */ export declare const liftThrowable: , B>(f: (...a: A) => B) => (...a: A) => B | undefined; @@ -87,62 +218,65 @@ export declare const liftThrowable: , B>(f: (.. * Creates a `Reducer` for `UndefinedOr` that prioritizes the first non-`undefined` * value and combines values when both operands are present. * - * This `Reducer` is useful for scenarios where you want to: - * - Take the first available value (like a fallback chain) - * - Combine values when both are present - * - Maintain a `undefined` state only when all values are `undefined` + * **When to use** + * + * Use when you need to reduce values that may be `undefined`, keeping the + * first defined value as a fallback and combining only when both operands are + * defined. * - * The `initialValue` of the `Reducer` is `undefined`. + * **Details** * - * **Behavior:** - * - `undefined` + `undefined` = `undefined` - * - `a` + `undefined` = `a` (first value wins) - * - `undefined` + `b` = `b` (second value wins) - * - `a` + `b` = `a + b` (values combined) + * Combining `undefined` with `undefined` returns `undefined`. Combining a + * defined value with `undefined` keeps the defined value, so the first defined + * value wins when only one side is present. When both values are defined, they + * are combined with `combiner.combine`. The reducer's initial value is + * `undefined`. * + * @category constructors * @since 4.0.0 */ export declare function makeReducer(combiner: Combiner.Combiner): Reducer.Reducer; /** - * Creates a `Combiner` for `UndefinedOr` that only combines values when both - * operands are not `undefined`, failing fast if either is `undefined`. + * Creates a `Combiner` for `A | undefined` that combines values only when both + * operands are defined. * - * This `Combiner` is useful for scenarios where you need both values to be - * present to perform an operation, such as: - * - Mathematical operations that require two operands - * - Data validation that needs both fields - * - Operations that can't proceed with partial data + * **When to use** * - * **Behavior:** - * - `undefined` + `undefined` = `undefined` - * - `a` + `undefined` = `undefined` (fails fast) - * - `undefined` + `b` = `undefined` (fails fast) - * - `a` + `b` = `a + b` (values combined) + * Use to lift a `Combiner` so any `undefined` operand makes the combined result + * `undefined`. + * + * **Details** + * + * - `undefined` combined with any value returns `undefined` + * - Any value combined with `undefined` returns `undefined` + * - `a` combined with `b` returns `combiner.combine(a, b)` * * @see {@link makeReducerFailFast} if you have a `Reducer` and want to lift it * to `UndefinedOr` values. * + * @category constructors * @since 4.0.0 */ export declare function makeCombinerFailFast(combiner: Combiner.Combiner): Combiner.Combiner; /** - * Creates a `Reducer` for `UndefinedOr` by wrapping an existing `Reducer` with - * fail-fast semantics for `UndefinedOr` values. + * Creates a `Reducer` for `A | undefined` by wrapping an existing reducer with + * fail-fast semantics. + * + * **When to use** * - * This function lifts a regular `Reducer` into the `UndefinedOr` context, allowing - * you to use existing `Reducer`s with `UndefinedOr` values while maintaining the - * fail-fast behavior where any `undefined` value causes the entire reduction to fail. + * Use to wrap an existing `Reducer` so any `undefined` value aborts the entire + * reduction result. * - * The initial value is `some(reducer.initialValue)`, ensuring the `Reducer` - * starts with a valid `UndefinedOr` value. + * **Details** * - * **Behavior:** - * - Fails fast (returns `undefined`) if any operand is `undefined` - * - Uses the underlying reducer's combine logic when both values are present + * - Initial value is the wrapped reducer's `initialValue` + * - Combining two defined values delegates to the wrapped reducer + * - If the accumulator or next value is `undefined`, the reduction returns `undefined` * * @see {@link makeCombinerFailFast} if you only have a `Combiner` and want to * lift it to `UndefinedOr` values. * + * @category constructors * @since 4.0.0 */ export declare function makeReducerFailFast(reducer: Reducer.Reducer): Reducer.Reducer; diff --git a/.opencode/node_modules/effect/dist/UndefinedOr.d.ts.map b/.opencode/node_modules/effect/dist/UndefinedOr.d.ts.map index c4b19e8276d83cf2ac654ff5a23226b951ab9189..94d8826ffb97afbaec08b9b7a79ac511c38e7822 100644 --- a/.opencode/node_modules/effect/dist/UndefinedOr.d.ts.map +++ b/.opencode/node_modules/effect/dist/UndefinedOr.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"UndefinedOr.d.ts","sourceRoot":"","sources":["../src/UndefinedOr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE;IAChB;;OAEG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,GAAG,SAAS,CAAA;IAC9D;;OAEG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;CACQ,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE;IAClB;;OAEG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EACV,OAAO,EAAE;QACP,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;QAChC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;KAChC,GACA,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,GAAG,CAAC,CAAA;IACjC;;OAEG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EACV,IAAI,EAAE,CAAC,G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,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAKxG;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAWlG"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/UndefinedOr.js b/.opencode/node_modules/effect/dist/UndefinedOr.js index 40d25e298e544fc32df3ab740df63e707b6c0e58..acbbb67b92d839ec20b4b590c7d74060546534e8 100644 --- a/.opencode/node_modules/effect/dist/UndefinedOr.js +++ b/.opencode/node_modules/effect/dist/UndefinedOr.js @@ -1,29 +1,12 @@ /** - * This module provides small, allocation-free utilities for working with values of type - * `A | undefined`, where `undefined` means "no value". - * - * Why not `Option`? - * In TypeScript, `Option` is often unnecessary. If `undefined` already models absence - * in your domain, using `A | undefined` keeps types simple, avoids extra wrappers, and - * reduces overhead. The key is that `A` itself must not include `undefined`; in this - * module `undefined` is reserved to mean "no value". - * - * When to use `A | undefined`: - * - Absence can be represented by `undefined` in your domain model. - * - You do not need to distinguish between "no value" and "value is undefined". - * - You want straightforward ergonomics and zero extra allocations. - * - * When to prefer `Option`: - * - You must distinguish `None` from `Some(undefined)` (that is, `undefined` is a valid - * payload and carries meaning on its own). - * - You need a tagged representation for serialization or pattern matching across - * boundaries where `undefined` would be ambiguous. - * - You want the richer `Option` API and are comfortable with the extra wrapper. - * - * Lawfulness note: - * All helpers treat `undefined` as absence. Do not use these utilities with payloads - * where `A` can itself be `undefined`, or you will lose information. If you need to - * carry `undefined` as a valid payload, use `Option` instead. + * Works with values that may be `undefined`. + * + * Use this module for plain TypeScript values of type `A | undefined` when + * `undefined` is the only absence marker. It is a small alternative to wrapping + * values in `Option` when your data already uses `undefined` to mean "no + * value". The module includes helpers for mapping defined values, matching both + * cases, throwing when a value is missing, adapting throwing functions, and + * building reducers or combiners. * * @since 4.0.0 */ @@ -31,10 +14,32 @@ import * as Combiner from "./Combiner.js"; import { dual } from "./Function.js"; import * as Reducer from "./Reducer.js"; /** + * Maps a defined value with `f`, or returns `undefined` unchanged. + * + * **When to use** + * + * Use to apply a pure transformation to an `A | undefined` value while + * preserving `undefined` as absence. + * + * @see {@link match} when you need to handle the `undefined` case explicitly + * + * @category mapping * @since 4.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => self === undefined ? undefined : f(self)); /** + * Pattern matches on an `A | undefined` value, running `onDefined` when the + * value is present or evaluating `onUndefined` when the value is `undefined`. + * + * **When to use** + * + * Use when you need to turn an `A | undefined` into a non-optional result by + * handling both the defined and undefined branches in one expression. + * + * @see {@link map} for transforming defined values while preserving `undefined` + * @see {@link getOrThrowWith} for throwing when the value is `undefined` instead of returning a fallback branch + * + * @category pattern matching * @since 4.0.0 */ export const match = /*#__PURE__*/dual(2, (self, { @@ -42,6 +47,23 @@ export const match = /*#__PURE__*/dual(2, (self, { onUndefined }) => self === undefined ? onUndefined() : onDefined(self)); /** + * Returns the defined value, or throws the value produced by `onUndefined` + * when the input is `undefined`. + * + * **When to use** + * + * Use when you need fail-fast unwrapping of an `A | undefined` value and want + * to provide the thrown error for the undefined case. + * + * **Details** + * + * Defined values are returned unchanged. When the input is `undefined`, + * `onUndefined` is called and its result is thrown. + * + * @see {@link getOrThrow} for the default-error sibling + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ export const getOrThrowWith = /*#__PURE__*/dual(2, (self, onUndefined) => { @@ -51,10 +73,41 @@ export const getOrThrowWith = /*#__PURE__*/dual(2, (self, onUndefined) => { throw onUndefined(); }); /** + * Returns the defined value, or throws a default `Error` when the input is + * `undefined`. + * + * **When to use** + * + * Use when you need to unwrap a value that should already be defined and a + * generic missing-value `Error` is acceptable. + * + * **Details** + * + * Defined inputs are returned unchanged. `undefined` throws + * `new Error("getOrThrow called on a undefined")`. + * + * @see {@link getOrThrowWith} for the sibling that lets callers choose the thrown value + * @see {@link match} for handling defined and undefined cases without throwing + * + * @category getters * @since 4.0.0 */ export const getOrThrow = /*#__PURE__*/getOrThrowWith(() => new Error("getOrThrow called on a undefined")); /** + * Converts a throwing function into one that returns successful results + * unchanged and returns `undefined` when the function throws. + * + * **When to use** + * + * Use to adapt exception-throwing functions when `undefined` is the absence + * value you want to return for failures. + * + * **Gotchas** + * + * Thrown values are discarded. If the wrapped function can successfully return + * `undefined`, that success is indistinguishable from a thrown failure. + * + * @category converting * @since 4.0.0 */ export const liftThrowable = f => (...a) => { @@ -68,19 +121,21 @@ export const liftThrowable = f => (...a) => { * Creates a `Reducer` for `UndefinedOr` that prioritizes the first non-`undefined` * value and combines values when both operands are present. * - * This `Reducer` is useful for scenarios where you want to: - * - Take the first available value (like a fallback chain) - * - Combine values when both are present - * - Maintain a `undefined` state only when all values are `undefined` + * **When to use** + * + * Use when you need to reduce values that may be `undefined`, keeping the + * first defined value as a fallback and combining only when both operands are + * defined. * - * The `initialValue` of the `Reducer` is `undefined`. + * **Details** * - * **Behavior:** - * - `undefined` + `undefined` = `undefined` - * - `a` + `undefined` = `a` (first value wins) - * - `undefined` + `b` = `b` (second value wins) - * - `a` + `b` = `a + b` (values combined) + * Combining `undefined` with `undefined` returns `undefined`. Combining a + * defined value with `undefined` keeps the defined value, so the first defined + * value wins when only one side is present. When both values are defined, they + * are combined with `combiner.combine`. The reducer's initial value is + * `undefined`. * + * @category constructors * @since 4.0.0 */ export function makeReducer(combiner) { @@ -91,24 +146,24 @@ export function makeReducer(combiner) { }, undefined); } /** - * Creates a `Combiner` for `UndefinedOr` that only combines values when both - * operands are not `undefined`, failing fast if either is `undefined`. + * Creates a `Combiner` for `A | undefined` that combines values only when both + * operands are defined. * - * This `Combiner` is useful for scenarios where you need both values to be - * present to perform an operation, such as: - * - Mathematical operations that require two operands - * - Data validation that needs both fields - * - Operations that can't proceed with partial data + * **When to use** * - * **Behavior:** - * - `undefined` + `undefined` = `undefined` - * - `a` + `undefined` = `undefined` (fails fast) - * - `undefined` + `b` = `undefined` (fails fast) - * - `a` + `b` = `a + b` (values combined) + * Use to lift a `Combiner` so any `undefined` operand makes the combined result + * `undefined`. + * + * **Details** + * + * - `undefined` combined with any value returns `undefined` + * - Any value combined with `undefined` returns `undefined` + * - `a` combined with `b` returns `combiner.combine(a, b)` * * @see {@link makeReducerFailFast} if you have a `Reducer` and want to lift it * to `UndefinedOr` values. * + * @category constructors * @since 4.0.0 */ export function makeCombinerFailFast(combiner) { @@ -118,23 +173,24 @@ export function makeCombinerFailFast(combiner) { }); } /** - * Creates a `Reducer` for `UndefinedOr` by wrapping an existing `Reducer` with - * fail-fast semantics for `UndefinedOr` values. + * Creates a `Reducer` for `A | undefined` by wrapping an existing reducer with + * fail-fast semantics. + * + * **When to use** * - * This function lifts a regular `Reducer` into the `UndefinedOr` context, allowing - * you to use existing `Reducer`s with `UndefinedOr` values while maintaining the - * fail-fast behavior where any `undefined` value causes the entire reduction to fail. + * Use to wrap an existing `Reducer` so any `undefined` value aborts the entire + * reduction result. * - * The initial value is `some(reducer.initialValue)`, ensuring the `Reducer` - * starts with a valid `UndefinedOr` value. + * **Details** * - * **Behavior:** - * - Fails fast (returns `undefined`) if any operand is `undefined` - * - Uses the underlying reducer's combine logic when both values are present + * - Initial value is the wrapped reducer's `initialValue` + * - Combining two defined values delegates to the wrapped reducer + * - If the accumulator or next value is `undefined`, the reduction returns `undefined` * * @see {@link makeCombinerFailFast} if you only have a `Combiner` and want to * lift it to `UndefinedOr` values. * + * @category constructors * @since 4.0.0 */ export function makeReducerFailFast(reducer) { diff --git a/.opencode/node_modules/effect/dist/UndefinedOr.js.map b/.opencode/node_modules/effect/dist/UndefinedOr.js.map index b61096262cf65bc3e705c3663a75fbb04d898242..6ee137bacd63f79f8eae1702cd674b668e165b67 100644 --- a/.opencode/node_modules/effect/dist/UndefinedOr.js.map +++ b/.opencode/node_modules/effect/dist/UndefinedOr.js.map @@ -1 +1 @@ -{"version":3,"file":"UndefinedOr.js","names":["Combiner","dual","Reducer","map","self","f","undefined","match","onDefined","onUndefined","getOrThrowWith","getOrThrow","Error","liftThrowable","a","makeReducer","combiner","make","that","combine","makeCombinerFailFast","makeReducerFailFast","reducer","initialValue","collection","out","value"],"sources":["../src/UndefinedOr.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AAEzC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,MAAMC,GAAG,gBASZF,IAAI,CAAC,CAAC,EAAE,CAACG,IAAI,EAAEC,CAAC,KAAMD,IAAI,KAAKE,SAAS,GAAGA,SAAS,GAAGD,CAAC,CAACD,IAAI,CAAE,CAAC;AAEpE;;;AAGA,OAAO,MAAMG,KAAK,gBAoBdN,IAAI,CACN,CAAC,EACD,CAAcG,IAAmB,EAAE;EAAEI,SAAS;EAAEC;AAAW,CAG1D,KAAYL,IAAI,KAAKE,SAAS,GAAGG,WAAW,EAAE,GAAGD,SAAS,CAACJ,IAAI,CAAC,CAClE;AAED;;;AAGA,OAAO,MAAMM,cAAc,gBASvBT,IAAI,CAAC,CAAC,EAAE,CAAIG,IAAmB,EAAEK,WAA0B,KAAO;EACpE,IAAIL,IAAI,KAAKE,SAAS,EAAE;IACtB,OAAOF,IAAI;EACb;EACA,MAAMK,WAAW,EAAE;AACrB,CAAC,CAAC;AAEF;;;AAGA,OAAO,MAAME,UAAU,gBAAkCD,cAAc,CAAC,MACtE,IAAIE,KAAK,CAAC,kCAAkC,CAAC,CAC9C;AAED;;;AAGA,OAAO,MAAMC,aAAa,GACxBR,CAAiB,IAEnB,CAAC,GAAGS,CAAC,KAAI;EACP,IAAI;IACF,OAAOT,CAAC,CAAC,GAAGS,CA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reList":[]} \ No newline at end of file +{"version":3,"file":"UndefinedOr.js","names":["Combiner","dual","Reducer","map","self","f","undefined","match","onDefined","onUndefined","getOrThrowWith","getOrThrow","Error","liftThrowable","a","makeReducer","combiner","make","that","combine","makeCombinerFailFast","makeReducerFailFast","reducer","initialValue","collection","out","value"],"sources":["../src/UndefinedOr.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AAEzC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;;;;AAaA,OAAO,MAAMC,GAAG,gBA6BZF,IAAI,CAAC,CAAC,EAAE,CAACG,IAAI,EAAEC,CAAC,KAAMD,IAAI,KAAKE,SAAS,GAAGA,SAAS,GAAGD,CAAC,CAACD,IAAI,CAAE,CAAC;AAEpE;;;;;;;;;;;;;;;AAeA,OAAO,MAAMG,KAAK,gBA4CdN,IAAI,CACN,CAAC,EACD,CAAcG,IAAmB,EAAE;EAAEI,SAAS;EAAEC;AAAW,CAG1D,KAAYL,IAAI,KAAKE,SAAS,GAAGG,WAAW,EAAE,GAAGD,SAAS,CAACJ,IAAI,CAAC,CAClE;AAED;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMM,cAAc,gBA2CvBT,IAAI,CAAC,CAAC,EAAE,CAAIG,IAAmB,EAAEK,WAA0B,KAAO;EACpE,IAAIL,IAAI,KAAKE,SAAS,EAAE;IACtB,OAAOF,IAAI;EACb;EACA,MAAMK,WAAW,EAAE;AACrB,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAME,UAAU,gBAAkCD,cAAc,CAAC,MACtE,IAAIE,KAAK,CAAC,kCAAkC,CAAC,CAC9C;AAED;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,aAAa,GACxBR,CAAiB,IAEnB,CAAC,GAAGS,CAAC,KAAI;EACP,IAAI;IACF,OAA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;EACZ,CAAC,CAAC;AACJ","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Unify.d.ts b/.opencode/node_modules/effect/dist/Unify.d.ts index 373716cd2a7baaa756dca891105f704b3b3d62ff..3a4fceeed19d8fa867d319ba0b60f0cdc6fbf93a 100644 --- a/.opencode/node_modules/effect/dist/Unify.d.ts +++ b/.opencode/node_modules/effect/dist/Unify.d.ts @@ -1,134 +1,125 @@ /** + * Defines Effect's type-level unification protocol. + * + * Unification collapses unions of protocol-enabled values into their public data + * types. It is mostly for maintainers of Effect data types and advanced library + * authors; application code usually benefits from it through APIs such as + * `Effect`, `Option`, `Result`, `Stream`, `Layer`, and `Match`. This module + * exports the protocol symbols, the `Unify` type that performs normalization, + * and `unify`, an identity function that changes only the inferred type. + * * @since 2.0.0 */ /** - * A unique symbol used to identify unification behavior in Effect types. + * Defines the unique symbol used to identify unification behavior in Effect types. * - * This symbol is used internally by the Effect type system to enable automatic - * unification of Effect types in unions and complex type operations. + * **When to use** * - * @example - * ```ts - * import type { Unify } from "effect" + * Use to define the widened type produced by the `Unify` protocol for a custom + * protocol-enabled data type. * - * // The unifySymbol is used internally in Effect types - * // to enable automatic type unification - * declare const effect: { - * readonly [Unify.unifySymbol]?: any - * } - * ``` + * **Details** + * + * This symbol is a type-level protocol key. It describes how a protocol-enabled + * type widens during unification and has no runtime behavior. + * + * @see {@link typeSymbol} for storing the source type information used during unification + * @see {@link ignoreSymbol} for excluding protocol entries from unification * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export declare const unifySymbol: unique symbol; /** * The type of the unifySymbol. * + * **When to use** + * + * Use to reference the unification behavior property key in type-level + * protocol definitions. + * + * **Details** + * * This type represents the unique symbol used for identifying unification * behavior in Effect types. It's typically used in type-level operations * to enable automatic type unification. * - * @example - * ```ts - * import type { Unify } from "effect" - * - * // The unifySymbol type is used in type declarations - * // to enable unification behavior - * type UnifyableType = { - * [Unify.unifySymbol]?: any - * } - * ``` - * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export type unifySymbol = typeof unifySymbol; /** - * A unique symbol used to identify the type information for unification. + * Defines the unique symbol used to identify the type information for unification. * - * This symbol is used internally by the Effect type system to store type - * information that can be used during type unification operations. + * **When to use** * - * @example - * ```ts - * import type { Unify } from "effect" + * Use when you need a type-level protocol key that exposes the source type + * read by `Unify` from a protocol-enabled data type. * - * // The typeSymbol is used internally in Effect types - * // to store type information for unification - * declare const effect: { - * readonly [Unify.typeSymbol]?: any - * } - * ``` + * **Details** + * + * This symbol is a type-level protocol key. It stores the source type that + * unification reads when widening protocol-enabled values. + * + * @see {@link unifySymbol} for defining how protocol entries widen * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export declare const typeSymbol: unique symbol; /** * The type of the typeSymbol. * + * **When to use** + * + * Use to reference the type information property key in type-level protocol + * definitions. + * + * **Details** + * * This type represents the unique symbol used for storing type information * in types that support unification. It's used in type-level operations * to access and manipulate type information. * - * @example - * ```ts - * import type { Unify } from "effect" - * - * // The typeSymbol type is used in type declarations - * // to store type information for unification - * type TypedValue = { - * [Unify.typeSymbol]?: string - * } - * ``` - * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export type typeSymbol = typeof typeSymbol; /** - * A unique symbol used to specify types that should be ignored during unification. + * Defines the unique symbol used to specify types that should be ignored during unification. * - * This symbol is used internally by the Effect type system to mark types - * that should be excluded from the unification process, allowing for more - * precise type handling in complex scenarios. + * **When to use** * - * @example - * ```ts - * import type { Unify } from "effect" + * Use to hide helper protocol entries from `Unify` when they should not + * contribute to the widened type. * - * // The ignoreSymbol is used internally in Effect types - * // to mark types that should be ignored during unification - * declare const effect: { - * readonly [Unify.ignoreSymbol]?: any - * } - * ``` + * **Details** + * + * This symbol is a type-level protocol key. It lists protocol entries that + * unification should ignore when computing the widened type. + * + * @see {@link unifySymbol} for defining the protocol entries being filtered * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export declare const ignoreSymbol: unique symbol; /** * The type of the ignoreSymbol. * + * **When to use** + * + * Use to reference the ignored-property key in type-level protocol + * definitions. + * + * **Details** + * * This type represents the unique symbol used for marking types that should * be ignored during unification operations. It's used in type-level operations * to exclude specific types from the unification process. * - * @example - * ```ts - * import type { Unify } from "effect" - * - * // The ignoreSymbol type is used in type declarations - * // to mark types that should be ignored during unification - * type IgnorableType = { - * [Unify.ignoreSymbol]?: unknown - * } - * ``` - * - * @since 2.0.0 * @category symbols + * @since 2.0.0 */ export type ignoreSymbol = typeof ignoreSymbol; type MaybeReturn = F extends () => infer R ? R : NonNullable; @@ -149,14 +140,21 @@ type FilterOut = A extends any ? typeSymbol extends keyof A ? never : A : nev /** * Unifies types that implement the unification protocol. * + * **When to use** + * + * Use to normalize unions of types that expose Effect's unification protocol. + * + * **Details** + * * This type performs automatic type unification for types that contain * the unification symbols (`unifySymbol`, `typeSymbol`, `ignoreSymbol`). * It's primarily used internally by the Effect type system to handle * complex type unions and provide better type inference. * - * @example + * **Example** (Unifying protocol types) + * * ```ts - * import type * as Unify from "effect/Unify" + * import type { Unify } from "effect" * * // Example of types that can be unified * type UnifiableA = { @@ -176,8 +174,10 @@ type FilterOut = A extends any ? typeSymbol extends keyof A ? never : A : nev * // Results in a properly unified type * ``` * - * @since 2.0.0 + * @see {@link unify} for applying this normalization to a value or function + * * @category models + * @since 2.0.0 */ export type Unify = Values & { [typeSymbol]: A; @@ -185,13 +185,21 @@ export type Unify = Values & { [typeSymbol]: A; })>>> | FilterOut : never; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. + * + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -215,18 +223,28 @@ export type Unify = Values & { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ export declare const unify: { /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -250,18 +268,28 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ , Args2 extends Array, Args3 extends Array, Args4 extends Array, Args5 extends Array, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => (...args: Args5) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => (...args: Args5) => Unify; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. + * + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -285,18 +313,28 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ , Args2 extends Array, Args3 extends Array, Args4 extends Array, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => Unify; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -320,18 +358,28 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ , Args2 extends Array, Args3 extends Array, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => Unify; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. + * + * **Details** * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -355,18 +403,28 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ , Args2 extends Array, T>(x: (...args: Args) => (...args: Args2) => T): (...args: Args) => (...args: Args2) => Unify; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. + * + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -390,18 +448,28 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ , T>(x: (...args: Args) => T): (...args: Args) => Unify; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -425,8 +493,10 @@ export declare const unify: { * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ (x: T): Unify; }; diff --git a/.opencode/node_modules/effect/dist/Unify.d.ts.map b/.opencode/node_modules/effect/dist/Unify.d.ts.map index a35ad75fd0de71cf292ea08a280ec39b318191d1..30ab7388ef604fb29612013f1a7097680d64a05b 100644 --- a/.opencode/node_modules/effect/dist/Unify.d.ts.map +++ b/.opencode/node_modules/effect/dist/Unify.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Unify.d.ts","sourceRoot":"","sources":["../src/Unify.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,WAAW,EAAE,OAAO,MAAM,CA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GAAG,CAAC,EACxB,CAAC,EACD,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,CAAA;IAC/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,CACE,IAAI,SAAS,KAAK,CAAC,GAAG,CAAC,EACvB,CAAC,EACD,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAA;IACvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;CACF,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Unify.js b/.opencode/node_modules/effect/dist/Unify.js index c316109da9d318137f9873c82b0be429d718b755..63eaba1af1b3bfe0442e4a507179a1e7a65f8ee4 100644 --- a/.opencode/node_modules/effect/dist/Unify.js +++ b/.opencode/node_modules/effect/dist/Unify.js @@ -1,15 +1,32 @@ /** + * Defines Effect's type-level unification protocol. + * + * Unification collapses unions of protocol-enabled values into their public data + * types. It is mostly for maintainers of Effect data types and advanced library + * authors; application code usually benefits from it through APIs such as + * `Effect`, `Option`, `Result`, `Stream`, `Layer`, and `Match`. This module + * exports the protocol symbols, the `Unify` type that performs normalization, + * and `unify`, an identity function that changes only the inferred type. + * * @since 2.0.0 */ import { identity } from "./Function.js"; /** - * Unifies the return type of a function or value. + * Applies `Unify` to a value or function return type at compile time. + * + * **When to use** + * + * Use to keep a value or function unchanged at runtime while normalizing its + * inferred type with Effect's unification protocol. * - * This function applies type unification to the result of a function or to a value directly. - * It's useful when you need to ensure that complex type unions are properly unified according - * to the Effect type system's unification protocol. + * **Details** + * + * This is an identity function at runtime. For functions, the returned function + * has the same runtime behavior while its return type is normalized with the + * Effect unification protocol. + * + * **Example** (Unifying values and function results) * - * @example * ```ts * import { Unify } from "effect" * @@ -33,8 +50,10 @@ import { identity } from "./Function.js"; * // Type: (a: string) => (b: number) => Unify<{ result: string }> * ``` * + * @see {@link Unify} for the type-level normalization applied by this helper + * + * @category utility types * @since 2.0.0 - * @category utilities */ export const unify = identity; //# sourceMappingURL=Unify.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Unify.js.map b/.opencode/node_modules/effect/dist/Unify.js.map index 32fe5ad47e34bd4b70f03fbbe11338613dbe9a19..a640cda7d0c18f51dc5176095f17d83a1b42ddaf 100644 --- a/.opencode/node_modules/effect/dist/Unify.js.map +++ b/.opencode/node_modules/effect/dist/Unify.js.map @@ -1 +1 @@ -{"version":3,"file":"Unify.js","names":["identity","unify"],"sources":["../src/Unify.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA,SAASA,QAAQ,QAAQ,eAAe;AAiOxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,KAAK,GAgPdD,QAAe","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Unify.js","names":["identity","unify"],"sources":["../src/Unify.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAaA,SAASA,QAAQ,QAAQ,eAAe;AAwNxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,OAAO,MAAMC,KAAK,GA4SdD,QAAe","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Utils.d.ts b/.opencode/node_modules/effect/dist/Utils.d.ts index 393d0c1f1ccfed59b488e1feb829577bc00a19b0..d809ccf2022447c016f442ca35850edd5fca887b 100644 --- a/.opencode/node_modules/effect/dist/Utils.d.ts +++ b/.opencode/node_modules/effect/dist/Utils.d.ts @@ -1,82 +1,32 @@ /** - * Internal utilities for the Effect ecosystem's generator-based syntax and - * higher-kinded type machinery. + * Internal and advanced utilities used by Effect's generator-based syntax and + * higher-kinded type support. This is not a general-purpose utility module for + * application code. * - * ## Mental model - * - * - **SingleShotGen** — an `IterableIterator` wrapper that yields its value - * exactly once. Used internally by `[Symbol.iterator]()` on Effect, Option, - * Result, and other yieldable types so they work inside generator functions. - * - **Gen** — a type-level signature for generator-based monadic composition - * (`gen` functions). Parametric over any `TypeLambda` so each module - * (Effect, Option, Result, ...) can expose its own `gen` with correct types. - * - **Variance** — a type-level marker that encodes the variance (covariant, - * contravariant, invariant) of a `TypeLambda`'s type parameters. - * Used by {@link Gen} for type inference. - * - * ## Common tasks - * - * - Make a type yieldable in generators -> implement `[Symbol.iterator]()` returning a {@link SingleShotGen} - * - Define a generator-based API for a new TypeLambda -> type it as {@link Gen}`` - * - Encode variance for a higher-kinded type -> use {@link Variance} - * - * ## Gotchas - * - * - {@link SingleShotGen} yields its value only on the first `.next()` call. - * Calling `.next()` again returns `{ done: true }`. Iterating the same - * instance twice will skip the value on the second pass; call - * `[Symbol.iterator]()` to get a fresh iterator. - * - {@link Gen} and {@link Variance} are pure type-level constructs — they - * have no runtime representation. - * - * ## Quickstart - * - * **Example** (Using SingleShotGen to make a type yieldable) - * - * ```ts - * import { Utils } from "effect" - * - * class MyWrapper { - * constructor(readonly value: A) {} - * [Symbol.iterator]() { - * return new Utils.SingleShotGen, A>(this) - * } - * } - * - * const w = new MyWrapper(42) - * const iter = w[Symbol.iterator]() - * console.log(iter.next(undefined as any)) - * // { value: MyWrapper { value: 42 }, done: false } - * console.log(iter.next(42)) - * // { value: 42, done: true } - * ``` - * - * @see {@link SingleShotGen} - * @see {@link Gen} - * @see {@link Variance} + * `SingleShotGen` makes an Effect-style value work with `yield*` inside + * generator helpers. `Variance` and `Gen` provide the type-level signatures + * used by modules such as `Effect`, `Option`, and `Result` to type their + * `gen` APIs. * * @since 2.0.0 */ import type { Kind, TypeLambda } from "./HKT.ts"; import type * as Types from "./Types.ts"; /** - * An `IterableIterator` that yields its wrapped value exactly once. + * Yields its wrapped value exactly once through an `IterableIterator`. * - * When to use: + * **When to use** * - * - Implement `[Symbol.iterator]()` on Effect-like types so they can be - * `yield*`-ed inside generator functions (e.g. `Effect.gen`, `Option.gen`). - * - You almost never construct this directly — it is created internally by - * yieldable types. + * Use to implement `[Symbol.iterator]()` on Effect-like types so they can be + * `yield*`-ed inside generator functions, such as `Effect.gen` and + * `Option.gen`. * - * Behavior: + * **Details** * - * - The first call to `next()` returns `{ value: self, done: false }`. - * - Every subsequent call returns `{ value: a, done: true }` where `a` is - * the argument passed to `next()`. - * - `[Symbol.iterator]()` returns a **new** `SingleShotGen` wrapping the same - * value, so the outer type can be iterated multiple times. - * - Does not mutate the wrapped value. + * The first call to `next()` returns `{ value: self, done: false }`. Every + * subsequent call returns `{ value: a, done: true }` where `a` is the argument + * passed to `next()`. `[Symbol.iterator]()` returns a **new** `SingleShotGen` + * wrapping the same value, so the outer type can be iterated multiple times. * * **Example** (Yielding a wrapped value in a generator) * @@ -94,8 +44,7 @@ import type * as Types from "./Types.ts"; * // { value: 42, done: true } * ``` * - * @see {@link Gen} — the type-level signature that relies on `SingleShotGen` - * + * @see {@link Gen} for the type-level signature that relies on `SingleShotGen` * @category constructors * @since 2.0.0 */ @@ -104,10 +53,24 @@ export declare class SingleShotGen implements IterableIterator { readonly self: T; constructor(self: T); /** + * Yields the stored value once, then completes with the value sent back in. + * + * **When to use** + * + * Use to advance a `SingleShotGen` through its single yield and completion + * step. + * * @since 2.0.0 */ next(a: A): IteratorResult; /** + * Creates a fresh single-shot iterator over the stored value. + * + * **When to use** + * + * Use to iterate the wrapped value again without reusing the consumed + * iterator state. + * * @since 2.0.0 */ [Symbol.iterator](): IterableIterator; @@ -116,25 +79,22 @@ export declare class SingleShotGen implements IterableIterator { * Type-level marker encoding the variance of a `TypeLambda`'s type * parameters. * - * When to use: + * **When to use** * - * - Define variance constraints for a higher-kinded type so that - * {@link Gen} can correctly infer `R`, `O`, and `E` from yielded values. - * - You typically don't construct values of this type — it exists purely for - * type inference. + * Use to define variance constraints for a higher-kinded type so that + * {@link Gen} can correctly infer `R`, `O`, and `E` from yielded values. * - * Behavior: + * **Details** * - * - `F` is invariant (must match exactly). - * - `R` is contravariant (input / environment position). - * - `O` and `E` are covariant (output / error position). - * - Pure type-level construct — no runtime representation. + * `F` is invariant and must match exactly. `R` is contravariant in the input + * or environment position. `O` and `E` are covariant in the output and error + * positions. This is a pure type-level construct with no runtime + * representation. * * **Example** (Declaring variance for a TypeLambda) * * ```ts - * import type { Utils } from "effect" - * import type * as Option from "effect/Option" + * import type { Option, Utils } from "effect" * * declare const variance: Utils.Variance< * Option.OptionTypeLambda, @@ -144,8 +104,7 @@ export declare class SingleShotGen implements IterableIterator { * > * ``` * - * @see {@link Gen} — uses `Variance` for type parameter inference - * + * @see {@link Gen} for the type-level signature that uses `Variance` * @category models * @since 2.0.0 */ @@ -159,19 +118,16 @@ export interface Variance { * Type-level signature for generator-based monadic composition over any * `TypeLambda`. * - * When to use: + * **When to use** * - * - Type the `gen` function of a module that supports generator syntax - * (e.g. `Option.gen`, `Result.gen`, `Effect.gen`). - * - Accepts either `(body)` or `(self, body)` where `body` is a generator - * function. The `self` overload binds `this` inside the generator. + * Use to type the `gen` function of a module that supports generator syntax, + * such as `Option.gen`, `Result.gen`, and `Effect.gen`. * - * Behavior: + * **Details** * - * - Pure type alias — no runtime behavior. - * - Infers `R`, `O`, `E` from the yielded values via {@link Variance} or - * `Kind` constraints. - * - The generator's return type `A` becomes the output's `A` parameter. + * This is a pure type alias with no runtime behavior. It infers `R`, `O`, and + * `E` from the yielded values via {@link Variance} or `Kind` constraints. The + * generator's return type `A` becomes the output's `A` parameter. * * **Example** (Typing a gen function for Option) * @@ -181,9 +137,8 @@ export interface Variance { * declare const gen: Utils.Gen * ``` * - * @see {@link Variance} — encodes the variance used for inference - * @see {@link SingleShotGen} — the iterator protocol that makes yielding work - * + * @see {@link Variance} for encoding the variance used for inference + * @see {@link SingleShotGen} for the iterator protocol that makes yielding work * @category models * @since 2.0.0 */ diff --git a/.opencode/node_modules/effect/dist/Utils.d.ts.map b/.opencode/node_modules/effect/dist/Utils.d.ts.map index b08e077338549a9e8453da6bd4f82326b02d08a4..3fca3fd06dd45170b19e54c5e9bba80934e2972a 100644 --- a/.opencode/node_modules/effect/dist/Utils.d.ts.map +++ b/.opencode/node_modules/effect/dist/Utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,qBAAa,aAAa,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,MAAM,CAAQ;IACtB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;gBAEJ,IAAI,EAAE,CAAC;IAInB;;OAEG;IACH,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IAahC;;OAEG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;CAG5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAA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AG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAC5C,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GACjD,KAAK,EACT;IAAC,CAAC;CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAC5C,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GACjD,KAAK,EACT,CAAC,CACF,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Utils.js b/.opencode/node_modules/effect/dist/Utils.js index 4b37ef80641688007c25244d64ac5e61ec1fbf6b..f8dd14986465ef3d08ec3df954499153f1d49378 100644 --- a/.opencode/node_modules/effect/dist/Utils.js +++ b/.opencode/node_modules/effect/dist/Utils.js @@ -1,21 +1,18 @@ /** - * An `IterableIterator` that yields its wrapped value exactly once. + * Yields its wrapped value exactly once through an `IterableIterator`. * - * When to use: + * **When to use** * - * - Implement `[Symbol.iterator]()` on Effect-like types so they can be - * `yield*`-ed inside generator functions (e.g. `Effect.gen`, `Option.gen`). - * - You almost never construct this directly — it is created internally by - * yieldable types. + * Use to implement `[Symbol.iterator]()` on Effect-like types so they can be + * `yield*`-ed inside generator functions, such as `Effect.gen` and + * `Option.gen`. * - * Behavior: + * **Details** * - * - The first call to `next()` returns `{ value: self, done: false }`. - * - Every subsequent call returns `{ value: a, done: true }` where `a` is - * the argument passed to `next()`. - * - `[Symbol.iterator]()` returns a **new** `SingleShotGen` wrapping the same - * value, so the outer type can be iterated multiple times. - * - Does not mutate the wrapped value. + * The first call to `next()` returns `{ value: self, done: false }`. Every + * subsequent call returns `{ value: a, done: true }` where `a` is the argument + * passed to `next()`. `[Symbol.iterator]()` returns a **new** `SingleShotGen` + * wrapping the same value, so the outer type can be iterated multiple times. * * **Example** (Yielding a wrapped value in a generator) * @@ -33,8 +30,7 @@ * // { value: 42, done: true } * ``` * - * @see {@link Gen} — the type-level signature that relies on `SingleShotGen` - * + * @see {@link Gen} for the type-level signature that relies on `SingleShotGen` * @category constructors * @since 2.0.0 */ @@ -45,6 +41,13 @@ export class SingleShotGen { this.self = self; } /** + * Yields the stored value once, then completes with the value sent back in. + * + * **When to use** + * + * Use to advance a `SingleShotGen` through its single yield and completion + * step. + * * @since 2.0.0 */ next(a) { @@ -57,28 +60,41 @@ export class SingleShotGen { }); } /** + * Creates a fresh single-shot iterator over the stored value. + * + * **When to use** + * + * Use to iterate the wrapped value again without reusing the consumed + * iterator state. + * * @since 2.0.0 */ [Symbol.iterator]() { return new SingleShotGen(this.self); } } -const InternalTypeId = "~effect/Utils/internal"; -const standard = { - [InternalTypeId]: body => { - return body(); - } -}; -const forced = { - [InternalTypeId]: body => { - try { +// the probe is wrapped in a single function call (rather than module-level +// statements) so the whole selection is pure-annotated by the build and +// tree-shakable when `internalCall` is unused. +const pickInternalCall = () => { + const InternalTypeId = "~effect/Utils/internal"; + const standard = { + [InternalTypeId]: body => { return body(); - } finally { - // } - } + }; + const forced = { + [InternalTypeId]: body => { + try { + return body(); + } finally { + // + } + } + }; + const isNotOptimizedAway = standard[InternalTypeId](() => new Error().stack)?.includes(InternalTypeId) === true; + return isNotOptimizedAway ? standard[InternalTypeId] : forced[InternalTypeId]; }; -const isNotOptimizedAway = /*#__PURE__*/standard[InternalTypeId](() => new Error().stack)?.includes(InternalTypeId) === true; /** @internal */ -export const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[InternalTypeId]; +export const internalCall = /*#__PURE__*/pickInternalCall(); //# sourceMappingURL=Utils.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Utils.js.map b/.opencode/node_modules/effect/dist/Utils.js.map index af80f082b8eb4af2cd4de0328aff52e82fcbe5ab..f39da0fd6c17dae544f795c30f5c8af28f2d7bcd 100644 --- a/.opencode/node_modules/effect/dist/Utils.js.map +++ b/.opencode/node_modules/effect/dist/Utils.js.map @@ -1 +1 @@ -{"version":3,"file":"Utils.js","names":["SingleShotGen","called","self","constructor","next","a","value","done","Symbol","iterator","InternalTypeId","standard","body","forced","isNotOptimizedAway","Error","stack","includes","internalCall"],"sources":["../src/Utils.ts"],"sourcesContent":[null],"mappings":"AA8DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAM,MAAOA,aAAa;EAChBC,MAAM,GAAG,KAAK;EACbC,IAAI;EAEbC,YAAYD,IAAO;IACjB,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EAEA;;;EAGAE,IAAIA,CAACC,CAAI;IACP,OAAO,IAAI,CAACJ,MAAM,GACf;MACCK,KAAK,EAAED,CAAC;MACRE,IAAI,EAAE;KACP,IACA,IAAI,CAACN,MAAM,GAAG,IAAI,EAChB;MACCK,KAAK,EAAE,IAAI,CAACJ,IAAI;MAChBK,IAAI,EAAE;KACN,CAAC;EACT;EAEA;;;EAGA,CAACC,MAAM,CAACC,QAAQ,IAAC;IACf,OAAO,IAAIT,aAAa,CAAO,IAAI,CAACE,IAAI,CAAC;EAC3C;;AA0GF,MAAMQ,cAAc,GAAG,wBAAwB;AAE/C,MAAMC,QAAQ,GAAG;EACf,CAACD,cAAc,GAAOE,IAAa,IAAI;IACrC,OAAOA,IAAI,EAAE;EACf;CACD;AAED,MAAMC,MAAM,GAAG;EACb,CAACH,cAAc,GAAOE,IAAa,IAAI;IACrC,IAAI;MACF,OAAOA,IAAI,EAAE;IACf,CAAC,SAAS;MACR;IAAA;EAEJ;CACD;AAED,MAAME,kBAAkB,GAAG,aAAAH,QAAQ,CAACD,cAAc,CAAC,CAAC,MAAM,IAAIK,KAAK,EAAE,CAACC,KAAK,CAAC,EAAEC,QAAQ,CAACP,cAAc,CAAC,KAAK,IAAI;AAE/G;AACA,OAAO,MAAMQ,YAAY,GAAGJ,kBAAkB,GAAGH,QAAQ,CAACD,cAAc,CAAC,GAAGG,MAAM,CAACH,cAAc,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Utils.js","names":["SingleShotGen","called","self","constructor","next","a","value","done","Symbol","iterator","pickInternalCall","InternalTypeId","standard","body","forced","isNotOptimizedAway","Error","stack","includes","internalCall"],"sources":["../src/Utils.ts"],"sourcesContent":[null],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,OAAM,MAAOA,aAAa;EAChBC,MAAM,GAAG,KAAK;EACbC,IAAI;EAEbC,YAAYD,IAAO;IACjB,IAAI,CAACA,IAAI,GAAGA,IAAI;EAClB;EAEA;;;;;;;;;;EAUAE,IAAIA,CAACC,CAAI;IACP,OAAO,IAAI,CAACJ,MAAM,GACf;MACCK,KAAK,EAAED,CAAC;MACRE,IAAI,EAAE;KACP,IACA,IAAI,CAACN,MAAM,GAAG,IAAI,EAChB;MACCK,KAAK,EAAE,IAAI,CAACJ,IAAI;MAChBK,IAAI,EAAE;KACN,CAAC;EACT;EAEA;;;;;;;;;;EAUA,CAACC,MAAM,CAACC,QAAQ,IAAC;IACf,OAAO,IAAIT,aAAa,CAAO,IAAI,CAACE,IAAI,CAAC;EAC3C;;AAkGF;AACA;AACA;AACA,MAAMQ,gBAAgB,GAAGA,CAAA,KAA8B;EACrD,MAAMC,cAAc,GAAG,wBAAwB;EAE/C,MAAMC,QAAQ,GAAG;IACf,CAACD,cAAc,GAAOE,IAAa,IAAI;MACrC,OAAOA,IAAI,EAAE;IACf;GACD;EAED,MAAMC,MAAM,GAAG;IACb,CAACH,cAAc,GAAOE,IAAa,IAAI;MACrC,IAAI;QACF,OAAOA,IAAI,EAAE;MACf,CAAC,SAAS;QACR;MAAA;IAEJ;GACD;EAED,MAAME,kBAAkB,GAAGH,QAAQ,CAACD,cAAc,CAAC,CAAC,MAAM,IAAIK,KAAK,EAAE,CAACC,KAAK,CAAC,EAAEC,QAAQ,CAACP,cAAc,CAAC,KAAK,IAAI;EAE/G,OAAOI,kBAAkB,GAAGH,QAAQ,CAACD,cAAc,CAAC,GAAGG,MAAM,CAACH,cAAc,CAAC;AAC/E,CAAC;AAED;AACA,OAAO,MAAMQ,YAAY,gBAAGT,gBAAgB,EAAE","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/index.d.ts b/.opencode/node_modules/effect/dist/index.d.ts index b4b31d51f86369c941c94b8ba2c609e700c19c29..f63cfa067f003ec22cf1bbdf00f6ea716155f56a 100644 --- a/.opencode/node_modules/effect/dist/index.d.ts +++ b/.opencode/node_modules/effect/dist/index.d.ts @@ -27,126 +27,22 @@ identity, */ pipe } from "./Function.ts"; /** - * Utilities for working with immutable arrays (and non-empty arrays) in a - * functional style. All functions treat arrays as immutable — they return new - * arrays rather than mutating the input. - * - * ## Mental model - * - * - **`Array`** is a standard JS array. All functions in this module return - * new arrays; the input is never mutated. - * - **`NonEmptyReadonlyArray`** (`readonly [A, ...Array]`) is a readonly - * array guaranteed to have at least one element. Many functions preserve or - * require this guarantee at the type level. - * - **`NonEmptyArray`** is the mutable counterpart: `[A, ...Array]`. - * - Most functions are **dual** — they can be called either as - * `Array.fn(array, arg)` (data-first) or piped as - * `pipe(array, Array.fn(arg))` (data-last). - * - Functions that access elements by index return `Option` for safety; use - * the `*NonEmpty` variants (e.g. {@link headNonEmpty}) when you already know - * the array is non-empty. - * - Set-like operations ({@link union}, {@link intersection}, - * {@link difference}) use `Equal.equivalence()` by default; use the `*With` - * variants for custom equality. - * - * ## Common tasks - * - * - **Create** an array: {@link make}, {@link of}, {@link empty}, - * {@link fromIterable}, {@link range}, {@link makeBy}, {@link replicate}, - * {@link unfold} - * - **Access** elements: {@link head}, {@link last}, {@link get}, {@link tail}, - * {@link init} - * - **Transform**: {@link map}, {@link flatMap}, {@link flatten} - * - **Filter**: {@link filter}, {@link partition}, {@link dedupe} - * - **Combine**: {@link append}, {@link prepend}, {@link appendAll}, - * {@link prependAll}, {@link zip}, {@link cartesian} - * - **Split**: {@link splitAt}, {@link chunksOf}, {@link span}, {@link window} - * - **Search**: {@link findFirst}, {@link findLast}, {@link contains} - * - **Sort**: {@link sort}, {@link sortBy}, {@link sortWith} - * - **Fold**: {@link reduce}, {@link scan}, {@link join} - * - **Group**: {@link groupBy}, {@link group}, {@link groupWith} - * - **Set operations**: {@link union}, {@link intersection}, - * {@link difference} - * - **Match** on empty vs non-empty: {@link match}, {@link matchLeft}, - * {@link matchRight} - * - **Check** properties: {@link isArray}, {@link isArrayNonEmpty}, - * {@link every}, {@link some} - * - * ## Gotchas - * - * - {@link fromIterable} returns the original array reference when given an - * array; if you need a copy, use {@link copy}. - * - `sort`, `reverse`, etc. always allocate a new array — the input is never - * mutated. - * - {@link makeBy} and {@link replicate} normalize `n` to an integer >= 1 — - * they never produce an empty array. - * - {@link range}`(start, end)` is inclusive on both ends. If `start > end` it - * returns `[start]`. - * - Functions returning `Option` (e.g. {@link head}, {@link findFirst}) return - * `Option.none()` for empty inputs — they never throw. - * - * ## Quickstart - * - * **Example** (Basic array operations) - * - * ```ts - * import { Array } from "effect" - * - * const numbers = Array.make(1, 2, 3, 4, 5) - * - * const doubled = Array.map(numbers, (n) => n * 2) - * console.log(doubled) // [2, 4, 6, 8, 10] - * - * const evens = Array.filter(numbers, (n) => n % 2 === 0) - * console.log(evens) // [2, 4] - * - * const sum = Array.reduce(numbers, 0, (acc, n) => acc + n) - * console.log(sum) // 15 - * ``` - * - * @see {@link make} — create a non-empty array from elements - * @see {@link map} — transform each element - * @see {@link filter} — keep elements matching a predicate - * @see {@link reduce} — fold an array to a single value - * * @since 2.0.0 */ export * as Array from "./Array.ts"; /** - * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript. - * It includes functions for basic arithmetic operations. - * - * A `BigDecimal` allows storing any real number to arbitrary precision; which avoids common floating point errors - * (such as 0.1 + 0.2 ≠ 0.3) at the cost of complexity. - * - * Internally, `BigDecimal` uses a `BigInt` object, paired with a 64-bit integer which determines the position of the - * decimal point. Therefore, the precision *is not* actually arbitrary, but limited to 263 decimal places. - * - * It is not recommended to convert a floating point number to a decimal directly, as the floating point representation - * may be unexpected. - * * @since 2.0.0 */ export * as BigDecimal from "./BigDecimal.ts"; /** - * This module provides utility functions and type class instances for working with the `bigint` type in TypeScript. - * It includes functions for basic arithmetic operations. - * * @since 2.0.0 */ export * as BigInt from "./BigInt.ts"; /** - * This module provides utility functions and type class instances for working with the `boolean` type in TypeScript. - * It includes functions for basic boolean operations. - * * @since 2.0.0 */ export * as Boolean from "./Boolean.ts"; /** - * This module provides types and utility functions to create and work with - * branded types, which are TypeScript types with an added type tag to prevent - * accidental usage of a value in the wrong context. - * * @since 2.0.0 */ export * as Brand from "./Brand.ts"; @@ -155,141 +51,10 @@ export * as Brand from "./Brand.ts"; */ export * as Cache from "./Cache.ts"; /** - * Structured representation of how an Effect can fail. - * - * A `Cause` holds a flat array of `Reason` values, where each reason is one of: - * - * - **Fail** — a typed, expected error `E` (created by `Effect.fail`) - * - **Die** — an untyped defect (`unknown`) from `Effect.die` or uncaught throws - * - **Interrupt** — a fiber interruption, optionally carrying the interrupting fiber's ID - * - * ## Mental model - * - * - A `Cause` is always flat: concurrent and sequential failures are stored together - * in `cause.reasons` (a `ReadonlyArray>`). - * - Each `Reason` carries an `annotations` map with tracing metadata (stack frames, spans). - * - An empty `reasons` array means the computation succeeded or the cause was empty - * ({@link empty}). - * - `Cause` implements `Equal`, so two causes with identical reasons compare as equal. - * - * ## Common tasks - * - * | Intent | API | - * |--------|-----| - * | Create a cause | {@link fail}, {@link die}, {@link interrupt}, {@link fromReasons} | - * | Test for reason types | {@link hasFails}, {@link hasDies}, {@link hasInterrupts} | - * | Extract the first error/defect | {@link findError}, {@link findDefect}, {@link findFail}, {@link findDie} | - * | Iterate over reasons manually | `cause.reasons.filter(Cause.isFailReason)` | - * | Combine two causes | {@link combine} | - * | Transform errors | {@link map} | - * | Collapse to a single thrown value | {@link squash} | - * | Render for logging | {@link pretty}, {@link prettyErrors} | - * | Attach/read tracing metadata | {@link annotate}, {@link annotations}, {@link reasonAnnotations} | - * - * ## Gotchas - * - * - `findError`/`findDefect` return `Filter.fail` (not `Option.none`) when no match is - * found. Use {@link findErrorOption} if you need an `Option`. - * - `squash` picks the first `Fail` error, then the first `Die` defect, then falls back - * to a generic "interrupted" / "empty" error. It is lossy — use `prettyErrors` or - * iterate `reasons` directly when you need all failures. - * - The module also exports several built-in error classes (`NoSuchElementError`, - * `TimeoutError`, `IllegalArgumentError`, `ExceededCapacityError`, `UnknownError`) - * and the `Done` completion signal. These all implement `YieldableError` and can be - * yielded directly inside `Effect.gen`. - * - * **Example** (inspecting a concurrent failure) - * - * ```ts - * import { Cause, Effect } from "effect" - * - * const program = Effect.gen(function*() { - * const cause = yield* Effect.sandbox( - * Effect.all([ - * Effect.fail("err1"), - * Effect.die("defect"), - * Effect.fail("err2") - * ], { concurrency: "unbounded" }) - * ).pipe(Effect.flip) - * - * const errors = cause.reasons - * .filter(Cause.isFailReason) - * .map((r) => r.error) - * - * const defects = cause.reasons - * .filter(Cause.isDieReason) - * .map((r) => r.defect) - * - * console.log(errors) // ["err1", "err2"] (order may vary) - * console.log(defects) // ["defect"] - * }) - * - * Effect.runPromise(program) - * ``` - * - * @see {@link Cause} — the core interface - * @see {@link Reason} — the union of failure kinds - * @see {@link pretty} — human-readable rendering - * * @since 2.0.0 */ export * as Cause from "./Cause.ts"; /** - * The `Channel` module provides a powerful abstraction for bi-directional communication - * and streaming operations. A `Channel` is a nexus of I/O operations that supports both - * reading and writing, forming the foundation for Effect's Stream and Sink abstractions. - * - * ## What is a Channel? - * - * A `Channel` represents: - * - **OutElem**: The type of elements the channel outputs - * - **OutErr**: The type of errors the channel can produce - * - **OutDone**: The type of the final value when the channel completes - * - **InElem**: The type of elements the channel reads - * - **InErr**: The type of errors the channel can receive - * - **InDone**: The type of the final value from upstream - * - **Env**: The environment/context required by the channel - * - * ## Key Features - * - * - **Bi-directional**: Channels can both read and write - * - **Composable**: Channels can be piped, sequenced, and concatenated - * - **Resource-safe**: Automatic cleanup and resource management - * - **Error-handling**: Built-in error propagation and handling - * - **Concurrent**: Support for concurrent operations - * - * ## Composition Patterns - * - * 1. **Piping**: Connect channels where output of one becomes input of another - * 2. **Sequencing**: Use the result of one channel to create another - * 3. **Concatenating**: Combine multiple channels into a single channel - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Simple channel that outputs numbers - * const numberChannel = Channel.succeed(42) - * - * // Transform channel that doubles values - * const doubleChannel = Channel.map(numberChannel, (n) => n * 2) - * - * // Running the channel would output: 84 - * ``` - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Channel from an array of values - * const arrayChannel = Channel.fromArray([1, 2, 3, 4, 5]) - * - * // Transform the channel by mapping over values - * const transformedChannel = Channel.map(arrayChannel, (n) => n * 2) - * - * // This channel will output: 2, 4, 6, 8, 10 - * ``` - * * @since 2.0.0 */ export * as Channel from "./Channel.ts"; @@ -298,435 +63,30 @@ export * as Channel from "./Channel.ts"; */ export * as ChannelSchema from "./ChannelSchema.ts"; /** - * The `Chunk` module provides an immutable, high-performance sequence data structure - * optimized for functional programming patterns. A `Chunk` is a persistent data structure - * that supports efficient append, prepend, and concatenation operations. - * - * ## What is a Chunk? - * - * A `Chunk` is an immutable sequence of elements of type `A` that provides: - * - **O(1) append and prepend operations** - * - **Efficient concatenation** through tree-like structure - * - **Memory efficiency** with structural sharing - * - **Rich API** with functional programming operations - * - **Type safety** with full TypeScript integration - * - * ## Key Features - * - * - **Immutable**: All operations return new chunks without modifying the original - * - **Efficient**: Optimized data structure with logarithmic complexity for most operations - * - **Functional**: Rich set of transformation and combination operators - * - **Lazy evaluation**: Many operations are deferred until needed - * - **Interoperable**: Easy conversion to/from arrays and other collections - * - * ## Performance Characteristics - * - * - **Append/Prepend**: O(1) amortized - * - **Random Access**: O(log n) - * - **Concatenation**: O(log min(m, n)) - * - **Iteration**: O(n) - * - **Memory**: Structural sharing minimizes allocation - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Creating chunks - * const chunk1 = Chunk.fromIterable([1, 2, 3]) - * const chunk2 = Chunk.fromIterable([4, 5, 6]) - * const empty = Chunk.empty() - * - * // Combining chunks - * const combined = Chunk.appendAll(chunk1, chunk2) - * console.log(Chunk.toReadonlyArray(combined)) // [1, 2, 3, 4, 5, 6] - * ``` - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Functional transformations - * const numbers = Chunk.range(1, 5) // [1, 2, 3, 4, 5] - * const doubled = Chunk.map(numbers, (n) => n * 2) // [2, 4, 6, 8, 10] - * const evens = Chunk.filter(doubled, (n) => n % 4 === 0) // [4, 8] - * const sum = Chunk.reduce(evens, 0, (acc, n) => acc + n) // 12 - * ``` - * - * @example - * ```ts - * import { Chunk, Effect } from "effect" - * - * // Working with Effects - * const processChunk = (chunk: Chunk.Chunk) => - * Effect.gen(function*() { - * const mapped = Chunk.map(chunk, (n) => n * 2) - * const filtered = Chunk.filter(mapped, (n) => n > 5) - * return Chunk.toReadonlyArray(filtered) - * }) - * ``` - * * @since 2.0.0 */ export * as Chunk from "./Chunk.ts"; /** - * The `Clock` module provides functionality for time-based operations in Effect applications. - * It offers precise time measurements, scheduling capabilities, and controlled time management - * for testing scenarios. - * - * The Clock service is a core component of the Effect runtime, providing: - * - Current time access in milliseconds and nanoseconds - * - Sleep operations for delaying execution - * - Time-based scheduling primitives - * - Testable time control through `TestClock` - * - * ## Key Features - * - * - **Precise timing**: Access to both millisecond and nanosecond precision - * - **Sleep operations**: Non-blocking sleep with proper interruption handling - * - **Service integration**: Seamless integration with Effect's dependency injection - * - **Testable**: Mock time control for deterministic testing - * - **Resource-safe**: Automatic cleanup of time-based resources - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Get current time in milliseconds - * const getCurrentTime = Clock.currentTimeMillis - * - * // Sleep for 1 second - * const sleep1Second = Effect.sleep("1 seconds") - * - * // Measure execution time - * const measureTime = Effect.gen(function*() { - * const start = yield* Clock.currentTimeMillis - * yield* Effect.sleep("100 millis") - * const end = yield* Clock.currentTimeMillis - * return end - start - * }) - * ``` - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Using Clock service directly - * const program = Effect.gen(function*() { - * const clock = yield* Clock.Clock - * const currentTime = yield* clock.currentTimeMillis - * console.log(`Current time: ${currentTime}`) - * - * // Sleep for 500ms - * yield* Effect.sleep("500 millis") - * - * const afterSleep = yield* clock.currentTimeMillis - * console.log(`After sleep: ${afterSleep}`) - * }) - * ``` - * * @since 2.0.0 */ export * as Clock from "./Clock.ts"; /** - * A module for combining two values of the same type into one. - * - * A `Combiner` wraps a single binary function `(self: A, that: A) => A`. - * It describes *how* two values merge but carries no initial/empty value - * (for that, see {@link Reducer} which extends `Combiner` with an - * `initialValue`). - * - * ## Mental model - * - * - **Combiner** – an object with a `combine(self, that)` method that returns - * a value of the same type. - * - **Argument order** – `self` is the "left" / accumulator side, `that` is - * the "right" / incoming side. - * - **No identity element** – unlike a monoid, a `Combiner` does not require - * a neutral element. Use {@link Reducer} when you need one. - * - **Purity** – all combiners produced by this module are pure; they never - * mutate their arguments. - * - **Composability** – combiners can be lifted into `Option`, `Struct`, - * `Tuple`, and other container types via helpers in those modules. - * - * ## Common tasks - * - * - Create a combiner from any binary function → {@link make} - * - Swap argument order → {@link flip} - * - Pick the smaller / larger of two values → {@link min} / {@link max} - * - Always keep the first or last value → {@link first} / {@link last} - * - Ignore both values and return a fixed result → {@link constant} - * - Insert a separator between combined values → {@link intercalate} - * - * ## Gotchas - * - * - `min` and `max` require an `Order`, not a raw comparator. Import from - * e.g. `Number.Order` or `String.Order`. - * - `intercalate` is curried: call it with the separator first, then pass the - * base combiner. - * - A `Reducer` (which adds `initialValue`) is also a valid `Combiner` — you - * can pass a `Reducer` anywhere a `Combiner` is expected. - * - * ## Quickstart - * - * **Example** (combining strings with a separator) - * - * ```ts - * import { Combiner, String } from "effect" - * - * const csv = Combiner.intercalate(",")(String.ReducerConcat) - * - * console.log(csv.combine("a", "b")) - * // Output: "a,b" - * - * console.log(csv.combine(csv.combine("a", "b"), "c")) - * // Output: "a,b,c" - * ``` - * - * ## See also - * - * - {@link make} – the primary constructor - * - {@link Combiner} – the core interface - * * @since 4.0.0 */ export * as Combiner from "./Combiner.ts"; /** - * Declarative, schema-driven configuration loading. A `Config` describes - * how to read and validate a value of type `T` from a `ConfigProvider`. Configs - * can be composed, transformed, and used directly as Effects. - * - * ## Mental model - * - * - **Config\** – a recipe for extracting a typed value from a - * `ConfigProvider`. Created via convenience constructors or {@link schema}. - * - **ConfigProvider** – the backing data source (env vars, JSON, `.env` - * files). See the `ConfigProvider` module. - * - **ConfigError** – wraps either a `SourceError` (provider I/O failure) or - * a `SchemaError` (validation / decoding failure). - * - **parse** – instance method on every `Config` that takes a provider and - * returns `Effect`. - * - **Yieldable** – every `Config` can be yielded inside `Effect.gen`. It - * automatically resolves the current `ConfigProvider` from the context. - * - * ## Common tasks - * - * - Read a single env var → {@link string}, {@link number}, {@link boolean}, - * {@link int}, {@link port}, {@link url}, {@link date}, {@link duration}, - * {@link logLevel}, {@link redacted} - * - Read a structured config → {@link schema} with a `Schema.Struct` - * - Provide a default → {@link withDefault} - * - Make a config optional → {@link option} - * - Transform a value → {@link map} / {@link mapOrFail} - * - Fall back on error → {@link orElse} - * - Combine multiple configs → {@link all} - * - Build from a `Schema.Codec` → {@link schema} - * - Always succeed or fail → {@link succeed} / {@link fail} - * - * ## Gotchas - * - * - `withDefault` and `option` only apply when the error is caused by - * **missing data**. Validation errors (wrong type, out of range) still - * propagate. - * - When yielded in `Effect.gen`, the config resolves using the current - * `ConfigProvider` service. To use a specific provider, call `.parse(provider)` - * instead. - * - The `name` parameter on convenience constructors (e.g. `Config.string("HOST")`) - * sets the root path segment. Omit it when the config is part of a larger - * schema. - * - * ## Quickstart - * - * **Example** (Reading typed config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect, Schema } from "effect" - * - * const AppConfig = Config.schema( - * Schema.Struct({ - * host: Schema.String, - * port: Schema.Int - * }), - * "app" - * ) - * - * const provider = ConfigProvider.fromEnv({ - * env: { app_host: "localhost", app_port: "8080" } - * }) - * - * // Effect.runSync(AppConfig.parse(provider)) - * // { host: "localhost", port: 8080 } - * ``` - * - * @see {@link schema} – build a Config from any Schema.Codec - * @see {@link ConfigError} – the error type for config failures - * @see {@link make} – low-level Config constructor - * * @since 4.0.0 */ export * as Config from "./Config.ts"; /** - * Provides the data source layer for the `Config` module. A `ConfigProvider` - * knows how to load raw configuration nodes from a backing store (environment - * variables, JSON objects, `.env` files, file trees) and expose them through a - * uniform `Node` interface that `Config` schemas consume. - * - * ## Mental model - * - * - **Node** – a discriminated union (`Value | Record | Array`) that describes - * what lives at a given path in the configuration tree. - * - **Path** – an array of string or numeric segments used to address a node - * (e.g. `["database", "host"]`). - * - **ConfigProvider** – an object with a `load(path)` method that resolves a - * path to a `Node | undefined`. Providers can be composed and transformed. - * - **Context.Reference** – `ConfigProvider` is registered as a reference - * service that defaults to `fromEnv()`, so it works without explicit - * provision. - * - **SourceError** – the typed error returned when a backing store is - * unreadable (I/O failure, permission error, etc.). - * - * ## Common tasks - * - * - Read from environment variables → {@link fromEnv} - * - Read from a JSON / plain object → {@link fromUnknown} - * - Parse a `.env` string → {@link fromDotEnvContents} - * - Load a `.env` file → {@link fromDotEnv} - * - Read from a directory tree → {@link fromDir} - * - Build a custom provider → {@link make} - * - Fall back to another provider → {@link orElse} - * - Scope a provider under a prefix → {@link nested} - * - Convert path segments to `CONSTANT_CASE` → {@link constantCase} - * - Transform path segments arbitrarily → {@link mapInput} - * - Install a provider as a Layer → {@link layer} / {@link layerAdd} - * - * ## Gotchas - * - * - `fromEnv` joins path segments with `_` for lookup **and** splits env var - * names on `_` to discover child keys. `DATABASE_HOST=x` is therefore - * accessible at both `["DATABASE_HOST"]` and `["DATABASE", "HOST"]`. - * - Because of `_` splitting, querying a parent path like `["DATABASE"]` - * returns a `Record` node with child key `"HOST"`, even if no env var - * named `DATABASE` exists. - * - When using `fromEnv` with schemas that use camelCase keys, pipe the - * provider through {@link constantCase} so `databaseHost` resolves to - * `DATABASE_HOST`. - * - `orElse` only falls back when the primary provider returns `undefined` - * (path not found). It does **not** catch `SourceError`. - * - `nested` prepends segments to the path *after* `mapInput` has run, so - * the order of composition matters. - * - * ## Quickstart - * - * **Example** (Reading config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect } from "effect" - * - * const provider = ConfigProvider.fromEnv({ - * env: { APP_PORT: "3000", APP_HOST: "localhost" } - * }) - * - * const port = Config.number("port") - * - * const program = port.parse( - * provider.pipe( - * ConfigProvider.nested("app"), - * ConfigProvider.constantCase - * ) - * ) - * - * // Effect.runSync(program) // 3000 - * ``` - * - * @see {@link make} – build a provider from a lookup function - * @see {@link fromEnv} – the default provider backed by `process.env` - * @see {@link fromUnknown} – provider backed by a plain JS object - * * @since 4.0.0 */ export * as ConfigProvider from "./ConfigProvider.ts"; /** - * The `Console` module provides a functional interface for console operations within - * the Effect ecosystem. It offers type-safe logging, debugging, and console manipulation - * capabilities with built-in support for testing and environment isolation. - * - * ## Key Features - * - * - **Type-safe logging**: All console operations return Effects for composability - * - **Testable**: Mock console output for testing scenarios - * - **Service-based**: Integrated with Effect's dependency injection system - * - **Environment isolation**: Different console implementations per environment - * - **Rich API**: Support for all standard console methods (log, error, debug, etc.) - * - **Performance tracking**: Built-in timing and profiling capabilities - * - * ## Core Operations - * - * - **Basic logging**: `log`, `error`, `warn`, `info`, `debug` - * - **Assertions**: `assert` for conditional logging - * - **Grouping**: `group`, `groupCollapsed`, `groupEnd` for organized output - * - **Timing**: `time`, `timeEnd`, `timeLog` for performance measurement - * - **Data display**: `table`, `dir`, `dirxml` for structured data visualization - * - **Utilities**: `clear`, `count`, `countReset`, `trace` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Basic logging - * const program = Effect.gen(function*() { - * yield* Console.log("Hello, World!") - * yield* Console.error("Something went wrong") - * yield* Console.warn("This is a warning") - * yield* Console.info("Information message") - * }) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Grouped logging with timing - * const debugProgram = Console.withGroup( - * Effect.gen(function*() { - * yield* Console.log("Step 1: Loading...") - * yield* Effect.sleep("100 millis") - * - * yield* Console.log("Step 2: Processing...") - * yield* Effect.sleep("200 millis") - * }), - * { label: "Processing Data" } - * ) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Data visualization and debugging - * const dataProgram = Effect.gen(function*() { - * const users = [ - * { id: 1, name: "Alice", age: 30 }, - * { id: 2, name: "Bob", age: 25 } - * ] - * - * yield* Console.table(users) - * yield* Console.dir(users[0], { depth: 2 }) - * yield* Console.assert(users.length > 0, "Users array should not be empty") - * }) - * ``` - * * @since 2.0.0 */ export * as Console from "./Console.ts"; /** - * This module provides a data structure called `Context` that can be used - * for dependency injection in effectful programs. It is essentially a table - * mapping `Service`s identifiers to their implementations, and can be used to - * manage dependencies in a type-safe way. The `Context` data structure is - * essentially a way of providing access to a set of related services that can - * be passed around as a single unit. This module provides functions to create, - * modify, and query the contents of a `Context`, as well as a number of - * utility types for working with a `Context`. - * * @since 4.0.0 */ export * as Context from "./Context.ts"; @@ -735,76 +95,10 @@ export * as Context from "./Context.ts"; */ export * as Cron from "./Cron.ts"; /** - * Immutable data constructors with discriminated-union support. - * - * The `Data` module provides base classes and factory functions for creating - * immutable value types with a `_tag` field for discriminated unions. - * It is the recommended way to define domain models, error types, and - * lightweight ADTs in Effect applications. - * - * ## Mental model - * - * - **`Class`** — base class for plain immutable data. Extend it with a type - * parameter to declare the fields. Instances are `Pipeable`. - * - **`TaggedClass`** — like `Class` but automatically adds a `readonly _tag` - * string literal field. Useful for single-variant types or ad-hoc tagged - * values. - * - **`TaggedEnum`** (type) + **`taggedEnum`** (value) — define a multi-variant - * discriminated union from a simple record. `taggedEnum()` returns per-variant - * constructors plus `$is` / `$match` helpers. - * - **`Error`** — like `Class` but extends `Cause.YieldableError`, so instances - * can be yielded inside `Effect.gen` to fail the effect. - * - **`TaggedError`** — like `TaggedClass` but extends `Cause.YieldableError`. - * Works with `Effect.catchTag` for tag-based error recovery. - * - * ## Common tasks - * - * - Define a simple value class → {@link Class} - * - Define a value class with a `_tag` → {@link TaggedClass} - * - Define a discriminated union with constructors → {@link TaggedEnum} + {@link taggedEnum} - * - Define a yieldable error → {@link Error} - * - Define a yieldable tagged error → {@link TaggedError} - * - Type-guard a tagged value → `$is` from {@link taggedEnum} - * - Pattern-match on a tagged union → `$match` from {@link taggedEnum} - * - * ## Gotchas - * - * - Variant records passed to `TaggedEnum` must **not** contain a `_tag` key; - * the `_tag` is added automatically from the record key. - * - When a class has no fields, the constructor argument is optional (`void`). - * - `taggedEnum()` creates **plain objects**, not class instances. If you need - * class-based variants, use `TaggedClass` or `TaggedError` instead. - * - `TaggedEnum.WithGenerics` supports up to 4 generic type parameters. - * - * ## Quickstart - * - * **Example** (tagged union with pattern matching) - * - * ```ts - * import { Data } from "effect" - * - * type Shape = Data.TaggedEnum<{ - * Circle: { readonly radius: number } - * Rect: { readonly width: number; readonly height: number } - * }> - * const { Circle, Rect, $match } = Data.taggedEnum() - * - * const area = $match({ - * Circle: ({ radius }) => Math.PI * radius ** 2, - * Rect: ({ width, height }) => width * height - * }) - * - * console.log(area(Circle({ radius: 5 }))) - * // 78.53981633974483 - * console.log(area(Rect({ width: 3, height: 4 }))) - * // 12 - * ``` - * - * @see {@link Class} — plain immutable data class - * @see {@link TaggedEnum} — discriminated union type - * @see {@link taggedEnum} — discriminated union constructors - * @see {@link TaggedError} — yieldable tagged error class - * + * @since 4.0.0 + */ +export * as Crypto from "./Crypto.ts"; +/** * @since 2.0.0 */ export * as Data from "./Data.ts"; @@ -813,71 +107,6 @@ export * as Data from "./Data.ts"; */ export * as DateTime from "./DateTime.ts"; /** - * This module provides utilities for working with `Deferred`, a powerful concurrency - * primitive that represents an asynchronous variable that can be set exactly once. - * Multiple fibers can await the same `Deferred` and will all be notified when it - * completes. - * - * A `Deferred` can be: - * - **Completed successfully** with a value of type `A` - * - **Failed** with an error of type `E` - * - **Interrupted** if the fiber setting it is interrupted - * - * Key characteristics: - * - **Single assignment**: Can only be completed once - * - **Multiple waiters**: Many fibers can await the same `Deferred` - * - **Fiber-safe**: Thread-safe operations across concurrent fibers - * - **Composable**: Works seamlessly with other Effect operations - * - * @example - * ```ts - * import { Deferred, Effect, Fiber } from "effect" - * - * // Basic usage: coordinate between fibers - * const program = Effect.gen(function*() { - * const deferred = yield* Deferred.make() - * - * // Fiber 1: waits for the value - * const waiter = yield* Effect.forkChild( - * Effect.gen(function*() { - * const value = yield* Deferred.await(deferred) - * console.log("Received:", value) - * return value - * }) - * ) - * - * // Fiber 2: sets the value after a delay - * const setter = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("1 second") - * yield* Deferred.succeed(deferred, "Hello from setter!") - * }) - * ) - * - * // Wait for both fibers - * yield* Fiber.join(waiter) - * yield* Fiber.join(setter) - * }) - * - * // Producer-consumer pattern - * const producerConsumer = Effect.gen(function*() { - * const buffer = yield* Deferred.make, never>() - * - * const producer = Effect.gen(function*() { - * const data = [1, 2, 3, 4, 5] - * yield* Deferred.succeed(buffer, data) - * }) - * - * const consumer = Effect.gen(function*() { - * const data = yield* Deferred.await(buffer) - * return data.reduce((sum, n) => sum + n, 0) - * }) - * - * const [, result] = yield* Effect.all([producer, consumer]) - * return result // 15 - * }) - * ``` - * * @since 2.0.0 */ export * as Deferred from "./Deferred.ts"; @@ -886,89 +115,10 @@ export * as Deferred from "./Deferred.ts"; */ export * as Differ from "./Differ.ts"; /** - * This module provides utilities for working with durations of time. A `Duration` - * is an immutable data type that represents a span of time with high precision, - * supporting operations from nanoseconds to weeks. - * - * Durations support: - * - **High precision**: Nanosecond-level accuracy using BigInt - * - **Multiple formats**: Numbers (millis), BigInt (nanos), tuples, strings - * - **Arithmetic operations**: Add, subtract, multiply, divide - * - **Comparisons**: Equal, less than, greater than - * - **Conversions**: Between different time units - * - **Human-readable formatting**: Pretty printing and parsing - * * @since 2.0.0 */ export * as Duration from "./Duration.ts"; /** - * The `Effect` module is the core of the Effect library, providing a powerful and expressive - * way to model and compose asynchronous, concurrent, and effectful computations. - * - * An `Effect` represents a computation that: - * - May succeed with a value of type `A` - * - May fail with an error of type `E` - * - Requires a context/environment of type `R` - * - * Effects are lazy and immutable - they describe computations that can be executed later. - * This allows for powerful composition, error handling, resource management, and concurrency - * patterns. - * - * ## Key Features - * - * - **Type-safe error handling**: Errors are tracked in the type system - * - **Resource management**: Automatic cleanup with scoped resources - * - **Structured concurrency**: Safe parallel and concurrent execution - * - **Composable**: Effects can be combined using operators like `flatMap`, `map`, `zip` - * - **Testable**: Built-in support for testing with controlled environments - * - **Interruptible**: Effects can be safely interrupted and cancelled - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Creating a simple effect - * const hello = Effect.succeed("Hello, World!") - * - * // Composing effects - * const program = Effect.gen(function*() { - * const message = yield* hello - * yield* Console.log(message) - * return message.length - * }) - * - * // Running the effect - * Effect.runPromise(program).then(console.log) // 13 - * ``` - * - * @example - * ```ts - * import { Data, Effect } from "effect" - * - * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} - * - * // Effect that may fail - * const divide = (a: number, b: number) => - * b === 0 - * ? Effect.fail(new DiscountRateError()) - * : Effect.succeed(a / b) - * - * // Error handling - * const program = Effect.gen(function*() { - * const result = yield* divide(10, 2) - * console.log("Result:", result) // Result: 5 - * return result - * }) - * - * // Handle errors - * const safeProgram = program.pipe( - * Effect.match({ - * onFailure: (error) => -1, - * onSuccess: (value) => value - * }) - * ) - * ``` - * * @since 2.0.0 */ export * as Effect from "./Effect.ts"; @@ -977,185 +127,18 @@ export * as Effect from "./Effect.ts"; */ export * as Effectable from "./Effectable.ts"; /** - * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex. - * * @since 4.0.0 */ export * as Encoding from "./Encoding.ts"; /** - * Structural and custom equality for Effect values. - * - * The `Equal` module provides deep structural comparison for primitives, plain - * objects, arrays, Maps, Sets, Dates, and RegExps. Types that implement the - * {@link Equal} interface can supply their own comparison logic while staying - * compatible with the rest of the ecosystem (HashMap, HashSet, etc.). - * - * ## Mental model - * - * - **Structural equality** — two values are equal when their contents match, - * not when they share the same reference. - * - **Hash-first shortcut** — before comparing fields, the module checks - * {@link Hash.hash}. If the hashes differ the objects are unequal without - * further traversal. - * - **Equal interface** — any object that implements both {@link symbol} (the - * equality method) and `Hash.symbol` (the hash method) can define custom - * comparison logic. - * - **Caching** — comparison results for object pairs are cached in a WeakMap. - * This makes repeated checks fast but **requires immutability** after the - * first comparison. - * - **By-reference opt-out** — {@link byReference} and {@link byReferenceUnsafe} - * let you switch individual objects back to reference equality when you need - * mutable identity semantics. - * - * ## Common tasks - * - * - Compare two values → {@link equals} - * - Check if a value implements `Equal` → {@link isEqual} - * - Use `equals` where an `Equivalence` is expected → {@link asEquivalence} - * - Implement custom equality on a class → implement {@link Equal} (see - * example on the interface) - * - Opt an object out of structural equality → {@link byReference} / - * {@link byReferenceUnsafe} - * - * ## Gotchas - * - * - Objects **must be treated as immutable** after their first equality check. - * Results are cached; mutating an object afterwards yields stale results. - * - `NaN` is considered equal to `NaN` (unlike `===`). - * - Functions without an `Equal` implementation are compared by reference. - * - Map and Set comparisons are order-independent but O(n²) in size. - * - If only one of two objects implements `Equal`, they are never equal. - * - * ## Quickstart - * - * **Example** (basic structural comparison) - * - * ```ts - * import { Equal } from "effect" - * - * // Primitives - * console.log(Equal.equals(1, 1)) // true - * console.log(Equal.equals("a", "b")) // false - * - * // Objects and arrays - * console.log(Equal.equals({ x: 1 }, { x: 1 })) // true - * console.log(Equal.equals([1, 2], [1, 2])) // true - * - * // Curried form - * const is42 = Equal.equals(42) - * console.log(is42(42)) // true - * console.log(is42(0)) // false - * ``` - * - * @see {@link equals} — the main comparison function - * @see {@link Equal} — the interface for custom equality - * @see {@link Hash} — the companion hashing module - * * @since 2.0.0 */ export * as Equal from "./Equal.ts"; /** - * Utilities for defining equivalence relations - binary relations that determine when two values - * should be considered equivalent. Equivalence relations are used for comparing, deduplicating, - * and organizing data in collections and data structures. - * - * ## Mental model - * - * - **Equivalence relation**: A function `(a: A, b: A) => boolean` that returns `true` when values are equivalent - * - **Reflexive property**: Every value is equivalent to itself (`eq(a, a) === true`) - * - **Symmetric property**: If `a` is equivalent to `b`, then `b` is equivalent to `a` (`eq(a, b) === eq(b, a)`) - * - **Transitive property**: If `a` is equivalent to `b` and `b` is equivalent to `c`, then `a` is equivalent to `c` - * - **Reference equality optimization**: {@link make} checks `===` first for performance before calling the custom function - * - **Composition**: Equivalences can be combined using {@link combine} and {@link combineAll} to create more complex relations - * - * ## Common tasks - * - * - Creating custom equivalences → {@link make} - * - Using strict equality (`===`) → {@link strictEqual} - * - Combining multiple equivalences (AND logic) → {@link combine}, {@link combineAll} - * - Transforming input before comparison → {@link mapInput} - * - Creating equivalences for structured types → {@link Struct}, {@link Tuple}, {@link Array_}, {@link Record} - * - * ## Gotchas - * - * - `strictEqual` uses `===`, so `NaN !== NaN` and objects are compared by reference, not structure - * - `make` optimizes with a reference equality check, so identical references return `true` without calling the function - * - `combineAll` with an empty collection returns an equivalence that always returns `true` - * - `Tuple` and `Array` require matching lengths; different lengths are never equivalent - * - * ## Quickstart - * - * **Example** (Case-insensitive string equivalence) - * - * ```ts - * import { Array, Equivalence } from "effect" - * - * const caseInsensitive = Equivalence.make((a, b) => - * a.toLowerCase() === b.toLowerCase() - * ) - * - * const strings = ["Hello", "world", "HELLO", "World"] - * const deduplicated = Array.dedupeWith(strings, caseInsensitive) - * console.log(deduplicated) // ["Hello", "world"] - * ``` - * - * ## See also - * - * - {@link Equal} - For structural equality (can convert to Equivalence) - * - {@link Array_.dedupeWith} - Remove duplicates using an equivalence - * - {@link Chunk} - Collections that use equivalences for operations - * * @since 2.0.0 */ export * as Equivalence from "./Equivalence.ts"; /** - * Pluggable error reporting for Effect programs. - * - * Reporting is triggered by `Effect.withErrorReporting`, - * `ErrorReporter.report`, or built-in reporting boundaries in the HTTP and - * RPC server modules. - * - * Each reporter receives a structured callback with the failing `Cause`, a - * pretty-printed `Error`, severity, and any extra attributes attached to the - * original error — making it straightforward to forward failures to Sentry, - * Datadog, or a custom logging backend. - * - * Use the annotation symbols (`ignore`, `severity`, `attributes`) on your - * error classes to control reporting behavior per-error. - * - * @example - * ```ts - * import { Data, Effect, ErrorReporter } from "effect" - * - * // A reporter that logs to the console - * const consoleReporter = ErrorReporter.make(({ error, severity }) => { - * console.error(`[${severity}]`, error.message) - * }) - * - * // An error that should be ignored by reporters - * class NotFoundError extends Data.TaggedError("NotFoundError")<{}> { - * readonly [ErrorReporter.ignore] = true - * } - * - * // An error with custom severity and attributes - * class RateLimitError extends Data.TaggedError("RateLimitError")<{ - * readonly retryAfter: number - * }> { - * readonly [ErrorReporter.severity] = "Warn" as const - * readonly [ErrorReporter.attributes] = { - * retryAfter: this.retryAfter - * } - * } - * - * // Opt in to error reporting with Effect.withErrorReporting - * const program = Effect.gen(function*() { - * return yield* new RateLimitError({ retryAfter: 60 }) - * }).pipe( - * Effect.withErrorReporting, - * Effect.provide(ErrorReporter.layer([consoleReporter])) - * ) - * ``` - * * @since 4.0.0 */ export * as ErrorReporter from "./ErrorReporter.ts"; @@ -1164,136 +147,10 @@ export * as ErrorReporter from "./ErrorReporter.ts"; */ export * as ExecutionPlan from "./ExecutionPlan.ts"; /** - * Represents the outcome of an Effect computation as a plain, synchronously - * inspectable value. - * - * ## Mental model - * - * - `Exit` is a union of two cases: `Success` and `Failure` - * - A `Success` wraps a value of type `A` - * - A `Failure` wraps a `Cause`, which may contain typed errors, defects, or interruptions - * - `Exit` is also an `Effect`, so you can yield it directly inside `Effect.gen` - * - Constructors mirror the failure modes: {@link fail} for typed errors, {@link die} for defects, {@link interrupt} for fiber interruptions - * - Use `Exit` when you need to inspect an Effect result without running further effects - * - * ## Common tasks - * - * - Create a success: {@link succeed} - * - Create a typed failure: {@link fail} - * - Create a failure from a Cause: {@link failCause} - * - Create a defect: {@link die} - * - Create an interruption: {@link interrupt} - * - Check the outcome: {@link isSuccess}, {@link isFailure}, {@link match} - * - Extract values optionally: {@link getSuccess}, {@link getCause}, {@link findErrorOption} - * - Transform the result: {@link map}, {@link mapError}, {@link mapBoth} - * - Combine multiple exits: {@link asVoidAll} - * - Inspect failure categories: {@link hasFails}, {@link hasDies}, {@link hasInterrupts} - * - * ## Gotchas - * - * - A `Failure` wraps a `Cause`, not a bare `E`. Use Cause utilities to drill into it. - * - {@link mapError} and {@link mapBoth} only transform typed errors (Fail reasons in the Cause). If the Cause contains only defects or interruptions, the original failure passes through unchanged. - * - Filter-based APIs ({@link filterSuccess}, {@link filterValue}, etc.) return `Filter.fail` markers for pipeline composition. They are not `Option` values or Effect failures. - * - {@link findError} and {@link findDefect} return only the first matching reason from the Cause. - * - * ## Quickstart - * - * **Example** (Creating and inspecting exits) - * - * ```ts - * import { Exit } from "effect" - * - * const success = Exit.succeed(42) - * const failure = Exit.fail("not found") - * - * const message = Exit.match(success, { - * onSuccess: (value) => `Got: ${value}`, - * onFailure: () => "Failed" - * }) - * console.log(message) // "Got: 42" - * ``` - * - * ## See also - * - * - {@link Exit} the core union type - * - {@link succeed} and {@link fail} the most common constructors - * - {@link match} for pattern matching on an Exit - * * @since 2.0.0 */ export * as Exit from "./Exit.ts"; /** - * This module provides utilities for working with `Fiber`, the fundamental unit of - * concurrency in Effect. Fibers are lightweight, user-space threads that allow - * multiple Effects to run concurrently with structured concurrency guarantees. - * - * Key characteristics of Fibers: - * - **Lightweight**: Much lighter than OS threads, you can create millions - * - **Structured concurrency**: Parent fibers manage child fiber lifecycles - * - **Cancellation safety**: Proper resource cleanup when interrupted - * - **Cooperative**: Fibers yield control at effect boundaries - * - **Traceable**: Each fiber has an ID for debugging and monitoring - * - * Common patterns: - * - **Fork and join**: Start concurrent work and wait for results - * - **Race conditions**: Run multiple effects, take the first to complete - * - **Supervision**: Monitor and restart failed fibers - * - **Resource management**: Ensure proper cleanup on interruption - * - * @example - * ```ts - * import { Console, Effect, Fiber } from "effect" - * - * // Basic fiber operations - * const basicExample = Effect.gen(function*() { - * // Fork an effect to run concurrently - * const fiber = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("2 seconds") - * yield* Console.log("Background task completed") - * return "background result" - * }) - * ) - * - * // Do other work while the fiber runs - * yield* Console.log("Doing other work...") - * yield* Effect.sleep("1 second") - * - * // Wait for the fiber to complete - * const result = yield* Fiber.join(fiber) - * yield* Console.log(`Fiber result: ${result}`) - * }) - * - * // Joining multiple fibers - * const joinExample = Effect.gen(function*() { - * const task1 = Effect.delay(Effect.succeed("task1"), "1 second") - * const task2 = Effect.delay(Effect.succeed("task2"), "2 seconds") - * - * // Start both effects as fibers - * const fiber1 = yield* Effect.forkChild(task1) - * const fiber2 = yield* Effect.forkChild(task2) - * - * // Wait for both to complete - * const result1 = yield* Fiber.join(fiber1) - * const result2 = yield* Fiber.join(fiber2) - * return [result1, result2] // ["task1", "task2"] - * }) - * - * // Parallel execution with structured concurrency - * const parallelExample = Effect.gen(function*() { - * const tasks = [1, 2, 3, 4, 5].map((n) => - * Effect.gen(function*() { - * yield* Effect.sleep(`${n * 100} millis`) - * return n * n - * }) - * ) - * - * // Run all tasks in parallel, wait for all to complete - * const results = yield* Effect.all(tasks, { concurrency: "unbounded" }) - * return results // [1, 4, 9, 16, 25] - * }) - * ``` - * * @since 2.0.0 */ export * as Fiber from "./Fiber.ts"; @@ -1310,40 +167,6 @@ export * as FiberMap from "./FiberMap.ts"; */ export * as FiberSet from "./FiberSet.ts"; /** - * This module provides a comprehensive file system abstraction that supports both synchronous - * and asynchronous file operations through Effect. It includes utilities for file I/O, directory - * management, permissions, timestamps, and file watching with proper error handling. - * - * The `FileSystem` interface provides a cross-platform abstraction over file system operations, - * allowing you to work with files and directories in a functional, composable way. All operations - * return `Effect` values that can be composed, transformed, and executed safely. - * - * @example - * ```ts - * import { Console, Effect, FileSystem } from "effect" - * - * const program = Effect.gen(function*() { - * const fs = yield* FileSystem.FileSystem - * - * // Create a directory - * yield* fs.makeDirectory("./temp", { recursive: true }) - * - * // Write a file - * yield* fs.writeFileString("./temp/hello.txt", "Hello, World!") - * - * // Read the file back - * const content = yield* fs.readFileString("./temp/hello.txt") - * yield* Console.log("File content:", content) - * - * // Get file information - * const stats = yield* fs.stat("./temp/hello.txt") - * yield* Console.log("File size:", stats.size) - * - * // Clean up - * yield* fs.remove("./temp", { recursive: true }) - * }) - * ``` - * * @since 4.0.0 */ export * as FileSystem from "./FileSystem.ts"; @@ -1352,57 +175,6 @@ export * as FileSystem from "./FileSystem.ts"; */ export * as Filter from "./Filter.ts"; /** - * Utilities for converting arbitrary JavaScript values into human-readable - * strings, with support for circular references, redaction, and common JS - * types that `JSON.stringify` handles poorly. - * - * Mental model: - * - A `Formatter` is a callable `(value: Value) => Format`. - * - {@link format} is the general-purpose pretty-printer: it handles - * primitives, arrays, objects, `BigInt`, `Symbol`, `Date`, `RegExp`, - * `Set`, `Map`, class instances, and circular references. - * - {@link formatJson} is a safe `JSON.stringify` wrapper that silently - * drops circular references and applies redaction. - * - Both functions accept a `space` option for indentation control. - * - * Common tasks: - * - Pretty-print any value for debugging / logging -> {@link format} - * - Serialize to JSON safely (no circular throws) -> {@link formatJson} - * - Format a single object property key -> {@link formatPropertyKey} - * - Format a property path like `["a"]["b"]` -> {@link formatPath} - * - Format a `Date` to ISO string safely -> {@link formatDate} - * - * Gotchas: - * - {@link format} output is **not** valid JSON; use {@link formatJson} when - * you need parseable JSON. - * - {@link format} calls `toString()` on objects by default; pass - * `ignoreToString: true` to disable. - * - {@link formatJson} silently omits circular references (the key is - * dropped from the output). - * - Values implementing the `Redactable` protocol are automatically - * redacted by both {@link format} and {@link formatJson}. - * - * **Example** (Pretty-print a value) - * - * ```ts - * import { Formatter } from "effect" - * - * const obj = { name: "Alice", scores: [100, 97] } - * console.log(Formatter.format(obj)) - * // {"name":"Alice","scores":[100,97]} - * - * console.log(Formatter.format(obj, { space: 2 })) - * // { - * // "name": "Alice", - * // "scores": [ - * // 100, - * // 97 - * // ] - * // } - * ``` - * - * See also: {@link Formatter}, {@link format}, {@link formatJson} - * * @since 4.0.0 */ export * as Formatter from "./Formatter.ts"; @@ -1415,12 +187,6 @@ export * as Function from "./Function.ts"; */ export * as Graph from "./Graph.ts"; /** - * This module provides utilities for hashing values in TypeScript. - * - * Hashing is the process of converting data into a fixed-size numeric value, - * typically used for data structures like hash tables, equality comparisons, - * and efficient data storage. - * * @since 2.0.0 */ export * as Hash from "./Hash.ts"; @@ -1437,331 +203,34 @@ export * as HashRing from "./HashRing.ts"; */ export * as HashSet from "./HashSet.ts"; /** - * This module provides utilities for Higher-Kinded Types (HKT) in TypeScript. - * - * Higher-Kinded Types are types that take other types as parameters, similar to how - * functions take values as parameters. They enable generic programming over type - * constructors, allowing you to write code that works with any container type - * (like Array, Option, Effect, etc.) in a uniform way. - * - * The HKT system in Effect uses TypeLambdas to encode type-level functions that - * can represent complex type relationships with multiple type parameters, including - * contravariant, covariant, and invariant positions. - * - * @example - * ```ts - * import type { HKT } from "effect" - * - * // Define a TypeLambda for Array - * interface ArrayTypeLambda extends HKT.TypeLambda { - * readonly type: Array - * } - * - * // Use Kind to get the concrete type - * type MyArray = HKT.Kind - * // MyArray is Array - * - * // Define a TypeClass that works with any HKT - * interface Functor extends HKT.TypeClass { - * map( - * fa: HKT.Kind, - * f: (a: A) => B - * ): HKT.Kind - * } - * ``` - * * @since 2.0.0 */ export * as HKT from "./HKT.ts"; /** - * This module provides utilities for making values inspectable and debuggable in TypeScript. - * - * The Inspectable interface provides a standard way to implement custom string representations - * for objects, making them easier to debug and inspect. It includes support for JSON - * serialization, Node.js inspection, and safe circular reference handling. - * - * The module also includes redaction capabilities for sensitive data, allowing objects - * to provide different representations based on the current execution context. - * - * @example - * ```ts - * import { Inspectable } from "effect" - * import { format } from "effect/Formatter" - * - * class User extends Inspectable.Class { - * constructor( - * public readonly name: string, - * public readonly email: string - * ) { - * super() - * } - * - * toJSON() { - * return { - * _tag: "User", - * name: this.name, - * email: this.email - * } - * } - * } - * - * const user = new User("Alice", "alice@example.com") - * console.log(user.toString()) // Pretty printed JSON - * console.log(format(user)) // Same as toString() - * ``` - * * @since 2.0.0 */ export * as Inspectable from "./Inspectable.ts"; /** - * This module provides utility functions for working with Iterables in TypeScript. - * - * Iterables are objects that implement the iterator protocol, allowing them to be - * consumed with `for...of` loops, spread syntax, and other iteration constructs. - * This module provides a comprehensive set of functions for creating, transforming, - * and working with iterables in a functional programming style. - * - * Unlike arrays, iterables can be lazy and potentially infinite, making them suitable - * for stream processing and memory-efficient data manipulation. All functions in this - * module preserve the lazy nature of iterables where possible. - * - * @example - * ```ts - * import { Iterable, Option } from "effect" - * - * // Create iterables - * const numbers = Iterable.range(1, 5) - * const doubled = Iterable.map(numbers, (x) => x * 2) - * const filtered = Iterable.filter(doubled, (x) => x > 5) - * - * console.log(Array.from(filtered)) // [6, 8, 10] - * - * // Infinite iterables - * const fibonacci = Iterable.unfold([0, 1], ([a, b]) => Option.some([a, [b, a + b]])) - * const first10 = Iterable.take(fibonacci, 10) - * console.log(Array.from(first10)) // [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] - * ``` - * * @since 2.0.0 */ export * as Iterable from "./Iterable.ts"; /** - * JSON Patch operations for transforming JSON documents. - * - * This module implements a subset of RFC 6902, providing operations that can be applied deterministically without additional context. It supports computing structural diffs between JSON values and applying patches to transform documents. - * - * ## Mental model - * - * - **JSON Patch**: An ordered sequence of operations that transform a document from one state to another - * - **JSON Pointer**: Path syntax for targeting specific locations in a JSON document (e.g., `/users/0/name`) - * - **Operations**: Three types - `add` (insert value), `remove` (delete value), `replace` (update value) - * - **Immutable transformations**: All operations return new values; inputs are never mutated - * - **Sequential application**: Operations are applied in order, with later operations observing changes from earlier ones - * - **Structural diff**: The `get` function computes differences by comparing structure, not content semantics - * - * ## Common tasks - * - * - Computing diffs between JSON values → {@link get} - * - Applying patches to transform documents → {@link apply} - * - Creating patches manually → {@link JsonPatchOperation} - * - Storing and validating patch documents → {@link JsonPatch} - * - * ## Gotchas - * - * - Array removals are emitted from highest index to lowest to avoid index shifting during application - * - Root operations use an empty string path `""` to target the entire document - * - Array append operations use `-` as the last token in the path (e.g., `/items/-`) - * - Generated patches are deterministic but not guaranteed to be minimal - * - Empty patches return the original document reference (no allocation) - * - Invalid paths or operations throw errors rather than returning a result type - * - * ## Quickstart - * - * **Example** (Computing and applying a patch) - * - * ```ts - * import * as JsonPatch from "effect/JsonPatch" - * - * const oldValue = { name: "Alice", age: 30 } - * const newValue = { name: "Alice", age: 31, city: "NYC" } - * - * const patch = JsonPatch.get(oldValue, newValue) - * // [{ op: "replace", path: "/age", value: 31 }, { op: "add", path: "/city", value: "NYC" }] - * - * const result = JsonPatch.apply(patch, oldValue) - * // { name: "Alice", age: 31, city: "NYC" } - * ``` - * - * ## See also - * - * - {@link JsonPointer} - Utilities for working with JSON Pointer paths - * - {@link Schema.Json} - The JSON value type used by this module - * * @since 4.0.0 */ export * as JsonPatch from "./JsonPatch.ts"; /** - * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901. - * - * JSON Pointer (RFC 6901) defines a string syntax for identifying a specific value within a JSON document. - * A JSON Pointer is a sequence of reference tokens separated by forward slashes (`/`). Each reference token - * must be escaped when it contains special characters (`~` or `/`). - * - * ## Mental model - * - * - **Reference token**: A single segment of a JSON Pointer path (e.g., `"foo"`, `"bar/baz"`, `"key~with~tilde"`) - * - **Escaping**: Encoding special characters in a token so it can be safely used in a JSON Pointer (`~` → `~0`, `/` → `~1`) - * - **Unescaping**: Decoding escaped characters back to their original form (`~0` → `~`, `~1` → `/`) - * - **RFC 6901 compliance**: These functions implement the standard escaping rules for JSON Pointer reference tokens - * - **Pure functions**: Both operations are pure, immutable, and have no side effects - * - * ## Common tasks - * - * - Building JSON Pointers from path segments → {@link escapeToken} - * - Parsing JSON Pointers to extract original token values → {@link unescapeToken} - * - Escaping object keys or path segments before constructing JSON Pointers → {@link escapeToken} - * - Extracting unescaped identifiers from JSON Pointer strings → {@link unescapeToken} - * - * ## Gotchas - * - * - These functions operate on **reference tokens**, not full JSON Pointers. A full JSON Pointer like `/foo/bar` must be split into tokens (`["foo", "bar"]`) before escaping/unescaping - * - The order of replacement operations matters: `escapeToken` replaces `~` before `/` to avoid double-escaping - * - Empty strings are valid tokens and are returned unchanged - * - These functions do not validate JSON Pointer syntax; they only handle token-level escaping - * - * ## Quickstart - * - * **Example** (Building and parsing a JSON Pointer) - * - * ```ts - * import { escapeToken, unescapeToken } from "effect/JsonPointer" - * - * // Build a JSON Pointer from path segments - * const segments = ["users", "name/alias", "value"] - * const pointer = "/" + segments.map(escapeToken).join("/") - * // "/users/name~1alias/value" - * - * // Parse a JSON Pointer back to segments - * const tokens = pointer.split("/").slice(1).map(unescapeToken) - * // ["users", "name/alias", "value"] - * ``` - * - * ## See also - * - * - {@link JsonPatch} - Uses these utilities for JSON Patch operations - * - {@link JsonSchema} - Uses these utilities for schema reference resolution - * * @since 4.0.0 */ export * as JsonPointer from "./JsonPointer.ts"; /** - * Convert JSON Schema documents between dialects (Draft-07, Draft-2020-12, - * OpenAPI 3.0, OpenAPI 3.1). All dialects are normalized to an internal - * `Document<"draft-2020-12">` representation before optional conversion to - * an output dialect. - * - * ## Mental model - * - * - **JsonSchema** — a plain object with string keys; represents any single - * JSON Schema node. - * - **Dialect** — one of `"draft-07"`, `"draft-2020-12"`, `"openapi-3.1"`, - * or `"openapi-3.0"`. - * - **Document** — a structured container holding a root `schema`, its - * companion `definitions`, and the target `dialect`. Definitions are - * stored separately from the root schema so they can be relocated when - * converting between dialects. - * - **MultiDocument** — same as `Document` but carries multiple root - * schemas (at least one). Useful when generating several schemas that - * share a single definitions pool. - * - **Definitions** — a `Record` keyed by definition - * name. The ref pointer prefix depends on the dialect. - * - **`from*` functions** — parse a raw JSON Schema object into the - * canonical `Document<"draft-2020-12">`. - * - **`to*` functions** — convert from the canonical representation to a - * specific output dialect. - * - * ## Common tasks - * - * - Parse a Draft-07 schema → {@link fromSchemaDraft07} - * - Parse a Draft-2020-12 schema → {@link fromSchemaDraft2020_12} - * - Parse an OpenAPI 3.1 schema → {@link fromSchemaOpenApi3_1} - * - Parse an OpenAPI 3.0 schema → {@link fromSchemaOpenApi3_0} - * - Convert to Draft-07 output → {@link toDocumentDraft07} - * - Convert to OpenAPI 3.1 output → {@link toMultiDocumentOpenApi3_1} - * - Resolve a `$ref` against definitions → {@link resolve$ref} - * - Inline the root `$ref` of a document → {@link resolveTopLevel$ref} - * - * ## Gotchas - * - * - All `from*` functions normalize to `Document<"draft-2020-12">` - * regardless of the input dialect. - * - Unsupported or unrecognized JSON Schema keywords are silently dropped - * during conversion. - * - Draft-07 tuple syntax (`items` as array + `additionalItems`) is - * converted to 2020-12 form (`prefixItems` + `items`), and vice-versa. - * - OpenAPI 3.0 `nullable: true` is expanded into `type` arrays or - * `anyOf` unions. The `nullable` keyword is removed. - * - OpenAPI 3.0 singular `example` is converted to `examples` (array). - * - {@link resolve$ref} only looks up the last segment of the ref path in - * the definitions map; it does not follow arbitrary JSON Pointer paths. - * - * ## Quickstart - * - * **Example** (Parse a Draft-07 schema and convert to Draft-07 output) - * - * ```ts - * import { JsonSchema } from "effect" - * - * const raw: JsonSchema.JsonSchema = { - * type: "object", - * properties: { - * name: { type: "string" } - * }, - * required: ["name"] - * } - * - * // Parse into canonical form - * const doc = JsonSchema.fromSchemaDraft07(raw) - * - * // Convert back to Draft-07 - * const draft07 = JsonSchema.toDocumentDraft07(doc) - * - * console.log(draft07.dialect) // "draft-07" - * console.log(draft07.schema) // { type: "object", properties: { name: { type: "string" } }, required: ["name"] } - * ``` - * - * ## See also - * - * - {@link Document} - * - {@link MultiDocument} - * - {@link fromSchemaDraft07} - * - {@link toDocumentDraft07} - * - {@link resolve$ref} - * * @since 4.0.0 */ export * as JsonSchema from "./JsonSchema.ts"; /** - * @since 3.8.0 + * @since 4.0.0 */ export * as Latch from "./Latch.ts"; /** - * A `Layer` describes how to build one or more services in your - * application. Services can be injected into effects via - * `Effect.provideService`. Effects can require services via `Effect.service`. - * - * Layer can be thought of as recipes for producing bundles of services, given - * their dependencies (other services). - * - * Construction of services can be effectful and utilize resources that must be - * acquired and safely released when the services are done being utilized. - * - * By default layers are shared, meaning that if the same layer is used twice - * the layer will only be allocated a single time. - * - * Because of their excellent composition properties, layers are the idiomatic - * way in Effect-TS to create services that depend on other services. - * * @since 2.0.0 */ export * as Layer from "./Layer.ts"; @@ -1771,204 +240,10 @@ export * as Layer from "./Layer.ts"; export * as LayerMap from "./LayerMap.ts"; /** * @since 2.0.0 - * - * The `Logger` module provides a robust and flexible logging system for Effect applications. - * It offers structured logging, multiple output formats, and seamless integration with the - * Effect runtime's tracing and context management. - * - * ## Key Features - * - * - **Structured Logging**: Built-in support for structured log messages with metadata - * - **Multiple Formats**: JSON, LogFmt, Pretty, and custom formatting options - * - **Context Integration**: Automatic capture of fiber context, spans, and annotations - * - **Batching**: Efficient log aggregation and batch processing - * - **File Output**: Direct file writing with configurable batch windows - * - **Composable**: Transform and compose loggers using functional patterns - * - * ## Basic Usage - * - * ```ts - * import { Effect } from "effect" - * - * // Basic logging - * const program = Effect.gen(function*() { - * yield* Effect.log("Application started") - * yield* Effect.logInfo("Processing user request") - * yield* Effect.logWarning("Resource limit approaching") - * yield* Effect.logError("Database connection failed") - * }) - * - * // With structured data - * const structuredLog = Effect.gen(function*() { - * yield* Effect.log("User action", { userId: 123, action: "login" }) - * yield* Effect.logInfo("Request processed", { duration: 150, statusCode: 200 }) - * }) - * ``` - * - * ## Custom Loggers - * - * ```ts - * import { Effect, Logger } from "effect" - * - * // Create a custom logger - * const customLogger = Logger.make((options) => { - * console.log(`[${options.logLevel}] ${options.message}`) - * }) - * - * // Use JSON format for production - * const jsonLogger = Logger.consoleJson - * - * // Pretty format for development - * const prettyLogger = Logger.consolePretty() - * - * const program = Effect.log("Hello World").pipe( - * Effect.provide(Logger.layer([jsonLogger])) - * ) - * ``` - * - * ## Multiple Loggers - * - * ```ts - * import { Effect, Logger } from "effect" - * - * // Combine multiple loggers - * const CombinedLoggerLive = Logger.layer([ - * Logger.consoleJson, - * Logger.consolePretty() - * ]) - * - * const program = Effect.log("Application event").pipe( - * Effect.provide(CombinedLoggerLive) - * ) - * ``` - * - * ## Batched Logging - * - * ```ts - * import { Duration, Effect, Logger } from "effect" - * - * const batchedLogger = Logger.batched(Logger.formatJson, { - * window: Duration.seconds(5), - * flush: (messages) => - * Effect.sync(() => { - * // Process batch of log messages - * console.log("Flushing", messages.length, "log entries") - * }) - * }) - * - * const program = Effect.gen(function*() { - * const logger = yield* batchedLogger - * yield* Effect.provide( - * Effect.all([ - * Effect.log("Event 1"), - * Effect.log("Event 2"), - * Effect.log("Event 3") - * ]), - * Logger.layer([logger]) - * ) - * }) - * ``` */ export * as Logger from "./Logger.ts"; /** * @since 2.0.0 - * - * The `LogLevel` module provides utilities for managing log levels in Effect applications. - * It defines a hierarchy of log levels and provides functions for comparing and filtering logs - * based on their severity. - * - * ## Log Level Hierarchy - * - * The log levels are ordered from most severe to least severe: - * - * 1. **All** - Special level that allows all messages - * 2. **Fatal** - System is unusable, immediate attention required - * 3. **Error** - Error conditions that should be investigated - * 4. **Warn** - Warning conditions that may indicate problems - * 5. **Info** - Informational messages about normal operation - * 6. **Debug** - Debug information useful during development - * 7. **Trace** - Very detailed trace information - * 8. **None** - Special level that suppresses all messages - * - * ## Basic Usage - * - * ```ts - * import { Effect } from "effect" - * - * // Basic log level usage - * const program = Effect.gen(function*() { - * yield* Effect.logFatal("System is shutting down") - * yield* Effect.logError("Database connection failed") - * yield* Effect.logWarning("Memory usage is high") - * yield* Effect.logInfo("User logged in") - * yield* Effect.logDebug("Processing request") - * yield* Effect.logTrace("Variable value: xyz") - * }) - * ``` - * - * ## Level Comparison - * - * ```ts - * import { LogLevel } from "effect" - * - * // Check if one level is more severe than another - * console.log(LogLevel.isGreaterThan("Error", "Info")) // true - * console.log(LogLevel.isGreaterThan("Debug", "Error")) // false - * - * // Check if level meets minimum threshold - * console.log(LogLevel.isGreaterThanOrEqualTo("Info", "Debug")) // true - * console.log(LogLevel.isLessThan("Trace", "Info")) // true - * ``` - * - * ## Filtering by Level - * - * ```ts - * import { Logger, LogLevel } from "effect" - * - * // Create a logger that only logs Error and above - * const errorLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Error")) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * - * // Production logger - Info and above - * const productionLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Info")) { - * console.log( - * `${options.date.toISOString()} [${options.logLevel}] ${options.message}` - * ) - * } - * }) - * - * // Development logger - Debug and above - * const devLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Debug")) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * ``` - * - * ## Runtime Configuration - * - * ```ts - * import { Config, Effect, Logger, LogLevel } from "effect" - * - * // Configure log level from environment - * const logLevelConfig = Config.string("LOG_LEVEL").pipe( - * Config.withDefault("Info") - * ) - * - * const configurableLogger = Effect.gen(function*() { - * const minLevel = yield* logLevelConfig - * - * return Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, minLevel)) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * }) - * ``` */ export * as LogLevel from "./LogLevel.ts"; /** @@ -1976,751 +251,55 @@ export * as LogLevel from "./LogLevel.ts"; */ export * as ManagedRuntime from "./ManagedRuntime.ts"; /** - * The `effect/match` module provides a type-safe pattern matching system for - * TypeScript. Inspired by functional programming, it simplifies conditional - * logic by replacing verbose if/else or switch statements with a structured and - * expressive API. - * - * This module supports matching against types, values, and discriminated unions - * while enforcing exhaustiveness checking to ensure all cases are handled. - * - * Although pattern matching is not yet a native JavaScript feature, - * `effect/match` offers a reliable implementation that is available today. - * - * **How Pattern Matching Works** - * - * Pattern matching follows a structured process: - * - * - **Creating a matcher**: Define a `Matcher` that operates on either a - * specific `Match.type` or `Match.value`. - * - * - **Defining patterns**: Use combinators such as `Match.when`, `Match.not`, - * and `Match.tag` to specify matching conditions. - * - * - **Completing the match**: Apply a finalizer such as `Match.exhaustive`, - * `Match.orElse`, or `Match.option` to determine how unmatched cases should - * be handled. - * * @since 4.0.0 */ export * as Match from "./Match.ts"; /** * @since 2.0.0 - * - * The `Metric` module provides a comprehensive system for collecting, aggregating, and observing - * application metrics in Effect applications. It offers type-safe, concurrent metrics that can - * be used to monitor performance, track business metrics, and gain insights into application behavior. - * - * ## Key Features - * - * - **Five Metric Types**: Counters, Gauges, Frequencies, Histograms, and Summaries - * - **Type Safety**: Fully typed metrics with compile-time guarantees - * - **Concurrency Safe**: Thread-safe metrics that work with Effect's concurrency model - * - **Attributes**: Tag metrics with key-value attributes for filtering and grouping - * - **Snapshots**: Take point-in-time snapshots of all metrics for reporting - * - **Runtime Integration**: Automatic fiber runtime metrics collection - * - * ## Metric Types - * - * ### Counter - * Tracks cumulative values that only increase or can be reset to zero. - * Perfect for counting events, requests, errors, etc. - * - * ### Gauge - * Represents a single numerical value that can go up or down. - * Ideal for current resource usage, temperature, queue sizes, etc. - * - * ### Frequency - * Counts occurrences of discrete string values. - * Useful for tracking categorical data like HTTP status codes, user actions, etc. - * - * ### Histogram - * Records observations in configurable buckets to analyze distribution. - * Great for response times, request sizes, and other measured values. - * - * ### Summary - * Calculates quantiles over a sliding time window. - * Provides statistical insights into value distributions over time. - * - * ## Basic Usage - * - * ```ts - * import { Effect, Metric } from "effect" - * - * // Create metrics - * const requestCount = Metric.counter("http_requests_total", { - * description: "Total number of HTTP requests" - * }) - * - * const responseTime = Metric.histogram("http_response_time", { - * description: "HTTP response time in milliseconds", - * boundaries: Metric.linearBoundaries({ start: 0, width: 50, count: 20 }) - * }) - * - * // Use metrics in your application - * const handleRequest = Effect.gen(function*() { - * yield* Metric.update(requestCount, 1) - * - * const startTime = yield* Effect.clockWith((clock) => clock.currentTimeMillis) - * - * // Process request... - * yield* Effect.sleep("100 millis") - * - * const endTime = yield* Effect.clockWith((clock) => clock.currentTimeMillis) - * yield* Metric.update(responseTime, endTime - startTime) - * }) - * ``` - * - * ## Attributes and Tagging - * - * ```ts - * import { Effect, Metric } from "effect" - * - * const requestCount = Metric.counter("requests", { - * description: "Number of requests by endpoint and method" - * }) - * - * const program = Effect.gen(function*() { - * // Add attributes to metrics - * yield* Metric.update( - * Metric.withAttributes(requestCount, { - * endpoint: "/api/users", - * method: "GET" - * }), - * 1 - * ) - * - * // Or use withAttributes for compile-time attributes - * const taggedCounter = Metric.withAttributes(requestCount, { - * endpoint: "/api/posts", - * method: "POST" - * }) - * yield* Metric.update(taggedCounter, 1) - * }) - * ``` - * - * ## Advanced Examples - * - * ```ts - * import { Effect, Metric } from "effect" - * - * // Business metrics - * const userSignups = Metric.counter("user_signups_total") - * const activeUsers = Metric.gauge("active_users_current") - * const featureUsage = Metric.frequency("feature_usage") - * - * // Performance metrics - * const dbQueryTime = Metric.summary("db_query_duration", { - * maxAge: "5 minutes", - * maxSize: 1000, - * quantiles: [0.5, 0.9, 0.95, 0.99] - * }) - * - * const program = Effect.gen(function*() { - * // Track user signup - * yield* Metric.update(userSignups, 1) - * - * // Update active user count - * yield* Metric.update(activeUsers, 1250) - * - * // Record feature usage - * yield* Metric.update(featureUsage, "dashboard_view") - * - * // Measure database query time - * yield* Effect.timed(performDatabaseQuery).pipe( - * Effect.tap(([duration]) => Metric.update(dbQueryTime, duration)) - * ) - * }) - * - * // Get metric snapshots - * const getMetrics = Effect.gen(function*() { - * const snapshots = yield* Metric.snapshot - * - * for (const metric of snapshots) { - * console.log(`${metric.id}: ${JSON.stringify(metric.state)}`) - * } - * }) - * ``` */ export * as Metric from "./Metric.ts"; /** - * MutableHashMap is a high-performance, mutable hash map implementation designed for efficient key-value storage - * with support for both structural and referential equality. It provides O(1) average-case performance for - * basic operations and integrates seamlessly with Effect's Equal and Hash interfaces. - * - * The implementation uses a hybrid approach: - * - Referential keys (without Equal implementation) are stored in a native Map - * - Structural keys (with Equal implementation) are stored in hash buckets with collision handling - * - * Key Features: - * - Mutable operations for performance-critical scenarios - * - Supports both structural and referential equality - * - Efficient collision handling through bucketing - * - Iterable interface for easy traversal - * - Memory-efficient storage with automatic bucket management - * - * Performance Characteristics: - * - Get/Set/Has: O(1) average, O(n) worst case (hash collisions) - * - Remove: O(1) average, O(n) worst case - * - Clear: O(1) - * - Size: O(1) - * - Iteration: O(n) - * * @since 2.0.0 - * @category data-structures */ export * as MutableHashMap from "./MutableHashMap.ts"; /** - * @fileoverview - * MutableHashSet is a high-performance, mutable set implementation that provides efficient storage - * and retrieval of unique values. Built on top of MutableHashMap, it inherits the same performance - * characteristics and support for both structural and referential equality. - * - * The implementation uses a MutableHashMap internally where each value is stored as a key with a - * boolean flag, providing O(1) average-case performance for all operations. - * - * Key Features: - * - Mutable operations for performance-critical scenarios - * - Supports both structural and referential equality - * - Efficient duplicate detection and removal - * - Iterable interface for easy traversal - * - Memory-efficient storage with automatic deduplication - * - Seamless integration with Effect's Equal and Hash interfaces - * - * Performance Characteristics: - * - Add/Has/Remove: O(1) average, O(n) worst case (hash collisions) - * - Clear: O(1) - * - Size: O(1) - * - Iteration: O(n) - * * @since 2.0.0 - * @category data-structures */ export * as MutableHashSet from "./MutableHashSet.ts"; /** - * @fileoverview - * MutableList is an efficient, mutable linked list implementation optimized for high-throughput - * scenarios like logging, queuing, and streaming. It uses a bucket-based architecture where - * elements are stored in arrays (buckets) linked together, providing optimal performance for - * both append and prepend operations. - * - * The implementation uses a sophisticated bucket system: - * - Each bucket contains an array of elements with an offset pointer - * - Buckets can be marked as mutable or immutable for optimization - * - Elements are taken from the head and added to the tail - * - Memory is efficiently managed through bucket reuse and cleanup - * - * Key Features: - * - Highly optimized for high-frequency append/prepend operations - * - Memory efficient with automatic cleanup of consumed elements - * - Support for bulk operations (appendAll, prependAll, takeN) - * - Filtering and removal operations - * - Zero-copy optimizations for certain scenarios - * - * Performance Characteristics: - * - Append/Prepend: O(1) amortized - * - Take/TakeN: O(1) per element taken - * - Length: O(1) - * - Clear: O(1) - * - Filter: O(n) - * - * Ideal Use Cases: - * - High-throughput logging systems - * - Producer-consumer queues - * - Streaming data buffers - * - Real-time data processing pipelines - * * @since 4.0.0 - * @category data-structures */ export * as MutableList from "./MutableList.ts"; /** - * @fileoverview - * MutableRef provides a mutable reference container that allows safe mutation of values - * in functional programming contexts. It serves as a bridge between functional and imperative - * programming paradigms, offering atomic operations for state management. - * - * Unlike regular variables, MutableRef encapsulates mutable state and provides controlled - * access through a standardized API. It supports atomic compare-and-set operations for - * thread-safe updates and integrates seamlessly with Effect's ecosystem. - * - * Key Features: - * - Mutable reference semantics with functional API - * - Atomic compare-and-set operations for safe concurrent updates - * - Specialized operations for numeric and boolean values - * - Chainable operations that return the reference or the value - * - Integration with Effect's Equal interface for value comparison - * - * Common Use Cases: - * - State containers in functional applications - * - Counters and accumulators - * - Configuration that needs to be updated at runtime - * - Caching and memoization scenarios - * - Inter-module communication via shared references - * - * Performance Characteristics: - * - Get/Set: O(1) - * - Compare-and-set: O(1) - * - All operations: O(1) - * * @since 2.0.0 - * @category data-structures */ export * as MutableRef from "./MutableRef.ts"; /** - * Lightweight wrapper types that prevent accidental mixing of structurally - * identical values (e.g. `UserId` vs `OrderId`, both `string` at runtime). - * - * **Mental model** - * - * - **Newtype** — a compile-time wrapper around a **carrier** type (the - * underlying primitive or object). At runtime the value is unchanged; the - * tag exists only in the type system. - * - **Key** — a unique string literal that distinguishes one newtype from - * another (e.g. `"Label"`, `"UserId"`). - * - **Carrier** — the underlying type the newtype wraps (e.g. `string`, - * `number`). - * - **Iso** — a lossless two-way conversion between a newtype and its carrier, - * created with {@link makeIso}. Use `iso.set(carrier)` to wrap and - * `iso.get(newtype)` to unwrap. - * - * **Common tasks** - * - * - Define a newtype → declare an `interface` extending - * `Newtype.Newtype` - * - Wrap / unwrap values → {@link makeIso} (returns an `Optic.Iso`) - * - Unwrap only → {@link value} - * - Lift an `Equivalence` → {@link makeEquivalence} - * - Lift an `Order` → {@link makeOrder} - * - Lift a `Combiner` → {@link makeCombiner} - * - Lift a `Reducer` → {@link makeReducer} - * - * **Gotchas** - * - * - Newtypes are **purely compile-time**. There is zero runtime overhead; - * `value` and `makeIso` use identity casts. - * - Two newtypes sharing the same key string will be assignable to each other. - * Choose unique key strings. - * - A newtype value is **not** assignable to its carrier type without - * explicitly unwrapping via {@link value} or an iso. - * - * **Quickstart** - * - * **Example** (defining and using a newtype) - * - * ```ts - * import { Newtype } from "effect" - * - * // 1. Define a newtype - * interface Label extends Newtype.Newtype<"Label", string> {} - * - * // 2. Create an iso for wrapping/unwrapping - * const labelIso = Newtype.makeIso(data: NonEmptyIterable.NonEmptyIterable): A { - * // Safe to get the first element - guaranteed to exist - * const [first] = NonEmptyIterable.unprepend(data) - * return first - * } - * - * // Using Array.make to create non-empty arrays - * const numbers = Array.make( - * 1, - * 2, - * 3, - * 4, - * 5 - * ) as unknown as NonEmptyIterable.NonEmptyIterable - * const firstNumber = processNonEmpty(numbers) // number - * - * // Regular arrays can be asserted as NonEmptyIterable when known to be non-empty - * const values = [1, 2, 3] as unknown as NonEmptyIterable.NonEmptyIterable - * const firstValue = processNonEmpty(values) // number - * - * // Custom iterables that are guaranteed non-empty - * function* generateNumbers(): NonEmptyIterable.NonEmptyIterable { - * yield 1 - * yield 2 - * yield 3 - * } - * - * const firstGenerated = processNonEmpty(generateNumbers()) // number - * ``` - * - * ## Working with Different Iterable Types - * - * ```ts - * import { Array } from "effect" - * - * // Creating non-empty arrays - * const nonEmptyArray = Array.make( - * 1, - * 2, - * 3 - * ) as unknown as NonEmptyIterable.NonEmptyIterable - * - * // Working with strings (assert as NonEmptyIterable when known to be non-empty) - * const nonEmptyString = "hello" as unknown as NonEmptyIterable.NonEmptyIterable< - * string - * > - * const [firstChar] = NonEmptyIterable.unprepend(nonEmptyString) - * console.log(firstChar) // "h" - * - * // Working with Maps (assert when known to be non-empty) - * const nonEmptyMap = new Map([ - * ["key1", "value1"], - * ["key2", "value2"] - * ]) as unknown as NonEmptyIterable.NonEmptyIterable<[string, string]> - * const [firstEntry] = NonEmptyIterable.unprepend(nonEmptyMap) - * console.log(firstEntry) // ["key1", "value1"] - * - * // Custom generator functions - * function* fibonacci(): NonEmptyIterable.NonEmptyIterable { - * let a = 1, b = 1 - * yield a - * while (true) { - * yield b - * const next = a + b - * a = b - * b = next - * } - * } - * - * const [firstFib, restFib] = NonEmptyIterable.unprepend( - * fibonacci() as unknown as NonEmptyIterable.NonEmptyIterable - * ) - * console.log(firstFib) // 1 - * ``` - * - * ## Integration with Effect Arrays - * - * ```ts - * import { Array, pipe } from "effect" - * import type * as NonEmptyIterable from "effect/NonEmptyIterable" - * import type * as NonEmptyIterable from "effect/NonEmptyIterable" - * - * // Many Array functions work with NonEmptyIterable - * declare const nonEmptyData: NonEmptyIterable.NonEmptyIterable - * - * const processData = pipe( - * nonEmptyData, - * Array.fromIterable, - * Array.map((x) => x * 2), - * Array.filter((x) => x > 5) - * // Result is a regular array since filtering might make it empty - * ) - * - * // Safe operations that preserve non-emptiness - * const doubledData = pipe( - * nonEmptyData, - * Array.fromIterable, - * Array.map((x) => x * 2) - * // This would still be non-empty if the source was non-empty - * ) - * ``` */ export * as NonEmptyIterable from "./NonEmptyIterable.ts"; /** - * This module provides utility functions and type class instances for working with the `number` type in TypeScript. - * It includes functions for basic arithmetic operations. - * * @since 2.0.0 */ export * as Number from "./Number.ts"; /** - * Composable, immutable accessors for reading and updating nested data - * structures without mutation. - * - * **Mental model** - * - * - **Optic** — a first-class reference to a piece inside a larger structure. - * Compose optics to reach deeply nested values. - * - **Iso** — lossless two-way conversion (`get`/`set`) between `S` and `A`. - * Extends both {@link Lens} and {@link Prism}. - * - **Lens** — focuses on exactly one part of `S`. `get` always succeeds; - * `replace` needs the original `S` to produce the updated whole. - * - **Prism** — focuses on a part that may not be present (e.g. a union - * variant). `getResult` can fail; `set` builds a new `S` from `A` alone. - * - **Optional** — the most general optic: both reading and writing can fail. - * - **Traversal** — focuses on zero or more elements of an array-like - * structure. Technically `Optional>`. - * - **Hierarchy** (strongest → weakest): - * `Iso > Lens | Prism > Optional`. Composing a weaker optic with any other - * produces the weaker kind. - * - * **Common tasks** - * - * - Start a chain → {@link id} (identity iso) - * - Drill into a struct key → `.key("name")` / `.optionalKey("name")` - * - Drill into a key that may not exist → `.at("name")` - * - Narrow a tagged union → `.tag("MyVariant")` - * - Narrow by type guard → `.refine(guard)` - * - Add validation → `.check(Schema.isGreaterThan(0))` - * - Filter out `undefined` → `.notUndefined()` - * - Pick/omit struct keys → `.pick(["a","b"])` / `.omit(["c"])` - * - Traverse array elements → `.forEach(el => el.key("field"))` - * - Build an iso → {@link makeIso} - * - Build a lens → {@link makeLens} - * - Build a prism → {@link makePrism}, {@link fromChecks} - * - Build an optional → {@link makeOptional} - * - Focus into `Option.Some` → {@link some} - * - Focus into `Result.Success`/`Failure` → {@link success}, {@link failure} - * - Convert record ↔ entries → {@link entries} - * - Extract all traversal elements → {@link getAll} - * - * **Gotchas** - * - * - Updates are structurally persistent: only nodes on the path are cloned. - * Unrelated branches keep referential identity. However, **no-op updates - * may still allocate** a new root — do not rely on reference identity to - * detect no-ops. - * - `replace` silently returns the original `S` when the optic cannot focus - * (e.g. wrong tag). Use `replaceResult` for explicit failure. - * - `modify` also returns the original `S` on focus failure — it never throws. - * - `.key()` and `.optionalKey()` do not work on union types (compile error). - * - Only plain objects (`Object.prototype` or `null` prototype) and arrays can - * be cloned. Class instances cause a runtime error on `replace`/`modify`. - * - * **Quickstart** - * - * **Example** (reading and updating nested state) - * - * ```ts - * import { Optic } from "effect" - * - * type State = { user: { name: string; age: number } } - * - * const _age = Optic.id().key("user").key("age") - * - * const s1: State = { user: { name: "Alice", age: 30 } } - * - * // Read - * console.log(_age.get(s1)) - * // Output: 30 - * - * // Update immutably - * const s2 = _age.replace(31, s1) - * console.log(s2) - * // Output: { user: { name: "Alice", age: 31 } } - * - * // Modify with a function - * const s3 = _age.modify((n) => n + 1)(s1) - * console.log(s3) - * // Output: { user: { name: "Alice", age: 31 } } - * - * // Referential identity is preserved for unrelated branches - * console.log(s2.user !== s1.user) - * // Output: true (on the path) - * ``` - * - * **See also** - * - * - {@link id} — entry point for optic chains - * - {@link Lens} / {@link Prism} / {@link Optional} — core optic types - * - {@link Traversal} / {@link getAll} — multi-focus optics - * - {@link some} / {@link success} / {@link failure} — built-in prisms - * * @since 4.0.0 - * @module */ export * as Optic from "./Optic.ts"; /** - * The `Option` module provides a type-safe way to represent values that may or - * may not exist. An `Option` is either `Some` (containing a value) or - * `None` (representing absence). - * - * **Mental model** - * - * - `Option` is a discriminated union: `None | Some` - * - `None` represents the absence of a value (like `null`/`undefined`, but type-safe) - * - `Some` wraps a present value of type `A`, accessed via `.value` - * - `Option` is a monad: chain operations with {@link flatMap}, compose pipelines with `pipe` - * - All operations are pure and return new `Option` values; the input is never mutated - * - `Option` is yieldable in `Effect.gen`, producing the inner value or short-circuiting with `NoSuchElementError` - * - * **Common tasks** - * - * - Create from a value: {@link some}, {@link none} - * - Create from nullable: {@link fromNullishOr}, {@link fromNullOr}, {@link fromUndefinedOr} - * - Create from iterable: {@link fromIterable} - * - Create from Result: {@link getSuccess}, {@link getFailure} - * - Transform: {@link map}, {@link flatMap}, {@link andThen} - * - Unwrap: {@link getOrElse}, {@link getOrNull}, {@link getOrUndefined}, {@link getOrThrow} - * - Pattern match: {@link match} - * - Fallbacks: {@link orElse}, {@link orElseSome}, {@link firstSomeOf} - * - Filter: {@link filter}, {@link filterMap} - * - Combine multiple: {@link all}, {@link zipWith}, {@link product} - * - Generator syntax: {@link gen} - * - Do notation: {@link Do}, {@link bind}, {@link let_ let} - * - Check contents: {@link isSome}, {@link isNone}, {@link contains}, {@link exists} - * - * **Gotchas** - * - * - `Option.some(null)` is a valid `Some`; use {@link fromNullishOr} to treat `null`/`undefined` as `None` - * - {@link filterMap} uses a `Filter` callback that returns `Result` - * - {@link getOrThrow} throws a generic `Error`; prefer {@link getOrThrowWith} for custom errors - * - `None` is a singleton; compare with {@link isNone}, not `===` - * - When yielded in `Effect.gen`, a `None` becomes a `NoSuchElementError` defect - * - * **Quickstart** - * - * **Example** (Working with optional values) - * - * ```ts - * import { Option } from "effect" - * - * const name = Option.some("Alice") - * const age = Option.none() - * - * // Transform - * const upper = Option.map(name, (s) => s.toUpperCase()) - * - * // Unwrap with fallback - * console.log(Option.getOrElse(upper, () => "unknown")) - * // Output: "ALICE" - * - * console.log(Option.getOrElse(age, () => 0)) - * // Output: 0 - * - * // Combine multiple options - * const both = Option.all({ name, age }) - * console.log(Option.isNone(both)) - * // Output: true - * ``` - * - * **See also** - * - * - {@link some} / {@link none} for creating values - * - {@link map} / {@link flatMap} for transforming values - * - {@link match} for pattern matching - * - {@link gen} for generator-based syntax - * * @since 2.0.0 - * @module */ export * as Option from "./Option.ts"; /** - * This module provides the `Order` type class for defining total orderings on types. - * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than). - * - * Mental model: - * - An `Order` is a pure function `(a: A, b: A) => Ordering` that compares two values - * - The result `-1` means the first value is less than the second - * - The result `0` means the values are equal according to this ordering - * - The result `1` means the first value is greater than the second - * - Orders must satisfy total ordering laws: totality (either `x <= y` or `y <= x`), antisymmetry (if `x <= y` and `y <= x` then `x == y`), and transitivity (if `x <= y` and `y <= z` then `x <= z`) - * - Orders can be composed using {@link combine} and {@link combineAll} to create multi-criteria comparisons - * - Orders can be transformed using {@link mapInput} to compare values by extracting a comparable property - * - Built-in orders exist for common types: {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date} - * - * Common tasks: - * - Creating custom orders → {@link make} - * - Using built-in orders → {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date} - * - Combining multiple orders → {@link combine}, {@link combineAll} - * - Transforming orders → {@link mapInput} - * - Comparing values → {@link isLessThan}, {@link isGreaterThan}, {@link isLessThanOrEqualTo}, {@link isGreaterThanOrEqualTo} - * - Finding min/max → {@link min}, {@link max} - * - Clamping values → {@link clamp}, {@link isBetween} - * - Ordering collections → {@link Array}, {@link Tuple}, {@link Struct} - * - * Gotchas: - * - `Order.Number` treats all `NaN` values as equal and less than any other number - * - `Order.make` uses reference equality (`===`) as a shortcut: if `self === that`, it returns `0` without calling the comparison function - * - `Order.Array` compares arrays element-by-element, then by length if all elements are equal; `Order.all` only compares elements up to the shorter array's length - * - `Order.Tuple` requires a fixed-length tuple with matching order types; `Order.Array` works with variable-length arrays - * - `Order.min` and `Order.max` return the first argument when values are equal - * - * Quickstart: - * - * **Example** (Basic Usage) - * - * ```ts - * import { Order } from "effect" - * - * const result = Order.Number(5, 10) - * console.log(result) // -1 (5 is less than 10) - * - * const isLessThan = Order.isLessThan(Order.Number)(5, 10) - * console.log(isLessThan) // true - * ``` - * - * See also: - * - {@link Ordering} - The result type of comparisons - * - {@link Reducer} - For combining orders in collections - * * @since 2.0.0 */ export * as Order from "./Order.ts"; /** - * @fileoverview - * The Ordering module provides utilities for working with comparison results and ordering operations. - * An Ordering represents the result of comparing two values, expressing whether the first value is - * less than (-1), equal to (0), or greater than (1) the second value. - * - * This module is fundamental for building comparison functions, sorting algorithms, and implementing - * ordered data structures. It provides composable operations for combining multiple comparison results - * and pattern matching on ordering outcomes. - * - * Key Features: - * - Type-safe representation of comparison results (-1, 0, 1) - * - Composable operations for combining multiple orderings - * - Pattern matching utilities for handling different ordering cases - * - Ordering reversal and combination functions - * - Integration with Effect's functional programming patterns - * - * Common Use Cases: - * - Implementing custom comparison functions - * - Building complex sorting criteria - * - Combining multiple comparison results - * - Creating ordered data structures - * - Pattern matching on comparison outcomes - * * @since 2.0.0 - * @category utilities */ export * as Ordering from "./Ordering.ts"; /** @@ -2744,87 +323,14 @@ export * as PlatformError from "./PlatformError.ts"; */ export * as Pool from "./Pool.ts"; /** - * Predicate and Refinement helpers for runtime checks, filtering, and type narrowing. - * This module provides small, pure functions you can combine to decide whether a - * value matches a condition and, when using refinements, narrow TypeScript types. - * - * Mental model: - * - A `Predicate` is just `(a: A) => boolean`. - * - A `Refinement` is a predicate that narrows `A` to `B` when true. - * - Guards like `isString` are predicates/refinements for common runtime types. - * - Combinators like `and`/`or` build new predicates from existing ones. - * - `Tuple` and `Struct` lift element/property predicates to compound values. - * - * Common tasks: - * - Reuse an existing predicate on a different input shape -> {@link mapInput} - * - Combine checks -> {@link and}, {@link or}, {@link not}, {@link xor} - * - Build tuple/object checks -> {@link Tuple}, {@link Struct} - * - Narrow `unknown` to a concrete type -> {@link Refinement}, {@link compose} - * - Check runtime types -> {@link isString}, {@link isNumber}, {@link isObject} - * - * Gotchas: - * - `isTruthy` uses JavaScript truthiness; `0`, "", and `false` are false. - * - `isObject` excludes arrays; use {@link isObjectOrArray} for both. - * - `isIterable` treats strings as iterable. - * - `isPromise`/`isPromiseLike` are structural checks (then/catch), not `instanceof`. - * - `isTupleOf` and `isTupleOfAtLeast` only check length, not element types. - * - * **Example** (Filter by a predicate) - * - * ```ts - * import * as Predicate from "effect/Predicate" - * - * const isPositive = (n: number) => n > 0 - * const data = [2, -1, 3] - * - * console.log(data.filter(isPositive)) - * ``` - * - * See also: {@link Predicate}, {@link Refinement}, {@link and}, {@link or}, {@link mapInput} - * * @since 2.0.0 */ export * as Predicate from "./Predicate.ts"; /** - * This module provides functionality for working with primary keys. - * A `PrimaryKey` is a simple interface that represents a unique identifier - * that can be converted to a string representation. - * - * Primary keys are useful for creating unique identifiers for objects, - * database records, cache keys, or any scenario where you need a - * string-based unique identifier. - * * @since 2.0.0 */ export * as PrimaryKey from "./PrimaryKey.ts"; /** - * This module provides utilities for working with publish-subscribe (PubSub) systems. - * - * A PubSub is an asynchronous message hub where publishers can publish messages and subscribers - * can subscribe to receive those messages. PubSub supports various backpressure strategies, - * message replay, and concurrent access from multiple producers and consumers. - * - * @example - * ```ts - * import { Effect, PubSub } from "effect" - * - * const program = Effect.gen(function*() { - * const pubsub = yield* PubSub.bounded(10) - * - * // Publisher - * yield* PubSub.publish(pubsub, "Hello") - * yield* PubSub.publish(pubsub, "World") - * - * // Subscriber - * yield* Effect.scoped(Effect.gen(function*() { - * const subscription = yield* PubSub.subscribe(pubsub) - * const message1 = yield* PubSub.take(subscription) - * const message2 = yield* PubSub.take(subscription) - * console.log(message1, message2) // "Hello", "World" - * })) - * }) - * ``` - * * @since 2.0.0 */ export * as PubSub from "./PubSub.ts"; @@ -2837,26 +343,6 @@ export * as Pull from "./Pull.ts"; */ export * as Queue from "./Queue.ts"; /** - * The Random module provides a service for generating random numbers in Effect - * programs. It offers a testable and composable way to work with randomness, - * supporting integers, floating-point numbers, and range-based generation. - * - * @example - * ```ts - * import { Effect, Random } from "effect" - * - * const program = Effect.gen(function*() { - * const randomFloat = yield* Random.next - * console.log("Random float:", randomFloat) - * - * const randomInt = yield* Random.nextInt - * console.log("Random integer:", randomInt) - * - * const diceRoll = yield* Random.nextIntBetween(1, 6) - * console.log("Dice roll:", diceRoll) - * }) - * ``` - * * @since 4.0.0 */ export * as Random from "./Random.ts"; @@ -2869,221 +355,34 @@ export * as RcMap from "./RcMap.ts"; */ export * as RcRef from "./RcRef.ts"; /** - * This module provides utility functions for working with records in TypeScript. - * * @since 2.0.0 */ export * as Record from "./Record.ts"; /** - * Context-aware redaction for sensitive values. - * - * The `Redactable` module provides a protocol for objects that need to present - * alternative representations of themselves depending on the runtime context. - * Typical use cases include masking secrets, tokens, or personal data in logs, traces, - * and serialized output. - * - * ## Mental model - * - * - **Redactable** - an object that implements `[symbolRedactable]`, a method - * that receives the current `Context` and returns a replacement value. - * - **symbolRedactable** - the well-known `Symbol` key that marks an object as - * redactable. - * - **redact** - the primary entry point: pass any value and get back either its - * redacted form (if it is `Redactable`) or the original value unchanged. - * - **getRedacted** - lower-level helper that calls `[symbolRedactable]` directly - * on a value already known to be `Redactable`. - * - The `Context` passed to `[symbolRedactable]` comes from the current fiber. - * If no fiber is active, an empty `Context` is used. - * - * ## Common tasks - * - * - **Make a value redactable**: implement the {@link Redactable} interface by - * adding a `[symbolRedactable]` method. - * - **Redact an unknown value**: call {@link redact} - it returns the original - * value when it is not redactable. - * - **Check if a value is redactable**: use {@link isRedactable}. - * - **Get the redacted form of a known `Redactable`**: use {@link getRedacted}. - * - * ## Gotchas - * - * - `[symbolRedactable]` receives the fiber's `Context` as its argument. - * - Outside of an Effect runtime (no current fiber), `getRedacted` still works - * but passes an empty `Context`, so service lookups will not find anything. - * - `redact` is not recursive: if a redactable object contains nested - * redactable values, only the outermost redaction is applied. - * - * ## Quickstart - * - * **Example** (Masking an API key) - * - * ```ts - * import { Context, Redactable } from "effect" - * - * class ApiKey { - * constructor(readonly raw: string) {} - * - * [Redactable.symbolRedactable](_ctx: Context.Context) { - * return this.raw.slice(0, 4) + "..." - * } - * } - * - * const key = new ApiKey("sk-1234567890abcdef") - * - * console.log(Redactable.isRedactable(key)) // true - * console.log(Redactable.redact(key)) // "sk-1..." - * console.log(Redactable.redact("plain")) // "plain" - * ``` - * - * ## See also - * - * - {@link Redactable} - the interface to implement - * - {@link symbolRedactable} - the symbol key - * - {@link redact} - the main redaction entry point - * * @since 4.0.0 */ export * as Redactable from "./Redactable.ts"; /** - * The Redacted module provides functionality for handling sensitive information - * securely within your application. By using the `Redacted` data type, you can - * ensure that sensitive values are not accidentally exposed in logs or error - * messages. - * * @since 3.3.0 */ export * as Redacted from "./Redacted.ts"; /** - * A module for reducing collections of values into a single result. - * - * A `Reducer` extends {@link Combiner.Combiner} by adding an - * `initialValue` (identity element) and a `combineAll` method that folds an - * entire collection. Think `Array.prototype.reduce`, but packaged as a - * reusable, composable value. - * - * ## Mental model - * - * - **Reducer** – a {@link Combiner.Combiner} plus an `initialValue` and a - * `combineAll` method. - * - **initialValue** – the neutral/identity element. Combining any value with - * `initialValue` should return the original value unchanged (e.g. `0` for - * addition, `""` for string concatenation). - * - **combineAll** – folds an `Iterable` starting from `initialValue`. - * When omitted from {@link make}, a default left-to-right fold is used. - * - **Purity** – all reducers produced by this module are pure; they never - * mutate their arguments. - * - **Composability** – reducers can be lifted into `Option`, `Struct`, - * `Tuple`, `Record`, and other container types via helpers in those modules. - * - **Subtype of Combiner** – every `Reducer` is also a valid - * `Combiner`, so you can pass a `Reducer` anywhere a `Combiner` is - * expected. - * - * ## Common tasks - * - * - Create a reducer from a combine function and initial value → {@link make} - * - Swap argument order → {@link flip} - * - Combine two values without an initial value → use {@link Combiner.Combiner} - * instead - * - * ## Gotchas - * - * - `combineAll` on an empty iterable returns `initialValue`, not an error. - * - The default `combineAll` folds left-to-right. If your `combine` is not - * associative, order matters. Pass a custom `combineAll` to {@link make} if - * you need different traversal or short-circuiting. - * - A `Reducer` is also a valid `Combiner` — but a `Combiner` is *not* a - * `Reducer` (it lacks `initialValue`). - * - * ## Quickstart - * - * **Example** (summing a list of numbers) - * - * ```ts - * import { Reducer } from "effect" - * - * const Sum = Reducer.make((a, b) => a + b, 0) - * - * console.log(Sum.combine(3, 4)) - * // Output: 7 - * - * console.log(Sum.combineAll([1, 2, 3, 4])) - * // Output: 10 - * - * console.log(Sum.combineAll([])) - * // Output: 0 - * ``` - * - * ## See also - * - * - {@link make} – the primary constructor - * - {@link Reducer} – the core interface - * - {@link Combiner.Combiner} – the parent interface (no `initialValue`) - * * @since 4.0.0 */ export * as Reducer from "./Reducer.ts"; /** - * This module provides utilities for working with mutable references in a functional context. - * - * A Ref is a mutable reference that can be read, written, and atomically modified. Unlike plain - * mutable variables, Refs are thread-safe and work seamlessly with Effect's concurrency model. - * They provide atomic operations for safe state management in concurrent programs. - * - * @example - * ```ts - * import { Effect, Ref } from "effect" - * - * const program = Effect.gen(function*() { - * // Create a ref with initial value - * const counter = yield* Ref.make(0) - * - * // Atomic operations - * yield* Ref.update(counter, (n) => n + 1) - * yield* Ref.update(counter, (n) => n * 2) - * - * const value = yield* Ref.get(counter) - * console.log(value) // 2 - * - * // Atomic modify with return value - * const previous = yield* Ref.getAndSet(counter, 100) - * console.log(previous) // 2 - * }) - * ``` - * * @since 2.0.0 */ export * as Ref from "./Ref.ts"; /** - * This module provides a collection of reference implementations for commonly used - * Effect runtime configuration values. These references allow you to access and - * modify runtime behavior such as concurrency limits, scheduling policies, - * tracing configuration, and logging settings. - * - * References are special service instances that can be dynamically updated - * during runtime, making them ideal for configuration that may need to change - * based on application state or external conditions. - * * @since 4.0.0 */ export * as References from "./References.ts"; /** - * This module provides utility functions for working with RegExp in TypeScript. - * * @since 2.0.0 */ export * as RegExp from "./RegExp.ts"; /** - * The `Request` module provides a way to model requests to external data sources - * in a functional and composable manner. Requests represent descriptions of - * operations that can be batched, cached, and executed efficiently. - * - * A `Request` represents a request that: - * - Yields a value of type `A` on success - * - Can fail with an error of type `E` - * - Requires services of type `R` - * - * Requests are primarily used with RequestResolver to implement efficient - * data fetching patterns, including automatic batching and caching. - * * @since 2.0.0 */ export * as Request from "./Request.ts"; @@ -3096,133 +395,14 @@ export * as RequestResolver from "./RequestResolver.ts"; */ export * as Resource from "./Resource.ts"; /** - * A synchronous, pure type for representing computations that can succeed - * (`Success`) or fail (`Failure`). Unlike `Effect`, `Result` is - * evaluated eagerly and carries no side effects. - * - * **Mental model** - * - * - `Result` is a discriminated union: `Success | Failure` - * - `Success` wraps a value of type `A`, accessed via `.success` - * - `Failure` wraps an error of type `E`, accessed via `.failure` - * - `Result` is a monad: chain operations with {@link flatMap}, compose pipelines with `pipe` - * - All operations are pure and return new `Result` values; the input is never mutated - * - `Result` is yieldable in `Effect.gen`, producing the inner value or short-circuiting on failure - * - * **Common tasks** - * - * - Create from a value: {@link succeed}, {@link fail} - * - Create from nullable: {@link fromNullishOr} - * - Create from Option: {@link fromOption} - * - Create from throwing code: {@link try_ try} - * - Create from predicate: {@link liftPredicate} - * - Transform: {@link map}, {@link mapError}, {@link mapBoth} - * - Unwrap: {@link getOrElse}, {@link getOrNull}, {@link getOrUndefined}, {@link getOrThrow} - * - Pattern match: {@link match} - * - Sequence: {@link flatMap}, {@link andThen}, {@link all} - * - Recover: {@link orElse} - * - Filter: {@link filterOrFail} - * - Convert to Option: {@link getSuccess}, {@link getFailure} - * - Generator syntax: {@link gen} - * - Do notation: {@link Do}, {@link bind}, {@link let_ let} - * - Check variant: {@link isResult}, {@link isSuccess}, {@link isFailure} - * - * **Gotchas** - * - * - `E` defaults to `never`, so `Result` means a result that cannot fail - * - {@link andThen} accepts a `Result`, a function returning a `Result`, a plain value, or a function returning a plain value; {@link flatMap} only accepts a function returning a `Result` - * - {@link all} short-circuits on the first `Failure` and returns it; later elements are not inspected - * - {@link getOrThrow} throws the raw failure value `E`; use {@link getOrThrowWith} for custom error objects - * - {@link tap} runs a side-effect but does not change the result; its return value is ignored - * - * **Quickstart** - * - * **Example** (Parsing and validating with Result) - * - * ```ts - * import { Result } from "effect" - * - * const parse = (input: string): Result.Result => - * isNaN(Number(input)) - * ? Result.fail("not a number") - * : Result.succeed(Number(input)) - * - * const ensurePositive = (n: number): Result.Result => - * n > 0 ? Result.succeed(n) : Result.fail("not positive") - * - * const result = Result.flatMap(parse("42"), ensurePositive) - * - * console.log(Result.getOrElse(result, (err) => `Error: ${err}`)) - * // Output: 42 - * ``` - * - * **See also** - * - * - {@link succeed} / {@link fail} to create values - * - {@link match} to fold both branches - * - {@link gen} for generator-based composition - * * @since 4.0.0 */ export * as Result from "./Result.ts"; /** - * This module provides utilities for running Effect programs and managing their execution lifecycle. - * - * The Runtime module contains functions for creating main program runners that handle process - * teardown, error reporting, and exit code management. These utilities are particularly useful - * for creating CLI applications and server processes that need to manage their lifecycle properly. - * - * @example - * ```ts - * import { Effect, Fiber, Runtime } from "effect" - * - * // Create a main runner for Node.js - * const runMain = Runtime.makeRunMain((options) => { - * process.on("SIGINT", () => Effect.runFork(Fiber.interrupt(options.fiber))) - * process.on("SIGTERM", () => Effect.runFork(Fiber.interrupt(options.fiber))) - * - * options.fiber.addObserver((exit) => { - * options.teardown(exit, (code) => process.exit(code)) - * }) - * }) - * - * // Use the runner - * const program = Effect.log("Hello, World!") - * runMain(program) - * ``` - * * @since 4.0.0 */ export * as Runtime from "./Runtime.ts"; /** - * This module provides utilities for creating and composing schedules for retrying operations, - * repeating effects, and implementing various timing strategies. - * - * A Schedule is a function that takes an input and returns a decision whether to continue or halt, - * along with a delay duration. Schedules can be combined, transformed, and used to implement - * sophisticated retry and repetition logic. - * - * @example - * ```ts - * import { Effect, Schedule } from "effect" - * - * // Retry with exponential backoff - * const retryPolicy = Schedule.exponential("100 millis", 2.0) - * .pipe(Schedule.both(Schedule.recurs(3))) - * - * const program = Effect.gen(function*() { - * // This will retry up to 3 times with exponential backoff - * const result = yield* Effect.retry( - * Effect.fail("Network error"), - * retryPolicy - * ) - * }) - * - * // Repeat on a fixed schedule - * const heartbeat = Effect.log("heartbeat") - * .pipe(Effect.repeat(Schedule.spaced("30 seconds"))) - * ``` - * * @since 2.0.0 */ export * as Schedule from "./Schedule.ts"; @@ -3231,332 +411,18 @@ export * as Schedule from "./Schedule.ts"; */ export * as Scheduler from "./Scheduler.ts"; /** - * Define data shapes, validate unknown input, and transform values between formats. - * - * ## Mental model - * - * - **Schema** — a description of a data shape. Every schema carries a decoded - * *Type* (the value you work with) and an *Encoded* representation (the - * serialized form, e.g. JSON). - * - **Decoding** — turning unknown external data (API responses, form - * submissions, config files) into typed, validated values. - * - **Encoding** — turning typed values back into a serializable format. - * - **Codec** — a schema that tracks both Type and Encoded, so it can decode - * *and* encode. Most concrete schemas are Codecs. - * - **Check / Filter** — a constraint attached to a schema (e.g. `isMinLength`, - * `isGreaterThan`). Attach them with `.check(...)`. - * - **Transformation** — a pair of functions (decode + encode) that convert - * values between two schemas. Created with {@link decodeTo} / {@link encodeTo}. - * - **Annotation** — metadata attached to a schema (title, description, custom - * keys). Attach with `.annotate(...)`. - * - * ## Common tasks - * - * - Define a struct: {@link Struct} - * - Define a union: {@link Union}, {@link TaggedUnion}, {@link Literals} - * - Define an array: {@link ArraySchema}, {@link NonEmptyArray} - * - Define a record: {@link Record} - * - Define a tuple: {@link Tuple}, {@link TupleWithRest} - * - Validate unknown data synchronously: {@link decodeUnknownSync} - * - Validate unknown data (Effect): {@link decodeUnknownEffect} - * - Encode a value: {@link encodeUnknownSync}, {@link encodeUnknownEffect} - * - Type guard: {@link is} - * - Assertion: {@link asserts} - * - Add constraints: `.check(...)` with filters like {@link isMinLength}, - * {@link isGreaterThan}, {@link isPattern}, {@link isUUID} - * - Transform between schemas: {@link decodeTo}, {@link encodeTo} - * - Add a default for missing keys: {@link withDecodingDefault}, {@link withDecodingDefaultKey} - * - Create branded types: {@link brand} - * - Define classes with validation: {@link Class}, {@link TaggedClass} - * - Define error classes: {@link ErrorClass}, {@link TaggedErrorClass} - * - Generate JSON Schema: {@link toJsonSchemaDocument} - * - Generate test data: {@link toArbitrary} - * - Derive equivalence: {@link toEquivalence} - * - * ## Gotchas - * - * - `Schema.optional` creates `T | undefined` (key can be missing *or* - * `undefined`). Use `Schema.optionalKey` for exact optional properties. - * - `decodeTo` is curried: use `from.pipe(Schema.decodeTo(to, ...))`. - * - `decodeUnknownSync` throws on failure. Use `decodeUnknownExit` or - * `decodeUnknownOption` for non-throwing alternatives. - * - Filters do not change the TypeScript type. Use {@link refine} or - * {@link brand} to narrow the type. - * - Recursive schemas require {@link suspend} to avoid infinite loops. - * - * ## Quickstart - * - * **Example** (Validate a user object) - * - * ```ts - * import { Schema } from "effect" - * - * const User = Schema.Struct({ - * name: Schema.String.check(Schema.isMinLength(1)), - * age: Schema.Number.check(Schema.isGreaterThanOrEqualTo(0)), - * email: Schema.optionalKey(Schema.String) - * }) - * - * // Decode unknown input — throws on failure - * const user = Schema.decodeUnknownSync(User)({ - * name: "Alice", - * age: 30 - * }) - * - * console.log(user) - * // { name: "Alice", age: 30 } - * ``` - * - * @see {@link Schema} — type-level view tracking only the decoded Type - * @see {@link Codec} — type-level view tracking both Type and Encoded - * @see {@link Struct} — define object shapes - * @see {@link decodeUnknownSync} — synchronous validation - * @see {@link decodeTo} — schema transformations - * * @since 4.0.0 */ export * as Schema from "./Schema.ts"; /** - * Abstract Syntax Tree (AST) representation for Effect schemas. - * - * This module defines the runtime data structures that represent schemas. - * Most users work with the `Schema` module directly; use `SchemaAST` when you - * need to inspect, traverse, or programmatically transform schema definitions. - * - * ## Mental model - * - * - **{@link AST}** — discriminated union (`_tag`) of all schema node types - * (e.g. `String`, `Objects`, `Union`, `Suspend`) - * - **{@link Base}** — abstract base class shared by every node; carries - * annotations, checks, encoding chain, and context - * - **{@link Encoding}** — a non-empty chain of {@link Link} values describing - * how to transform between the decoded (type) and encoded (wire) form - * - **{@link Check}** — a validation filter ({@link Filter} or - * {@link FilterGroup}) attached to an AST node - * - **{@link Context}** — per-property metadata: optionality, mutability, - * default values, key annotations - * - **Guards** — type-narrowing predicates for each AST variant (e.g. - * {@link isString}, {@link isObjects}) - * - * ## Common tasks - * - * - Inspect what kind of schema you have → guard functions ({@link isString}, - * {@link isObjects}, {@link isUnion}, etc.) - * - Get the decoded (type-level) AST → {@link toType} - * - Get the encoded (wire-format) AST → {@link toEncoded} - * - Swap decode/encode directions → {@link flip} - * - Read annotations → {@link resolve}, {@link resolveAt}, - * {@link resolveIdentifier} - * - Build a transformation between schemas → {@link decodeTo} - * - Add regex validation → {@link isPattern} - * - * ## Gotchas - * - * - AST nodes are structurally immutable; modification helpers return new - * objects via `Object.create`. - * - {@link Arrays} represents both tuples and arrays; {@link Objects} - * represents both structs and records. - * - {@link toType} and {@link toEncoded} are memoized — same input yields - * same output reference. - * - {@link Suspend} lazily resolves its inner AST via a thunk; the thunk is - * memoized on first call. - * - * ## Quickstart - * - * **Example** (Inspecting a schema's AST) - * - * ```ts - * import { Schema, SchemaAST } from "effect" - * - * const schema = Schema.Struct({ name: Schema.String, age: Schema.Number }) - * const ast = schema.ast - * - * if (SchemaAST.isObjects(ast)) { - * console.log(ast.propertySignatures.map(ps => ps.name)) - * // ["name", "age"] - * } - * - * const encoded = SchemaAST.toEncoded(ast) - * console.log(SchemaAST.isObjects(encoded)) // true - * ``` - * - * ## See also - * - * - {@link AST} - * - {@link toType} - * - {@link toEncoded} - * - {@link flip} - * - {@link resolve} - * * @since 4.0.0 */ export * as SchemaAST from "./SchemaAST.ts"; /** - * Composable transformation primitives for the Effect Schema system. - * - * A `Getter` represents a single-direction transformation from an - * encoded type `E` to a decoded type `T`. Getters are the building blocks - * that `Schema.decodeTo` and `Schema.decode` use to define how values are - * transformed during encoding and decoding. They handle optionality - * (`Option` in, `Option` out), can fail with `Issue`, and can require - * Effect services via `R`. - * - * ## Mental model - * - * - **Getter**: A function `Option -> Effect, Issue, R>`. It - * transforms an optional encoded value into an optional decoded value, - * possibly failing or requiring services. - * - **Passthrough**: The identity getter — returns the input unchanged. Used - * when no transformation is needed. Optimized away during composition. - * - **Option-awareness**: Getters receive and return `Option` to handle - * missing keys in structs. `Option.None` means the key is absent. - * - **Composition**: Getters compose left-to-right via `.compose()`. A - * passthrough on either side is a no-op (identity optimization). - * - **Issue**: The error type for all getter failures (see `SchemaIssue`). - * - * ## Common tasks - * - * - Pass a value through unchanged → {@link passthrough} - * - Transform a value purely → {@link transform} - * - Transform a value with possible failure → {@link transformOrFail} - * - Transform with full Option control → {@link transformOptional} - * - Handle missing keys → {@link onNone}, {@link required}, {@link withDefault} - * - Handle present values → {@link onSome} - * - Validate a value with an effectful check → {@link checkEffect} - * - Produce a constant value → {@link succeed} - * - Always fail → {@link fail}, {@link forbidden} - * - Omit a value from output → {@link omit} - * - Coerce to a primitive type → {@link String}, {@link Number}, {@link Boolean}, {@link BigInt}, {@link Date} - * - Transform strings → {@link trim}, {@link capitalize}, {@link toLowerCase}, {@link toUpperCase}, {@link split}, {@link splitKeyValue}, {@link joinKeyValue} - * - Parse/stringify JSON → {@link parseJson}, {@link stringifyJson} - * - Encode/decode Base64 → {@link encodeBase64}, {@link decodeBase64}, {@link decodeBase64String} - * - Encode/decode Hex → {@link encodeHex}, {@link decodeHex}, {@link decodeHexString} - * - Encode/decode URI components → {@link encodeUriComponent}, {@link decodeUriComponent} - * - Parse DateTime → {@link dateTimeUtcFromInput} - * - Decode/encode FormData → {@link decodeFormData}, {@link encodeFormData} - * - Decode/encode URLSearchParams → {@link decodeURLSearchParams}, {@link encodeURLSearchParams} - * - Build nested tree from bracket paths → {@link makeTreeRecord} - * - Flatten nested tree to bracket paths → {@link collectBracketPathEntries} - * - * ## Gotchas - * - * - Getters are not bidirectional. To define a full encode/decode pair, supply - * both a `decode` and an `encode` getter to `Schema.decodeTo`. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass the type constraint, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - `transform` skips `None` inputs (missing keys) — the function is only - * called when a value is present. Use `transformOptional` if you need to - * handle missing values. - * - `parseJson` without a `reviver` returns `Schema.MutableJson`. With a - * reviver, the return type widens to `unknown`. - * - `split` treats an empty string as an empty array, not `[""]`. - * - * ## Quickstart - * - * **Example** (Using SchemaGetter with Schema.decodeTo) - * - * ```ts - * import { Schema, SchemaGetter } from "effect" - * - * const NumberFromString = Schema.String.pipe( - * Schema.decodeTo(Schema.Number, { - * decode: SchemaGetter.transform((s) => Number(s)), - * encode: SchemaGetter.transform((n) => String(n)) - * }) - * ) - * - * const result = Schema.decodeUnknownSync(NumberFromString)("42") - * // result: 42 - * ``` - * - * ## See also - * - * - {@link Getter} — the core class - * - {@link transform} — most common constructor - * - {@link passthrough} — identity getter - * - {@link transformOrFail} — fallible transformation - * * @since 4.0.0 */ export * as SchemaGetter from "./SchemaGetter.ts"; /** - * Structured validation errors produced by the Effect Schema system. - * - * When `Schema.decode`, `Schema.encode`, or a filter rejects a value, the - * result is an {@link Issue} — a recursive tree that describes *what* went - * wrong and *where*. This module defines every node type in that tree and - * provides formatters that turn an `Issue` into a human-readable string or a - * Standard Schema V1 failure result. - * - * ## Mental model - * - * - **Issue**: A discriminated union (`_tag`) of all possible validation error - * nodes. It is recursive — composite nodes wrap inner `Issue` children. - * - **Leaf**: A terminal issue with no inner children ({@link InvalidType}, - * {@link InvalidValue}, {@link MissingKey}, {@link UnexpectedKey}, - * {@link Forbidden}, {@link OneOf}). - * - **Composite nodes**: Wrap one or more inner issues to add context — - * {@link Filter}, {@link Encoding}, {@link Pointer}, {@link Composite}, - * {@link AnyOf}. - * - **Pointer**: Adds a property-key path to an inner issue, indicating - * *where* in the input the error occurred. - * - **Formatter**: A function `Issue → Format` that serialises the error tree. - * Two built-in factories are provided: {@link makeFormatterDefault} (plain - * string) and {@link makeFormatterStandardSchemaV1} (Standard Schema V1). - * - * ## Common tasks - * - * - Check if a value is an Issue → {@link isIssue} - * - Extract the actual input from any issue → {@link getActual} - * - Format an issue as a string → {@link makeFormatterDefault} - * - Format an issue for Standard Schema V1 → {@link makeFormatterStandardSchemaV1} - * - Customise leaf formatting → {@link defaultLeafHook} - * - Customise filter formatting → {@link defaultCheckHook} - * - * ## Gotchas - * - * - `Pointer` and `MissingKey` carry no actual value — {@link getActual} - * returns `Option.none()` for them. - * - `AnyOf`, `UnexpectedKey`, `OneOf`, and `Filter` store `actual` as a plain - * `unknown` (not `Option`), so {@link getActual} wraps them with - * `Option.some`. - * - Calling `toString()` on any `Issue` uses the default formatter. To - * customise output, create your own formatter with - * {@link makeFormatterDefault} or {@link makeFormatterStandardSchemaV1}. - * - The `Issue` tree can be deeply nested for complex schemas. Formatters - * flatten composite nodes for display. - * - * ## Quickstart - * - * **Example** (Inspecting a validation error) - * - * ```ts - * import { Schema, SchemaIssue } from "effect" - * - * const Person = Schema.Struct({ - * name: Schema.String, - * age: Schema.Number - * }) - * - * try { - * Schema.decodeUnknownSync(Person)({ name: 42 }) - * } catch (e) { - * if (Schema.isSchemaError(e)) { - * console.log(SchemaIssue.isIssue(e.issue)) - * // true - * console.log(String(e.issue)) - * // formatted error message - * } - * } - * ``` - * - * ## See also - * - * - {@link Issue} — the root union type - * - {@link Leaf} — terminal issue types - * - {@link Formatter} — the formatter interface - * - {@link makeFormatterDefault} — default string formatter - * * @since 4.0.0 */ export * as SchemaIssue from "./SchemaIssue.ts"; @@ -3565,178 +431,10 @@ export * as SchemaIssue from "./SchemaIssue.ts"; */ export * as SchemaParser from "./SchemaParser.ts"; /** - * Serializable intermediate representation (IR) of Effect Schema types. - * - * `SchemaRepresentation` sits between the internal `SchemaAST` and external - * formats (JSON Schema, generated TypeScript code, serialized JSON). A - * {@link Representation} is a discriminated union describing the *shape* of a - * schema — its types, checks, annotations, and references — in a form that - * can be round-tripped through JSON and used for code generation. - * - * ## Mental model - * - * - **Representation**: A tagged union (`_tag`) of all supported schema shapes: - * primitives, literals, objects, arrays, unions, declarations, references, - * and suspensions. - * - **Document**: A single {@link Representation} paired with a map of named - * {@link References} (analogous to JSON Schema `$defs`). - * - **MultiDocument**: Like `Document` but holds one or more representations - * sharing the same references. - * - **Check / Filter / FilterGroup**: Validation constraints (min length, - * pattern, integer, etc.) attached to types that support them. - * - **Meta types**: Typed metadata for checks on each category — e.g. - * {@link StringMeta}, {@link NumberMeta}, {@link ArraysMeta}. - * - **Reviver**: A callback used by {@link toSchema} and {@link toCodeDocument} - * to handle `Declaration` nodes (custom types like `Option`, `Date`, etc.). - * - **Code / CodeDocument**: Output of {@link toCodeDocument} — TypeScript - * source strings for runtime schemas and their type-level counterparts. - * - * ## Common tasks - * - * - Convert a Schema AST to a Document → {@link fromAST} - * - Convert multiple ASTs to a MultiDocument → {@link fromASTs} - * - Reconstruct a runtime Schema from a Document → {@link toSchema} - * - Convert a Document to JSON Schema → {@link toJsonSchemaDocument} - * - Convert a MultiDocument to JSON Schema → {@link toJsonSchemaMultiDocument} - * - Parse a JSON Schema document into a Document → {@link fromJsonSchemaDocument} - * - Parse a JSON Schema multi-document → {@link fromJsonSchemaMultiDocument} - * - Generate TypeScript code from a MultiDocument → {@link toCodeDocument} - * - Serialize/deserialize a Document as JSON → {@link DocumentFromJson} - * - Serialize/deserialize a MultiDocument as JSON → {@link MultiDocumentFromJson} - * - Wrap a Document as a MultiDocument → {@link toMultiDocument} - * - * ## Gotchas - * - * - `Declaration` nodes require a {@link Reviver} to reconstruct complex types - * (e.g. `Option`, `Date`). Without one, `toSchema` falls back to the - * declaration's `encodedSchema`. Use {@link toSchemaDefaultReviver} for - * built-in Effect types. - * - `Reference` nodes are resolved against the `references` map in the - * `Document`. An unresolvable `$ref` throws at runtime. - * - `Suspend` wraps a single `thunk` representation; it is used for recursive - * schemas. Circular references are handled by lazy resolution in - * {@link toSchema}. - * - The `$`-prefixed exports (e.g. {@link $Representation}, {@link $Document}) - * are Schema codecs for the representation types themselves — use them to - * validate or encode/decode representation data, not application data. - * - * ## Quickstart - * - * **Example** (Round-trip through JSON) - * - * ```ts - * import { Schema, SchemaRepresentation } from "effect" - * - * const Person = Schema.Struct({ - * name: Schema.String, - * age: Schema.Int - * }) - * - * // Schema AST → Document - * const doc = SchemaRepresentation.fromAST(Person.ast) - * - * // Document → JSON Schema - * const jsonSchema = SchemaRepresentation.toJsonSchemaDocument(doc) - * - * // Document → runtime Schema - * const reconstructed = SchemaRepresentation.toSchema(doc) - * ``` - * - * ## See also - * - * - {@link Representation} — the core tagged union - * - {@link Document} — single-schema container - * - {@link fromAST} — entry point from Schema AST - * - {@link toSchema} — reconstruct a runtime Schema - * - {@link toCodeDocument} — generate TypeScript code - * * @since 4.0.0 */ export * as SchemaRepresentation from "./SchemaRepresentation.ts"; /** - * Bidirectional transformations for the Effect Schema system. - * - * A `Transformation` pairs a decode `Getter` and an encode `Getter` into a - * single bidirectional value, used by `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link` to define how values - * are converted between encoded and decoded representations. A `Middleware` - * is the effect-level equivalent — it wraps the entire parsing `Effect` - * pipeline rather than individual values. - * - * ## Mental model - * - * - **Transformation**: A pair of `Getter`s (decode + encode) that convert - * individual values bidirectionally. `T` is the decoded (Type) side, `E` is - * the encoded side. `RD`/`RE` are required Effect services. - * - **Middleware**: Like `Transformation`, but each direction receives the full - * parsing `Effect` and can intercept, retry, or modify the pipeline. - * - **Getter**: A single-direction transform `Option → Effect, Issue, R>` - * (see `SchemaGetter`). - * - **flip()**: Swaps decode and encode, turning a `Transformation` into - * `Transformation`. - * - **compose()**: Chains two transformations left-to-right on the decode side - * and right-to-left on the encode side. - * - **passthrough**: The identity transformation — no conversion in either - * direction. - * - * ## Common tasks - * - * - Convert values purely (sync, infallible) → {@link transform} - * - Convert values with possible failure → {@link transformOrFail} - * - Handle optional/missing keys → {@link transformOptional} - * - Build from existing Getters → {@link make} - * - No-op identity transformation → {@link passthrough} - * - Subtype/supertype coercion → {@link passthroughSupertype}, {@link passthroughSubtype} - * - Trim/case strings → {@link trim}, {@link toLowerCase}, {@link toUpperCase}, {@link capitalize}, {@link uncapitalize}, {@link snakeToCamel} - * - Parse key-value strings → {@link splitKeyValue} - * - Coerce string ↔ number/bigint → {@link numberFromString}, {@link bigintFromString} - * - Coerce string ↔ Date/Duration → {@link dateFromString}, {@link durationFromString} - * - Decode durations → {@link durationFromNanos}, {@link durationFromMillis} - * - Wrap nullable/optional as Option → {@link optionFromNullOr}, {@link optionFromOptionalKey}, {@link optionFromOptional} - * - Parse URLs → {@link urlFromString} - * - Base64 ↔ Uint8Array → {@link uint8ArrayFromBase64String} - * - Base64 ↔ string → {@link stringFromBase64String} - * - URI component ↔ string → {@link stringFromUriComponent} - * - JSON string ↔ unknown → {@link fromJsonString} - * - FormData/URLSearchParams ↔ unknown → {@link fromFormData}, {@link fromURLSearchParams} - * - Check if a value is a Transformation → {@link isTransformation} - * - * ## Gotchas - * - * - `Transformation` operates on individual values; `Middleware` wraps the - * entire parsing Effect. Choose accordingly. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - String transformations like `trim`, `toLowerCase`, and `toUpperCase` use - * `passthrough` on the encode side — they are lossy and do not round-trip. - * - `durationFromNanos` encode can fail if the Duration cannot be represented - * as a `bigint`. - * - * ## Quickstart - * - * **Example** (Defining a custom transformation with Schema.decodeTo) - * - * ```ts - * import { Schema, SchemaTransformation } from "effect" - * - * const CentsFromDollars = Schema.Number.pipe( - * Schema.decodeTo( - * Schema.Number, - * SchemaTransformation.transform({ - * decode: (dollars) => dollars * 100, - * encode: (cents) => cents / 100 - * }) - * ) - * ) - * ``` - * - * ## See also - * - * - {@link Transformation} — the core bidirectional transformation class - * - {@link Middleware} — effect-pipeline-level transformation - * - {@link transform} — most common constructor - * - {@link passthrough} — identity transformation - * * @since 4.0.0 */ export * as SchemaTransformation from "./SchemaTransformation.ts"; @@ -3745,18 +443,6 @@ export * as SchemaTransformation from "./SchemaTransformation.ts"; */ export * as SchemaUtils from "./SchemaUtils.ts"; /** - * The `Scope` module provides functionality for managing resource lifecycles - * and cleanup operations in a functional and composable manner. - * - * A `Scope` represents a context where resources can be acquired and automatically - * cleaned up when the scope is closed. This is essential for managing resources - * like file handles, database connections, or any other resources that need - * proper cleanup. - * - * Scopes support both sequential and parallel finalization strategies: - * - Sequential: Finalizers run one after another in reverse order of registration - * - Parallel: Finalizers run concurrently for better performance - * * @since 2.0.0 */ export * as Scope from "./Scope.ts"; @@ -3769,7 +455,7 @@ export * as ScopedCache from "./ScopedCache.ts"; */ export * as ScopedRef from "./ScopedRef.ts"; /** - * @since 2.0.0 + * @since 4.0.0 */ export * as Semaphore from "./Semaphore.ts"; /** @@ -3785,85 +471,10 @@ export * as Stdio from "./Stdio.ts"; */ export * as Stream from "./Stream.ts"; /** - * This module provides utility functions and type class instances for working with the `string` type in TypeScript. - * It includes functions for basic string manipulation. - * * @since 2.0.0 */ export * as String from "./String.ts"; /** - * Utilities for creating, transforming, and comparing plain TypeScript objects - * (structs). Every function produces a new object — inputs are never mutated. - * - * ## Mental model - * - * - **Struct**: A plain JS object with a fixed set of known keys (e.g., - * `{ name: string; age: number }`). Not a generic key-value record. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Struct.pick(obj, keys)`) and data-last (`pipe(obj, Struct.pick(keys))`) - * style. - * - **Immutability**: All operations return a new object; the original is - * never modified. - * - **Lambda**: A type-level function interface (`~lambda.in` / `~lambda.out`) - * used by {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler - * can track how value types change. - * - **Evolver pattern**: {@link evolve}, {@link evolveKeys}, and - * {@link evolveEntries} let you selectively transform values, keys, or both - * while leaving untouched properties unchanged. - * - * ## Common tasks - * - * - Access a property in a pipeline → {@link get} - * - List string keys with proper types → {@link keys} - * - Subset / remove properties → {@link pick}, {@link omit} - * - Merge two structs (second wins) → {@link assign} - * - Rename keys → {@link renameKeys} - * - Transform selected values → {@link evolve} - * - Transform selected keys → {@link evolveKeys} - * - Transform both keys and values → {@link evolveEntries} - * - Map all values with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare structs → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce structs → {@link makeCombiner}, {@link makeReducer} - * - Flatten intersection types → {@link Simplify} - * - Strip `readonly` modifiers → {@link Mutable} - * - * ## Gotchas - * - * - {@link keys} only returns `string` keys; symbol keys are excluded. - * - {@link pick} and {@link omit} iterate with `for...in`, which includes - * inherited enumerable properties but excludes non-enumerable ones. - * - {@link assign} spreads with `...`; property order follows standard - * JS spread rules. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a {@link Lambda} - * value created with {@link lambda}; a plain function won't type-check. - * - * ## Quickstart - * - * **Example** (Picking, renaming, and evolving struct properties) - * - * ```ts - * import { pipe, Struct } from "effect" - * - * const user = { firstName: "Alice", lastName: "Smith", age: 30, admin: false } - * - * const result = pipe( - * user, - * Struct.pick(["firstName", "age"]), - * Struct.evolve({ age: (n) => n + 1 }), - * Struct.renameKeys({ firstName: "name" }) - * ) - * - * console.log(result) // { name: "Alice", age: 31 } - * ``` - * - * ## See also - * - * - {@link Equivalence} – building equivalence relations for structs - * - {@link Order} – ordering structs by their fields - * - {@link Combiner} – combining two values of the same type - * - {@link Reducer} – combining with an initial value - * * @since 2.0.0 */ export * as Struct from "./Struct.ts"; @@ -3892,111 +503,18 @@ export * as Terminal from "./Terminal.ts"; */ export * as Tracer from "./Tracer.ts"; /** - * A `Trie` is used for locating specific `string` keys from within a set. - * - * It works similar to `HashMap`, but with keys required to be `string`. - * This constraint unlocks some performance optimizations and new methods to get string prefixes (e.g. `keysWithPrefix`, `longestPrefixOf`). - * - * Prefix search is also the main feature that makes a `Trie` more suited than `HashMap` for certain usecases. - * - * A `Trie` is often used to store a dictionary (list of words) that can be searched - * in a manner that allows for efficient generation of completion lists - * (e.g. predict the rest of a word a user is typing). - * - * A `Trie` has O(n) lookup time where `n` is the size of the key, - * or even less than `n` on search misses. - * * @since 2.0.0 */ export * as Trie from "./Trie.ts"; /** - * Utilities for creating, accessing, transforming, and comparing fixed-length - * arrays (tuples). Every function produces a new tuple — inputs are never - * mutated. - * - * ## Mental model - * - * - **Tuple**: A fixed-length readonly array where each position can have a - * different type (e.g., `readonly [string, number, boolean]`). - * - **Index-based access**: Elements are accessed by numeric index, and the - * type system tracks the type at each position. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Tuple.get(t, 0)`) and data-last (`pipe(t, Tuple.get(0))`) style. - * - **Immutability**: All operations return a new tuple; the original is - * never modified. - * - **Lambda**: A type-level function interface (from {@link Struct}) used by - * {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler can - * track how element types change. - * - * ## Common tasks - * - * - Create a tuple → {@link make} - * - Access an element by index → {@link get} - * - Select / remove elements by index → {@link pick}, {@link omit} - * - Append elements → {@link appendElement}, {@link appendElements} - * - Transform selected elements → {@link evolve} - * - Swap element positions → {@link renameIndices} - * - Map all elements with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare tuples → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce tuples → {@link makeCombiner}, {@link makeReducer} - * - Check tuple length at runtime → {@link isTupleOf}, - * {@link isTupleOfAtLeast} - * - * ## Gotchas - * - * - {@link pick} and {@link omit} use numeric indices, not string keys. - * - {@link renameIndices} takes an array of stringified source indices - * (e.g., `["2", "1", "0"]`), not arbitrary names. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a Lambda value - * created with `Struct.lambda`; a plain function won't type-check. - * - {@link isTupleOf} and {@link isTupleOfAtLeast} only check length, not - * element types. - * - * ## Quickstart - * - * **Example** (Creating and transforming a tuple) - * - * ```ts - * import { pipe, Tuple } from "effect" - * - * const point = Tuple.make(10, 20, "red") - * - * const result = pipe( - * point, - * Tuple.evolve([ - * (x) => x * 2, - * (y) => y * 2 - * ]) - * ) - * - * console.log(result) // [20, 40, "red"] - * ``` - * - * ## See also - * - * - {@link Struct} – similar utilities for objects with named keys - * - {@link Array} – operations on variable-length arrays - * * @since 2.0.0 */ export * as Tuple from "./Tuple.ts"; /** - * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) - * semantics for chunk operations. It uses a `TxRef>` internally to ensure all operations - * are performed atomically within transactions. - * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxChunk values change. - * * @since 4.0.0 */ export * as TxChunk from "./TxChunk.ts"; /** - * A transactional deferred value — a write-once cell that can be read within transactions. - * Readers retry until a value is set; once set, the value is immutable. - * * @since 4.0.0 */ export * as TxDeferred from "./TxDeferred.ts"; @@ -4009,51 +527,22 @@ export * as TxHashMap from "./TxHashMap.ts"; */ export * as TxHashSet from "./TxHashSet.ts"; /** - * A transactional priority queue. Elements are dequeued in order determined by the - * provided `Order` instance. All operations participate in the STM transaction system. - * * @since 4.0.0 */ export * as TxPriorityQueue from "./TxPriorityQueue.ts"; /** - * TxPubSub is a transactional publish/subscribe hub that provides Software Transactional Memory - * (STM) semantics for message broadcasting. Publishers broadcast messages to all current - * subscribers, with each subscriber receiving its own copy of every published message. - * - * Supports multiple queue strategies: bounded, unbounded, dropping, and sliding. - * * @since 4.0.0 */ export * as TxPubSub from "./TxPubSub.ts"; /** - * TxQueue is a transactional queue data structure that provides Software Transactional Memory (STM) - * semantics for queue operations. It uses TxRef for transactional state management and supports - * multiple queue strategies: bounded, unbounded, dropping, and sliding. - * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxQueue values change. - * * @since 4.0.0 */ export * as TxQueue from "./TxQueue.ts"; /** - * TxReentrantLock is a transactional read/write lock with reentrant semantics using Software - * Transactional Memory (STM). Multiple readers can hold the lock concurrently, OR a single - * writer can hold exclusive access. A fiber holding a write lock may acquire additional - * read or write locks (reentrancy). - * * @since 4.0.0 */ export * as TxReentrantLock from "./TxReentrantLock.ts"; /** - * TxRef is a transactional value, it can be read and modified within the body of a transaction. - * - * Accessed values are tracked by the transaction in order to detect conflicts and in order to - * track changes, a transaction will retry whenever a conflict is detected or whenever the - * transaction explicitely calls to `Effect.txRetry` and any of the accessed TxRef values - * change. - * * @since 4.0.0 */ export * as TxRef from "./TxRef.ts"; @@ -4062,94 +551,14 @@ export * as TxRef from "./TxRef.ts"; */ export * as TxSemaphore from "./TxSemaphore.ts"; /** - * TxSubscriptionRef is a TxRef that allows subscribing to all committed changes. Subscribers - * receive the current value followed by every subsequent update via a transactional queue. - * * @since 4.0.0 */ export * as TxSubscriptionRef from "./TxSubscriptionRef.ts"; /** - * Type-level utility types for TypeScript. - * - * This module provides generic type aliases used throughout the Effect - * ecosystem. Everything here is compile-time only — there are no runtime - * values. Use these types to manipulate object shapes, tagged unions, tuples, - * and variance markers at the type level. - * - * ## Mental model - * - * - **Tagged union**: a union of objects each having a discriminating - * `_tag: string` field. {@link Tags}, {@link ExtractTag}, and - * {@link ExcludeTag} operate on these. - * - **Reason**: a nested error pattern where an error has a `reason` field - * containing a tagged union of sub-errors. {@link ReasonOf}, - * {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work - * with this pattern. - * - **Variance markers**: {@link Covariant}, {@link Contravariant}, and - * {@link Invariant} are function-type aliases encoding variance for phantom - * type parameters. - * - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into - * a single object type for cleaner IDE tooltips. - * - **Concurrency**: {@link Concurrency} is a union type - * (`number | "unbounded" | "inherit"`) used across Effect APIs that accept - * concurrency options. - * - **Marker types**: {@link unassigned} and {@link unhandled} are branded - * interfaces used internally to represent missing or unhandled type - * parameters. - * - * ## Common tasks - * - * - Flatten an intersection for readability → {@link Simplify} - * - Check type equality at compile time → {@link Equals} / {@link EqualsWith} - * - Merge two object types → {@link MergeLeft} / {@link MergeRight} - * - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag} - * - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason} - * - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast} - * - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable} - * - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant} - * - Check if a type is a union → {@link IsUnion} - * - * ## Gotchas - * - * - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf`) - * degrades to `Array`. - * - {@link MergeRecord} is an alias for {@link MergeLeft}; prefer - * {@link MergeLeft} or {@link MergeRight} for clarity. - * - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the - * built-in `NoInfer` from TypeScript 5.4+. - * - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but - * stops at primitives and functions. - * * @since 4.0.0 */ export * as Types from "./Types.ts"; /** - * This module provides small, allocation-free utilities for working with values of type - * `A | undefined`, where `undefined` means "no value". - * - * Why not `Option`? - * In TypeScript, `Option` is often unnecessary. If `undefined` already models absence - * in your domain, using `A | undefined` keeps types simple, avoids extra wrappers, and - * reduces overhead. The key is that `A` itself must not include `undefined`; in this - * module `undefined` is reserved to mean "no value". - * - * When to use `A | undefined`: - * - Absence can be represented by `undefined` in your domain model. - * - You do not need to distinguish between "no value" and "value is undefined". - * - You want straightforward ergonomics and zero extra allocations. - * - * When to prefer `Option`: - * - You must distinguish `None` from `Some(undefined)` (that is, `undefined` is a valid - * payload and carries meaning on its own). - * - You need a tagged representation for serialization or pattern matching across - * boundaries where `undefined` would be ambiguous. - * - You want the richer `Option` API and are comfortable with the extra wrapper. - * - * Lawfulness note: - * All helpers treat `undefined` as absence. Do not use these utilities with payloads - * where `A` can itself be `undefined`, or you will lose information. If you need to - * carry `undefined` as a valid payload, use `Option` instead. - * * @since 4.0.0 */ export * as UndefinedOr from "./UndefinedOr.ts"; @@ -4158,62 +567,6 @@ export * as UndefinedOr from "./UndefinedOr.ts"; */ export * as Unify from "./Unify.ts"; /** - * Internal utilities for the Effect ecosystem's generator-based syntax and - * higher-kinded type machinery. - * - * ## Mental model - * - * - **SingleShotGen** — an `IterableIterator` wrapper that yields its value - * exactly once. Used internally by `[Symbol.iterator]()` on Effect, Option, - * Result, and other yieldable types so they work inside generator functions. - * - **Gen** — a type-level signature for generator-based monadic composition - * (`gen` functions). Parametric over any `TypeLambda` so each module - * (Effect, Option, Result, ...) can expose its own `gen` with correct types. - * - **Variance** — a type-level marker that encodes the variance (covariant, - * contravariant, invariant) of a `TypeLambda`'s type parameters. - * Used by {@link Gen} for type inference. - * - * ## Common tasks - * - * - Make a type yieldable in generators -> implement `[Symbol.iterator]()` returning a {@link SingleShotGen} - * - Define a generator-based API for a new TypeLambda -> type it as {@link Gen}`` - * - Encode variance for a higher-kinded type -> use {@link Variance} - * - * ## Gotchas - * - * - {@link SingleShotGen} yields its value only on the first `.next()` call. - * Calling `.next()` again returns `{ done: true }`. Iterating the same - * instance twice will skip the value on the second pass; call - * `[Symbol.iterator]()` to get a fresh iterator. - * - {@link Gen} and {@link Variance} are pure type-level constructs — they - * have no runtime representation. - * - * ## Quickstart - * - * **Example** (Using SingleShotGen to make a type yieldable) - * - * ```ts - * import { Utils } from "effect" - * - * class MyWrapper { - * constructor(readonly value: A) {} - * [Symbol.iterator]() { - * return new Utils.SingleShotGen, A>(this) - * } - * } - * - * const w = new MyWrapper(42) - * const iter = w[Symbol.iterator]() - * console.log(iter.next(undefined as any)) - * // { value: MyWrapper { value: 42 }, done: false } - * console.log(iter.next(42)) - * // { value: 42, done: true } - * ``` - * - * @see {@link SingleShotGen} - * @see {@link Gen} - * @see {@link Variance} - * * @since 2.0.0 */ export * as Utils from "./Utils.ts"; diff --git a/.opencode/node_modules/effect/dist/index.d.ts.map b/.opencode/node_modules/effect/dist/index.d.ts.map index 4b65cd3a7bc986f6d04cc2ca6fcc31836fd67a21..04817a6804e0fece081b2fb22d87a8a454d1b6a3 100644 --- a/.opencode/node_modules/effect/dist/index.d.ts.map +++ b/.opencode/node_modules/effect/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO;AACL;;GAEG;AACH,MAAM;AACN;;GAEG;AACH,IAAI;AACJ;;GAEG;AACH,IAAI;AACJ;;GAEG;AACH,IAAI;AACJ;;GAEG;AACH,QAAQ;AACR;;GAEG;AACH,IAAI,EACL,MAAM,eAAe,CAAA;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAE7C;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;;;;;GAMG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;;;;;;;;;;;;;;;;;;;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nC;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAE7C;;GAEG;AACH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C;;GAEG;AACH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C;;GAEG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAEzC;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAE/C;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAE3D;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAE/C;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/index.js b/.opencode/node_modules/effect/dist/index.js index f80e8c6638e6750cfd6807347d9c9217d67de1fa..eb76db80085b180da56682f4b8163b82b34b242a 100644 --- a/.opencode/node_modules/effect/dist/index.js +++ b/.opencode/node_modules/effect/dist/index.js @@ -28,126 +28,22 @@ identity, pipe } from "./Function.js"; // @barrel: Auto-generated exports. Do not edit manually. /** - * Utilities for working with immutable arrays (and non-empty arrays) in a - * functional style. All functions treat arrays as immutable — they return new - * arrays rather than mutating the input. - * - * ## Mental model - * - * - **`Array`** is a standard JS array. All functions in this module return - * new arrays; the input is never mutated. - * - **`NonEmptyReadonlyArray`** (`readonly [A, ...Array]`) is a readonly - * array guaranteed to have at least one element. Many functions preserve or - * require this guarantee at the type level. - * - **`NonEmptyArray`** is the mutable counterpart: `[A, ...Array]`. - * - Most functions are **dual** — they can be called either as - * `Array.fn(array, arg)` (data-first) or piped as - * `pipe(array, Array.fn(arg))` (data-last). - * - Functions that access elements by index return `Option` for safety; use - * the `*NonEmpty` variants (e.g. {@link headNonEmpty}) when you already know - * the array is non-empty. - * - Set-like operations ({@link union}, {@link intersection}, - * {@link difference}) use `Equal.equivalence()` by default; use the `*With` - * variants for custom equality. - * - * ## Common tasks - * - * - **Create** an array: {@link make}, {@link of}, {@link empty}, - * {@link fromIterable}, {@link range}, {@link makeBy}, {@link replicate}, - * {@link unfold} - * - **Access** elements: {@link head}, {@link last}, {@link get}, {@link tail}, - * {@link init} - * - **Transform**: {@link map}, {@link flatMap}, {@link flatten} - * - **Filter**: {@link filter}, {@link partition}, {@link dedupe} - * - **Combine**: {@link append}, {@link prepend}, {@link appendAll}, - * {@link prependAll}, {@link zip}, {@link cartesian} - * - **Split**: {@link splitAt}, {@link chunksOf}, {@link span}, {@link window} - * - **Search**: {@link findFirst}, {@link findLast}, {@link contains} - * - **Sort**: {@link sort}, {@link sortBy}, {@link sortWith} - * - **Fold**: {@link reduce}, {@link scan}, {@link join} - * - **Group**: {@link groupBy}, {@link group}, {@link groupWith} - * - **Set operations**: {@link union}, {@link intersection}, - * {@link difference} - * - **Match** on empty vs non-empty: {@link match}, {@link matchLeft}, - * {@link matchRight} - * - **Check** properties: {@link isArray}, {@link isArrayNonEmpty}, - * {@link every}, {@link some} - * - * ## Gotchas - * - * - {@link fromIterable} returns the original array reference when given an - * array; if you need a copy, use {@link copy}. - * - `sort`, `reverse`, etc. always allocate a new array — the input is never - * mutated. - * - {@link makeBy} and {@link replicate} normalize `n` to an integer >= 1 — - * they never produce an empty array. - * - {@link range}`(start, end)` is inclusive on both ends. If `start > end` it - * returns `[start]`. - * - Functions returning `Option` (e.g. {@link head}, {@link findFirst}) return - * `Option.none()` for empty inputs — they never throw. - * - * ## Quickstart - * - * **Example** (Basic array operations) - * - * ```ts - * import { Array } from "effect" - * - * const numbers = Array.make(1, 2, 3, 4, 5) - * - * const doubled = Array.map(numbers, (n) => n * 2) - * console.log(doubled) // [2, 4, 6, 8, 10] - * - * const evens = Array.filter(numbers, (n) => n % 2 === 0) - * console.log(evens) // [2, 4] - * - * const sum = Array.reduce(numbers, 0, (acc, n) => acc + n) - * console.log(sum) // 15 - * ``` - * - * @see {@link make} — create a non-empty array from elements - * @see {@link map} — transform each element - * @see {@link filter} — keep elements matching a predicate - * @see {@link reduce} — fold an array to a single value - * * @since 2.0.0 */ export * as Array from "./Array.js"; /** - * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript. - * It includes functions for basic arithmetic operations. - * - * A `BigDecimal` allows storing any real number to arbitrary precision; which avoids common floating point errors - * (such as 0.1 + 0.2 ≠ 0.3) at the cost of complexity. - * - * Internally, `BigDecimal` uses a `BigInt` object, paired with a 64-bit integer which determines the position of the - * decimal point. Therefore, the precision *is not* actually arbitrary, but limited to 263 decimal places. - * - * It is not recommended to convert a floating point number to a decimal directly, as the floating point representation - * may be unexpected. - * * @since 2.0.0 */ export * as BigDecimal from "./BigDecimal.js"; /** - * This module provides utility functions and type class instances for working with the `bigint` type in TypeScript. - * It includes functions for basic arithmetic operations. - * * @since 2.0.0 */ export * as BigInt from "./BigInt.js"; /** - * This module provides utility functions and type class instances for working with the `boolean` type in TypeScript. - * It includes functions for basic boolean operations. - * * @since 2.0.0 */ export * as Boolean from "./Boolean.js"; /** - * This module provides types and utility functions to create and work with - * branded types, which are TypeScript types with an added type tag to prevent - * accidental usage of a value in the wrong context. - * * @since 2.0.0 */ export * as Brand from "./Brand.js"; @@ -156,141 +52,10 @@ export * as Brand from "./Brand.js"; */ export * as Cache from "./Cache.js"; /** - * Structured representation of how an Effect can fail. - * - * A `Cause` holds a flat array of `Reason` values, where each reason is one of: - * - * - **Fail** — a typed, expected error `E` (created by `Effect.fail`) - * - **Die** — an untyped defect (`unknown`) from `Effect.die` or uncaught throws - * - **Interrupt** — a fiber interruption, optionally carrying the interrupting fiber's ID - * - * ## Mental model - * - * - A `Cause` is always flat: concurrent and sequential failures are stored together - * in `cause.reasons` (a `ReadonlyArray>`). - * - Each `Reason` carries an `annotations` map with tracing metadata (stack frames, spans). - * - An empty `reasons` array means the computation succeeded or the cause was empty - * ({@link empty}). - * - `Cause` implements `Equal`, so two causes with identical reasons compare as equal. - * - * ## Common tasks - * - * | Intent | API | - * |--------|-----| - * | Create a cause | {@link fail}, {@link die}, {@link interrupt}, {@link fromReasons} | - * | Test for reason types | {@link hasFails}, {@link hasDies}, {@link hasInterrupts} | - * | Extract the first error/defect | {@link findError}, {@link findDefect}, {@link findFail}, {@link findDie} | - * | Iterate over reasons manually | `cause.reasons.filter(Cause.isFailReason)` | - * | Combine two causes | {@link combine} | - * | Transform errors | {@link map} | - * | Collapse to a single thrown value | {@link squash} | - * | Render for logging | {@link pretty}, {@link prettyErrors} | - * | Attach/read tracing metadata | {@link annotate}, {@link annotations}, {@link reasonAnnotations} | - * - * ## Gotchas - * - * - `findError`/`findDefect` return `Filter.fail` (not `Option.none`) when no match is - * found. Use {@link findErrorOption} if you need an `Option`. - * - `squash` picks the first `Fail` error, then the first `Die` defect, then falls back - * to a generic "interrupted" / "empty" error. It is lossy — use `prettyErrors` or - * iterate `reasons` directly when you need all failures. - * - The module also exports several built-in error classes (`NoSuchElementError`, - * `TimeoutError`, `IllegalArgumentError`, `ExceededCapacityError`, `UnknownError`) - * and the `Done` completion signal. These all implement `YieldableError` and can be - * yielded directly inside `Effect.gen`. - * - * **Example** (inspecting a concurrent failure) - * - * ```ts - * import { Cause, Effect } from "effect" - * - * const program = Effect.gen(function*() { - * const cause = yield* Effect.sandbox( - * Effect.all([ - * Effect.fail("err1"), - * Effect.die("defect"), - * Effect.fail("err2") - * ], { concurrency: "unbounded" }) - * ).pipe(Effect.flip) - * - * const errors = cause.reasons - * .filter(Cause.isFailReason) - * .map((r) => r.error) - * - * const defects = cause.reasons - * .filter(Cause.isDieReason) - * .map((r) => r.defect) - * - * console.log(errors) // ["err1", "err2"] (order may vary) - * console.log(defects) // ["defect"] - * }) - * - * Effect.runPromise(program) - * ``` - * - * @see {@link Cause} — the core interface - * @see {@link Reason} — the union of failure kinds - * @see {@link pretty} — human-readable rendering - * * @since 2.0.0 */ export * as Cause from "./Cause.js"; /** - * The `Channel` module provides a powerful abstraction for bi-directional communication - * and streaming operations. A `Channel` is a nexus of I/O operations that supports both - * reading and writing, forming the foundation for Effect's Stream and Sink abstractions. - * - * ## What is a Channel? - * - * A `Channel` represents: - * - **OutElem**: The type of elements the channel outputs - * - **OutErr**: The type of errors the channel can produce - * - **OutDone**: The type of the final value when the channel completes - * - **InElem**: The type of elements the channel reads - * - **InErr**: The type of errors the channel can receive - * - **InDone**: The type of the final value from upstream - * - **Env**: The environment/context required by the channel - * - * ## Key Features - * - * - **Bi-directional**: Channels can both read and write - * - **Composable**: Channels can be piped, sequenced, and concatenated - * - **Resource-safe**: Automatic cleanup and resource management - * - **Error-handling**: Built-in error propagation and handling - * - **Concurrent**: Support for concurrent operations - * - * ## Composition Patterns - * - * 1. **Piping**: Connect channels where output of one becomes input of another - * 2. **Sequencing**: Use the result of one channel to create another - * 3. **Concatenating**: Combine multiple channels into a single channel - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Simple channel that outputs numbers - * const numberChannel = Channel.succeed(42) - * - * // Transform channel that doubles values - * const doubleChannel = Channel.map(numberChannel, (n) => n * 2) - * - * // Running the channel would output: 84 - * ``` - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Channel from an array of values - * const arrayChannel = Channel.fromArray([1, 2, 3, 4, 5]) - * - * // Transform the channel by mapping over values - * const transformedChannel = Channel.map(arrayChannel, (n) => n * 2) - * - * // This channel will output: 2, 4, 6, 8, 10 - * ``` - * * @since 2.0.0 */ export * as Channel from "./Channel.js"; @@ -299,435 +64,30 @@ export * as Channel from "./Channel.js"; */ export * as ChannelSchema from "./ChannelSchema.js"; /** - * The `Chunk` module provides an immutable, high-performance sequence data structure - * optimized for functional programming patterns. A `Chunk` is a persistent data structure - * that supports efficient append, prepend, and concatenation operations. - * - * ## What is a Chunk? - * - * A `Chunk` is an immutable sequence of elements of type `A` that provides: - * - **O(1) append and prepend operations** - * - **Efficient concatenation** through tree-like structure - * - **Memory efficiency** with structural sharing - * - **Rich API** with functional programming operations - * - **Type safety** with full TypeScript integration - * - * ## Key Features - * - * - **Immutable**: All operations return new chunks without modifying the original - * - **Efficient**: Optimized data structure with logarithmic complexity for most operations - * - **Functional**: Rich set of transformation and combination operators - * - **Lazy evaluation**: Many operations are deferred until needed - * - **Interoperable**: Easy conversion to/from arrays and other collections - * - * ## Performance Characteristics - * - * - **Append/Prepend**: O(1) amortized - * - **Random Access**: O(log n) - * - **Concatenation**: O(log min(m, n)) - * - **Iteration**: O(n) - * - **Memory**: Structural sharing minimizes allocation - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Creating chunks - * const chunk1 = Chunk.fromIterable([1, 2, 3]) - * const chunk2 = Chunk.fromIterable([4, 5, 6]) - * const empty = Chunk.empty() - * - * // Combining chunks - * const combined = Chunk.appendAll(chunk1, chunk2) - * console.log(Chunk.toReadonlyArray(combined)) // [1, 2, 3, 4, 5, 6] - * ``` - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Functional transformations - * const numbers = Chunk.range(1, 5) // [1, 2, 3, 4, 5] - * const doubled = Chunk.map(numbers, (n) => n * 2) // [2, 4, 6, 8, 10] - * const evens = Chunk.filter(doubled, (n) => n % 4 === 0) // [4, 8] - * const sum = Chunk.reduce(evens, 0, (acc, n) => acc + n) // 12 - * ``` - * - * @example - * ```ts - * import { Chunk, Effect } from "effect" - * - * // Working with Effects - * const processChunk = (chunk: Chunk.Chunk) => - * Effect.gen(function*() { - * const mapped = Chunk.map(chunk, (n) => n * 2) - * const filtered = Chunk.filter(mapped, (n) => n > 5) - * return Chunk.toReadonlyArray(filtered) - * }) - * ``` - * * @since 2.0.0 */ export * as Chunk from "./Chunk.js"; /** - * The `Clock` module provides functionality for time-based operations in Effect applications. - * It offers precise time measurements, scheduling capabilities, and controlled time management - * for testing scenarios. - * - * The Clock service is a core component of the Effect runtime, providing: - * - Current time access in milliseconds and nanoseconds - * - Sleep operations for delaying execution - * - Time-based scheduling primitives - * - Testable time control through `TestClock` - * - * ## Key Features - * - * - **Precise timing**: Access to both millisecond and nanosecond precision - * - **Sleep operations**: Non-blocking sleep with proper interruption handling - * - **Service integration**: Seamless integration with Effect's dependency injection - * - **Testable**: Mock time control for deterministic testing - * - **Resource-safe**: Automatic cleanup of time-based resources - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Get current time in milliseconds - * const getCurrentTime = Clock.currentTimeMillis - * - * // Sleep for 1 second - * const sleep1Second = Effect.sleep("1 seconds") - * - * // Measure execution time - * const measureTime = Effect.gen(function*() { - * const start = yield* Clock.currentTimeMillis - * yield* Effect.sleep("100 millis") - * const end = yield* Clock.currentTimeMillis - * return end - start - * }) - * ``` - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Using Clock service directly - * const program = Effect.gen(function*() { - * const clock = yield* Clock.Clock - * const currentTime = yield* clock.currentTimeMillis - * console.log(`Current time: ${currentTime}`) - * - * // Sleep for 500ms - * yield* Effect.sleep("500 millis") - * - * const afterSleep = yield* clock.currentTimeMillis - * console.log(`After sleep: ${afterSleep}`) - * }) - * ``` - * * @since 2.0.0 */ export * as Clock from "./Clock.js"; /** - * A module for combining two values of the same type into one. - * - * A `Combiner` wraps a single binary function `(self: A, that: A) => A`. - * It describes *how* two values merge but carries no initial/empty value - * (for that, see {@link Reducer} which extends `Combiner` with an - * `initialValue`). - * - * ## Mental model - * - * - **Combiner** – an object with a `combine(self, that)` method that returns - * a value of the same type. - * - **Argument order** – `self` is the "left" / accumulator side, `that` is - * the "right" / incoming side. - * - **No identity element** – unlike a monoid, a `Combiner` does not require - * a neutral element. Use {@link Reducer} when you need one. - * - **Purity** – all combiners produced by this module are pure; they never - * mutate their arguments. - * - **Composability** – combiners can be lifted into `Option`, `Struct`, - * `Tuple`, and other container types via helpers in those modules. - * - * ## Common tasks - * - * - Create a combiner from any binary function → {@link make} - * - Swap argument order → {@link flip} - * - Pick the smaller / larger of two values → {@link min} / {@link max} - * - Always keep the first or last value → {@link first} / {@link last} - * - Ignore both values and return a fixed result → {@link constant} - * - Insert a separator between combined values → {@link intercalate} - * - * ## Gotchas - * - * - `min` and `max` require an `Order`, not a raw comparator. Import from - * e.g. `Number.Order` or `String.Order`. - * - `intercalate` is curried: call it with the separator first, then pass the - * base combiner. - * - A `Reducer` (which adds `initialValue`) is also a valid `Combiner` — you - * can pass a `Reducer` anywhere a `Combiner` is expected. - * - * ## Quickstart - * - * **Example** (combining strings with a separator) - * - * ```ts - * import { Combiner, String } from "effect" - * - * const csv = Combiner.intercalate(",")(String.ReducerConcat) - * - * console.log(csv.combine("a", "b")) - * // Output: "a,b" - * - * console.log(csv.combine(csv.combine("a", "b"), "c")) - * // Output: "a,b,c" - * ``` - * - * ## See also - * - * - {@link make} – the primary constructor - * - {@link Combiner} – the core interface - * * @since 4.0.0 */ export * as Combiner from "./Combiner.js"; /** - * Declarative, schema-driven configuration loading. A `Config` describes - * how to read and validate a value of type `T` from a `ConfigProvider`. Configs - * can be composed, transformed, and used directly as Effects. - * - * ## Mental model - * - * - **Config\** – a recipe for extracting a typed value from a - * `ConfigProvider`. Created via convenience constructors or {@link schema}. - * - **ConfigProvider** – the backing data source (env vars, JSON, `.env` - * files). See the `ConfigProvider` module. - * - **ConfigError** – wraps either a `SourceError` (provider I/O failure) or - * a `SchemaError` (validation / decoding failure). - * - **parse** – instance method on every `Config` that takes a provider and - * returns `Effect`. - * - **Yieldable** – every `Config` can be yielded inside `Effect.gen`. It - * automatically resolves the current `ConfigProvider` from the context. - * - * ## Common tasks - * - * - Read a single env var → {@link string}, {@link number}, {@link boolean}, - * {@link int}, {@link port}, {@link url}, {@link date}, {@link duration}, - * {@link logLevel}, {@link redacted} - * - Read a structured config → {@link schema} with a `Schema.Struct` - * - Provide a default → {@link withDefault} - * - Make a config optional → {@link option} - * - Transform a value → {@link map} / {@link mapOrFail} - * - Fall back on error → {@link orElse} - * - Combine multiple configs → {@link all} - * - Build from a `Schema.Codec` → {@link schema} - * - Always succeed or fail → {@link succeed} / {@link fail} - * - * ## Gotchas - * - * - `withDefault` and `option` only apply when the error is caused by - * **missing data**. Validation errors (wrong type, out of range) still - * propagate. - * - When yielded in `Effect.gen`, the config resolves using the current - * `ConfigProvider` service. To use a specific provider, call `.parse(provider)` - * instead. - * - The `name` parameter on convenience constructors (e.g. `Config.string("HOST")`) - * sets the root path segment. Omit it when the config is part of a larger - * schema. - * - * ## Quickstart - * - * **Example** (Reading typed config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect, Schema } from "effect" - * - * const AppConfig = Config.schema( - * Schema.Struct({ - * host: Schema.String, - * port: Schema.Int - * }), - * "app" - * ) - * - * const provider = ConfigProvider.fromEnv({ - * env: { app_host: "localhost", app_port: "8080" } - * }) - * - * // Effect.runSync(AppConfig.parse(provider)) - * // { host: "localhost", port: 8080 } - * ``` - * - * @see {@link schema} – build a Config from any Schema.Codec - * @see {@link ConfigError} – the error type for config failures - * @see {@link make} – low-level Config constructor - * * @since 4.0.0 */ export * as Config from "./Config.js"; /** - * Provides the data source layer for the `Config` module. A `ConfigProvider` - * knows how to load raw configuration nodes from a backing store (environment - * variables, JSON objects, `.env` files, file trees) and expose them through a - * uniform `Node` interface that `Config` schemas consume. - * - * ## Mental model - * - * - **Node** – a discriminated union (`Value | Record | Array`) that describes - * what lives at a given path in the configuration tree. - * - **Path** – an array of string or numeric segments used to address a node - * (e.g. `["database", "host"]`). - * - **ConfigProvider** – an object with a `load(path)` method that resolves a - * path to a `Node | undefined`. Providers can be composed and transformed. - * - **Context.Reference** – `ConfigProvider` is registered as a reference - * service that defaults to `fromEnv()`, so it works without explicit - * provision. - * - **SourceError** – the typed error returned when a backing store is - * unreadable (I/O failure, permission error, etc.). - * - * ## Common tasks - * - * - Read from environment variables → {@link fromEnv} - * - Read from a JSON / plain object → {@link fromUnknown} - * - Parse a `.env` string → {@link fromDotEnvContents} - * - Load a `.env` file → {@link fromDotEnv} - * - Read from a directory tree → {@link fromDir} - * - Build a custom provider → {@link make} - * - Fall back to another provider → {@link orElse} - * - Scope a provider under a prefix → {@link nested} - * - Convert path segments to `CONSTANT_CASE` → {@link constantCase} - * - Transform path segments arbitrarily → {@link mapInput} - * - Install a provider as a Layer → {@link layer} / {@link layerAdd} - * - * ## Gotchas - * - * - `fromEnv` joins path segments with `_` for lookup **and** splits env var - * names on `_` to discover child keys. `DATABASE_HOST=x` is therefore - * accessible at both `["DATABASE_HOST"]` and `["DATABASE", "HOST"]`. - * - Because of `_` splitting, querying a parent path like `["DATABASE"]` - * returns a `Record` node with child key `"HOST"`, even if no env var - * named `DATABASE` exists. - * - When using `fromEnv` with schemas that use camelCase keys, pipe the - * provider through {@link constantCase} so `databaseHost` resolves to - * `DATABASE_HOST`. - * - `orElse` only falls back when the primary provider returns `undefined` - * (path not found). It does **not** catch `SourceError`. - * - `nested` prepends segments to the path *after* `mapInput` has run, so - * the order of composition matters. - * - * ## Quickstart - * - * **Example** (Reading config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect } from "effect" - * - * const provider = ConfigProvider.fromEnv({ - * env: { APP_PORT: "3000", APP_HOST: "localhost" } - * }) - * - * const port = Config.number("port") - * - * const program = port.parse( - * provider.pipe( - * ConfigProvider.nested("app"), - * ConfigProvider.constantCase - * ) - * ) - * - * // Effect.runSync(program) // 3000 - * ``` - * - * @see {@link make} – build a provider from a lookup function - * @see {@link fromEnv} – the default provider backed by `process.env` - * @see {@link fromUnknown} – provider backed by a plain JS object - * * @since 4.0.0 */ export * as ConfigProvider from "./ConfigProvider.js"; /** - * The `Console` module provides a functional interface for console operations within - * the Effect ecosystem. It offers type-safe logging, debugging, and console manipulation - * capabilities with built-in support for testing and environment isolation. - * - * ## Key Features - * - * - **Type-safe logging**: All console operations return Effects for composability - * - **Testable**: Mock console output for testing scenarios - * - **Service-based**: Integrated with Effect's dependency injection system - * - **Environment isolation**: Different console implementations per environment - * - **Rich API**: Support for all standard console methods (log, error, debug, etc.) - * - **Performance tracking**: Built-in timing and profiling capabilities - * - * ## Core Operations - * - * - **Basic logging**: `log`, `error`, `warn`, `info`, `debug` - * - **Assertions**: `assert` for conditional logging - * - **Grouping**: `group`, `groupCollapsed`, `groupEnd` for organized output - * - **Timing**: `time`, `timeEnd`, `timeLog` for performance measurement - * - **Data display**: `table`, `dir`, `dirxml` for structured data visualization - * - **Utilities**: `clear`, `count`, `countReset`, `trace` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Basic logging - * const program = Effect.gen(function*() { - * yield* Console.log("Hello, World!") - * yield* Console.error("Something went wrong") - * yield* Console.warn("This is a warning") - * yield* Console.info("Information message") - * }) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Grouped logging with timing - * const debugProgram = Console.withGroup( - * Effect.gen(function*() { - * yield* Console.log("Step 1: Loading...") - * yield* Effect.sleep("100 millis") - * - * yield* Console.log("Step 2: Processing...") - * yield* Effect.sleep("200 millis") - * }), - * { label: "Processing Data" } - * ) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Data visualization and debugging - * const dataProgram = Effect.gen(function*() { - * const users = [ - * { id: 1, name: "Alice", age: 30 }, - * { id: 2, name: "Bob", age: 25 } - * ] - * - * yield* Console.table(users) - * yield* Console.dir(users[0], { depth: 2 }) - * yield* Console.assert(users.length > 0, "Users array should not be empty") - * }) - * ``` - * * @since 2.0.0 */ export * as Console from "./Console.js"; /** - * This module provides a data structure called `Context` that can be used - * for dependency injection in effectful programs. It is essentially a table - * mapping `Service`s identifiers to their implementations, and can be used to - * manage dependencies in a type-safe way. The `Context` data structure is - * essentially a way of providing access to a set of related services that can - * be passed around as a single unit. This module provides functions to create, - * modify, and query the contents of a `Context`, as well as a number of - * utility types for working with a `Context`. - * * @since 4.0.0 */ export * as Context from "./Context.js"; @@ -736,76 +96,10 @@ export * as Context from "./Context.js"; */ export * as Cron from "./Cron.js"; /** - * Immutable data constructors with discriminated-union support. - * - * The `Data` module provides base classes and factory functions for creating - * immutable value types with a `_tag` field for discriminated unions. - * It is the recommended way to define domain models, error types, and - * lightweight ADTs in Effect applications. - * - * ## Mental model - * - * - **`Class`** — base class for plain immutable data. Extend it with a type - * parameter to declare the fields. Instances are `Pipeable`. - * - **`TaggedClass`** — like `Class` but automatically adds a `readonly _tag` - * string literal field. Useful for single-variant types or ad-hoc tagged - * values. - * - **`TaggedEnum`** (type) + **`taggedEnum`** (value) — define a multi-variant - * discriminated union from a simple record. `taggedEnum()` returns per-variant - * constructors plus `$is` / `$match` helpers. - * - **`Error`** — like `Class` but extends `Cause.YieldableError`, so instances - * can be yielded inside `Effect.gen` to fail the effect. - * - **`TaggedError`** — like `TaggedClass` but extends `Cause.YieldableError`. - * Works with `Effect.catchTag` for tag-based error recovery. - * - * ## Common tasks - * - * - Define a simple value class → {@link Class} - * - Define a value class with a `_tag` → {@link TaggedClass} - * - Define a discriminated union with constructors → {@link TaggedEnum} + {@link taggedEnum} - * - Define a yieldable error → {@link Error} - * - Define a yieldable tagged error → {@link TaggedError} - * - Type-guard a tagged value → `$is` from {@link taggedEnum} - * - Pattern-match on a tagged union → `$match` from {@link taggedEnum} - * - * ## Gotchas - * - * - Variant records passed to `TaggedEnum` must **not** contain a `_tag` key; - * the `_tag` is added automatically from the record key. - * - When a class has no fields, the constructor argument is optional (`void`). - * - `taggedEnum()` creates **plain objects**, not class instances. If you need - * class-based variants, use `TaggedClass` or `TaggedError` instead. - * - `TaggedEnum.WithGenerics` supports up to 4 generic type parameters. - * - * ## Quickstart - * - * **Example** (tagged union with pattern matching) - * - * ```ts - * import { Data } from "effect" - * - * type Shape = Data.TaggedEnum<{ - * Circle: { readonly radius: number } - * Rect: { readonly width: number; readonly height: number } - * }> - * const { Circle, Rect, $match } = Data.taggedEnum() - * - * const area = $match({ - * Circle: ({ radius }) => Math.PI * radius ** 2, - * Rect: ({ width, height }) => width * height - * }) - * - * console.log(area(Circle({ radius: 5 }))) - * // 78.53981633974483 - * console.log(area(Rect({ width: 3, height: 4 }))) - * // 12 - * ``` - * - * @see {@link Class} — plain immutable data class - * @see {@link TaggedEnum} — discriminated union type - * @see {@link taggedEnum} — discriminated union constructors - * @see {@link TaggedError} — yieldable tagged error class - * + * @since 4.0.0 + */ +export * as Crypto from "./Crypto.js"; +/** * @since 2.0.0 */ export * as Data from "./Data.js"; @@ -814,71 +108,6 @@ export * as Data from "./Data.js"; */ export * as DateTime from "./DateTime.js"; /** - * This module provides utilities for working with `Deferred`, a powerful concurrency - * primitive that represents an asynchronous variable that can be set exactly once. - * Multiple fibers can await the same `Deferred` and will all be notified when it - * completes. - * - * A `Deferred` can be: - * - **Completed successfully** with a value of type `A` - * - **Failed** with an error of type `E` - * - **Interrupted** if the fiber setting it is interrupted - * - * Key characteristics: - * - **Single assignment**: Can only be completed once - * - **Multiple waiters**: Many fibers can await the same `Deferred` - * - **Fiber-safe**: Thread-safe operations across concurrent fibers - * - **Composable**: Works seamlessly with other Effect operations - * - * @example - * ```ts - * import { Deferred, Effect, Fiber } from "effect" - * - * // Basic usage: coordinate between fibers - * const program = Effect.gen(function*() { - * const deferred = yield* Deferred.make() - * - * // Fiber 1: waits for the value - * const waiter = yield* Effect.forkChild( - * Effect.gen(function*() { - * const value = yield* Deferred.await(deferred) - * console.log("Received:", value) - * return value - * }) - * ) - * - * // Fiber 2: sets the value after a delay - * const setter = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("1 second") - * yield* Deferred.succeed(deferred, "Hello from setter!") - * }) - * ) - * - * // Wait for both fibers - * yield* Fiber.join(waiter) - * yield* Fiber.join(setter) - * }) - * - * // Producer-consumer pattern - * const producerConsumer = Effect.gen(function*() { - * const buffer = yield* Deferred.make, never>() - * - * const producer = Effect.gen(function*() { - * const data = [1, 2, 3, 4, 5] - * yield* Deferred.succeed(buffer, data) - * }) - * - * const consumer = Effect.gen(function*() { - * const data = yield* Deferred.await(buffer) - * return data.reduce((sum, n) => sum + n, 0) - * }) - * - * const [, result] = yield* Effect.all([producer, consumer]) - * return result // 15 - * }) - * ``` - * * @since 2.0.0 */ export * as Deferred from "./Deferred.js"; @@ -887,89 +116,10 @@ export * as Deferred from "./Deferred.js"; */ export * as Differ from "./Differ.js"; /** - * This module provides utilities for working with durations of time. A `Duration` - * is an immutable data type that represents a span of time with high precision, - * supporting operations from nanoseconds to weeks. - * - * Durations support: - * - **High precision**: Nanosecond-level accuracy using BigInt - * - **Multiple formats**: Numbers (millis), BigInt (nanos), tuples, strings - * - **Arithmetic operations**: Add, subtract, multiply, divide - * - **Comparisons**: Equal, less than, greater than - * - **Conversions**: Between different time units - * - **Human-readable formatting**: Pretty printing and parsing - * * @since 2.0.0 */ export * as Duration from "./Duration.js"; /** - * The `Effect` module is the core of the Effect library, providing a powerful and expressive - * way to model and compose asynchronous, concurrent, and effectful computations. - * - * An `Effect` represents a computation that: - * - May succeed with a value of type `A` - * - May fail with an error of type `E` - * - Requires a context/environment of type `R` - * - * Effects are lazy and immutable - they describe computations that can be executed later. - * This allows for powerful composition, error handling, resource management, and concurrency - * patterns. - * - * ## Key Features - * - * - **Type-safe error handling**: Errors are tracked in the type system - * - **Resource management**: Automatic cleanup with scoped resources - * - **Structured concurrency**: Safe parallel and concurrent execution - * - **Composable**: Effects can be combined using operators like `flatMap`, `map`, `zip` - * - **Testable**: Built-in support for testing with controlled environments - * - **Interruptible**: Effects can be safely interrupted and cancelled - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Creating a simple effect - * const hello = Effect.succeed("Hello, World!") - * - * // Composing effects - * const program = Effect.gen(function*() { - * const message = yield* hello - * yield* Console.log(message) - * return message.length - * }) - * - * // Running the effect - * Effect.runPromise(program).then(console.log) // 13 - * ``` - * - * @example - * ```ts - * import { Data, Effect } from "effect" - * - * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} - * - * // Effect that may fail - * const divide = (a: number, b: number) => - * b === 0 - * ? Effect.fail(new DiscountRateError()) - * : Effect.succeed(a / b) - * - * // Error handling - * const program = Effect.gen(function*() { - * const result = yield* divide(10, 2) - * console.log("Result:", result) // Result: 5 - * return result - * }) - * - * // Handle errors - * const safeProgram = program.pipe( - * Effect.match({ - * onFailure: (error) => -1, - * onSuccess: (value) => value - * }) - * ) - * ``` - * * @since 2.0.0 */ export * as Effect from "./Effect.js"; @@ -978,185 +128,18 @@ export * as Effect from "./Effect.js"; */ export * as Effectable from "./Effectable.js"; /** - * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex. - * * @since 4.0.0 */ export * as Encoding from "./Encoding.js"; /** - * Structural and custom equality for Effect values. - * - * The `Equal` module provides deep structural comparison for primitives, plain - * objects, arrays, Maps, Sets, Dates, and RegExps. Types that implement the - * {@link Equal} interface can supply their own comparison logic while staying - * compatible with the rest of the ecosystem (HashMap, HashSet, etc.). - * - * ## Mental model - * - * - **Structural equality** — two values are equal when their contents match, - * not when they share the same reference. - * - **Hash-first shortcut** — before comparing fields, the module checks - * {@link Hash.hash}. If the hashes differ the objects are unequal without - * further traversal. - * - **Equal interface** — any object that implements both {@link symbol} (the - * equality method) and `Hash.symbol` (the hash method) can define custom - * comparison logic. - * - **Caching** — comparison results for object pairs are cached in a WeakMap. - * This makes repeated checks fast but **requires immutability** after the - * first comparison. - * - **By-reference opt-out** — {@link byReference} and {@link byReferenceUnsafe} - * let you switch individual objects back to reference equality when you need - * mutable identity semantics. - * - * ## Common tasks - * - * - Compare two values → {@link equals} - * - Check if a value implements `Equal` → {@link isEqual} - * - Use `equals` where an `Equivalence` is expected → {@link asEquivalence} - * - Implement custom equality on a class → implement {@link Equal} (see - * example on the interface) - * - Opt an object out of structural equality → {@link byReference} / - * {@link byReferenceUnsafe} - * - * ## Gotchas - * - * - Objects **must be treated as immutable** after their first equality check. - * Results are cached; mutating an object afterwards yields stale results. - * - `NaN` is considered equal to `NaN` (unlike `===`). - * - Functions without an `Equal` implementation are compared by reference. - * - Map and Set comparisons are order-independent but O(n²) in size. - * - If only one of two objects implements `Equal`, they are never equal. - * - * ## Quickstart - * - * **Example** (basic structural comparison) - * - * ```ts - * import { Equal } from "effect" - * - * // Primitives - * console.log(Equal.equals(1, 1)) // true - * console.log(Equal.equals("a", "b")) // false - * - * // Objects and arrays - * console.log(Equal.equals({ x: 1 }, { x: 1 })) // true - * console.log(Equal.equals([1, 2], [1, 2])) // true - * - * // Curried form - * const is42 = Equal.equals(42) - * console.log(is42(42)) // true - * console.log(is42(0)) // false - * ``` - * - * @see {@link equals} — the main comparison function - * @see {@link Equal} — the interface for custom equality - * @see {@link Hash} — the companion hashing module - * * @since 2.0.0 */ export * as Equal from "./Equal.js"; /** - * Utilities for defining equivalence relations - binary relations that determine when two values - * should be considered equivalent. Equivalence relations are used for comparing, deduplicating, - * and organizing data in collections and data structures. - * - * ## Mental model - * - * - **Equivalence relation**: A function `(a: A, b: A) => boolean` that returns `true` when values are equivalent - * - **Reflexive property**: Every value is equivalent to itself (`eq(a, a) === true`) - * - **Symmetric property**: If `a` is equivalent to `b`, then `b` is equivalent to `a` (`eq(a, b) === eq(b, a)`) - * - **Transitive property**: If `a` is equivalent to `b` and `b` is equivalent to `c`, then `a` is equivalent to `c` - * - **Reference equality optimization**: {@link make} checks `===` first for performance before calling the custom function - * - **Composition**: Equivalences can be combined using {@link combine} and {@link combineAll} to create more complex relations - * - * ## Common tasks - * - * - Creating custom equivalences → {@link make} - * - Using strict equality (`===`) → {@link strictEqual} - * - Combining multiple equivalences (AND logic) → {@link combine}, {@link combineAll} - * - Transforming input before comparison → {@link mapInput} - * - Creating equivalences for structured types → {@link Struct}, {@link Tuple}, {@link Array_}, {@link Record} - * - * ## Gotchas - * - * - `strictEqual` uses `===`, so `NaN !== NaN` and objects are compared by reference, not structure - * - `make` optimizes with a reference equality check, so identical references return `true` without calling the function - * - `combineAll` with an empty collection returns an equivalence that always returns `true` - * - `Tuple` and `Array` require matching lengths; different lengths are never equivalent - * - * ## Quickstart - * - * **Example** (Case-insensitive string equivalence) - * - * ```ts - * import { Array, Equivalence } from "effect" - * - * const caseInsensitive = Equivalence.make((a, b) => - * a.toLowerCase() === b.toLowerCase() - * ) - * - * const strings = ["Hello", "world", "HELLO", "World"] - * const deduplicated = Array.dedupeWith(strings, caseInsensitive) - * console.log(deduplicated) // ["Hello", "world"] - * ``` - * - * ## See also - * - * - {@link Equal} - For structural equality (can convert to Equivalence) - * - {@link Array_.dedupeWith} - Remove duplicates using an equivalence - * - {@link Chunk} - Collections that use equivalences for operations - * * @since 2.0.0 */ export * as Equivalence from "./Equivalence.js"; /** - * Pluggable error reporting for Effect programs. - * - * Reporting is triggered by `Effect.withErrorReporting`, - * `ErrorReporter.report`, or built-in reporting boundaries in the HTTP and - * RPC server modules. - * - * Each reporter receives a structured callback with the failing `Cause`, a - * pretty-printed `Error`, severity, and any extra attributes attached to the - * original error — making it straightforward to forward failures to Sentry, - * Datadog, or a custom logging backend. - * - * Use the annotation symbols (`ignore`, `severity`, `attributes`) on your - * error classes to control reporting behavior per-error. - * - * @example - * ```ts - * import { Data, Effect, ErrorReporter } from "effect" - * - * // A reporter that logs to the console - * const consoleReporter = ErrorReporter.make(({ error, severity }) => { - * console.error(`[${severity}]`, error.message) - * }) - * - * // An error that should be ignored by reporters - * class NotFoundError extends Data.TaggedError("NotFoundError")<{}> { - * readonly [ErrorReporter.ignore] = true - * } - * - * // An error with custom severity and attributes - * class RateLimitError extends Data.TaggedError("RateLimitError")<{ - * readonly retryAfter: number - * }> { - * readonly [ErrorReporter.severity] = "Warn" as const - * readonly [ErrorReporter.attributes] = { - * retryAfter: this.retryAfter - * } - * } - * - * // Opt in to error reporting with Effect.withErrorReporting - * const program = Effect.gen(function*() { - * return yield* new RateLimitError({ retryAfter: 60 }) - * }).pipe( - * Effect.withErrorReporting, - * Effect.provide(ErrorReporter.layer([consoleReporter])) - * ) - * ``` - * * @since 4.0.0 */ export * as ErrorReporter from "./ErrorReporter.js"; @@ -1165,136 +148,10 @@ export * as ErrorReporter from "./ErrorReporter.js"; */ export * as ExecutionPlan from "./ExecutionPlan.js"; /** - * Represents the outcome of an Effect computation as a plain, synchronously - * inspectable value. - * - * ## Mental model - * - * - `Exit` is a union of two cases: `Success` and `Failure` - * - A `Success` wraps a value of type `A` - * - A `Failure` wraps a `Cause`, which may contain typed errors, defects, or interruptions - * - `Exit` is also an `Effect`, so you can yield it directly inside `Effect.gen` - * - Constructors mirror the failure modes: {@link fail} for typed errors, {@link die} for defects, {@link interrupt} for fiber interruptions - * - Use `Exit` when you need to inspect an Effect result without running further effects - * - * ## Common tasks - * - * - Create a success: {@link succeed} - * - Create a typed failure: {@link fail} - * - Create a failure from a Cause: {@link failCause} - * - Create a defect: {@link die} - * - Create an interruption: {@link interrupt} - * - Check the outcome: {@link isSuccess}, {@link isFailure}, {@link match} - * - Extract values optionally: {@link getSuccess}, {@link getCause}, {@link findErrorOption} - * - Transform the result: {@link map}, {@link mapError}, {@link mapBoth} - * - Combine multiple exits: {@link asVoidAll} - * - Inspect failure categories: {@link hasFails}, {@link hasDies}, {@link hasInterrupts} - * - * ## Gotchas - * - * - A `Failure` wraps a `Cause`, not a bare `E`. Use Cause utilities to drill into it. - * - {@link mapError} and {@link mapBoth} only transform typed errors (Fail reasons in the Cause). If the Cause contains only defects or interruptions, the original failure passes through unchanged. - * - Filter-based APIs ({@link filterSuccess}, {@link filterValue}, etc.) return `Filter.fail` markers for pipeline composition. They are not `Option` values or Effect failures. - * - {@link findError} and {@link findDefect} return only the first matching reason from the Cause. - * - * ## Quickstart - * - * **Example** (Creating and inspecting exits) - * - * ```ts - * import { Exit } from "effect" - * - * const success = Exit.succeed(42) - * const failure = Exit.fail("not found") - * - * const message = Exit.match(success, { - * onSuccess: (value) => `Got: ${value}`, - * onFailure: () => "Failed" - * }) - * console.log(message) // "Got: 42" - * ``` - * - * ## See also - * - * - {@link Exit} the core union type - * - {@link succeed} and {@link fail} the most common constructors - * - {@link match} for pattern matching on an Exit - * * @since 2.0.0 */ export * as Exit from "./Exit.js"; /** - * This module provides utilities for working with `Fiber`, the fundamental unit of - * concurrency in Effect. Fibers are lightweight, user-space threads that allow - * multiple Effects to run concurrently with structured concurrency guarantees. - * - * Key characteristics of Fibers: - * - **Lightweight**: Much lighter than OS threads, you can create millions - * - **Structured concurrency**: Parent fibers manage child fiber lifecycles - * - **Cancellation safety**: Proper resource cleanup when interrupted - * - **Cooperative**: Fibers yield control at effect boundaries - * - **Traceable**: Each fiber has an ID for debugging and monitoring - * - * Common patterns: - * - **Fork and join**: Start concurrent work and wait for results - * - **Race conditions**: Run multiple effects, take the first to complete - * - **Supervision**: Monitor and restart failed fibers - * - **Resource management**: Ensure proper cleanup on interruption - * - * @example - * ```ts - * import { Console, Effect, Fiber } from "effect" - * - * // Basic fiber operations - * const basicExample = Effect.gen(function*() { - * // Fork an effect to run concurrently - * const fiber = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("2 seconds") - * yield* Console.log("Background task completed") - * return "background result" - * }) - * ) - * - * // Do other work while the fiber runs - * yield* Console.log("Doing other work...") - * yield* Effect.sleep("1 second") - * - * // Wait for the fiber to complete - * const result = yield* Fiber.join(fiber) - * yield* Console.log(`Fiber result: ${result}`) - * }) - * - * // Joining multiple fibers - * const joinExample = Effect.gen(function*() { - * const task1 = Effect.delay(Effect.succeed("task1"), "1 second") - * const task2 = Effect.delay(Effect.succeed("task2"), "2 seconds") - * - * // Start both effects as fibers - * const fiber1 = yield* Effect.forkChild(task1) - * const fiber2 = yield* Effect.forkChild(task2) - * - * // Wait for both to complete - * const result1 = yield* Fiber.join(fiber1) - * const result2 = yield* Fiber.join(fiber2) - * return [result1, result2] // ["task1", "task2"] - * }) - * - * // Parallel execution with structured concurrency - * const parallelExample = Effect.gen(function*() { - * const tasks = [1, 2, 3, 4, 5].map((n) => - * Effect.gen(function*() { - * yield* Effect.sleep(`${n * 100} millis`) - * return n * n - * }) - * ) - * - * // Run all tasks in parallel, wait for all to complete - * const results = yield* Effect.all(tasks, { concurrency: "unbounded" }) - * return results // [1, 4, 9, 16, 25] - * }) - * ``` - * * @since 2.0.0 */ export * as Fiber from "./Fiber.js"; @@ -1311,40 +168,6 @@ export * as FiberMap from "./FiberMap.js"; */ export * as FiberSet from "./FiberSet.js"; /** - * This module provides a comprehensive file system abstraction that supports both synchronous - * and asynchronous file operations through Effect. It includes utilities for file I/O, directory - * management, permissions, timestamps, and file watching with proper error handling. - * - * The `FileSystem` interface provides a cross-platform abstraction over file system operations, - * allowing you to work with files and directories in a functional, composable way. All operations - * return `Effect` values that can be composed, transformed, and executed safely. - * - * @example - * ```ts - * import { Console, Effect, FileSystem } from "effect" - * - * const program = Effect.gen(function*() { - * const fs = yield* FileSystem.FileSystem - * - * // Create a directory - * yield* fs.makeDirectory("./temp", { recursive: true }) - * - * // Write a file - * yield* fs.writeFileString("./temp/hello.txt", "Hello, World!") - * - * // Read the file back - * const content = yield* fs.readFileString("./temp/hello.txt") - * yield* Console.log("File content:", content) - * - * // Get file information - * const stats = yield* fs.stat("./temp/hello.txt") - * yield* Console.log("File size:", stats.size) - * - * // Clean up - * yield* fs.remove("./temp", { recursive: true }) - * }) - * ``` - * * @since 4.0.0 */ export * as FileSystem from "./FileSystem.js"; @@ -1353,57 +176,6 @@ export * as FileSystem from "./FileSystem.js"; */ export * as Filter from "./Filter.js"; /** - * Utilities for converting arbitrary JavaScript values into human-readable - * strings, with support for circular references, redaction, and common JS - * types that `JSON.stringify` handles poorly. - * - * Mental model: - * - A `Formatter` is a callable `(value: Value) => Format`. - * - {@link format} is the general-purpose pretty-printer: it handles - * primitives, arrays, objects, `BigInt`, `Symbol`, `Date`, `RegExp`, - * `Set`, `Map`, class instances, and circular references. - * - {@link formatJson} is a safe `JSON.stringify` wrapper that silently - * drops circular references and applies redaction. - * - Both functions accept a `space` option for indentation control. - * - * Common tasks: - * - Pretty-print any value for debugging / logging -> {@link format} - * - Serialize to JSON safely (no circular throws) -> {@link formatJson} - * - Format a single object property key -> {@link formatPropertyKey} - * - Format a property path like `["a"]["b"]` -> {@link formatPath} - * - Format a `Date` to ISO string safely -> {@link formatDate} - * - * Gotchas: - * - {@link format} output is **not** valid JSON; use {@link formatJson} when - * you need parseable JSON. - * - {@link format} calls `toString()` on objects by default; pass - * `ignoreToString: true` to disable. - * - {@link formatJson} silently omits circular references (the key is - * dropped from the output). - * - Values implementing the `Redactable` protocol are automatically - * redacted by both {@link format} and {@link formatJson}. - * - * **Example** (Pretty-print a value) - * - * ```ts - * import { Formatter } from "effect" - * - * const obj = { name: "Alice", scores: [100, 97] } - * console.log(Formatter.format(obj)) - * // {"name":"Alice","scores":[100,97]} - * - * console.log(Formatter.format(obj, { space: 2 })) - * // { - * // "name": "Alice", - * // "scores": [ - * // 100, - * // 97 - * // ] - * // } - * ``` - * - * See also: {@link Formatter}, {@link format}, {@link formatJson} - * * @since 4.0.0 */ export * as Formatter from "./Formatter.js"; @@ -1416,12 +188,6 @@ export * as Function from "./Function.js"; */ export * as Graph from "./Graph.js"; /** - * This module provides utilities for hashing values in TypeScript. - * - * Hashing is the process of converting data into a fixed-size numeric value, - * typically used for data structures like hash tables, equality comparisons, - * and efficient data storage. - * * @since 2.0.0 */ export * as Hash from "./Hash.js"; @@ -1438,331 +204,34 @@ export * as HashRing from "./HashRing.js"; */ export * as HashSet from "./HashSet.js"; /** - * This module provides utilities for Higher-Kinded Types (HKT) in TypeScript. - * - * Higher-Kinded Types are types that take other types as parameters, similar to how - * functions take values as parameters. They enable generic programming over type - * constructors, allowing you to write code that works with any container type - * (like Array, Option, Effect, etc.) in a uniform way. - * - * The HKT system in Effect uses TypeLambdas to encode type-level functions that - * can represent complex type relationships with multiple type parameters, including - * contravariant, covariant, and invariant positions. - * - * @example - * ```ts - * import type { HKT } from "effect" - * - * // Define a TypeLambda for Array - * interface ArrayTypeLambda extends HKT.TypeLambda { - * readonly type: Array - * } - * - * // Use Kind to get the concrete type - * type MyArray = HKT.Kind - * // MyArray is Array - * - * // Define a TypeClass that works with any HKT - * interface Functor extends HKT.TypeClass { - * map( - * fa: HKT.Kind, - * f: (a: A) => B - * ): HKT.Kind - * } - * ``` - * * @since 2.0.0 */ export * as HKT from "./HKT.js"; /** - * This module provides utilities for making values inspectable and debuggable in TypeScript. - * - * The Inspectable interface provides a standard way to implement custom string representations - * for objects, making them easier to debug and inspect. It includes support for JSON - * serialization, Node.js inspection, and safe circular reference handling. - * - * The module also includes redaction capabilities for sensitive data, allowing objects - * to provide different representations based on the current execution context. - * - * @example - * ```ts - * import { Inspectable } from "effect" - * import { format } from "effect/Formatter" - * - * class User extends Inspectable.Class { - * constructor( - * public readonly name: string, - * public readonly email: string - * ) { - * super() - * } - * - * toJSON() { - * return { - * _tag: "User", - * name: this.name, - * email: this.email - * } - * } - * } - * - * const user = new User("Alice", "alice@example.com") - * console.log(user.toString()) // Pretty printed JSON - * console.log(format(user)) // Same as toString() - * ``` - * * @since 2.0.0 */ export * as Inspectable from "./Inspectable.js"; /** - * This module provides utility functions for working with Iterables in TypeScript. - * - * Iterables are objects that implement the iterator protocol, allowing them to be - * consumed with `for...of` loops, spread syntax, and other iteration constructs. - * This module provides a comprehensive set of functions for creating, transforming, - * and working with iterables in a functional programming style. - * - * Unlike arrays, iterables can be lazy and potentially infinite, making them suitable - * for stream processing and memory-efficient data manipulation. All functions in this - * module preserve the lazy nature of iterables where possible. - * - * @example - * ```ts - * import { Iterable, Option } from "effect" - * - * // Create iterables - * const numbers = Iterable.range(1, 5) - * const doubled = Iterable.map(numbers, (x) => x * 2) - * const filtered = Iterable.filter(doubled, (x) => x > 5) - * - * console.log(Array.from(filtered)) // [6, 8, 10] - * - * // Infinite iterables - * const fibonacci = Iterable.unfold([0, 1], ([a, b]) => Option.some([a, [b, a + b]])) - * const first10 = Iterable.take(fibonacci, 10) - * console.log(Array.from(first10)) // [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] - * ``` - * * @since 2.0.0 */ export * as Iterable from "./Iterable.js"; /** - * JSON Patch operations for transforming JSON documents. - * - * This module implements a subset of RFC 6902, providing operations that can be applied deterministically without additional context. It supports computing structural diffs between JSON values and applying patches to transform documents. - * - * ## Mental model - * - * - **JSON Patch**: An ordered sequence of operations that transform a document from one state to another - * - **JSON Pointer**: Path syntax for targeting specific locations in a JSON document (e.g., `/users/0/name`) - * - **Operations**: Three types - `add` (insert value), `remove` (delete value), `replace` (update value) - * - **Immutable transformations**: All operations return new values; inputs are never mutated - * - **Sequential application**: Operations are applied in order, with later operations observing changes from earlier ones - * - **Structural diff**: The `get` function computes differences by comparing structure, not content semantics - * - * ## Common tasks - * - * - Computing diffs between JSON values → {@link get} - * - Applying patches to transform documents → {@link apply} - * - Creating patches manually → {@link JsonPatchOperation} - * - Storing and validating patch documents → {@link JsonPatch} - * - * ## Gotchas - * - * - Array removals are emitted from highest index to lowest to avoid index shifting during application - * - Root operations use an empty string path `""` to target the entire document - * - Array append operations use `-` as the last token in the path (e.g., `/items/-`) - * - Generated patches are deterministic but not guaranteed to be minimal - * - Empty patches return the original document reference (no allocation) - * - Invalid paths or operations throw errors rather than returning a result type - * - * ## Quickstart - * - * **Example** (Computing and applying a patch) - * - * ```ts - * import * as JsonPatch from "effect/JsonPatch" - * - * const oldValue = { name: "Alice", age: 30 } - * const newValue = { name: "Alice", age: 31, city: "NYC" } - * - * const patch = JsonPatch.get(oldValue, newValue) - * // [{ op: "replace", path: "/age", value: 31 }, { op: "add", path: "/city", value: "NYC" }] - * - * const result = JsonPatch.apply(patch, oldValue) - * // { name: "Alice", age: 31, city: "NYC" } - * ``` - * - * ## See also - * - * - {@link JsonPointer} - Utilities for working with JSON Pointer paths - * - {@link Schema.Json} - The JSON value type used by this module - * * @since 4.0.0 */ export * as JsonPatch from "./JsonPatch.js"; /** - * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901. - * - * JSON Pointer (RFC 6901) defines a string syntax for identifying a specific value within a JSON document. - * A JSON Pointer is a sequence of reference tokens separated by forward slashes (`/`). Each reference token - * must be escaped when it contains special characters (`~` or `/`). - * - * ## Mental model - * - * - **Reference token**: A single segment of a JSON Pointer path (e.g., `"foo"`, `"bar/baz"`, `"key~with~tilde"`) - * - **Escaping**: Encoding special characters in a token so it can be safely used in a JSON Pointer (`~` → `~0`, `/` → `~1`) - * - **Unescaping**: Decoding escaped characters back to their original form (`~0` → `~`, `~1` → `/`) - * - **RFC 6901 compliance**: These functions implement the standard escaping rules for JSON Pointer reference tokens - * - **Pure functions**: Both operations are pure, immutable, and have no side effects - * - * ## Common tasks - * - * - Building JSON Pointers from path segments → {@link escapeToken} - * - Parsing JSON Pointers to extract original token values → {@link unescapeToken} - * - Escaping object keys or path segments before constructing JSON Pointers → {@link escapeToken} - * - Extracting unescaped identifiers from JSON Pointer strings → {@link unescapeToken} - * - * ## Gotchas - * - * - These functions operate on **reference tokens**, not full JSON Pointers. A full JSON Pointer like `/foo/bar` must be split into tokens (`["foo", "bar"]`) before escaping/unescaping - * - The order of replacement operations matters: `escapeToken` replaces `~` before `/` to avoid double-escaping - * - Empty strings are valid tokens and are returned unchanged - * - These functions do not validate JSON Pointer syntax; they only handle token-level escaping - * - * ## Quickstart - * - * **Example** (Building and parsing a JSON Pointer) - * - * ```ts - * import { escapeToken, unescapeToken } from "effect/JsonPointer" - * - * // Build a JSON Pointer from path segments - * const segments = ["users", "name/alias", "value"] - * const pointer = "/" + segments.map(escapeToken).join("/") - * // "/users/name~1alias/value" - * - * // Parse a JSON Pointer back to segments - * const tokens = pointer.split("/").slice(1).map(unescapeToken) - * // ["users", "name/alias", "value"] - * ``` - * - * ## See also - * - * - {@link JsonPatch} - Uses these utilities for JSON Patch operations - * - {@link JsonSchema} - Uses these utilities for schema reference resolution - * * @since 4.0.0 */ export * as JsonPointer from "./JsonPointer.js"; /** - * Convert JSON Schema documents between dialects (Draft-07, Draft-2020-12, - * OpenAPI 3.0, OpenAPI 3.1). All dialects are normalized to an internal - * `Document<"draft-2020-12">` representation before optional conversion to - * an output dialect. - * - * ## Mental model - * - * - **JsonSchema** — a plain object with string keys; represents any single - * JSON Schema node. - * - **Dialect** — one of `"draft-07"`, `"draft-2020-12"`, `"openapi-3.1"`, - * or `"openapi-3.0"`. - * - **Document** — a structured container holding a root `schema`, its - * companion `definitions`, and the target `dialect`. Definitions are - * stored separately from the root schema so they can be relocated when - * converting between dialects. - * - **MultiDocument** — same as `Document` but carries multiple root - * schemas (at least one). Useful when generating several schemas that - * share a single definitions pool. - * - **Definitions** — a `Record` keyed by definition - * name. The ref pointer prefix depends on the dialect. - * - **`from*` functions** — parse a raw JSON Schema object into the - * canonical `Document<"draft-2020-12">`. - * - **`to*` functions** — convert from the canonical representation to a - * specific output dialect. - * - * ## Common tasks - * - * - Parse a Draft-07 schema → {@link fromSchemaDraft07} - * - Parse a Draft-2020-12 schema → {@link fromSchemaDraft2020_12} - * - Parse an OpenAPI 3.1 schema → {@link fromSchemaOpenApi3_1} - * - Parse an OpenAPI 3.0 schema → {@link fromSchemaOpenApi3_0} - * - Convert to Draft-07 output → {@link toDocumentDraft07} - * - Convert to OpenAPI 3.1 output → {@link toMultiDocumentOpenApi3_1} - * - Resolve a `$ref` against definitions → {@link resolve$ref} - * - Inline the root `$ref` of a document → {@link resolveTopLevel$ref} - * - * ## Gotchas - * - * - All `from*` functions normalize to `Document<"draft-2020-12">` - * regardless of the input dialect. - * - Unsupported or unrecognized JSON Schema keywords are silently dropped - * during conversion. - * - Draft-07 tuple syntax (`items` as array + `additionalItems`) is - * converted to 2020-12 form (`prefixItems` + `items`), and vice-versa. - * - OpenAPI 3.0 `nullable: true` is expanded into `type` arrays or - * `anyOf` unions. The `nullable` keyword is removed. - * - OpenAPI 3.0 singular `example` is converted to `examples` (array). - * - {@link resolve$ref} only looks up the last segment of the ref path in - * the definitions map; it does not follow arbitrary JSON Pointer paths. - * - * ## Quickstart - * - * **Example** (Parse a Draft-07 schema and convert to Draft-07 output) - * - * ```ts - * import { JsonSchema } from "effect" - * - * const raw: JsonSchema.JsonSchema = { - * type: "object", - * properties: { - * name: { type: "string" } - * }, - * required: ["name"] - * } - * - * // Parse into canonical form - * const doc = JsonSchema.fromSchemaDraft07(raw) - * - * // Convert back to Draft-07 - * const draft07 = JsonSchema.toDocumentDraft07(doc) - * - * console.log(draft07.dialect) // "draft-07" - * console.log(draft07.schema) // { type: "object", properties: { name: { type: "string" } }, required: ["name"] } - * ``` - * - * ## See also - * - * - {@link Document} - * - {@link MultiDocument} - * - {@link fromSchemaDraft07} - * - {@link toDocumentDraft07} - * - {@link resolve$ref} - * * @since 4.0.0 */ export * as JsonSchema from "./JsonSchema.js"; /** - * @since 3.8.0 + * @since 4.0.0 */ export * as Latch from "./Latch.js"; /** - * A `Layer` describes how to build one or more services in your - * application. Services can be injected into effects via - * `Effect.provideService`. Effects can require services via `Effect.service`. - * - * Layer can be thought of as recipes for producing bundles of services, given - * their dependencies (other services). - * - * Construction of services can be effectful and utilize resources that must be - * acquired and safely released when the services are done being utilized. - * - * By default layers are shared, meaning that if the same layer is used twice - * the layer will only be allocated a single time. - * - * Because of their excellent composition properties, layers are the idiomatic - * way in Effect-TS to create services that depend on other services. - * * @since 2.0.0 */ export * as Layer from "./Layer.js"; @@ -1772,204 +241,10 @@ export * as Layer from "./Layer.js"; export * as LayerMap from "./LayerMap.js"; /** * @since 2.0.0 - * - * The `Logger` module provides a robust and flexible logging system for Effect applications. - * It offers structured logging, multiple output formats, and seamless integration with the - * Effect runtime's tracing and context management. - * - * ## Key Features - * - * - **Structured Logging**: Built-in support for structured log messages with metadata - * - **Multiple Formats**: JSON, LogFmt, Pretty, and custom formatting options - * - **Context Integration**: Automatic capture of fiber context, spans, and annotations - * - **Batching**: Efficient log aggregation and batch processing - * - **File Output**: Direct file writing with configurable batch windows - * - **Composable**: Transform and compose loggers using functional patterns - * - * ## Basic Usage - * - * ```ts - * import { Effect } from "effect" - * - * // Basic logging - * const program = Effect.gen(function*() { - * yield* Effect.log("Application started") - * yield* Effect.logInfo("Processing user request") - * yield* Effect.logWarning("Resource limit approaching") - * yield* Effect.logError("Database connection failed") - * }) - * - * // With structured data - * const structuredLog = Effect.gen(function*() { - * yield* Effect.log("User action", { userId: 123, action: "login" }) - * yield* Effect.logInfo("Request processed", { duration: 150, statusCode: 200 }) - * }) - * ``` - * - * ## Custom Loggers - * - * ```ts - * import { Effect, Logger } from "effect" - * - * // Create a custom logger - * const customLogger = Logger.make((options) => { - * console.log(`[${options.logLevel}] ${options.message}`) - * }) - * - * // Use JSON format for production - * const jsonLogger = Logger.consoleJson - * - * // Pretty format for development - * const prettyLogger = Logger.consolePretty() - * - * const program = Effect.log("Hello World").pipe( - * Effect.provide(Logger.layer([jsonLogger])) - * ) - * ``` - * - * ## Multiple Loggers - * - * ```ts - * import { Effect, Logger } from "effect" - * - * // Combine multiple loggers - * const CombinedLoggerLive = Logger.layer([ - * Logger.consoleJson, - * Logger.consolePretty() - * ]) - * - * const program = Effect.log("Application event").pipe( - * Effect.provide(CombinedLoggerLive) - * ) - * ``` - * - * ## Batched Logging - * - * ```ts - * import { Duration, Effect, Logger } from "effect" - * - * const batchedLogger = Logger.batched(Logger.formatJson, { - * window: Duration.seconds(5), - * flush: (messages) => - * Effect.sync(() => { - * // Process batch of log messages - * console.log("Flushing", messages.length, "log entries") - * }) - * }) - * - * const program = Effect.gen(function*() { - * const logger = yield* batchedLogger - * yield* Effect.provide( - * Effect.all([ - * Effect.log("Event 1"), - * Effect.log("Event 2"), - * Effect.log("Event 3") - * ]), - * Logger.layer([logger]) - * ) - * }) - * ``` */ export * as Logger from "./Logger.js"; /** * @since 2.0.0 - * - * The `LogLevel` module provides utilities for managing log levels in Effect applications. - * It defines a hierarchy of log levels and provides functions for comparing and filtering logs - * based on their severity. - * - * ## Log Level Hierarchy - * - * The log levels are ordered from most severe to least severe: - * - * 1. **All** - Special level that allows all messages - * 2. **Fatal** - System is unusable, immediate attention required - * 3. **Error** - Error conditions that should be investigated - * 4. **Warn** - Warning conditions that may indicate problems - * 5. **Info** - Informational messages about normal operation - * 6. **Debug** - Debug information useful during development - * 7. **Trace** - Very detailed trace information - * 8. **None** - Special level that suppresses all messages - * - * ## Basic Usage - * - * ```ts - * import { Effect } from "effect" - * - * // Basic log level usage - * const program = Effect.gen(function*() { - * yield* Effect.logFatal("System is shutting down") - * yield* Effect.logError("Database connection failed") - * yield* Effect.logWarning("Memory usage is high") - * yield* Effect.logInfo("User logged in") - * yield* Effect.logDebug("Processing request") - * yield* Effect.logTrace("Variable value: xyz") - * }) - * ``` - * - * ## Level Comparison - * - * ```ts - * import { LogLevel } from "effect" - * - * // Check if one level is more severe than another - * console.log(LogLevel.isGreaterThan("Error", "Info")) // true - * console.log(LogLevel.isGreaterThan("Debug", "Error")) // false - * - * // Check if level meets minimum threshold - * console.log(LogLevel.isGreaterThanOrEqualTo("Info", "Debug")) // true - * console.log(LogLevel.isLessThan("Trace", "Info")) // true - * ``` - * - * ## Filtering by Level - * - * ```ts - * import { Logger, LogLevel } from "effect" - * - * // Create a logger that only logs Error and above - * const errorLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Error")) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * - * // Production logger - Info and above - * const productionLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Info")) { - * console.log( - * `${options.date.toISOString()} [${options.logLevel}] ${options.message}` - * ) - * } - * }) - * - * // Development logger - Debug and above - * const devLogger = Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, "Debug")) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * ``` - * - * ## Runtime Configuration - * - * ```ts - * import { Config, Effect, Logger, LogLevel } from "effect" - * - * // Configure log level from environment - * const logLevelConfig = Config.string("LOG_LEVEL").pipe( - * Config.withDefault("Info") - * ) - * - * const configurableLogger = Effect.gen(function*() { - * const minLevel = yield* logLevelConfig - * - * return Logger.make((options) => { - * if (LogLevel.isGreaterThanOrEqualTo(options.logLevel, minLevel)) { - * console.log(`[${options.logLevel}] ${options.message}`) - * } - * }) - * }) - * ``` */ export * as LogLevel from "./LogLevel.js"; /** @@ -1977,751 +252,55 @@ export * as LogLevel from "./LogLevel.js"; */ export * as ManagedRuntime from "./ManagedRuntime.js"; /** - * The `effect/match` module provides a type-safe pattern matching system for - * TypeScript. Inspired by functional programming, it simplifies conditional - * logic by replacing verbose if/else or switch statements with a structured and - * expressive API. - * - * This module supports matching against types, values, and discriminated unions - * while enforcing exhaustiveness checking to ensure all cases are handled. - * - * Although pattern matching is not yet a native JavaScript feature, - * `effect/match` offers a reliable implementation that is available today. - * - * **How Pattern Matching Works** - * - * Pattern matching follows a structured process: - * - * - **Creating a matcher**: Define a `Matcher` that operates on either a - * specific `Match.type` or `Match.value`. - * - * - **Defining patterns**: Use combinators such as `Match.when`, `Match.not`, - * and `Match.tag` to specify matching conditions. - * - * - **Completing the match**: Apply a finalizer such as `Match.exhaustive`, - * `Match.orElse`, or `Match.option` to determine how unmatched cases should - * be handled. - * * @since 4.0.0 */ export * as Match from "./Match.js"; /** * @since 2.0.0 - * - * The `Metric` module provides a comprehensive system for collecting, aggregating, and observing - * application metrics in Effect applications. It offers type-safe, concurrent metrics that can - * be used to monitor performance, track business metrics, and gain insights into application behavior. - * - * ## Key Features - * - * - **Five Metric Types**: Counters, Gauges, Frequencies, Histograms, and Summaries - * - **Type Safety**: Fully typed metrics with compile-time guarantees - * - **Concurrency Safe**: Thread-safe metrics that work with Effect's concurrency model - * - **Attributes**: Tag metrics with key-value attributes for filtering and grouping - * - **Snapshots**: Take point-in-time snapshots of all metrics for reporting - * - **Runtime Integration**: Automatic fiber runtime metrics collection - * - * ## Metric Types - * - * ### Counter - * Tracks cumulative values that only increase or can be reset to zero. - * Perfect for counting events, requests, errors, etc. - * - * ### Gauge - * Represents a single numerical value that can go up or down. - * Ideal for current resource usage, temperature, queue sizes, etc. - * - * ### Frequency - * Counts occurrences of discrete string values. - * Useful for tracking categorical data like HTTP status codes, user actions, etc. - * - * ### Histogram - * Records observations in configurable buckets to analyze distribution. - * Great for response times, request sizes, and other measured values. - * - * ### Summary - * Calculates quantiles over a sliding time window. - * Provides statistical insights into value distributions over time. - * - * ## Basic Usage - * - * ```ts - * import { Effect, Metric } from "effect" - * - * // Create metrics - * const requestCount = Metric.counter("http_requests_total", { - * description: "Total number of HTTP requests" - * }) - * - * const responseTime = Metric.histogram("http_response_time", { - * description: "HTTP response time in milliseconds", - * boundaries: Metric.linearBoundaries({ start: 0, width: 50, count: 20 }) - * }) - * - * // Use metrics in your application - * const handleRequest = Effect.gen(function*() { - * yield* Metric.update(requestCount, 1) - * - * const startTime = yield* Effect.clockWith((clock) => clock.currentTimeMillis) - * - * // Process request... - * yield* Effect.sleep("100 millis") - * - * const endTime = yield* Effect.clockWith((clock) => clock.currentTimeMillis) - * yield* Metric.update(responseTime, endTime - startTime) - * }) - * ``` - * - * ## Attributes and Tagging - * - * ```ts - * import { Effect, Metric } from "effect" - * - * const requestCount = Metric.counter("requests", { - * description: "Number of requests by endpoint and method" - * }) - * - * const program = Effect.gen(function*() { - * // Add attributes to metrics - * yield* Metric.update( - * Metric.withAttributes(requestCount, { - * endpoint: "/api/users", - * method: "GET" - * }), - * 1 - * ) - * - * // Or use withAttributes for compile-time attributes - * const taggedCounter = Metric.withAttributes(requestCount, { - * endpoint: "/api/posts", - * method: "POST" - * }) - * yield* Metric.update(taggedCounter, 1) - * }) - * ``` - * - * ## Advanced Examples - * - * ```ts - * import { Effect, Metric } from "effect" - * - * // Business metrics - * const userSignups = Metric.counter("user_signups_total") - * const activeUsers = Metric.gauge("active_users_current") - * const featureUsage = Metric.frequency("feature_usage") - * - * // Performance metrics - * const dbQueryTime = Metric.summary("db_query_duration", { - * maxAge: "5 minutes", - * maxSize: 1000, - * quantiles: [0.5, 0.9, 0.95, 0.99] - * }) - * - * const program = Effect.gen(function*() { - * // Track user signup - * yield* Metric.update(userSignups, 1) - * - * // Update active user count - * yield* Metric.update(activeUsers, 1250) - * - * // Record feature usage - * yield* Metric.update(featureUsage, "dashboard_view") - * - * // Measure database query time - * yield* Effect.timed(performDatabaseQuery).pipe( - * Effect.tap(([duration]) => Metric.update(dbQueryTime, duration)) - * ) - * }) - * - * // Get metric snapshots - * const getMetrics = Effect.gen(function*() { - * const snapshots = yield* Metric.snapshot - * - * for (const metric of snapshots) { - * console.log(`${metric.id}: ${JSON.stringify(metric.state)}`) - * } - * }) - * ``` */ export * as Metric from "./Metric.js"; /** - * MutableHashMap is a high-performance, mutable hash map implementation designed for efficient key-value storage - * with support for both structural and referential equality. It provides O(1) average-case performance for - * basic operations and integrates seamlessly with Effect's Equal and Hash interfaces. - * - * The implementation uses a hybrid approach: - * - Referential keys (without Equal implementation) are stored in a native Map - * - Structural keys (with Equal implementation) are stored in hash buckets with collision handling - * - * Key Features: - * - Mutable operations for performance-critical scenarios - * - Supports both structural and referential equality - * - Efficient collision handling through bucketing - * - Iterable interface for easy traversal - * - Memory-efficient storage with automatic bucket management - * - * Performance Characteristics: - * - Get/Set/Has: O(1) average, O(n) worst case (hash collisions) - * - Remove: O(1) average, O(n) worst case - * - Clear: O(1) - * - Size: O(1) - * - Iteration: O(n) - * * @since 2.0.0 - * @category data-structures */ export * as MutableHashMap from "./MutableHashMap.js"; /** - * @fileoverview - * MutableHashSet is a high-performance, mutable set implementation that provides efficient storage - * and retrieval of unique values. Built on top of MutableHashMap, it inherits the same performance - * characteristics and support for both structural and referential equality. - * - * The implementation uses a MutableHashMap internally where each value is stored as a key with a - * boolean flag, providing O(1) average-case performance for all operations. - * - * Key Features: - * - Mutable operations for performance-critical scenarios - * - Supports both structural and referential equality - * - Efficient duplicate detection and removal - * - Iterable interface for easy traversal - * - Memory-efficient storage with automatic deduplication - * - Seamless integration with Effect's Equal and Hash interfaces - * - * Performance Characteristics: - * - Add/Has/Remove: O(1) average, O(n) worst case (hash collisions) - * - Clear: O(1) - * - Size: O(1) - * - Iteration: O(n) - * * @since 2.0.0 - * @category data-structures */ export * as MutableHashSet from "./MutableHashSet.js"; /** - * @fileoverview - * MutableList is an efficient, mutable linked list implementation optimized for high-throughput - * scenarios like logging, queuing, and streaming. It uses a bucket-based architecture where - * elements are stored in arrays (buckets) linked together, providing optimal performance for - * both append and prepend operations. - * - * The implementation uses a sophisticated bucket system: - * - Each bucket contains an array of elements with an offset pointer - * - Buckets can be marked as mutable or immutable for optimization - * - Elements are taken from the head and added to the tail - * - Memory is efficiently managed through bucket reuse and cleanup - * - * Key Features: - * - Highly optimized for high-frequency append/prepend operations - * - Memory efficient with automatic cleanup of consumed elements - * - Support for bulk operations (appendAll, prependAll, takeN) - * - Filtering and removal operations - * - Zero-copy optimizations for certain scenarios - * - * Performance Characteristics: - * - Append/Prepend: O(1) amortized - * - Take/TakeN: O(1) per element taken - * - Length: O(1) - * - Clear: O(1) - * - Filter: O(n) - * - * Ideal Use Cases: - * - High-throughput logging systems - * - Producer-consumer queues - * - Streaming data buffers - * - Real-time data processing pipelines - * * @since 4.0.0 - * @category data-structures */ export * as MutableList from "./MutableList.js"; /** - * @fileoverview - * MutableRef provides a mutable reference container that allows safe mutation of values - * in functional programming contexts. It serves as a bridge between functional and imperative - * programming paradigms, offering atomic operations for state management. - * - * Unlike regular variables, MutableRef encapsulates mutable state and provides controlled - * access through a standardized API. It supports atomic compare-and-set operations for - * thread-safe updates and integrates seamlessly with Effect's ecosystem. - * - * Key Features: - * - Mutable reference semantics with functional API - * - Atomic compare-and-set operations for safe concurrent updates - * - Specialized operations for numeric and boolean values - * - Chainable operations that return the reference or the value - * - Integration with Effect's Equal interface for value comparison - * - * Common Use Cases: - * - State containers in functional applications - * - Counters and accumulators - * - Configuration that needs to be updated at runtime - * - Caching and memoization scenarios - * - Inter-module communication via shared references - * - * Performance Characteristics: - * - Get/Set: O(1) - * - Compare-and-set: O(1) - * - All operations: O(1) - * * @since 2.0.0 - * @category data-structures */ export * as MutableRef from "./MutableRef.js"; /** - * Lightweight wrapper types that prevent accidental mixing of structurally - * identical values (e.g. `UserId` vs `OrderId`, both `string` at runtime). - * - * **Mental model** - * - * - **Newtype** — a compile-time wrapper around a **carrier** type (the - * underlying primitive or object). At runtime the value is unchanged; the - * tag exists only in the type system. - * - **Key** — a unique string literal that distinguishes one newtype from - * another (e.g. `"Label"`, `"UserId"`). - * - **Carrier** — the underlying type the newtype wraps (e.g. `string`, - * `number`). - * - **Iso** — a lossless two-way conversion between a newtype and its carrier, - * created with {@link makeIso}. Use `iso.set(carrier)` to wrap and - * `iso.get(newtype)` to unwrap. - * - * **Common tasks** - * - * - Define a newtype → declare an `interface` extending - * `Newtype.Newtype` - * - Wrap / unwrap values → {@link makeIso} (returns an `Optic.Iso`) - * - Unwrap only → {@link value} - * - Lift an `Equivalence` → {@link makeEquivalence} - * - Lift an `Order` → {@link makeOrder} - * - Lift a `Combiner` → {@link makeCombiner} - * - Lift a `Reducer` → {@link makeReducer} - * - * **Gotchas** - * - * - Newtypes are **purely compile-time**. There is zero runtime overhead; - * `value` and `makeIso` use identity casts. - * - Two newtypes sharing the same key string will be assignable to each other. - * Choose unique key strings. - * - A newtype value is **not** assignable to its carrier type without - * explicitly unwrapping via {@link value} or an iso. - * - * **Quickstart** - * - * **Example** (defining and using a newtype) - * - * ```ts - * import { Newtype } from "effect" - * - * // 1. Define a newtype - * interface Label extends Newtype.Newtype<"Label", string> {} - * - * // 2. Create an iso for wrapping/unwrapping - * const labelIso = Newtype.makeIso(data: NonEmptyIterable.NonEmptyIterable): A { - * // Safe to get the first element - guaranteed to exist - * const [first] = NonEmptyIterable.unprepend(data) - * return first - * } - * - * // Using Array.make to create non-empty arrays - * const numbers = Array.make( - * 1, - * 2, - * 3, - * 4, - * 5 - * ) as unknown as NonEmptyIterable.NonEmptyIterable - * const firstNumber = processNonEmpty(numbers) // number - * - * // Regular arrays can be asserted as NonEmptyIterable when known to be non-empty - * const values = [1, 2, 3] as unknown as NonEmptyIterable.NonEmptyIterable - * const firstValue = processNonEmpty(values) // number - * - * // Custom iterables that are guaranteed non-empty - * function* generateNumbers(): NonEmptyIterable.NonEmptyIterable { - * yield 1 - * yield 2 - * yield 3 - * } - * - * const firstGenerated = processNonEmpty(generateNumbers()) // number - * ``` - * - * ## Working with Different Iterable Types - * - * ```ts - * import { Array } from "effect" - * - * // Creating non-empty arrays - * const nonEmptyArray = Array.make( - * 1, - * 2, - * 3 - * ) as unknown as NonEmptyIterable.NonEmptyIterable - * - * // Working with strings (assert as NonEmptyIterable when known to be non-empty) - * const nonEmptyString = "hello" as unknown as NonEmptyIterable.NonEmptyIterable< - * string - * > - * const [firstChar] = NonEmptyIterable.unprepend(nonEmptyString) - * console.log(firstChar) // "h" - * - * // Working with Maps (assert when known to be non-empty) - * const nonEmptyMap = new Map([ - * ["key1", "value1"], - * ["key2", "value2"] - * ]) as unknown as NonEmptyIterable.NonEmptyIterable<[string, string]> - * const [firstEntry] = NonEmptyIterable.unprepend(nonEmptyMap) - * console.log(firstEntry) // ["key1", "value1"] - * - * // Custom generator functions - * function* fibonacci(): NonEmptyIterable.NonEmptyIterable { - * let a = 1, b = 1 - * yield a - * while (true) { - * yield b - * const next = a + b - * a = b - * b = next - * } - * } - * - * const [firstFib, restFib] = NonEmptyIterable.unprepend( - * fibonacci() as unknown as NonEmptyIterable.NonEmptyIterable - * ) - * console.log(firstFib) // 1 - * ``` - * - * ## Integration with Effect Arrays - * - * ```ts - * import { Array, pipe } from "effect" - * import type * as NonEmptyIterable from "effect/NonEmptyIterable" - * import type * as NonEmptyIterable from "effect/NonEmptyIterable" - * - * // Many Array functions work with NonEmptyIterable - * declare const nonEmptyData: NonEmptyIterable.NonEmptyIterable - * - * const processData = pipe( - * nonEmptyData, - * Array.fromIterable, - * Array.map((x) => x * 2), - * Array.filter((x) => x > 5) - * // Result is a regular array since filtering might make it empty - * ) - * - * // Safe operations that preserve non-emptiness - * const doubledData = pipe( - * nonEmptyData, - * Array.fromIterable, - * Array.map((x) => x * 2) - * // This would still be non-empty if the source was non-empty - * ) - * ``` */ export * as NonEmptyIterable from "./NonEmptyIterable.js"; /** - * This module provides utility functions and type class instances for working with the `number` type in TypeScript. - * It includes functions for basic arithmetic operations. - * * @since 2.0.0 */ export * as Number from "./Number.js"; /** - * Composable, immutable accessors for reading and updating nested data - * structures without mutation. - * - * **Mental model** - * - * - **Optic** — a first-class reference to a piece inside a larger structure. - * Compose optics to reach deeply nested values. - * - **Iso** — lossless two-way conversion (`get`/`set`) between `S` and `A`. - * Extends both {@link Lens} and {@link Prism}. - * - **Lens** — focuses on exactly one part of `S`. `get` always succeeds; - * `replace` needs the original `S` to produce the updated whole. - * - **Prism** — focuses on a part that may not be present (e.g. a union - * variant). `getResult` can fail; `set` builds a new `S` from `A` alone. - * - **Optional** — the most general optic: both reading and writing can fail. - * - **Traversal** — focuses on zero or more elements of an array-like - * structure. Technically `Optional>`. - * - **Hierarchy** (strongest → weakest): - * `Iso > Lens | Prism > Optional`. Composing a weaker optic with any other - * produces the weaker kind. - * - * **Common tasks** - * - * - Start a chain → {@link id} (identity iso) - * - Drill into a struct key → `.key("name")` / `.optionalKey("name")` - * - Drill into a key that may not exist → `.at("name")` - * - Narrow a tagged union → `.tag("MyVariant")` - * - Narrow by type guard → `.refine(guard)` - * - Add validation → `.check(Schema.isGreaterThan(0))` - * - Filter out `undefined` → `.notUndefined()` - * - Pick/omit struct keys → `.pick(["a","b"])` / `.omit(["c"])` - * - Traverse array elements → `.forEach(el => el.key("field"))` - * - Build an iso → {@link makeIso} - * - Build a lens → {@link makeLens} - * - Build a prism → {@link makePrism}, {@link fromChecks} - * - Build an optional → {@link makeOptional} - * - Focus into `Option.Some` → {@link some} - * - Focus into `Result.Success`/`Failure` → {@link success}, {@link failure} - * - Convert record ↔ entries → {@link entries} - * - Extract all traversal elements → {@link getAll} - * - * **Gotchas** - * - * - Updates are structurally persistent: only nodes on the path are cloned. - * Unrelated branches keep referential identity. However, **no-op updates - * may still allocate** a new root — do not rely on reference identity to - * detect no-ops. - * - `replace` silently returns the original `S` when the optic cannot focus - * (e.g. wrong tag). Use `replaceResult` for explicit failure. - * - `modify` also returns the original `S` on focus failure — it never throws. - * - `.key()` and `.optionalKey()` do not work on union types (compile error). - * - Only plain objects (`Object.prototype` or `null` prototype) and arrays can - * be cloned. Class instances cause a runtime error on `replace`/`modify`. - * - * **Quickstart** - * - * **Example** (reading and updating nested state) - * - * ```ts - * import { Optic } from "effect" - * - * type State = { user: { name: string; age: number } } - * - * const _age = Optic.id().key("user").key("age") - * - * const s1: State = { user: { name: "Alice", age: 30 } } - * - * // Read - * console.log(_age.get(s1)) - * // Output: 30 - * - * // Update immutably - * const s2 = _age.replace(31, s1) - * console.log(s2) - * // Output: { user: { name: "Alice", age: 31 } } - * - * // Modify with a function - * const s3 = _age.modify((n) => n + 1)(s1) - * console.log(s3) - * // Output: { user: { name: "Alice", age: 31 } } - * - * // Referential identity is preserved for unrelated branches - * console.log(s2.user !== s1.user) - * // Output: true (on the path) - * ``` - * - * **See also** - * - * - {@link id} — entry point for optic chains - * - {@link Lens} / {@link Prism} / {@link Optional} — core optic types - * - {@link Traversal} / {@link getAll} — multi-focus optics - * - {@link some} / {@link success} / {@link failure} — built-in prisms - * * @since 4.0.0 - * @module */ export * as Optic from "./Optic.js"; /** - * The `Option` module provides a type-safe way to represent values that may or - * may not exist. An `Option` is either `Some` (containing a value) or - * `None` (representing absence). - * - * **Mental model** - * - * - `Option` is a discriminated union: `None | Some` - * - `None` represents the absence of a value (like `null`/`undefined`, but type-safe) - * - `Some` wraps a present value of type `A`, accessed via `.value` - * - `Option` is a monad: chain operations with {@link flatMap}, compose pipelines with `pipe` - * - All operations are pure and return new `Option` values; the input is never mutated - * - `Option` is yieldable in `Effect.gen`, producing the inner value or short-circuiting with `NoSuchElementError` - * - * **Common tasks** - * - * - Create from a value: {@link some}, {@link none} - * - Create from nullable: {@link fromNullishOr}, {@link fromNullOr}, {@link fromUndefinedOr} - * - Create from iterable: {@link fromIterable} - * - Create from Result: {@link getSuccess}, {@link getFailure} - * - Transform: {@link map}, {@link flatMap}, {@link andThen} - * - Unwrap: {@link getOrElse}, {@link getOrNull}, {@link getOrUndefined}, {@link getOrThrow} - * - Pattern match: {@link match} - * - Fallbacks: {@link orElse}, {@link orElseSome}, {@link firstSomeOf} - * - Filter: {@link filter}, {@link filterMap} - * - Combine multiple: {@link all}, {@link zipWith}, {@link product} - * - Generator syntax: {@link gen} - * - Do notation: {@link Do}, {@link bind}, {@link let_ let} - * - Check contents: {@link isSome}, {@link isNone}, {@link contains}, {@link exists} - * - * **Gotchas** - * - * - `Option.some(null)` is a valid `Some`; use {@link fromNullishOr} to treat `null`/`undefined` as `None` - * - {@link filterMap} uses a `Filter` callback that returns `Result` - * - {@link getOrThrow} throws a generic `Error`; prefer {@link getOrThrowWith} for custom errors - * - `None` is a singleton; compare with {@link isNone}, not `===` - * - When yielded in `Effect.gen`, a `None` becomes a `NoSuchElementError` defect - * - * **Quickstart** - * - * **Example** (Working with optional values) - * - * ```ts - * import { Option } from "effect" - * - * const name = Option.some("Alice") - * const age = Option.none() - * - * // Transform - * const upper = Option.map(name, (s) => s.toUpperCase()) - * - * // Unwrap with fallback - * console.log(Option.getOrElse(upper, () => "unknown")) - * // Output: "ALICE" - * - * console.log(Option.getOrElse(age, () => 0)) - * // Output: 0 - * - * // Combine multiple options - * const both = Option.all({ name, age }) - * console.log(Option.isNone(both)) - * // Output: true - * ``` - * - * **See also** - * - * - {@link some} / {@link none} for creating values - * - {@link map} / {@link flatMap} for transforming values - * - {@link match} for pattern matching - * - {@link gen} for generator-based syntax - * * @since 2.0.0 - * @module */ export * as Option from "./Option.js"; /** - * This module provides the `Order` type class for defining total orderings on types. - * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than). - * - * Mental model: - * - An `Order` is a pure function `(a: A, b: A) => Ordering` that compares two values - * - The result `-1` means the first value is less than the second - * - The result `0` means the values are equal according to this ordering - * - The result `1` means the first value is greater than the second - * - Orders must satisfy total ordering laws: totality (either `x <= y` or `y <= x`), antisymmetry (if `x <= y` and `y <= x` then `x == y`), and transitivity (if `x <= y` and `y <= z` then `x <= z`) - * - Orders can be composed using {@link combine} and {@link combineAll} to create multi-criteria comparisons - * - Orders can be transformed using {@link mapInput} to compare values by extracting a comparable property - * - Built-in orders exist for common types: {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date} - * - * Common tasks: - * - Creating custom orders → {@link make} - * - Using built-in orders → {@link Number}, {@link String}, {@link Boolean}, {@link BigInt}, {@link Date} - * - Combining multiple orders → {@link combine}, {@link combineAll} - * - Transforming orders → {@link mapInput} - * - Comparing values → {@link isLessThan}, {@link isGreaterThan}, {@link isLessThanOrEqualTo}, {@link isGreaterThanOrEqualTo} - * - Finding min/max → {@link min}, {@link max} - * - Clamping values → {@link clamp}, {@link isBetween} - * - Ordering collections → {@link Array}, {@link Tuple}, {@link Struct} - * - * Gotchas: - * - `Order.Number` treats all `NaN` values as equal and less than any other number - * - `Order.make` uses reference equality (`===`) as a shortcut: if `self === that`, it returns `0` without calling the comparison function - * - `Order.Array` compares arrays element-by-element, then by length if all elements are equal; `Order.all` only compares elements up to the shorter array's length - * - `Order.Tuple` requires a fixed-length tuple with matching order types; `Order.Array` works with variable-length arrays - * - `Order.min` and `Order.max` return the first argument when values are equal - * - * Quickstart: - * - * **Example** (Basic Usage) - * - * ```ts - * import { Order } from "effect" - * - * const result = Order.Number(5, 10) - * console.log(result) // -1 (5 is less than 10) - * - * const isLessThan = Order.isLessThan(Order.Number)(5, 10) - * console.log(isLessThan) // true - * ``` - * - * See also: - * - {@link Ordering} - The result type of comparisons - * - {@link Reducer} - For combining orders in collections - * * @since 2.0.0 */ export * as Order from "./Order.js"; /** - * @fileoverview - * The Ordering module provides utilities for working with comparison results and ordering operations. - * An Ordering represents the result of comparing two values, expressing whether the first value is - * less than (-1), equal to (0), or greater than (1) the second value. - * - * This module is fundamental for building comparison functions, sorting algorithms, and implementing - * ordered data structures. It provides composable operations for combining multiple comparison results - * and pattern matching on ordering outcomes. - * - * Key Features: - * - Type-safe representation of comparison results (-1, 0, 1) - * - Composable operations for combining multiple orderings - * - Pattern matching utilities for handling different ordering cases - * - Ordering reversal and combination functions - * - Integration with Effect's functional programming patterns - * - * Common Use Cases: - * - Implementing custom comparison functions - * - Building complex sorting criteria - * - Combining multiple comparison results - * - Creating ordered data structures - * - Pattern matching on comparison outcomes - * * @since 2.0.0 - * @category utilities */ export * as Ordering from "./Ordering.js"; /** @@ -2745,87 +324,14 @@ export * as PlatformError from "./PlatformError.js"; */ export * as Pool from "./Pool.js"; /** - * Predicate and Refinement helpers for runtime checks, filtering, and type narrowing. - * This module provides small, pure functions you can combine to decide whether a - * value matches a condition and, when using refinements, narrow TypeScript types. - * - * Mental model: - * - A `Predicate` is just `(a: A) => boolean`. - * - A `Refinement` is a predicate that narrows `A` to `B` when true. - * - Guards like `isString` are predicates/refinements for common runtime types. - * - Combinators like `and`/`or` build new predicates from existing ones. - * - `Tuple` and `Struct` lift element/property predicates to compound values. - * - * Common tasks: - * - Reuse an existing predicate on a different input shape -> {@link mapInput} - * - Combine checks -> {@link and}, {@link or}, {@link not}, {@link xor} - * - Build tuple/object checks -> {@link Tuple}, {@link Struct} - * - Narrow `unknown` to a concrete type -> {@link Refinement}, {@link compose} - * - Check runtime types -> {@link isString}, {@link isNumber}, {@link isObject} - * - * Gotchas: - * - `isTruthy` uses JavaScript truthiness; `0`, "", and `false` are false. - * - `isObject` excludes arrays; use {@link isObjectOrArray} for both. - * - `isIterable` treats strings as iterable. - * - `isPromise`/`isPromiseLike` are structural checks (then/catch), not `instanceof`. - * - `isTupleOf` and `isTupleOfAtLeast` only check length, not element types. - * - * **Example** (Filter by a predicate) - * - * ```ts - * import * as Predicate from "effect/Predicate" - * - * const isPositive = (n: number) => n > 0 - * const data = [2, -1, 3] - * - * console.log(data.filter(isPositive)) - * ``` - * - * See also: {@link Predicate}, {@link Refinement}, {@link and}, {@link or}, {@link mapInput} - * * @since 2.0.0 */ export * as Predicate from "./Predicate.js"; /** - * This module provides functionality for working with primary keys. - * A `PrimaryKey` is a simple interface that represents a unique identifier - * that can be converted to a string representation. - * - * Primary keys are useful for creating unique identifiers for objects, - * database records, cache keys, or any scenario where you need a - * string-based unique identifier. - * * @since 2.0.0 */ export * as PrimaryKey from "./PrimaryKey.js"; /** - * This module provides utilities for working with publish-subscribe (PubSub) systems. - * - * A PubSub is an asynchronous message hub where publishers can publish messages and subscribers - * can subscribe to receive those messages. PubSub supports various backpressure strategies, - * message replay, and concurrent access from multiple producers and consumers. - * - * @example - * ```ts - * import { Effect, PubSub } from "effect" - * - * const program = Effect.gen(function*() { - * const pubsub = yield* PubSub.bounded(10) - * - * // Publisher - * yield* PubSub.publish(pubsub, "Hello") - * yield* PubSub.publish(pubsub, "World") - * - * // Subscriber - * yield* Effect.scoped(Effect.gen(function*() { - * const subscription = yield* PubSub.subscribe(pubsub) - * const message1 = yield* PubSub.take(subscription) - * const message2 = yield* PubSub.take(subscription) - * console.log(message1, message2) // "Hello", "World" - * })) - * }) - * ``` - * * @since 2.0.0 */ export * as PubSub from "./PubSub.js"; @@ -2838,26 +344,6 @@ export * as Pull from "./Pull.js"; */ export * as Queue from "./Queue.js"; /** - * The Random module provides a service for generating random numbers in Effect - * programs. It offers a testable and composable way to work with randomness, - * supporting integers, floating-point numbers, and range-based generation. - * - * @example - * ```ts - * import { Effect, Random } from "effect" - * - * const program = Effect.gen(function*() { - * const randomFloat = yield* Random.next - * console.log("Random float:", randomFloat) - * - * const randomInt = yield* Random.nextInt - * console.log("Random integer:", randomInt) - * - * const diceRoll = yield* Random.nextIntBetween(1, 6) - * console.log("Dice roll:", diceRoll) - * }) - * ``` - * * @since 4.0.0 */ export * as Random from "./Random.js"; @@ -2870,221 +356,34 @@ export * as RcMap from "./RcMap.js"; */ export * as RcRef from "./RcRef.js"; /** - * This module provides utility functions for working with records in TypeScript. - * * @since 2.0.0 */ export * as Record from "./Record.js"; /** - * Context-aware redaction for sensitive values. - * - * The `Redactable` module provides a protocol for objects that need to present - * alternative representations of themselves depending on the runtime context. - * Typical use cases include masking secrets, tokens, or personal data in logs, traces, - * and serialized output. - * - * ## Mental model - * - * - **Redactable** - an object that implements `[symbolRedactable]`, a method - * that receives the current `Context` and returns a replacement value. - * - **symbolRedactable** - the well-known `Symbol` key that marks an object as - * redactable. - * - **redact** - the primary entry point: pass any value and get back either its - * redacted form (if it is `Redactable`) or the original value unchanged. - * - **getRedacted** - lower-level helper that calls `[symbolRedactable]` directly - * on a value already known to be `Redactable`. - * - The `Context` passed to `[symbolRedactable]` comes from the current fiber. - * If no fiber is active, an empty `Context` is used. - * - * ## Common tasks - * - * - **Make a value redactable**: implement the {@link Redactable} interface by - * adding a `[symbolRedactable]` method. - * - **Redact an unknown value**: call {@link redact} - it returns the original - * value when it is not redactable. - * - **Check if a value is redactable**: use {@link isRedactable}. - * - **Get the redacted form of a known `Redactable`**: use {@link getRedacted}. - * - * ## Gotchas - * - * - `[symbolRedactable]` receives the fiber's `Context` as its argument. - * - Outside of an Effect runtime (no current fiber), `getRedacted` still works - * but passes an empty `Context`, so service lookups will not find anything. - * - `redact` is not recursive: if a redactable object contains nested - * redactable values, only the outermost redaction is applied. - * - * ## Quickstart - * - * **Example** (Masking an API key) - * - * ```ts - * import { Context, Redactable } from "effect" - * - * class ApiKey { - * constructor(readonly raw: string) {} - * - * [Redactable.symbolRedactable](_ctx: Context.Context) { - * return this.raw.slice(0, 4) + "..." - * } - * } - * - * const key = new ApiKey("sk-1234567890abcdef") - * - * console.log(Redactable.isRedactable(key)) // true - * console.log(Redactable.redact(key)) // "sk-1..." - * console.log(Redactable.redact("plain")) // "plain" - * ``` - * - * ## See also - * - * - {@link Redactable} - the interface to implement - * - {@link symbolRedactable} - the symbol key - * - {@link redact} - the main redaction entry point - * * @since 4.0.0 */ export * as Redactable from "./Redactable.js"; /** - * The Redacted module provides functionality for handling sensitive information - * securely within your application. By using the `Redacted` data type, you can - * ensure that sensitive values are not accidentally exposed in logs or error - * messages. - * * @since 3.3.0 */ export * as Redacted from "./Redacted.js"; /** - * A module for reducing collections of values into a single result. - * - * A `Reducer` extends {@link Combiner.Combiner} by adding an - * `initialValue` (identity element) and a `combineAll` method that folds an - * entire collection. Think `Array.prototype.reduce`, but packaged as a - * reusable, composable value. - * - * ## Mental model - * - * - **Reducer** – a {@link Combiner.Combiner} plus an `initialValue` and a - * `combineAll` method. - * - **initialValue** – the neutral/identity element. Combining any value with - * `initialValue` should return the original value unchanged (e.g. `0` for - * addition, `""` for string concatenation). - * - **combineAll** – folds an `Iterable` starting from `initialValue`. - * When omitted from {@link make}, a default left-to-right fold is used. - * - **Purity** – all reducers produced by this module are pure; they never - * mutate their arguments. - * - **Composability** – reducers can be lifted into `Option`, `Struct`, - * `Tuple`, `Record`, and other container types via helpers in those modules. - * - **Subtype of Combiner** – every `Reducer` is also a valid - * `Combiner`, so you can pass a `Reducer` anywhere a `Combiner` is - * expected. - * - * ## Common tasks - * - * - Create a reducer from a combine function and initial value → {@link make} - * - Swap argument order → {@link flip} - * - Combine two values without an initial value → use {@link Combiner.Combiner} - * instead - * - * ## Gotchas - * - * - `combineAll` on an empty iterable returns `initialValue`, not an error. - * - The default `combineAll` folds left-to-right. If your `combine` is not - * associative, order matters. Pass a custom `combineAll` to {@link make} if - * you need different traversal or short-circuiting. - * - A `Reducer` is also a valid `Combiner` — but a `Combiner` is *not* a - * `Reducer` (it lacks `initialValue`). - * - * ## Quickstart - * - * **Example** (summing a list of numbers) - * - * ```ts - * import { Reducer } from "effect" - * - * const Sum = Reducer.make((a, b) => a + b, 0) - * - * console.log(Sum.combine(3, 4)) - * // Output: 7 - * - * console.log(Sum.combineAll([1, 2, 3, 4])) - * // Output: 10 - * - * console.log(Sum.combineAll([])) - * // Output: 0 - * ``` - * - * ## See also - * - * - {@link make} – the primary constructor - * - {@link Reducer} – the core interface - * - {@link Combiner.Combiner} – the parent interface (no `initialValue`) - * * @since 4.0.0 */ export * as Reducer from "./Reducer.js"; /** - * This module provides utilities for working with mutable references in a functional context. - * - * A Ref is a mutable reference that can be read, written, and atomically modified. Unlike plain - * mutable variables, Refs are thread-safe and work seamlessly with Effect's concurrency model. - * They provide atomic operations for safe state management in concurrent programs. - * - * @example - * ```ts - * import { Effect, Ref } from "effect" - * - * const program = Effect.gen(function*() { - * // Create a ref with initial value - * const counter = yield* Ref.make(0) - * - * // Atomic operations - * yield* Ref.update(counter, (n) => n + 1) - * yield* Ref.update(counter, (n) => n * 2) - * - * const value = yield* Ref.get(counter) - * console.log(value) // 2 - * - * // Atomic modify with return value - * const previous = yield* Ref.getAndSet(counter, 100) - * console.log(previous) // 2 - * }) - * ``` - * * @since 2.0.0 */ export * as Ref from "./Ref.js"; /** - * This module provides a collection of reference implementations for commonly used - * Effect runtime configuration values. These references allow you to access and - * modify runtime behavior such as concurrency limits, scheduling policies, - * tracing configuration, and logging settings. - * - * References are special service instances that can be dynamically updated - * during runtime, making them ideal for configuration that may need to change - * based on application state or external conditions. - * * @since 4.0.0 */ export * as References from "./References.js"; /** - * This module provides utility functions for working with RegExp in TypeScript. - * * @since 2.0.0 */ export * as RegExp from "./RegExp.js"; /** - * The `Request` module provides a way to model requests to external data sources - * in a functional and composable manner. Requests represent descriptions of - * operations that can be batched, cached, and executed efficiently. - * - * A `Request` represents a request that: - * - Yields a value of type `A` on success - * - Can fail with an error of type `E` - * - Requires services of type `R` - * - * Requests are primarily used with RequestResolver to implement efficient - * data fetching patterns, including automatic batching and caching. - * * @since 2.0.0 */ export * as Request from "./Request.js"; @@ -3097,133 +396,14 @@ export * as RequestResolver from "./RequestResolver.js"; */ export * as Resource from "./Resource.js"; /** - * A synchronous, pure type for representing computations that can succeed - * (`Success`) or fail (`Failure`). Unlike `Effect`, `Result` is - * evaluated eagerly and carries no side effects. - * - * **Mental model** - * - * - `Result` is a discriminated union: `Success | Failure` - * - `Success` wraps a value of type `A`, accessed via `.success` - * - `Failure` wraps an error of type `E`, accessed via `.failure` - * - `Result` is a monad: chain operations with {@link flatMap}, compose pipelines with `pipe` - * - All operations are pure and return new `Result` values; the input is never mutated - * - `Result` is yieldable in `Effect.gen`, producing the inner value or short-circuiting on failure - * - * **Common tasks** - * - * - Create from a value: {@link succeed}, {@link fail} - * - Create from nullable: {@link fromNullishOr} - * - Create from Option: {@link fromOption} - * - Create from throwing code: {@link try_ try} - * - Create from predicate: {@link liftPredicate} - * - Transform: {@link map}, {@link mapError}, {@link mapBoth} - * - Unwrap: {@link getOrElse}, {@link getOrNull}, {@link getOrUndefined}, {@link getOrThrow} - * - Pattern match: {@link match} - * - Sequence: {@link flatMap}, {@link andThen}, {@link all} - * - Recover: {@link orElse} - * - Filter: {@link filterOrFail} - * - Convert to Option: {@link getSuccess}, {@link getFailure} - * - Generator syntax: {@link gen} - * - Do notation: {@link Do}, {@link bind}, {@link let_ let} - * - Check variant: {@link isResult}, {@link isSuccess}, {@link isFailure} - * - * **Gotchas** - * - * - `E` defaults to `never`, so `Result` means a result that cannot fail - * - {@link andThen} accepts a `Result`, a function returning a `Result`, a plain value, or a function returning a plain value; {@link flatMap} only accepts a function returning a `Result` - * - {@link all} short-circuits on the first `Failure` and returns it; later elements are not inspected - * - {@link getOrThrow} throws the raw failure value `E`; use {@link getOrThrowWith} for custom error objects - * - {@link tap} runs a side-effect but does not change the result; its return value is ignored - * - * **Quickstart** - * - * **Example** (Parsing and validating with Result) - * - * ```ts - * import { Result } from "effect" - * - * const parse = (input: string): Result.Result => - * isNaN(Number(input)) - * ? Result.fail("not a number") - * : Result.succeed(Number(input)) - * - * const ensurePositive = (n: number): Result.Result => - * n > 0 ? Result.succeed(n) : Result.fail("not positive") - * - * const result = Result.flatMap(parse("42"), ensurePositive) - * - * console.log(Result.getOrElse(result, (err) => `Error: ${err}`)) - * // Output: 42 - * ``` - * - * **See also** - * - * - {@link succeed} / {@link fail} to create values - * - {@link match} to fold both branches - * - {@link gen} for generator-based composition - * * @since 4.0.0 */ export * as Result from "./Result.js"; /** - * This module provides utilities for running Effect programs and managing their execution lifecycle. - * - * The Runtime module contains functions for creating main program runners that handle process - * teardown, error reporting, and exit code management. These utilities are particularly useful - * for creating CLI applications and server processes that need to manage their lifecycle properly. - * - * @example - * ```ts - * import { Effect, Fiber, Runtime } from "effect" - * - * // Create a main runner for Node.js - * const runMain = Runtime.makeRunMain((options) => { - * process.on("SIGINT", () => Effect.runFork(Fiber.interrupt(options.fiber))) - * process.on("SIGTERM", () => Effect.runFork(Fiber.interrupt(options.fiber))) - * - * options.fiber.addObserver((exit) => { - * options.teardown(exit, (code) => process.exit(code)) - * }) - * }) - * - * // Use the runner - * const program = Effect.log("Hello, World!") - * runMain(program) - * ``` - * * @since 4.0.0 */ export * as Runtime from "./Runtime.js"; /** - * This module provides utilities for creating and composing schedules for retrying operations, - * repeating effects, and implementing various timing strategies. - * - * A Schedule is a function that takes an input and returns a decision whether to continue or halt, - * along with a delay duration. Schedules can be combined, transformed, and used to implement - * sophisticated retry and repetition logic. - * - * @example - * ```ts - * import { Effect, Schedule } from "effect" - * - * // Retry with exponential backoff - * const retryPolicy = Schedule.exponential("100 millis", 2.0) - * .pipe(Schedule.both(Schedule.recurs(3))) - * - * const program = Effect.gen(function*() { - * // This will retry up to 3 times with exponential backoff - * const result = yield* Effect.retry( - * Effect.fail("Network error"), - * retryPolicy - * ) - * }) - * - * // Repeat on a fixed schedule - * const heartbeat = Effect.log("heartbeat") - * .pipe(Effect.repeat(Schedule.spaced("30 seconds"))) - * ``` - * * @since 2.0.0 */ export * as Schedule from "./Schedule.js"; @@ -3232,332 +412,18 @@ export * as Schedule from "./Schedule.js"; */ export * as Scheduler from "./Scheduler.js"; /** - * Define data shapes, validate unknown input, and transform values between formats. - * - * ## Mental model - * - * - **Schema** — a description of a data shape. Every schema carries a decoded - * *Type* (the value you work with) and an *Encoded* representation (the - * serialized form, e.g. JSON). - * - **Decoding** — turning unknown external data (API responses, form - * submissions, config files) into typed, validated values. - * - **Encoding** — turning typed values back into a serializable format. - * - **Codec** — a schema that tracks both Type and Encoded, so it can decode - * *and* encode. Most concrete schemas are Codecs. - * - **Check / Filter** — a constraint attached to a schema (e.g. `isMinLength`, - * `isGreaterThan`). Attach them with `.check(...)`. - * - **Transformation** — a pair of functions (decode + encode) that convert - * values between two schemas. Created with {@link decodeTo} / {@link encodeTo}. - * - **Annotation** — metadata attached to a schema (title, description, custom - * keys). Attach with `.annotate(...)`. - * - * ## Common tasks - * - * - Define a struct: {@link Struct} - * - Define a union: {@link Union}, {@link TaggedUnion}, {@link Literals} - * - Define an array: {@link ArraySchema}, {@link NonEmptyArray} - * - Define a record: {@link Record} - * - Define a tuple: {@link Tuple}, {@link TupleWithRest} - * - Validate unknown data synchronously: {@link decodeUnknownSync} - * - Validate unknown data (Effect): {@link decodeUnknownEffect} - * - Encode a value: {@link encodeUnknownSync}, {@link encodeUnknownEffect} - * - Type guard: {@link is} - * - Assertion: {@link asserts} - * - Add constraints: `.check(...)` with filters like {@link isMinLength}, - * {@link isGreaterThan}, {@link isPattern}, {@link isUUID} - * - Transform between schemas: {@link decodeTo}, {@link encodeTo} - * - Add a default for missing keys: {@link withDecodingDefault}, {@link withDecodingDefaultKey} - * - Create branded types: {@link brand} - * - Define classes with validation: {@link Class}, {@link TaggedClass} - * - Define error classes: {@link ErrorClass}, {@link TaggedErrorClass} - * - Generate JSON Schema: {@link toJsonSchemaDocument} - * - Generate test data: {@link toArbitrary} - * - Derive equivalence: {@link toEquivalence} - * - * ## Gotchas - * - * - `Schema.optional` creates `T | undefined` (key can be missing *or* - * `undefined`). Use `Schema.optionalKey` for exact optional properties. - * - `decodeTo` is curried: use `from.pipe(Schema.decodeTo(to, ...))`. - * - `decodeUnknownSync` throws on failure. Use `decodeUnknownExit` or - * `decodeUnknownOption` for non-throwing alternatives. - * - Filters do not change the TypeScript type. Use {@link refine} or - * {@link brand} to narrow the type. - * - Recursive schemas require {@link suspend} to avoid infinite loops. - * - * ## Quickstart - * - * **Example** (Validate a user object) - * - * ```ts - * import { Schema } from "effect" - * - * const User = Schema.Struct({ - * name: Schema.String.check(Schema.isMinLength(1)), - * age: Schema.Number.check(Schema.isGreaterThanOrEqualTo(0)), - * email: Schema.optionalKey(Schema.String) - * }) - * - * // Decode unknown input — throws on failure - * const user = Schema.decodeUnknownSync(User)({ - * name: "Alice", - * age: 30 - * }) - * - * console.log(user) - * // { name: "Alice", age: 30 } - * ``` - * - * @see {@link Schema} — type-level view tracking only the decoded Type - * @see {@link Codec} — type-level view tracking both Type and Encoded - * @see {@link Struct} — define object shapes - * @see {@link decodeUnknownSync} — synchronous validation - * @see {@link decodeTo} — schema transformations - * * @since 4.0.0 */ export * as Schema from "./Schema.js"; /** - * Abstract Syntax Tree (AST) representation for Effect schemas. - * - * This module defines the runtime data structures that represent schemas. - * Most users work with the `Schema` module directly; use `SchemaAST` when you - * need to inspect, traverse, or programmatically transform schema definitions. - * - * ## Mental model - * - * - **{@link AST}** — discriminated union (`_tag`) of all schema node types - * (e.g. `String`, `Objects`, `Union`, `Suspend`) - * - **{@link Base}** — abstract base class shared by every node; carries - * annotations, checks, encoding chain, and context - * - **{@link Encoding}** — a non-empty chain of {@link Link} values describing - * how to transform between the decoded (type) and encoded (wire) form - * - **{@link Check}** — a validation filter ({@link Filter} or - * {@link FilterGroup}) attached to an AST node - * - **{@link Context}** — per-property metadata: optionality, mutability, - * default values, key annotations - * - **Guards** — type-narrowing predicates for each AST variant (e.g. - * {@link isString}, {@link isObjects}) - * - * ## Common tasks - * - * - Inspect what kind of schema you have → guard functions ({@link isString}, - * {@link isObjects}, {@link isUnion}, etc.) - * - Get the decoded (type-level) AST → {@link toType} - * - Get the encoded (wire-format) AST → {@link toEncoded} - * - Swap decode/encode directions → {@link flip} - * - Read annotations → {@link resolve}, {@link resolveAt}, - * {@link resolveIdentifier} - * - Build a transformation between schemas → {@link decodeTo} - * - Add regex validation → {@link isPattern} - * - * ## Gotchas - * - * - AST nodes are structurally immutable; modification helpers return new - * objects via `Object.create`. - * - {@link Arrays} represents both tuples and arrays; {@link Objects} - * represents both structs and records. - * - {@link toType} and {@link toEncoded} are memoized — same input yields - * same output reference. - * - {@link Suspend} lazily resolves its inner AST via a thunk; the thunk is - * memoized on first call. - * - * ## Quickstart - * - * **Example** (Inspecting a schema's AST) - * - * ```ts - * import { Schema, SchemaAST } from "effect" - * - * const schema = Schema.Struct({ name: Schema.String, age: Schema.Number }) - * const ast = schema.ast - * - * if (SchemaAST.isObjects(ast)) { - * console.log(ast.propertySignatures.map(ps => ps.name)) - * // ["name", "age"] - * } - * - * const encoded = SchemaAST.toEncoded(ast) - * console.log(SchemaAST.isObjects(encoded)) // true - * ``` - * - * ## See also - * - * - {@link AST} - * - {@link toType} - * - {@link toEncoded} - * - {@link flip} - * - {@link resolve} - * * @since 4.0.0 */ export * as SchemaAST from "./SchemaAST.js"; /** - * Composable transformation primitives for the Effect Schema system. - * - * A `Getter` represents a single-direction transformation from an - * encoded type `E` to a decoded type `T`. Getters are the building blocks - * that `Schema.decodeTo` and `Schema.decode` use to define how values are - * transformed during encoding and decoding. They handle optionality - * (`Option` in, `Option` out), can fail with `Issue`, and can require - * Effect services via `R`. - * - * ## Mental model - * - * - **Getter**: A function `Option -> Effect, Issue, R>`. It - * transforms an optional encoded value into an optional decoded value, - * possibly failing or requiring services. - * - **Passthrough**: The identity getter — returns the input unchanged. Used - * when no transformation is needed. Optimized away during composition. - * - **Option-awareness**: Getters receive and return `Option` to handle - * missing keys in structs. `Option.None` means the key is absent. - * - **Composition**: Getters compose left-to-right via `.compose()`. A - * passthrough on either side is a no-op (identity optimization). - * - **Issue**: The error type for all getter failures (see `SchemaIssue`). - * - * ## Common tasks - * - * - Pass a value through unchanged → {@link passthrough} - * - Transform a value purely → {@link transform} - * - Transform a value with possible failure → {@link transformOrFail} - * - Transform with full Option control → {@link transformOptional} - * - Handle missing keys → {@link onNone}, {@link required}, {@link withDefault} - * - Handle present values → {@link onSome} - * - Validate a value with an effectful check → {@link checkEffect} - * - Produce a constant value → {@link succeed} - * - Always fail → {@link fail}, {@link forbidden} - * - Omit a value from output → {@link omit} - * - Coerce to a primitive type → {@link String}, {@link Number}, {@link Boolean}, {@link BigInt}, {@link Date} - * - Transform strings → {@link trim}, {@link capitalize}, {@link toLowerCase}, {@link toUpperCase}, {@link split}, {@link splitKeyValue}, {@link joinKeyValue} - * - Parse/stringify JSON → {@link parseJson}, {@link stringifyJson} - * - Encode/decode Base64 → {@link encodeBase64}, {@link decodeBase64}, {@link decodeBase64String} - * - Encode/decode Hex → {@link encodeHex}, {@link decodeHex}, {@link decodeHexString} - * - Encode/decode URI components → {@link encodeUriComponent}, {@link decodeUriComponent} - * - Parse DateTime → {@link dateTimeUtcFromInput} - * - Decode/encode FormData → {@link decodeFormData}, {@link encodeFormData} - * - Decode/encode URLSearchParams → {@link decodeURLSearchParams}, {@link encodeURLSearchParams} - * - Build nested tree from bracket paths → {@link makeTreeRecord} - * - Flatten nested tree to bracket paths → {@link collectBracketPathEntries} - * - * ## Gotchas - * - * - Getters are not bidirectional. To define a full encode/decode pair, supply - * both a `decode` and an `encode` getter to `Schema.decodeTo`. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass the type constraint, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - `transform` skips `None` inputs (missing keys) — the function is only - * called when a value is present. Use `transformOptional` if you need to - * handle missing values. - * - `parseJson` without a `reviver` returns `Schema.MutableJson`. With a - * reviver, the return type widens to `unknown`. - * - `split` treats an empty string as an empty array, not `[""]`. - * - * ## Quickstart - * - * **Example** (Using SchemaGetter with Schema.decodeTo) - * - * ```ts - * import { Schema, SchemaGetter } from "effect" - * - * const NumberFromString = Schema.String.pipe( - * Schema.decodeTo(Schema.Number, { - * decode: SchemaGetter.transform((s) => Number(s)), - * encode: SchemaGetter.transform((n) => String(n)) - * }) - * ) - * - * const result = Schema.decodeUnknownSync(NumberFromString)("42") - * // result: 42 - * ``` - * - * ## See also - * - * - {@link Getter} — the core class - * - {@link transform} — most common constructor - * - {@link passthrough} — identity getter - * - {@link transformOrFail} — fallible transformation - * * @since 4.0.0 */ export * as SchemaGetter from "./SchemaGetter.js"; /** - * Structured validation errors produced by the Effect Schema system. - * - * When `Schema.decode`, `Schema.encode`, or a filter rejects a value, the - * result is an {@link Issue} — a recursive tree that describes *what* went - * wrong and *where*. This module defines every node type in that tree and - * provides formatters that turn an `Issue` into a human-readable string or a - * Standard Schema V1 failure result. - * - * ## Mental model - * - * - **Issue**: A discriminated union (`_tag`) of all possible validation error - * nodes. It is recursive — composite nodes wrap inner `Issue` children. - * - **Leaf**: A terminal issue with no inner children ({@link InvalidType}, - * {@link InvalidValue}, {@link MissingKey}, {@link UnexpectedKey}, - * {@link Forbidden}, {@link OneOf}). - * - **Composite nodes**: Wrap one or more inner issues to add context — - * {@link Filter}, {@link Encoding}, {@link Pointer}, {@link Composite}, - * {@link AnyOf}. - * - **Pointer**: Adds a property-key path to an inner issue, indicating - * *where* in the input the error occurred. - * - **Formatter**: A function `Issue → Format` that serialises the error tree. - * Two built-in factories are provided: {@link makeFormatterDefault} (plain - * string) and {@link makeFormatterStandardSchemaV1} (Standard Schema V1). - * - * ## Common tasks - * - * - Check if a value is an Issue → {@link isIssue} - * - Extract the actual input from any issue → {@link getActual} - * - Format an issue as a string → {@link makeFormatterDefault} - * - Format an issue for Standard Schema V1 → {@link makeFormatterStandardSchemaV1} - * - Customise leaf formatting → {@link defaultLeafHook} - * - Customise filter formatting → {@link defaultCheckHook} - * - * ## Gotchas - * - * - `Pointer` and `MissingKey` carry no actual value — {@link getActual} - * returns `Option.none()` for them. - * - `AnyOf`, `UnexpectedKey`, `OneOf`, and `Filter` store `actual` as a plain - * `unknown` (not `Option`), so {@link getActual} wraps them with - * `Option.some`. - * - Calling `toString()` on any `Issue` uses the default formatter. To - * customise output, create your own formatter with - * {@link makeFormatterDefault} or {@link makeFormatterStandardSchemaV1}. - * - The `Issue` tree can be deeply nested for complex schemas. Formatters - * flatten composite nodes for display. - * - * ## Quickstart - * - * **Example** (Inspecting a validation error) - * - * ```ts - * import { Schema, SchemaIssue } from "effect" - * - * const Person = Schema.Struct({ - * name: Schema.String, - * age: Schema.Number - * }) - * - * try { - * Schema.decodeUnknownSync(Person)({ name: 42 }) - * } catch (e) { - * if (Schema.isSchemaError(e)) { - * console.log(SchemaIssue.isIssue(e.issue)) - * // true - * console.log(String(e.issue)) - * // formatted error message - * } - * } - * ``` - * - * ## See also - * - * - {@link Issue} — the root union type - * - {@link Leaf} — terminal issue types - * - {@link Formatter} — the formatter interface - * - {@link makeFormatterDefault} — default string formatter - * * @since 4.0.0 */ export * as SchemaIssue from "./SchemaIssue.js"; @@ -3566,178 +432,10 @@ export * as SchemaIssue from "./SchemaIssue.js"; */ export * as SchemaParser from "./SchemaParser.js"; /** - * Serializable intermediate representation (IR) of Effect Schema types. - * - * `SchemaRepresentation` sits between the internal `SchemaAST` and external - * formats (JSON Schema, generated TypeScript code, serialized JSON). A - * {@link Representation} is a discriminated union describing the *shape* of a - * schema — its types, checks, annotations, and references — in a form that - * can be round-tripped through JSON and used for code generation. - * - * ## Mental model - * - * - **Representation**: A tagged union (`_tag`) of all supported schema shapes: - * primitives, literals, objects, arrays, unions, declarations, references, - * and suspensions. - * - **Document**: A single {@link Representation} paired with a map of named - * {@link References} (analogous to JSON Schema `$defs`). - * - **MultiDocument**: Like `Document` but holds one or more representations - * sharing the same references. - * - **Check / Filter / FilterGroup**: Validation constraints (min length, - * pattern, integer, etc.) attached to types that support them. - * - **Meta types**: Typed metadata for checks on each category — e.g. - * {@link StringMeta}, {@link NumberMeta}, {@link ArraysMeta}. - * - **Reviver**: A callback used by {@link toSchema} and {@link toCodeDocument} - * to handle `Declaration` nodes (custom types like `Option`, `Date`, etc.). - * - **Code / CodeDocument**: Output of {@link toCodeDocument} — TypeScript - * source strings for runtime schemas and their type-level counterparts. - * - * ## Common tasks - * - * - Convert a Schema AST to a Document → {@link fromAST} - * - Convert multiple ASTs to a MultiDocument → {@link fromASTs} - * - Reconstruct a runtime Schema from a Document → {@link toSchema} - * - Convert a Document to JSON Schema → {@link toJsonSchemaDocument} - * - Convert a MultiDocument to JSON Schema → {@link toJsonSchemaMultiDocument} - * - Parse a JSON Schema document into a Document → {@link fromJsonSchemaDocument} - * - Parse a JSON Schema multi-document → {@link fromJsonSchemaMultiDocument} - * - Generate TypeScript code from a MultiDocument → {@link toCodeDocument} - * - Serialize/deserialize a Document as JSON → {@link DocumentFromJson} - * - Serialize/deserialize a MultiDocument as JSON → {@link MultiDocumentFromJson} - * - Wrap a Document as a MultiDocument → {@link toMultiDocument} - * - * ## Gotchas - * - * - `Declaration` nodes require a {@link Reviver} to reconstruct complex types - * (e.g. `Option`, `Date`). Without one, `toSchema` falls back to the - * declaration's `encodedSchema`. Use {@link toSchemaDefaultReviver} for - * built-in Effect types. - * - `Reference` nodes are resolved against the `references` map in the - * `Document`. An unresolvable `$ref` throws at runtime. - * - `Suspend` wraps a single `thunk` representation; it is used for recursive - * schemas. Circular references are handled by lazy resolution in - * {@link toSchema}. - * - The `$`-prefixed exports (e.g. {@link $Representation}, {@link $Document}) - * are Schema codecs for the representation types themselves — use them to - * validate or encode/decode representation data, not application data. - * - * ## Quickstart - * - * **Example** (Round-trip through JSON) - * - * ```ts - * import { Schema, SchemaRepresentation } from "effect" - * - * const Person = Schema.Struct({ - * name: Schema.String, - * age: Schema.Int - * }) - * - * // Schema AST → Document - * const doc = SchemaRepresentation.fromAST(Person.ast) - * - * // Document → JSON Schema - * const jsonSchema = SchemaRepresentation.toJsonSchemaDocument(doc) - * - * // Document → runtime Schema - * const reconstructed = SchemaRepresentation.toSchema(doc) - * ``` - * - * ## See also - * - * - {@link Representation} — the core tagged union - * - {@link Document} — single-schema container - * - {@link fromAST} — entry point from Schema AST - * - {@link toSchema} — reconstruct a runtime Schema - * - {@link toCodeDocument} — generate TypeScript code - * * @since 4.0.0 */ export * as SchemaRepresentation from "./SchemaRepresentation.js"; /** - * Bidirectional transformations for the Effect Schema system. - * - * A `Transformation` pairs a decode `Getter` and an encode `Getter` into a - * single bidirectional value, used by `Schema.decodeTo`, `Schema.encodeTo`, - * `Schema.decode`, `Schema.encode`, and `Schema.link` to define how values - * are converted between encoded and decoded representations. A `Middleware` - * is the effect-level equivalent — it wraps the entire parsing `Effect` - * pipeline rather than individual values. - * - * ## Mental model - * - * - **Transformation**: A pair of `Getter`s (decode + encode) that convert - * individual values bidirectionally. `T` is the decoded (Type) side, `E` is - * the encoded side. `RD`/`RE` are required Effect services. - * - **Middleware**: Like `Transformation`, but each direction receives the full - * parsing `Effect` and can intercept, retry, or modify the pipeline. - * - **Getter**: A single-direction transform `Option → Effect, Issue, R>` - * (see `SchemaGetter`). - * - **flip()**: Swaps decode and encode, turning a `Transformation` into - * `Transformation`. - * - **compose()**: Chains two transformations left-to-right on the decode side - * and right-to-left on the encode side. - * - **passthrough**: The identity transformation — no conversion in either - * direction. - * - * ## Common tasks - * - * - Convert values purely (sync, infallible) → {@link transform} - * - Convert values with possible failure → {@link transformOrFail} - * - Handle optional/missing keys → {@link transformOptional} - * - Build from existing Getters → {@link make} - * - No-op identity transformation → {@link passthrough} - * - Subtype/supertype coercion → {@link passthroughSupertype}, {@link passthroughSubtype} - * - Trim/case strings → {@link trim}, {@link toLowerCase}, {@link toUpperCase}, {@link capitalize}, {@link uncapitalize}, {@link snakeToCamel} - * - Parse key-value strings → {@link splitKeyValue} - * - Coerce string ↔ number/bigint → {@link numberFromString}, {@link bigintFromString} - * - Coerce string ↔ Date/Duration → {@link dateFromString}, {@link durationFromString} - * - Decode durations → {@link durationFromNanos}, {@link durationFromMillis} - * - Wrap nullable/optional as Option → {@link optionFromNullOr}, {@link optionFromOptionalKey}, {@link optionFromOptional} - * - Parse URLs → {@link urlFromString} - * - Base64 ↔ Uint8Array → {@link uint8ArrayFromBase64String} - * - Base64 ↔ string → {@link stringFromBase64String} - * - URI component ↔ string → {@link stringFromUriComponent} - * - JSON string ↔ unknown → {@link fromJsonString} - * - FormData/URLSearchParams ↔ unknown → {@link fromFormData}, {@link fromURLSearchParams} - * - Check if a value is a Transformation → {@link isTransformation} - * - * ## Gotchas - * - * - `Transformation` operates on individual values; `Middleware` wraps the - * entire parsing Effect. Choose accordingly. - * - `passthrough` requires `T === E` by default. Use `{ strict: false }` to - * bypass, or use {@link passthroughSupertype} / {@link passthroughSubtype}. - * - String transformations like `trim`, `toLowerCase`, and `toUpperCase` use - * `passthrough` on the encode side — they are lossy and do not round-trip. - * - `durationFromNanos` encode can fail if the Duration cannot be represented - * as a `bigint`. - * - * ## Quickstart - * - * **Example** (Defining a custom transformation with Schema.decodeTo) - * - * ```ts - * import { Schema, SchemaTransformation } from "effect" - * - * const CentsFromDollars = Schema.Number.pipe( - * Schema.decodeTo( - * Schema.Number, - * SchemaTransformation.transform({ - * decode: (dollars) => dollars * 100, - * encode: (cents) => cents / 100 - * }) - * ) - * ) - * ``` - * - * ## See also - * - * - {@link Transformation} — the core bidirectional transformation class - * - {@link Middleware} — effect-pipeline-level transformation - * - {@link transform} — most common constructor - * - {@link passthrough} — identity transformation - * * @since 4.0.0 */ export * as SchemaTransformation from "./SchemaTransformation.js"; @@ -3746,18 +444,6 @@ export * as SchemaTransformation from "./SchemaTransformation.js"; */ export * as SchemaUtils from "./SchemaUtils.js"; /** - * The `Scope` module provides functionality for managing resource lifecycles - * and cleanup operations in a functional and composable manner. - * - * A `Scope` represents a context where resources can be acquired and automatically - * cleaned up when the scope is closed. This is essential for managing resources - * like file handles, database connections, or any other resources that need - * proper cleanup. - * - * Scopes support both sequential and parallel finalization strategies: - * - Sequential: Finalizers run one after another in reverse order of registration - * - Parallel: Finalizers run concurrently for better performance - * * @since 2.0.0 */ export * as Scope from "./Scope.js"; @@ -3770,7 +456,7 @@ export * as ScopedCache from "./ScopedCache.js"; */ export * as ScopedRef from "./ScopedRef.js"; /** - * @since 2.0.0 + * @since 4.0.0 */ export * as Semaphore from "./Semaphore.js"; /** @@ -3786,85 +472,10 @@ export * as Stdio from "./Stdio.js"; */ export * as Stream from "./Stream.js"; /** - * This module provides utility functions and type class instances for working with the `string` type in TypeScript. - * It includes functions for basic string manipulation. - * * @since 2.0.0 */ export * as String from "./String.js"; /** - * Utilities for creating, transforming, and comparing plain TypeScript objects - * (structs). Every function produces a new object — inputs are never mutated. - * - * ## Mental model - * - * - **Struct**: A plain JS object with a fixed set of known keys (e.g., - * `{ name: string; age: number }`). Not a generic key-value record. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Struct.pick(obj, keys)`) and data-last (`pipe(obj, Struct.pick(keys))`) - * style. - * - **Immutability**: All operations return a new object; the original is - * never modified. - * - **Lambda**: A type-level function interface (`~lambda.in` / `~lambda.out`) - * used by {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler - * can track how value types change. - * - **Evolver pattern**: {@link evolve}, {@link evolveKeys}, and - * {@link evolveEntries} let you selectively transform values, keys, or both - * while leaving untouched properties unchanged. - * - * ## Common tasks - * - * - Access a property in a pipeline → {@link get} - * - List string keys with proper types → {@link keys} - * - Subset / remove properties → {@link pick}, {@link omit} - * - Merge two structs (second wins) → {@link assign} - * - Rename keys → {@link renameKeys} - * - Transform selected values → {@link evolve} - * - Transform selected keys → {@link evolveKeys} - * - Transform both keys and values → {@link evolveEntries} - * - Map all values with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare structs → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce structs → {@link makeCombiner}, {@link makeReducer} - * - Flatten intersection types → {@link Simplify} - * - Strip `readonly` modifiers → {@link Mutable} - * - * ## Gotchas - * - * - {@link keys} only returns `string` keys; symbol keys are excluded. - * - {@link pick} and {@link omit} iterate with `for...in`, which includes - * inherited enumerable properties but excludes non-enumerable ones. - * - {@link assign} spreads with `...`; property order follows standard - * JS spread rules. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a {@link Lambda} - * value created with {@link lambda}; a plain function won't type-check. - * - * ## Quickstart - * - * **Example** (Picking, renaming, and evolving struct properties) - * - * ```ts - * import { pipe, Struct } from "effect" - * - * const user = { firstName: "Alice", lastName: "Smith", age: 30, admin: false } - * - * const result = pipe( - * user, - * Struct.pick(["firstName", "age"]), - * Struct.evolve({ age: (n) => n + 1 }), - * Struct.renameKeys({ firstName: "name" }) - * ) - * - * console.log(result) // { name: "Alice", age: 31 } - * ``` - * - * ## See also - * - * - {@link Equivalence} – building equivalence relations for structs - * - {@link Order} – ordering structs by their fields - * - {@link Combiner} – combining two values of the same type - * - {@link Reducer} – combining with an initial value - * * @since 2.0.0 */ export * as Struct from "./Struct.js"; @@ -3893,111 +504,18 @@ export * as Terminal from "./Terminal.js"; */ export * as Tracer from "./Tracer.js"; /** - * A `Trie` is used for locating specific `string` keys from within a set. - * - * It works similar to `HashMap`, but with keys required to be `string`. - * This constraint unlocks some performance optimizations and new methods to get string prefixes (e.g. `keysWithPrefix`, `longestPrefixOf`). - * - * Prefix search is also the main feature that makes a `Trie` more suited than `HashMap` for certain usecases. - * - * A `Trie` is often used to store a dictionary (list of words) that can be searched - * in a manner that allows for efficient generation of completion lists - * (e.g. predict the rest of a word a user is typing). - * - * A `Trie` has O(n) lookup time where `n` is the size of the key, - * or even less than `n` on search misses. - * * @since 2.0.0 */ export * as Trie from "./Trie.js"; /** - * Utilities for creating, accessing, transforming, and comparing fixed-length - * arrays (tuples). Every function produces a new tuple — inputs are never - * mutated. - * - * ## Mental model - * - * - **Tuple**: A fixed-length readonly array where each position can have a - * different type (e.g., `readonly [string, number, boolean]`). - * - **Index-based access**: Elements are accessed by numeric index, and the - * type system tracks the type at each position. - * - **Dual API**: Most functions accept arguments in both data-first - * (`Tuple.get(t, 0)`) and data-last (`pipe(t, Tuple.get(0))`) style. - * - **Immutability**: All operations return a new tuple; the original is - * never modified. - * - **Lambda**: A type-level function interface (from {@link Struct}) used by - * {@link map}, {@link mapPick}, and {@link mapOmit} so the compiler can - * track how element types change. - * - * ## Common tasks - * - * - Create a tuple → {@link make} - * - Access an element by index → {@link get} - * - Select / remove elements by index → {@link pick}, {@link omit} - * - Append elements → {@link appendElement}, {@link appendElements} - * - Transform selected elements → {@link evolve} - * - Swap element positions → {@link renameIndices} - * - Map all elements with a typed lambda → {@link map}, {@link mapPick}, - * {@link mapOmit} - * - Compare tuples → {@link makeEquivalence}, {@link makeOrder} - * - Combine / reduce tuples → {@link makeCombiner}, {@link makeReducer} - * - Check tuple length at runtime → {@link isTupleOf}, - * {@link isTupleOfAtLeast} - * - * ## Gotchas - * - * - {@link pick} and {@link omit} use numeric indices, not string keys. - * - {@link renameIndices} takes an array of stringified source indices - * (e.g., `["2", "1", "0"]`), not arbitrary names. - * - {@link map}, {@link mapPick}, {@link mapOmit} require a Lambda value - * created with `Struct.lambda`; a plain function won't type-check. - * - {@link isTupleOf} and {@link isTupleOfAtLeast} only check length, not - * element types. - * - * ## Quickstart - * - * **Example** (Creating and transforming a tuple) - * - * ```ts - * import { pipe, Tuple } from "effect" - * - * const point = Tuple.make(10, 20, "red") - * - * const result = pipe( - * point, - * Tuple.evolve([ - * (x) => x * 2, - * (y) => y * 2 - * ]) - * ) - * - * console.log(result) // [20, 40, "red"] - * ``` - * - * ## See also - * - * - {@link Struct} – similar utilities for objects with named keys - * - {@link Array} – operations on variable-length arrays - * * @since 2.0.0 */ export * as Tuple from "./Tuple.js"; /** - * TxChunk is a transactional chunk data structure that provides Software Transactional Memory (STM) - * semantics for chunk operations. It uses a `TxRef>` internally to ensure all operations - * are performed atomically within transactions. - * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxChunk values change. - * * @since 4.0.0 */ export * as TxChunk from "./TxChunk.js"; /** - * A transactional deferred value — a write-once cell that can be read within transactions. - * Readers retry until a value is set; once set, the value is immutable. - * * @since 4.0.0 */ export * as TxDeferred from "./TxDeferred.js"; @@ -4010,51 +528,22 @@ export * as TxHashMap from "./TxHashMap.js"; */ export * as TxHashSet from "./TxHashSet.js"; /** - * A transactional priority queue. Elements are dequeued in order determined by the - * provided `Order` instance. All operations participate in the STM transaction system. - * * @since 4.0.0 */ export * as TxPriorityQueue from "./TxPriorityQueue.js"; /** - * TxPubSub is a transactional publish/subscribe hub that provides Software Transactional Memory - * (STM) semantics for message broadcasting. Publishers broadcast messages to all current - * subscribers, with each subscriber receiving its own copy of every published message. - * - * Supports multiple queue strategies: bounded, unbounded, dropping, and sliding. - * * @since 4.0.0 */ export * as TxPubSub from "./TxPubSub.js"; /** - * TxQueue is a transactional queue data structure that provides Software Transactional Memory (STM) - * semantics for queue operations. It uses TxRef for transactional state management and supports - * multiple queue strategies: bounded, unbounded, dropping, and sliding. - * - * Accessed values are tracked by the transaction in order to detect conflicts and to track changes. - * A transaction will retry whenever a conflict is detected or whenever the transaction explicitly - * calls `Effect.txRetry` and any of the accessed TxQueue values change. - * * @since 4.0.0 */ export * as TxQueue from "./TxQueue.js"; /** - * TxReentrantLock is a transactional read/write lock with reentrant semantics using Software - * Transactional Memory (STM). Multiple readers can hold the lock concurrently, OR a single - * writer can hold exclusive access. A fiber holding a write lock may acquire additional - * read or write locks (reentrancy). - * * @since 4.0.0 */ export * as TxReentrantLock from "./TxReentrantLock.js"; /** - * TxRef is a transactional value, it can be read and modified within the body of a transaction. - * - * Accessed values are tracked by the transaction in order to detect conflicts and in order to - * track changes, a transaction will retry whenever a conflict is detected or whenever the - * transaction explicitely calls to `Effect.txRetry` and any of the accessed TxRef values - * change. - * * @since 4.0.0 */ export * as TxRef from "./TxRef.js"; @@ -4063,94 +552,14 @@ export * as TxRef from "./TxRef.js"; */ export * as TxSemaphore from "./TxSemaphore.js"; /** - * TxSubscriptionRef is a TxRef that allows subscribing to all committed changes. Subscribers - * receive the current value followed by every subsequent update via a transactional queue. - * * @since 4.0.0 */ export * as TxSubscriptionRef from "./TxSubscriptionRef.js"; /** - * Type-level utility types for TypeScript. - * - * This module provides generic type aliases used throughout the Effect - * ecosystem. Everything here is compile-time only — there are no runtime - * values. Use these types to manipulate object shapes, tagged unions, tuples, - * and variance markers at the type level. - * - * ## Mental model - * - * - **Tagged union**: a union of objects each having a discriminating - * `_tag: string` field. {@link Tags}, {@link ExtractTag}, and - * {@link ExcludeTag} operate on these. - * - **Reason**: a nested error pattern where an error has a `reason` field - * containing a tagged union of sub-errors. {@link ReasonOf}, - * {@link ReasonTags}, {@link ExtractReason}, and {@link ExcludeReason} work - * with this pattern. - * - **Variance markers**: {@link Covariant}, {@link Contravariant}, and - * {@link Invariant} are function-type aliases encoding variance for phantom - * type parameters. - * - **Simplify**: {@link Simplify} flattens intersection types (`A & B`) into - * a single object type for cleaner IDE tooltips. - * - **Concurrency**: {@link Concurrency} is a union type - * (`number | "unbounded" | "inherit"`) used across Effect APIs that accept - * concurrency options. - * - **Marker types**: {@link unassigned} and {@link unhandled} are branded - * interfaces used internally to represent missing or unhandled type - * parameters. - * - * ## Common tasks - * - * - Flatten an intersection for readability → {@link Simplify} - * - Check type equality at compile time → {@link Equals} / {@link EqualsWith} - * - Merge two object types → {@link MergeLeft} / {@link MergeRight} - * - Work with tagged unions → {@link Tags} / {@link ExtractTag} / {@link ExcludeTag} - * - Work with nested reason errors → {@link ReasonOf} / {@link ExtractReason} - * - Create fixed-length tuples → {@link TupleOf} / {@link TupleOfAtLeast} - * - Strip `readonly` modifiers → {@link Mutable} / {@link DeepMutable} - * - Encode variance in phantom types → {@link Covariant} / {@link Contravariant} / {@link Invariant} - * - Check if a type is a union → {@link IsUnion} - * - * ## Gotchas - * - * - {@link TupleOf} with a non-literal `number` (e.g. `TupleOf`) - * degrades to `Array`. - * - {@link MergeRecord} is an alias for {@link MergeLeft}; prefer - * {@link MergeLeft} or {@link MergeRight} for clarity. - * - {@link NoInfer} uses the `[A][A extends any ? 0 : never]` trick, not the - * built-in `NoInfer` from TypeScript 5.4+. - * - {@link DeepMutable} recurses into `Map`, `Set`, arrays, and objects but - * stops at primitives and functions. - * * @since 4.0.0 */ export * as Types from "./Types.js"; /** - * This module provides small, allocation-free utilities for working with values of type - * `A | undefined`, where `undefined` means "no value". - * - * Why not `Option`? - * In TypeScript, `Option` is often unnecessary. If `undefined` already models absence - * in your domain, using `A | undefined` keeps types simple, avoids extra wrappers, and - * reduces overhead. The key is that `A` itself must not include `undefined`; in this - * module `undefined` is reserved to mean "no value". - * - * When to use `A | undefined`: - * - Absence can be represented by `undefined` in your domain model. - * - You do not need to distinguish between "no value" and "value is undefined". - * - You want straightforward ergonomics and zero extra allocations. - * - * When to prefer `Option`: - * - You must distinguish `None` from `Some(undefined)` (that is, `undefined` is a valid - * payload and carries meaning on its own). - * - You need a tagged representation for serialization or pattern matching across - * boundaries where `undefined` would be ambiguous. - * - You want the richer `Option` API and are comfortable with the extra wrapper. - * - * Lawfulness note: - * All helpers treat `undefined` as absence. Do not use these utilities with payloads - * where `A` can itself be `undefined`, or you will lose information. If you need to - * carry `undefined` as a valid payload, use `Option` instead. - * * @since 4.0.0 */ export * as UndefinedOr from "./UndefinedOr.js"; @@ -4159,62 +568,6 @@ export * as UndefinedOr from "./UndefinedOr.js"; */ export * as Unify from "./Unify.js"; /** - * Internal utilities for the Effect ecosystem's generator-based syntax and - * higher-kinded type machinery. - * - * ## Mental model - * - * - **SingleShotGen** — an `IterableIterator` wrapper that yields its value - * exactly once. Used internally by `[Symbol.iterator]()` on Effect, Option, - * Result, and other yieldable types so they work inside generator functions. - * - **Gen** — a type-level signature for generator-based monadic composition - * (`gen` functions). Parametric over any `TypeLambda` so each module - * (Effect, Option, Result, ...) can expose its own `gen` with correct types. - * - **Variance** — a type-level marker that encodes the variance (covariant, - * contravariant, invariant) of a `TypeLambda`'s type parameters. - * Used by {@link Gen} for type inference. - * - * ## Common tasks - * - * - Make a type yieldable in generators -> implement `[Symbol.iterator]()` returning a {@link SingleShotGen} - * - Define a generator-based API for a new TypeLambda -> type it as {@link Gen}`` - * - Encode variance for a higher-kinded type -> use {@link Variance} - * - * ## Gotchas - * - * - {@link SingleShotGen} yields its value only on the first `.next()` call. - * Calling `.next()` again returns `{ done: true }`. Iterating the same - * instance twice will skip the value on the second pass; call - * `[Symbol.iterator]()` to get a fresh iterator. - * - {@link Gen} and {@link Variance} are pure type-level constructs — they - * have no runtime representation. - * - * ## Quickstart - * - * **Example** (Using SingleShotGen to make a type yieldable) - * - * ```ts - * import { Utils } from "effect" - * - * class MyWrapper { - * constructor(readonly value: A) {} - * [Symbol.iterator]() { - * return new Utils.SingleShotGen, A>(this) - * } - * } - * - * const w = new MyWrapper(42) - * const iter = w[Symbol.iterator]() - * console.log(iter.next(undefined as any)) - * // { value: MyWrapper { value: 42 }, done: false } - * console.log(iter.next(42)) - * // { value: 42, done: true } - * ``` - * - * @see {@link SingleShotGen} - * @see {@link Gen} - * @see {@link Variance} - * * @since 2.0.0 */ export * as Utils from "./Utils.js"; diff --git a/.opencode/node_modules/effect/dist/index.js.map b/.opencode/node_modules/effect/dist/index.js.map index 10072b5cb332d1f23fcb2f6401bf1309f910ce16..791e291a7c26244c7206be3e1f3b79dcd89441b6 100644 --- a/.opencode/node_modules/effect/dist/index.js.map +++ b/.opencode/node_modules/effect/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["absurd","cast","flow","hole","identity","pipe","Array","BigDecimal","BigInt","Boolean","Brand","Cache","Cause","Channel","ChannelSchema","Chunk","Clock","Combiner","Config","ConfigProvider","Console","Context","Cron","Data","DateTime","Deferred","Differ","Duration","Effect","Effectable","Encoding","Equal","Equivalence","ErrorReporter","ExecutionPlan","Exit","Fiber","FiberHandle","FiberMap","FiberSet","FileSystem","Filter","Formatter","Function","Graph","Hash","HashMap","HashRing","HashSet","HKT","Inspectable","Iterable","JsonPatch","JsonPointer","JsonSchema","Latch","Layer","LayerMap","Logger","LogLevel","ManagedRuntime","Match","Metric","MutableHashMap","MutableHashSet","MutableList","MutableRef","Newtype","NonEmptyIterable","Number","Optic","Option","Order","Ordering","PartitionedSemaphore","Path","Pipeable","PlatformError","Pool","Predicate","PrimaryKey","PubSub","Pull","Queue","Random","RcMap","RcRef","Record","Redactable","Redacted","Reducer","Ref","References","RegExp","Request","RequestResolver","Resource","Result","Runtime","Schedule","Scheduler","Schema","SchemaAST","SchemaGetter","SchemaIssue","SchemaParser","SchemaRepresentation","SchemaTransformation","SchemaUtils","Scope","ScopedCache","ScopedRef","Semaphore","Sink","Stdio","Stream","String","Struct","SubscriptionRef","Symbol","SynchronizedRef","Take","Terminal","Tracer","Trie","Tuple","TxChunk","TxDeferred","TxHashMap","TxHashSet","TxPriorityQueue","TxPubSub","TxQueue","TxReentrantLock","TxRef","TxSemaphore","TxSubscriptionRef","Types","UndefinedOr","Unify","Utils"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AACE;;;AAGAA,MAAM;AACN;;;AAGAC,IAAI;AACJ;;;AAGAC,IAAI;AACJ;;;AAGAC,IAAI;AACJ;;;AAGAC,QAAQ;AACR;;;AAGAC,IAAI,QACC,eAAe;AAEtB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;AAeA,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;;;;AAMA,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;;;;AAMA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;AAOA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;;;;AAMA,OAAO,KAAKC,iBAAiB,MAAM,wBAAwB;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,OAAO,KAAKC,KAAK,MAAM,YAAY","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"index.js","names":["absurd","cast","flow","hole","identity","pipe","Array","BigDecimal","BigInt","Boolean","Brand","Cache","Cause","Channel","ChannelSchema","Chunk","Clock","Combiner","Config","ConfigProvider","Console","Context","Cron","Crypto","Data","DateTime","Deferred","Differ","Duration","Effect","Effectable","Encoding","Equal","Equivalence","ErrorReporter","ExecutionPlan","Exit","Fiber","FiberHandle","FiberMap","FiberSet","FileSystem","Filter","Formatter","Function","Graph","Hash","HashMap","HashRing","HashSet","HKT","Inspectable","Iterable","JsonPatch","JsonPointer","JsonSchema","Latch","Layer","LayerMap","Logger","LogLevel","ManagedRuntime","Match","Metric","MutableHashMap","MutableHashSet","MutableList","MutableRef","Newtype","NonEmptyIterable","Number","Optic","Option","Order","Ordering","PartitionedSemaphore","Path","Pipeable","PlatformError","Pool","Predicate","PrimaryKey","PubSub","Pull","Queue","Random","RcMap","RcRef","Record","Redactable","Redacted","Reducer","Ref","References","RegExp","Request","RequestResolver","Resource","Result","Runtime","Schedule","Scheduler","Schema","SchemaAST","SchemaGetter","SchemaIssue","SchemaParser","SchemaRepresentation","SchemaTransformation","SchemaUtils","Scope","ScopedCache","ScopedRef","Semaphore","Sink","Stdio","Stream","String","Struct","SubscriptionRef","Symbol","SynchronizedRef","Take","Terminal","Tracer","Trie","Tuple","TxChunk","TxDeferred","TxHashMap","TxHashSet","TxPriorityQueue","TxPubSub","TxQueue","TxReentrantLock","TxRef","TxSemaphore","TxSubscriptionRef","Types","UndefinedOr","Unify","Utils"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AACE;;;AAGAA,MAAM;AACN;;;AAGAC,IAAI;AACJ;;;AAGAC,IAAI;AACJ;;;AAGAC,IAAI;AACJ;;;AAGAC,QAAQ;AACR;;;AAGAC,IAAI,QACC,eAAe;AAEtB;AAEA;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;AAGA,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,aAAa,MAAM,oBAAoB;AAEnD;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC;;;AAGA,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;AAGA,OAAO,KAAKC,cAAc,MAAM,qBAAqB;AAErD;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC;;;AAGA,OAAO,KAAKC,MAAM,MAAM,aA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;AAEnC;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;AAGA,OAAO,KAAKC,eAAe,MAAM,sBAAsB;AAEvD;;;AAGA,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC;;;AAGA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,eAAe,MAAM,sBAAsB;AAEvD;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;AAGA,OAAO,KAAKC,iBAAiB,MAAM,wBAAwB;AAE3D;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/concurrency.js b/.opencode/node_modules/effect/dist/internal/concurrency.js index f5a42c98e363ea460ac2eae51ba7bf2c9e73fc74..0b7e7ff697d6e802634b92f38df288ae248fa5bd 100644 --- a/.opencode/node_modules/effect/dist/internal/concurrency.js +++ b/.opencode/node_modules/effect/dist/internal/concurrency.js @@ -8,7 +8,7 @@ export const match = (concurrency, sequential, unbounded, bounded) => { case "unbounded": return unbounded(); case "inherit": - return effect.flatMap(CurrentConcurrency.asEffect(), concurrency => concurrency === "unbounded" ? unbounded() : concurrency > 1 ? bounded(concurrency) : sequential()); + return effect.flatMap(CurrentConcurrency, concurrency => concurrency === "unbounded" ? unbounded() : concurrency > 1 ? bounded(concurrency) : sequential()); default: return concurrency > 1 ? bounded(concurrency) : sequential(); } @@ -21,7 +21,7 @@ export const matchSimple = (concurrency, sequential, concurrent) => { case "unbounded": return concurrent(); case "inherit": - return effect.flatMap(CurrentConcurrency.asEffect(), concurrency => concurrency === "unbounded" || concurrency > 1 ? concurrent() : sequential()); + return effect.flatMap(CurrentConcurrency, concurrency => concurrency === "unbounded" || concurrency > 1 ? concurrent() : sequential()); default: return concurrency > 1 ? concurrent() : sequential(); } diff --git a/.opencode/node_modules/effect/dist/internal/concurrency.js.map b/.opencode/node_modules/effect/dist/internal/concurrency.js.map index 3a1ceee486f7cbcdc995c72a739df8c5c6291a62..96856945c8a2e381db1cf069502d652d559ee9f8 100644 --- a/.opencode/node_modules/effect/dist/internal/concurrency.js.map +++ b/.opencode/node_modules/effect/dist/internal/concurrency.js.map @@ -1 +1 @@ -{"version":3,"file":"concurrency.js","names":["CurrentConcurrency","effect","match","concurrency","sequential","unbounded","bounded","undefined","flatMap","asEffect","matchSimple","concurrent"],"sources":["../../src/internal/concurrency.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,kBAAkB,QAAQ,kBAAkB;AAErD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA,OAAO,MAAMC,KAAK,GAAGA,CACnBC,WAAoC,EACpCC,UAAiC,EACjCC,SAAgC,EAChCC,OAA2C,KACxB;EACnB,QAAQH,WAAW;IACjB,KAAKI,SAAS;MACZ,OAAOH,UAAU,EAAE;IACrB,KAAK,WAAW;MACd,OAAOC,SAAS,EAAE;IACpB,KAAK,SAAS;MACZ,OAAOJ,MAAM,CAACO,OAAO,CAACR,kBAAkB,CAACS,QAAQ,EAAE,EAAGN,WAAW,IAC/DA,WAAW,KAAK,WAAW,GACvBE,SAAS,EAAE,GACXF,WAAW,GAAG,CAAC,GACfG,OAAO,CAACH,WAAW,CAAC,GACpBC,UAAU,EAAE,CAAC;IACrB;MACE,OAAOD,WAAW,GAAG,CAAC,GAAGG,OAAO,CAACH,WAAW,CAAC,GAAGC,UAAU,EAAE;EAChE;AACF,CAAC;AAED;AACA,OAAO,MAAMM,WAAW,GAAGA,CACzBP,WAAoC,EACpCC,UAAiC,EACjCO,UAAiC,KACd;EACnB,QAAQR,WAAW;IACjB,KAAKI,SAAS;MACZ,OAAOH,UAAU,EAAE;IACrB,KAAK,WAAW;MACd,OAAOO,UAAU,EAAE;IACrB,KAAK,SAAS;MACZ,OAAOV,MAAM,CAACO,OAAO,CACnBR,kBAAkB,CAACS,QAAQ,EAAE,EAC5BN,WAAW,IACVA,WAAW,KAAK,WAAW,IAAIA,WAAW,GAAG,CAAC,GAC1CQ,UAAU,EAAE,GACZP,UAAU,EAAE,CACnB;IACH;MACE,OAAOD,WAAW,GAAG,CAAC,GAAGQ,UAAU,EAAE,GAAGP,UAAU,EAAE;EACxD;AACF,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"concurrency.js","names":["CurrentConcurrency","effect","match","concurrency","sequential","unbounded","bounded","undefined","flatMap","matchSimple","concurrent"],"sources":["../../src/internal/concurrency.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,kBAAkB,QAAQ,kBAAkB;AAErD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA,OAAO,MAAMC,KAAK,GAAGA,CACnBC,WAAoC,EACpCC,UAAiC,EACjCC,SAAgC,EAChCC,OAA2C,KACxB;EACnB,QAAQH,WAAW;IACjB,KAAKI,SAAS;MACZ,OAAOH,UAAU,EAAE;IACrB,KAAK,WAAW;MACd,OAAOC,SAAS,EAAE;IACpB,KAAK,SAAS;MACZ,OAAOJ,MAAM,CAACO,OAAO,CAACR,kBAAkB,EAAGG,WAAW,IACpDA,WAAW,KAAK,WAAW,GACvBE,SAAS,EAAE,GACXF,WAAW,GAAG,CAAC,GACfG,OAAO,CAACH,WAAW,CAAC,GACpBC,UAAU,EAAE,CAAC;IACrB;MACE,OAAOD,WAAW,GAAG,CAAC,GAAGG,OAAO,CAACH,WAAW,CAAC,GAAGC,UAAU,EAAE;EAChE;AACF,CAAC;AAED;AACA,OAAO,MAAMK,WAAW,GAAGA,CACzBN,WAAoC,EACpCC,UAAiC,EACjCM,UAAiC,KACd;EACnB,QAAQP,WAAW;IACjB,KAAKI,SAAS;MACZ,OAAOH,UAAU,EAAE;IACrB,KAAK,WAAW;MACd,OAAOM,UAAU,EAAE;IACrB,KAAK,SAAS;MACZ,OAAOT,MAAM,CAACO,OAAO,CACnBR,kBAAkB,EACjBG,WAAW,IACVA,WAAW,KAAK,WAAW,IAAIA,WAAW,GAAG,CAAC,GAC1CO,UAAU,EAAE,GACZN,UAAU,EAAE,CACnB;IACH;MACE,OAAOD,WAAW,GAAG,CAAC,GAAGO,UAAU,EAAE,GAAGN,UAAU,EAAE;EACxD;AACF,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/core.js b/.opencode/node_modules/effect/dist/internal/core.js index 1f9e5ba32e3b14bf11c400dab2642cbd1d9a7481..ef0bde1fab16b585a4adeb2283f0ca59b17264ed 100644 --- a/.opencode/node_modules/effect/dist/internal/core.js +++ b/.opencode/node_modules/effect/dist/internal/core.js @@ -67,28 +67,12 @@ export const StructuralProto = { } }; /** @internal */ -export const YieldableProto = { - [Symbol.iterator]() { - return new SingleShotGen(this); - } -}; -/** @internal */ -export const YieldableErrorProto = { - ...YieldableProto, - pipe() { - return pipeArguments(this, arguments); - } -}; -/** @internal */ export const EffectProto = { [EffectTypeId]: effectVariance, ...PipeInspectableProto, [Symbol.iterator]() { return new SingleShotGen(this); }, - asEffect() { - return this; - }, toJSON() { return { _id: "Effect", @@ -353,12 +337,15 @@ export const withFiber = /*#__PURE__*/makePrimitive({ }); /** @internal */ export const YieldableError = /*#__PURE__*/function () { - class YieldableError extends globalThis.Error { - asEffect() { + class YieldableError extends globalThis.Error {} + const proto = /*#__PURE__*/makePrimitiveProto({ + op: "YieldableError", + [evaluate]() { return exitFail(this); } - } - Object.assign(YieldableError.prototype, YieldableErrorProto); + }); + delete proto.toString; + Object.assign(YieldableError.prototype, proto); return YieldableError; }(); /** @internal */ @@ -371,6 +358,7 @@ export const Error = /*#__PURE__*/function () { } : undefined); if (args) { Object.assign(this, args); + // @effect-diagnostics-next-line floatingEffect:off Object.defineProperty(this, plainArgsSymbol, { value: args, enumerable: false diff --git a/.opencode/node_modules/effect/dist/internal/core.js.map b/.opencode/node_modules/effect/dist/internal/core.js.map index 208a6c6c323ebf94c092c46842648900fd7c85b6..7ae8b42db9ce63c48513ccf182d69b871d51204e 100644 --- a/.opencode/node_modules/effect/dist/internal/core.js.map +++ b/.opencode/node_modules/effect/dist/internal/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","names":["Equal","format","dual","identity","Hash","NodeInspectSymbol","pipeArguments","hasProperty","SingleShotGen","EffectTypeId","ExitTypeId","effectVariance","_A","_E","_R","identifier","args","evaluate","contA","contE","contAll","Yield","Symbol","for","PipeInspectableProto","pipe","arguments","toJSON","toString","ignoreToString","space","StructuralProto","symbol","structureKeys","Object","keys","that","selfKeys","thatKeys","length","i","equals","YieldableProto","iterator","YieldableErrorProto","EffectProto","asEffect","_id","op","undefined","isEffect","u","isExit","CauseTypeId","CauseReasonTypeId","isCause","self","isCauseReason","CauseImpl","reasons","constructor","failures","map","f","every","e","array","annotationsMap","WeakMap","ReasonBase","annotations","_tag","originalError","constEmptyAnnotations","size","prevAnnotations","get","Map","set","annotate","options","mapUnsafe","newAnnotations","forEach","value","key","overwrite","has","assign","create","getPrototypeOf","Fail","error","isFailReason","combine","string","hash","causeFromReasons","causeEmpty","causeFail","Die","defect","isDieReason","causeDie","causeAnnotate","isInterruptReason","defaultEvaluate","_fiber","exitDie","makePrimitiveProto","makePrimitive","Proto","single","makeExit","prop","exitSucceed","fiber","cont","getCont","yieldWith","StackTraceKey","InterruptorStackTrace","exitFailCause","cause","annotated","currentStackFrame","interruptible","_interruptedCause","exitFail","withFiber","YieldableError","globalThis","Error","prototype","plainArgsSymbol","Base","message","defineProperty","enumerable","TaggedError","tag","name","NoSuchElementErrorTypeId","isNoSuchElementError","NoSuchElementError","DoneTypeId","isDone","DoneVoid","Done","doneVoid","done"],"sources":["../../src/internal/core.ts"],"sourcesContent":[null],"mappings":"AAGA,OAAO,KAAKA,KAAK,MAAM,aAAa;AAEpC,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,gBAAgB;AAC/C,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,iBAAiB,QAAQ,mBAAmB;AACrD,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,WAAW,QAAQ,iBAAiB;AAG7C,SAASC,aAAa,QAAQ,aAAa;AAG3C;AACA,OAAO,MAAMC,YAAY,GAAG,gBAAyB;AAErD;AACA,OAAO,MAAMC,UAAU,GAAG,cAAuB;AAEjD,MAAMC,cAAc,GAAG;EACrBC,EAAE,EAAET,QAAQ;EACZU,EAAE,EAAEV,QAAQ;EACZW,EAAE,EAAEX;CACL;AAED;AACA,OAAO,MAAMY,UAAU,GAAG,GAAGN,YAAY,aAAsB;AAI/D;AACA,OAAO,MAAMO,IAAI,GAAG,GAAGP,YAAY,OAAgB;AAInD;AACA,OAAO,MAAMQ,QAAQ,GAAG,GAAGR,YAAY,WAAoB;AAI3D;AACA,OAAO,MAAMS,KAAK,GAAG,GAAGT,YAAY,cAAuB;AAI3D;AACA,OAAO,MAAMU,KAAK,GAAG,GAAGV,YAAY,cAAuB;AAI3D;AACA,OAAO,MAAMW,OAAO,GAAG,GAAGX,YAAY,aAAsB;AAI5D;AACA,OAAO,MAAMY,KAAK,gBAAGC,MAAM,CAACC,GAAG,CAAC,qBAAqB,CAAC;AAItD;AACA,OAAO,MAAMC,oBAAoB,GAAG;EAClCC,IAAIA,CAAA;IACF,OAAOnB,aAAa,CAAC,IAAI,EAAEoB,SAAS,CAAC;EACvC,CAAC;EACDC,MAAMA,CAAA;IACJ,OAAO;MAAE,GAAG;IAAI,CAAE;EACpB,CAAC;EACDC,QAAQA,CAAA;IACN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,UAAU;IACxB1E,IAAI,EAAE,MAAM;IACZa;GACD;AACH,CAAC;AAED,MAAMiE,QAAQ,gBAAGrB,QAAQ,CAACmB,QAAQ,CAAC;AAEnC;AACA,OAAO,MAAMG,IAAI,GAAclE,KAAS,IAAyC;EAC/E,IAAIA,KAAK,KAAKnC,SAAS,EAAE,OAAOoG,QAAe;EAC/C,OAAOrB,QAAQ,CAACoB,IAAI,CAAChE,KAAK,CAAC,CAAC;AAC9B,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"core.js","names":["Equal","format","dual","identity","Hash","NodeInspectSymbol","pipeArguments","hasProperty","SingleShotGen","EffectTypeId","ExitTypeId","effectVariance","_A","_E","_R","identifier","args","evaluate","contA","contE","contAll","Yield","Symbol","for","PipeInspectableProto","pipe","arguments","toJSON","toString","ignoreToString","space","StructuralProto","symbol","structureKeys","Object","keys","that","selfKeys","thatKeys","length","i","equals","EffectProto","iterator","_id","op","undefined","isEffect","u","isExit","CauseTypeId","CauseReasonTypeId","isCause","self","isCauseReason","CauseImpl","reasons","constructor","failures","map","f","every","e","array","annotationsMap","WeakMap","ReasonBase","annotations","_tag","originalError","constEmptyAnnotations","size","prevAnnotations","get","Map","set","annotate","options","mapUnsafe","newAnnotations","forEach","value","key","overwrite","has","assign","create","getPrototypeOf","Fail","error","isFailReason","combine","string","hash","causeFromReasons","causeEmpty","causeFail","Die","defect","isDieReason","causeDie","causeAnnotate","isInterruptReason","defaultEvaluate","_fiber","exitDie","makePrimitiveProto","makePrimitive","Proto","single","makeExit","prop","exitSucceed","fiber","cont","getCont","yieldWith","StackTraceKey","InterruptorStackTrace","exitFailCause","cause","annotated","currentStackFrame","interruptible","_interruptedCause","exitFail","withFiber","YieldableError","globalThis","Error","proto","prototype","plainArgsSymbol","Base","message","defineProperty","enumerable","TaggedError","tag","name","NoSuchElementErrorTypeId","isNoSuchElementError","NoSuchElementError","DoneTypeId","isDone","DoneVoid","Done","doneVoid","done"],"sources":["../../src/internal/core.ts"],"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No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/effect.js b/.opencode/node_modules/effect/dist/internal/effect.js index fc7bddfba9a6cf01986fe5acf066f14cf7fa0f0d..052c8e0ad2ff8007f4fc828dd577ff78e0129b10 100644 --- a/.opencode/node_modules/effect/dist/internal/effect.js +++ b/.opencode/node_modules/effect/dist/internal/effect.js @@ -635,11 +635,15 @@ export const suspend = /*#__PURE__*/makePrimitive({ } }); /** @internal */ -export const fromYieldable = yieldable => yieldable.asEffect(); -/** @internal */ -export const fromOption = fromYieldable; +export const fromOption = /*#__PURE__*/Option.match({ + onNone: () => fail(new NoSuchElementError("Effect.fromOption: Option.none")), + onSome: succeed +}); /** @internal */ -export const fromResult = fromYieldable; +export const fromResult = /*#__PURE__*/Result.match({ + onFailure: fail, + onSuccess: succeed +}); /** @internal */ export const fromNullishOr = value => value == null ? fail(new NoSuchElementError()) : succeed(value); /** @internal */ @@ -835,20 +839,18 @@ const fromIteratorEagerUnsafe = evaluate => { if (state.done) { return succeed(state.value); } - const yieldable = state.value; - const effect = yieldable.asEffect(); - const primitive = effect; + const primitive = state.value; if (primitive && primitive._tag === "Success") { value = primitive.value; continue; } else if (primitive && primitive._tag === "Failure") { - return effect; + return state.value; } else { let isFirstExecution = true; return suspend(() => { if (isFirstExecution) { isFirstExecution = false; - return flatMap(effect, value => fromIteratorUnsafe(iterator, value)); + return flatMap(state.value, value => fromIteratorUnsafe(iterator, value)); } else { return suspend(() => fromIteratorUnsafe(evaluate())); } @@ -867,14 +869,13 @@ const fromIteratorUnsafe = /*#__PURE__*/makePrimitive({ while (true) { const state = iter.next(value); if (state.done) return succeed(state.value); - const eff = state.value.asEffect(); - if (!effectIsExit(eff)) { + if (!effectIsExit(state.value)) { fiber._stack.push(this); - return eff; - } else if (eff._tag === "Failure") { - return eff; + return state.value; + } else if (state.value._tag === "Failure") { + return state.value; } - value = eff.value; + value = state.value.value; } }, [evaluate](fiber) { @@ -1105,7 +1106,7 @@ export const exitFindErrorOption = self => { // environment // ---------------------------------------------------------------------------- /** @internal */ -export const service = fromYieldable; +export const service = service => service; /** @internal */ export const serviceOption = service => withFiber(fiber => succeed(Context.getOption(fiber.context, service))); /** @internal */ @@ -1581,7 +1582,7 @@ const constScopeEmpty = { /** @internal */ export const scopeMake = finalizerStrategy => sync(() => scopeMakeUnsafe(finalizerStrategy)); /** @internal */ -export const scope = /*#__PURE__*/scopeTag.asEffect(); +export const scope = scopeTag; /** @internal */ export const provideScope = /*#__PURE__*/provideService(scopeTag); /** @internal */ @@ -2389,9 +2390,9 @@ const provideSpanStackFrame = (name, stack) => { })); }; /** @internal */ -export const spanAnnotations = /*#__PURE__*/TracerSpanAnnotations.asEffect(); +export const spanAnnotations = TracerSpanAnnotations; /** @internal */ -export const spanLinks = /*#__PURE__*/TracerSpanLinks.asEffect(); +export const spanLinks = TracerSpanLinks; /** @internal */ export const linkSpans = /*#__PURE__*/dual(args => isEffect(args[0]), (self, span, attributes = {}) => { const spans = Array.isArray(span) ? span : [span]; @@ -2812,11 +2813,13 @@ const logLevelStyle = { Fatal: "background-color:red;color:white" }; const defaultDateFormat = date => `${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}:${date.getSeconds().toString().padStart(2, "0")}.${date.getMilliseconds().toString().padStart(3, "0")}`; -const hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null; -const processStdoutIsTTY = hasProcessStdout && process.stdout.isTTY === true; -const hasProcessStdoutOrDeno = hasProcessStdout || "Deno" in globalThis; /** @internal */ export const consolePretty = options => { + // evaluated lazily so the module-level bundle stays free of `process` + // property accesses, which bundlers must retain as possible side effects + const hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null; + const processStdoutIsTTY = hasProcessStdout && process.stdout.isTTY === true; + const hasProcessStdoutOrDeno = hasProcessStdout || "Deno" in globalThis; const mode_ = options?.mode ?? "auto"; const mode = mode_ === "auto" ? hasProcessStdoutOrDeno ? "tty" : "browser" : mode_; const isBrowser = mode === "browser"; diff --git a/.opencode/node_modules/effect/dist/internal/effect.js.map b/.opencode/node_modules/effect/dist/internal/effect.js.map index 34bd0b8525a12b8450d96015c1a780290b977a27..6a1b716f4cf7b790b78815ce3c6302767c3d7eec 100644 --- a/.opencode/node_modules/effect/dist/internal/effect.js.map +++ b/.opencode/node_modules/effect/dist/internal/effect.js.map @@ -1 +1 @@ -{"version":3,"file":"effect.js","names":["Arr","Context","Duration","Equal","Filter","formatJson","constant","constFalse","constTrue","constUndefined","constVoid","dual","identity","Hash","toJson","toStringUnknown","Iterable","Option","Order","pipeArguments","hasProperty","isIterable","isString","isTagged","currentFiberTypeId","redact","Result","Scheduler","Tracer","internalCall","args","causeAnnotate","causeEmpty","causeFromReasons","CauseImpl","constEmptyAnnotations","contA","contAll","contE","evaluate","exitDie","exitFail","exitFailCause","exitSucceed","ExitTypeId","Fail","InterruptorStackTrace","isCause","isDieReason","isEffect","isFailReason","isInterruptReason","isNoSuchElementError","makePrimitive","makePrimitiveProto","NoSuchElementError","ReasonBase","StackTraceKey","CauseStackTrace","TaggedError","withFiber","Yield","doNotation","InternalMetric","CurrentConcurrency","CurrentErrorReporters","CurrentLogAnnotations","CurrentLogLevel","CurrentLogSpans","CurrentStackFrame","MinimumLogLevel","TracerEnabled","TracerSpanAnnotations","TracerSpanLinks","TracerTimingEnabled","addSpanStackTrace","makeStackCleaner","version","Interrupt","fiberId","constructor","annotations","toString","toJSON","_tag","symbol","that","combine","string","random","makeInterruptReason","causeInterrupt","hasFails","self","reasons","some","findFail","reason","find","succeed","fail","findError","i","length","error","findErrorOption","toOption","hasDies","findDie","findDefect","defect","hasInterrupts","findInterrupt","causeFilterInterruptors","interruptors","f","Set","undefined","add","causeInterruptors","result","isFailure","emptySet","success","hasInterruptsOnly","every","reasonAnnotations","makeUnsafe","causeAnnotations","map","Map","size","key","value","set","causeCombine","newCause","union","equals","causeMap","hasFail","failures","failure","causePartition","obj","Die","push","causeSquash","partitioned","globalThis","Error","causePrettyErrors","errors","interrupts","prevStackLimit","stackTraceLimit","causePrettyError","cause","name","stack","interruptCauseStack","message","original","kind","causePrettyMessage","cleanErrorStack","addStackAnnotations","Object","keys","u","prototype","Array","locationRegExp","lines","startsWith","slice","split","out","test","join","frame","get","currentStackTrace","current","locationMatchAll","matchAll","match","location","replace","parent","causePretty","e","renderErrorCause","prefix","len","FiberTypeId","fiberVariance","_A","_E","fiberIdStore","id","getCurrentFiber","FiberImpl","context","interruptible","setContext","currentOpCount","currentLoopCount","_stack","_observers","_exit","_children","_interruptedCause","_yielded","runtimeMetrics","recordFiberStart","_currentExit","currentScheduler","currentTracerContext","currentSpan","currentLogLevel","minimumLogLevel","currentStackFrame","maxOpsBeforeYield","currentPreventYield","_dispatcher","currentDispatcher","makeDispatcher","getRef","ref","getReferenceUnsafe","addObserver","cb","index","indexOf","splice","interruptUnsafe","make","failCause","pollUnsafe","effect","yielded","exit","runLoop","interruptChildren","fiberMiddleware","flatMap","recordFiberEnd","prevFiber","yielding","currentLoop","shouldYield","prev","yieldNow","String","getCont","op","pop","cont","yieldWith","children","pipe","arguments","scheduler","mapUnsafe","ParentSpanKey","MaxOpsBeforeYield","PreventSchedulerYield","FiberRuntimeMetricsKey","currentTracer","TracerKey","currentSpanLocal","fiberStackAnnotations","fiber","fiberInterruptChildren","fiberInterruptAll","fiberAwait","impl","callback","resume","sync","fiberAwaitAll","iter","Symbol","iterator","exits","cancel","loop","next","done","fiberJoin","fiberJoinAll","fibers","from","empty","cancels","failed","forEach","fiberInterrupt","fiberInterruptAs","ann","merge","asVoid","fiberInterruptAllAs","suspend","_fiber","fromYieldable","yieldable","asEffect","fromOption","fromResult","fromNullishOr","yieldNowWith","resumed","scheduleTask","exitVoid","succeedSome","a","succeedNone","none","failCauseSync","die","failSync","void_","void","try_","options","try","err","catch","promise","callbackOptions","signal","then","tryPromise","catcher","UnknownError","eval","withFiberId","single","register","bind","controller","AbortController","onCancel","asyncFinalizer","abort","setInterruptibleTrue","never","gen","fromIteratorUnsafe","call","fnUntraced","body","pipeables","fn","apply","defineFunctionLength","defineProperty","configurable","fnStackCleaner","nameFirst","spanOptions","prevLimit","defError","makeFn","bodyOrOptions","addSpan","callError","updateService","useSpan","span","provideParentSpan","fnUntracedEager","fromIteratorEagerUnsafe","pipeable","state","primitive","isFirstExecution","eff","effectIsExit","as","b","_","asSome","flip","matchEffect","onFailure","onSuccess","andThen","tap","sandbox","catchCause","raceAll","all","effects","fromIterable","doneCount","onExit","isWinner","uninterruptible","onWinner","parentFiber","forkUnsafe","delete","raceAllFirst","race","raceFirst","create","OnSuccessProto","matchCauseEffectEager","matchCauseEffect","flatMapEager","flatten","mapEager","exitMap","mapErrorEager","exitMapError","mapError","mapBothEager","exitMapBoth","mapBoth","catchEager","catch_","exitInterrupt","exitIsSuccess","exitFilterSuccess","exitFilterValue","exitIsFailure","exitFilterFailure","exitFilterCause","exitFindError","composePassthrough","exitFindDefect","exitHasInterrupts","exitHasDies","exitHasFails","exitAs","exitZipRight","exitMatch","exitAsVoid","exitAsVoidAll","exitGetSuccess","exitGetCause","exitFindErrorOption","service","serviceOption","getOption","serviceOptional","has","getUnsafe","updateContext","prevContext","nextContext","onExitPrimitive","s","getContext","contextWith","provideContext","provideService","provideServiceImpl","implementation","provideServiceEffect","acquire","withConcurrency","zip","zipWith","a2","concurrent","concurrency","filterOrFail","predicate","orFailWith","filterOrElse","when","condition","pass","replicate","n","replicateEffect","forever","whileLoop","while","disableYield","step","OnFailureProto","catchCauseIf","catchCauseFilter","filter","eb","catchNoSuchElement","catchDefect","tapCause","tapCauseIf","tapCauseFilter","tapError","tapErrorTag","k","isArray","includes","tapDefect","catchIf","orElse","catchFilter","catchTag","pred","catchTags","cases","catchReason","errorTag","reasonTag","catchReasons","unwrapReason","mapErrorCause","orDie","orElseSucceed","firstSuccessOf","eventually","ignore","log","logEffect","logWithLevel","ignoreCause","option","matchEager","OnSuccessAndFailureProto","matchCause","matchCauseEager","exitPrimitive","isSuccess","delay","duration","sleep","timeoutOrElse","timeout","TimeoutError","timeoutOption","timed","clockWith","clock","start","currentTimeNanosUnsafe","nanos","ScopeTypeId","ScopeCloseableTypeId","scopeTag","Service","scopeClose","exit_","scopeCloseUnsafe","closed","finalizers","values","scopeCloseFinalizers","arr","finalizer","strategy","scopeFork","scope","finalizerStrategy","scopeForkUnsafe","newScope","scopeMakeUnsafe","scopeAddFinalizerUnsafe","scopeRemoveFinalizerUnsafe","scopeAddFinalizerExit","scopeAddFinalizer","constScopeEmpty","scopeMake","provideScope","scoped","scopeUse","scopedWith","acquireRelease","release","uninterruptibleMask","restore","addFinalizer","ensuring","onExitIf","onExitFilter","onError","onErrorIf","onErrorFilter","onInterrupt","acquireUseRelease","use","acquireDisposable","resource","asyncDispose","dispose","cachedInvalidateWithTTL","ttl","ttlMillis","toMillis","fromInputUnsafe","isFinite","Number","latch","makeLatchUnsafe","expiresAt","running","wait","await","ClockRef","now","currentTimeMillisUnsafe","closeUnsafe","openUnsafe","cachedWithTTL","timeToLive","tuple","cached","infinity","interrupt","setInterruptible","setInterruptibleFalse","interruptibleMask","abortSignal","arg","mode","discard","entries","partition","elements","results","validate","excluded","satisfying","isArrayNonEmpty","findFirst","findFirstLoop","keep","findFirstFilter","findFirstFilterLoop","iterable","concurrencyOption","POSITIVE_INFINITY","Math","max","forEachSequential","items","forEachConcurrent","iterateEagerImpl","onItem","opts","end","interrupted","terminal","go","paused","item","currentIndex","iterateEager","filterMapOrElse","filterMapOrFail","x","filterMap","filterMapEffect","Do","bindTo","let_","let","forkChild","interruptChildrenPatch","startImmediately","immediate","daemon","child","forkDetach","awaitAllChildren","initialChildren","forkIn","interruptor","forkScoped","runForkWith","aborted","addEventListener","once","removeEventListener","onFiberStart","fiberRunIn","runFork","runCallbackWith","runCallback","runPromiseExitWith","Promise","resolve","runPromiseExit","runPromiseWith","runPromise","runSyncExitWith","MixedScheduler","flush","AsyncFiberError","runSyncExit","runSyncWith","runSync","succeedTrue","succeedFalse","Latch","waiters","scheduled","isOpen","scheduleUnsafe","flushWaiters","open","close","whenOpen","makeLatch","tracer","withTracer","withTracerEnabled","withTracerTiming","bigint0","BigInt","NoopSpanProto","spanId","traceId","sampled","status","startTime","endTime","attributes","links","attribute","event","addLinks","noopSpan","assign","filterDisablePropagation","DisablePropagation","getOrUndefined","makeSpanUnsafe","disablePropagation","root","timingEnabled","annotationsFromEnv","linksFromEnv","level","CurrentTraceLevel","isNone","isSome","isLogLevelGreaterThan","MinimumTraceLevel","makeSpan","makeSpanScoped","endSpan","withSpanScoped","dataFirst","withParentSpan","provideSpanStackFrame","spanAnnotations","spanLinks","linkSpans","spans","ParentSpan","provideStackFrame","captureStackTrace","withSpan","traceOptions","fnArg","annotateSpans","newAnnotations","annotateCurrentSpan","currentParentSpan","Reference","defaultValue","ClockImpl","MAX_TIMER_MILLIS","Date","currentTimeMillis","processOrPerformanceNow","currentTimeNanos","millis","handle","setTimeout","clearTimeout","performanceNowNanos","bigint1e6","performance","timeOrigin","round","origin","processHrtime","process","hrtime","bigint","TimeoutErrorTypeId","isTimeoutError","IllegalArgumentErrorTypeId","isIllegalArgumentError","IllegalArgumentError","ExceededCapacityErrorTypeId","isExceededCapacityError","ExceededCapacityError","AsyncFiberErrorTypeId","isAsyncFiberError","UnknownErrorTypeId","isUnknownError","ConsoleRef","console","logLevelToOrder","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","LogLevelOrder","mapInput","isGreaterThan","CurrentLoggers","defaultLogger","tracerLogger","LogToStderr","annotateLogsScoped","LoggerTypeId","LoggerProto","_Message","_Output","loggerMake","formatLabel","formatLogSpan","label","structuredMessage","msg","concat","logLevel","loggers","date","logger","withColor","text","colors","withColorNoop","_colors","bold","red","green","yellow","blue","cyan","white","gray","black","bgBrightRed","logLevelColors","None","All","Trace","Debug","Info","Warn","Fatal","logLevelStyle","defaultDateFormat","getHours","padStart","getMinutes","getSeconds","getMilliseconds","hasProcessStdout","stdout","processStdoutIsTTY","isTTY","hasProcessStdoutOrDeno","consolePretty","mode_","isBrowser","showColors","formatDate","prettyLoggerBrowser","prettyLoggerTty","processIsBun","isBun","color","message_","firstLine","toUpperCase","getTime","messageIndex","firstMaybeString","group","groupEnd","firstParams","groupCollapsed","redacted","spanString","undefined_","withErrorReporting","reportCauseUnsafe","defectsOnly","reporters","timestamp","reporter","report"],"sources":["../../src/internal/effect.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,GAAG,MAAM,aAAa;AAIlC,OAAO,KAAKC,OAAO,MAAM,eAAe;AACxC,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAE1C,OAAO,KAAKC,KAAK,MAAM,aAAa;AAGpC,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,SAASC,UAAU,QAAQ,iBAAiB;AAE5C,SAASC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC,cAAc,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,gBAAgB;AAC3G,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,EAAEC,eAAe,QAAQ,mBAAmB;AAC3D,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAK1C,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,KAAK,MAAM,aAAa;AACpC,SAASC,aAAa,QAAQ,gBAAgB;AAE9C,SAASC,WAAW,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,iBAAiB;AAC7E,SAASC,kBAAkB,EAAEC,MAAM,QAAQ,kBAAkB;AAE7D,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,SAAS,MAAM,iBAAiB;AAE5C,OAAO,KAAKC,MAAM,MAAM,cAAc;AAiBtC,SAASC,YAAY,QAAQ,aAAa;AAE1C,SACEC,IAAI,EACJC,aAAa,EACbC,UAAU,EACVC,gBAAgB,EAChBC,SAAS,EACTC,qBAAqB,EACrBC,KAAK,EACLC,OAAO,EACPC,KAAK,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AACtvB,IAAI,KAAK,CAAC,EAAE;EAC1B,IAAIqvB,WAAW,IAAI,CAAC7wB,OAAO,CAACkD,KAAK,CAAC,EAAE;EACpC,MAAMwe,IAAI,GAAG;IAAExe,KAAK;IAAEoH,KAAK;IAAEymB,SAAS,EAAEzmB,KAAK,CAAC7C,MAAM,CAACwX,QAAQ,CAAC,CAAC/D,sBAAsB;EAAE,CAAE;EACzF4V,SAAS,CAAChlB,OAAO,CAAEklB,QAAQ,IAAKA,QAAQ,CAACC,MAAM,CAACvP,IAAI,CAAC,CAAC;AACxD,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"effect.js","names":["Arr","Context","Duration","Equal","Filter","formatJson","constant","constFalse","constTrue","constUndefined","constVoid","dual","identity","Hash","toJson","toStringUnknown","Iterable","Option","Order","pipeArguments","hasProperty","isIterable","isString","isTagged","currentFiberTypeId","redact","Result","Scheduler","Tracer","internalCall","args","causeAnnotate","causeEmpty","causeFromReasons","CauseImpl","constEmptyAnnotations","contA","contAll","contE","evaluate","exitDie","exitFail","exitFailCause","exitSucceed","ExitTypeId","Fail","InterruptorStackTrace","isCause","isDieReason","isEffect","isFailReason","isInterruptReason","isNoSuchElementError","makePrimitive","makePrimitiveProto","NoSuchElementError","ReasonBase","StackTraceKey","CauseStackTrace","TaggedError","withFiber","Yield","doNotation","InternalMetric","CurrentConcurrency","CurrentErrorReporters","CurrentLogAnnotations","CurrentLogLevel","CurrentLogSpans","CurrentStackFrame","MinimumLogLevel","TracerEnabled","TracerSpanAnnotations","TracerSpanLinks","TracerTimingEnabled","addSpanStackTrace","makeStackCleaner","version","Interrupt","fiberId","constructor","annotations","toString","toJSON","_tag","symbol","that","combine","string","random","makeInterruptReason","causeInterrupt","hasFails","self","reasons","some","findFail","reason","find","succeed","fail","findError","i","length","error","findErrorOption","toOption","hasDies","findDie","findDefect","defect","hasInterrupts","findInterrupt","causeFilterInterruptors","interruptors","f","Set","undefined","add","causeInterruptors","result","isFailure","emptySet","success","hasInterruptsOnly","every","reasonAnnotations","makeUnsafe","causeAnnotations","map","Map","size","key","value","set","causeCombine","newCause","union","equals","causeMap","hasFail","failures","failure","causePartition","obj","Die","push","causeSquash","partitioned","globalThis","Error","causePrettyErrors","errors","interrupts","prevStackLimit","stackTraceLimit","causePrettyError","cause","name","stack","interruptCauseStack","message","original","kind","causePrettyMessage","cleanErrorStack","addStackAnnotations","Object","keys","u","prototype","Array","locationRegExp","lines","startsWith","slice","split","out","test","join","frame","get","currentStackTrace","current","locationMatchAll","matchAll","match","location","replace","parent","causePretty","e","renderErrorCause","prefix","len","FiberTypeId","fiberVariance","_A","_E","fiberIdStore","id","getCurrentFiber","FiberImpl","context","interruptible","setContext","currentOpCount","currentLoopCount","_stack","_observers","_exit","_children","_interruptedCause","_yielded","runtimeMetrics","recordFiberStart","_currentExit","currentScheduler","currentTracerContext","currentSpan","currentLogLevel","minimumLogLevel","currentStackFrame","maxOpsBeforeYield","currentPreventYield","_dispatcher","currentDispatcher","makeDispatcher","getRef","ref","getReferenceUnsafe","addObserver","cb","index","indexOf","splice","interruptUnsafe","make","failCause","pollUnsafe","effect","yielded","exit","runLoop","interruptChildren","fiberMiddleware","flatMap","recordFiberEnd","prevFiber","yielding","currentLoop","shouldYield","prev","yieldNow","String","getCont","op","pop","cont","yieldWith","children","pipe","arguments","scheduler","mapUnsafe","ParentSpanKey","MaxOpsBeforeYield","PreventSchedulerYield","FiberRuntimeMetricsKey","currentTracer","TracerKey","currentSpanLocal","fiberStackAnnotations","fiber","fiberInterruptChildren","fiberInterruptAll","fiberAwait","impl","callback","resume","sync","fiberAwaitAll","iter","Symbol","iterator","exits","cancel","loop","next","done","fiberJoin","fiberJoinAll","fibers","from","empty","cancels","failed","forEach","fiberInterrupt","fiberInterruptAs","ann","merge","asVoid","fiberInterruptAllAs","suspend","_fiber","fromOption","onNone","onSome","fromResult","onFailure","onSuccess","fromNullishOr","yieldNowWith","resumed","scheduleTask","exitVoid","succeedSome","a","succeedNone","none","failCauseSync","die","failSync","void_","void","try_","options","try","err","catch","promise","callbackOptions","signal","then","tryPromise","catcher","UnknownError","eval","withFiberId","single","register","bind","controller","AbortController","onCancel","asyncFinalizer","abort","setInterruptibleTrue","never","gen","fromIteratorUnsafe","call","fnUntraced","body","pipeables","fn","apply","defineFunctionLength","defineProperty","configurable","fnStackCleaner","nameFirst","spanOptions","prevLimit","defError","makeFn","bodyOrOptions","addSpan","callError","updateService","useSpan","span","provideParentSpan","fnUntracedEager","fromIteratorEagerUnsafe","pipeable","state","primitive","isFirstExecution","effectIsExit","as","b","_","asSome","flip","matchEffect","andThen","tap","sandbox","catchCause","raceAll","all","effects","fromIterable","doneCount","onExit","isWinner","uninterruptible","onWinner","parentFiber","forkUnsafe","delete","raceAllFirst","race","raceFirst","create","OnSuccessProto","matchCauseEffectEager","matchCauseEffect","flatMapEager","flatten","mapEager","exitMap","mapErrorEager","exitMapError","mapError","mapBothEager","exitMapBoth","mapBoth","catchEager","catch_","exitInterrupt","exitIsSuccess","exitFilterSuccess","exitFilterValue","exitIsFailure","exitFilterFailure","exitFilterCause","exitFindError","composePassthrough","exitFindDefect","exitHasInterrupts","exitHasDies","exitHasFails","exitAs","exitZipRight","exitMatch","exitAsVoid","exitAsVoidAll","exitGetSuccess","exitGetCause","exitFindErrorOption","service","serviceOption","getOption","serviceOptional","has","getUnsafe","updateContext","prevContext","nextContext","onExitPrimitive","s","getContext","contextWith","provideContext","provideService","provideServiceImpl","implementation","provideServiceEffect","acquire","withConcurrency","zip","zipWith","a2","concurrent","concurrency","filterOrFail","predicate","orFailWith","filterOrElse","when","condition","pass","replicate","n","replicateEffect","forever","whileLoop","while","disableYield","step","OnFailureProto","catchCauseIf","catchCauseFilter","filter","eb","catchNoSuchElement","catchDefect","tapCause","tapCauseIf","tapCauseFilter","tapError","tapErrorTag","k","isArray","includes","tapDefect","catchIf","orElse","catchFilter","catchTag","pred","catchTags","cases","catchReason","errorTag","reasonTag","catchReasons","unwrapReason","mapErrorCause","orDie","orElseSucceed","firstSuccessOf","eventually","ignore","log","logEffect","logWithLevel","ignoreCause","option","matchEager","OnSuccessAndFailureProto","matchCause","matchCauseEager","exitPrimitive","isSuccess","delay","duration","sleep","timeoutOrElse","timeout","TimeoutError","timeoutOption","timed","clockWith","clock","start","currentTimeNanosUnsafe","nanos","ScopeTypeId","ScopeCloseableTypeId","scopeTag","Service","scopeClose","exit_","scopeCloseUnsafe","closed","finalizers","values","scopeCloseFinalizers","arr","finalizer","strategy","scopeFork","scope","finalizerStrategy","scopeForkUnsafe","newScope","scopeMakeUnsafe","scopeAddFinalizerUnsafe","scopeRemoveFinalizerUnsafe","scopeAddFinalizerExit","scopeAddFinalizer","constScopeEmpty","scopeMake","provideScope","scoped","scopeUse","scopedWith","acquireRelease","release","uninterruptibleMask","restore","addFinalizer","eff","ensuring","onExitIf","onExitFilter","onError","onErrorIf","onErrorFilter","onInterrupt","acquireUseRelease","use","acquireDisposable","resource","asyncDispose","dispose","cachedInvalidateWithTTL","ttl","ttlMillis","toMillis","fromInputUnsafe","isFinite","Number","latch","makeLatchUnsafe","expiresAt","running","wait","await","ClockRef","now","currentTimeMillisUnsafe","closeUnsafe","openUnsafe","cachedWithTTL","timeToLive","tuple","cached","infinity","interrupt","setInterruptible","setInterruptibleFalse","interruptibleMask","abortSignal","arg","mode","discard","entries","partition","elements","results","validate","excluded","satisfying","isArrayNonEmpty","findFirst","findFirstLoop","keep","findFirstFilter","findFirstFilterLoop","iterable","concurrencyOption","POSITIVE_INFINITY","Math","max","forEachSequential","items","forEachConcurrent","iterateEagerImpl","onItem","opts","end","interrupted","terminal","go","paused","item","currentIndex","iterateEager","filterMapOrElse","filterMapOrFail","x","filterMap","filterMapEffect","Do","bindTo","let_","let","forkChild","interruptChildrenPatch","startImmediately","immediate","daemon","child","forkDetach","awaitAllChildren","initialChildren","forkIn","interruptor","forkScoped","runForkWith","aborted","addEventListener","once","removeEventListener","onFiberStart","fiberRunIn","runFork","runCallbackWith","runCallback","runPromiseExitWith","Promise","resolve","runPromiseExit","runPromiseWith","runPromise","runSyncExitWith","MixedScheduler","flush","AsyncFiberError","runSyncExit","runSyncWith","runSync","succeedTrue","succeedFalse","Latch","waiters","scheduled","isOpen","scheduleUnsafe","flushWaiters","open","close","whenOpen","makeLatch","tracer","withTracer","withTracerEnabled","withTracerTiming","bigint0","BigInt","NoopSpanProto","spanId","traceId","sampled","status","startTime","endTime","attributes","links","attribute","event","addLinks","noopSpan","assign","filterDisablePropagation","DisablePropagation","getOrUndefined","makeSpanUnsafe","disablePropagation","root","timingEnabled","annotationsFromEnv","linksFromEnv","level","CurrentTraceLevel","isNone","isSome","isLogLevelGreaterThan","MinimumTraceLevel","makeSpan","makeSpanScoped","endSpan","withSpanScoped","dataFirst","withParentSpan","provideSpanStackFrame","spanAnnotations","spanLinks","linkSpans","spans","ParentSpan","provideStackFrame","captureStackTrace","withSpan","traceOptions","fnArg","annotateSpans","newAnnotations","annotateCurrentSpan","currentParentSpan","Reference","defaultValue","ClockImpl","MAX_TIMER_MILLIS","Date","currentTimeMillis","processOrPerformanceNow","currentTimeNanos","millis","handle","setTimeout","clearTimeout","performanceNowNanos","bigint1e6","performance","timeOrigin","round","origin","processHrtime","process","hrtime","bigint","TimeoutErrorTypeId","isTimeoutError","IllegalArgumentErrorTypeId","isIllegalArgumentError","IllegalArgumentError","ExceededCapacityErrorTypeId","isExceededCapacityError","ExceededCapacityError","AsyncFiberErrorTypeId","isAsyncFiberError","UnknownErrorTypeId","isUnknownError","ConsoleRef","console","logLevelToOrder","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","LogLevelOrder","mapInput","isGreaterThan","CurrentLoggers","defaultLogger","tracerLogger","LogToStderr","annotateLogsScoped","LoggerTypeId","LoggerProto","_Message","_Output","loggerMake","formatLabel","formatLogSpan","label","structuredMessage","msg","concat","logLevel","loggers","date","logger","withColor","text","colors","withColorNoop","_colors","bold","red","green","yellow","blue","cyan","white","gray","black","bgBrightRed","logLevelColors","None","All","Trace","Debug","Info","Warn","Fatal","logLevelStyle","defaultDateFormat","getHours","padStart","getMinutes","getSeconds","getMilliseconds","consolePretty","hasProcessStdout","stdout","processStdoutIsTTY","isTTY","hasProcessStdoutOrDeno","mode_","isBrowser","showColors","formatDate","prettyLoggerBrowser","prettyLoggerTty","processIsBun","isBun","color","message_","firstLine","toUpperCase","getTime","messageIndex","firstMaybeString","group","groupEnd","firstParams","groupCollapsed","redacted","spanString","undefined_","withErrorReporting","reportCauseUnsafe","defectsOnly","reporters","timestamp","reporter","report"],"sources":["../../src/internal/effect.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,GAAG,MAAM,aAAa;AAIlC,OAAO,KAAKC,OAAO,MAAM,eAAe;AACxC,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAE1C,OAAO,KAAKC,KAAK,MAAM,aAAa;AAGpC,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,SAASC,UAAU,QAAQ,iBAAiB;AAE5C,SAASC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC,cAAc,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,gBAAgB;AAC3G,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,EAAEC,eAAe,QAAQ,mBAAmB;AAC3D,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAK1C,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,KAAK,MAAM,aAAa;AACpC,SAASC,aAAa,QAAQ,gBAAgB;AAE9C,SAASC,WAAW,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,iBAAiB;AAC7E,SAASC,kBAAkB,EAAEC,MAAM,QAAQ,kBAAkB;AAE7D,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,SAAS,MAAM,iBAAiB;AAE5C,OAAO,KAAKC,MAAM,MAAM,cAAc;AAiBtC,SAASC,YAAY,QAAQ,aAAa;AAE1C,SAC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SAAS,GAAGvmB,KAAK,CAAC7C,MAAM,CAACnK,qBAAqB,CAAC;EACrD,IAAIuzB,SAAS,CAACrvB,IAAI,KAAK,CAAC,EAAE;EAC1B,IAAIovB,WAAW,IAAI,CAAC5wB,OAAO,CAACkD,KAAK,CAAC,EAAE;EACpC,MAAMue,IAAI,GAAG;IAAEve,KAAK;IAAEoH,KAAK;IAAEwmB,SAAS,EAAExmB,KAAK,CAAC7C,MAAM,CAACuX,QAAQ,CAAC,CAAChE,sBAAsB;EAAE,CAAE;EACzF6V,SAAS,CAAC/kB,OAAO,CAAEilB,QAAQ,IAAKA,QAAQ,CAACC,MAAM,CAACvP,IAAI,CAAC,CAAC;AACxD,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/executionPlan.js b/.opencode/node_modules/effect/dist/internal/executionPlan.js index dfd865f32e79d0eb6b9bd3c51fac4d4bd9bf9c42..491425a5806aee33790423d9e741b0353c64287b 100644 --- a/.opencode/node_modules/effect/dist/internal/executionPlan.js +++ b/.opencode/node_modules/effect/dist/internal/executionPlan.js @@ -32,7 +32,7 @@ export const withExecutionPlan = /*#__PURE__*/dual(2, (self, plan) => effect.sus nextEffect = effect.suspend(() => { if (attempted) return wrapped; attempted = true; - return result.asEffect(); + return effect.fromResult(result); }); nextEffect = internalSchedule.retry(nextEffect, scheduleFromStep(step, false)); } else { @@ -45,7 +45,7 @@ export const withExecutionPlan = /*#__PURE__*/dual(2, (self, plan) => effect.sus result = result_; i++; } - }), () => result.asEffect()); + }), () => effect.fromResult(result)); })); /** @internal */ export const scheduleFromStep = (step, first) => { diff --git a/.opencode/node_modules/effect/dist/internal/executionPlan.js.map b/.opencode/node_modules/effect/dist/internal/executionPlan.js.map index c654519482ed9e4b2334680c8d945082ead5fcc2..1607db9d78cafbe01263f6e2bb1bf038bd565601 100644 --- a/.opencode/node_modules/effect/dist/internal/executionPlan.js.map +++ b/.opencode/node_modules/effect/dist/internal/executionPlan.js.map @@ -1 +1 @@ -{"version":3,"file":"executionPlan.js","names":["Api","dual","Result","Schedule","effect","internalLayer","internalSchedule","withExecutionPlan","self","plan","suspend","i","meta","attempt","stepIndex","provideMeta","provideServiceEffect","CurrentMetadata","sync","result","flatMap","whileLoop","while","steps","length","undefined","isFailure","body","step","nextEffect","provide","attempted","wrapped","asEffect","retry","scheduleFromStep","schedule","result_","first","buildFromOptions","attempts","scheduleOnce","times","recurs"],"sources":["../../src/internal/executionPlan.ts"],"sourcesContent":[null],"mappings":"AACA,OAAO,KAAKA,GAAG,MAAM,qBAAqB;AAC1C,SAASC,IAAI,QAAQ,gBAAgB;AACrC,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAC1C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,aAAa,MAAM,YAAY;AAC3C,OAAO,KAAKC,gBAAgB,MAAM,eAAe;AAEjD;AACA,OAAO,MAAMC,iBAAiB,gBA0B1BN,IAAI,CAAC,CAAC,EAAE,CACVO,IAAqB,EACrBC,IAKE,KAEFL,MAAM,CAACM,OAAO,CAAC,MAAK;EAClB,IAAIC,CAAC,GAAG,CAAC;EACT,IAAIC,IAAI,GAAiB;IACvBC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;GACZ;EACD,MAAMC,WAAW,GAAGX,MAAM,CAACY,oBAAoB,CAC7ChB,GAAG,CAACiB,eAAe,EACnBb,MAAM,CAACc,IAAI,CAAC,MAAK;IACfN,IAAI,GAAG;MACLC,OAAO,EAAED,IAAI,CAACC,OAAO,GAAG,CAAC;MACzBC,SAAS,EAAEH;KACZ;IACD,OAAOC,IAAI;EACb,CAAC,CAAC,CACH;EACD,IAAIO,MAAyC;EAC7C,OAAOf,MAAM,CAACgB,OAAO,CACnBhB,MAAM,CAACiB,SAAS,CAAC;IACfC,KAAK,EAAEA,CAAA,KAAMX,CAAC,GAAGF,IAAI,CAACc,KAAK,CAACC,MAAM,KAAKL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AAI,CAACQ,QAAQ,GAAGR,IAAI,CAACQ,QAAQ,GAAGR,IAAI,CAACY,QAAQ,GAAGf,SAAS,GAAGgB,YAAY;MAClFC,KAAK,EAAEd,IAAI,CAACY,QAAQ;MACpBlB,KAAK,EAAEM,IAAI,CAACN;KACb,CAAC;EACJ,CAAC,MAAM,IAAIM,IAAI,CAACY,QAAQ,KAAK,CAAC,IAAI,EAAEZ,IAAI,CAACQ,QAAQ,IAAIR,IAAI,CAACY,QAAQ,CAAC,EAAE;IACnE,OAAOf,SAAS;EAClB;EACA,OAAOnB,gBAAgB,CAACiC,gBAAgB,CAAC;IACvCH,QAAQ,EAAER,IAAI,CAACQ,QAAQ;IACvBd,KAAK,EAAEM,IAAI,CAACN,KAAK;IACjBoB,KAAK,EAAEd,IAAI,CAACY,QAAQ,GAAGZ,IAAI,CAACY,QAAQ,GAAG,CAAC,GAAGf;GAC5C,CAAC;AACJ,CAAC;AAED,MAAMgB,YAAY,gBAAGtC,QAAQ,CAACwC,MAAM,CAAC,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"executionPlan.js","names":["Api","dual","Result","Schedule","effect","internalLayer","internalSchedule","withExecutionPlan","self","plan","suspend","i","meta","attempt","stepIndex","provideMeta","provideServiceEffect","CurrentMetadata","sync","result","flatMap","whileLoop","while","steps","length","undefined","isFailure","body","step","nextEffect","provide","attempted","wrapped","fromResult","retry","scheduleFromStep","schedule","result_","first","buildFromOptions","attempts","scheduleOnce","times","recurs"],"sources":["../../src/internal/executionPlan.ts"],"sourcesContent":[null],"mappings":"AACA,OAAO,KAAKA,GAAG,MAAM,qBAAqB;AAC1C,SAASC,IAAI,QAAQ,gBAAgB;AACrC,OAAO,KAAKC,MAAM,MAAM,cAAc;AACtC,OAAO,KAAKC,QAAQ,MAAM,gBAAgB;AAC1C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,aAAa,MAAM,YAAY;AAC3C,OAAO,KAAKC,gBAAgB,MAA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Gf;GAC5C,CAAC;AACJ,CAAC;AAED,MAAMgB,YAAY,gBAAGtC,QAAQ,CAACwC,MAAM,CAAC,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/option.js b/.opencode/node_modules/effect/dist/internal/option.js index 01862e91f746c2301178f9a2a73f9b5506df90d8..f0bd17694a3d0e572d2422222e42ea12812493fd 100644 --- a/.opencode/node_modules/effect/dist/internal/option.js +++ b/.opencode/node_modules/effect/dist/internal/option.js @@ -6,16 +6,22 @@ import { format } from "../Formatter.js"; import * as Hash from "../Hash.js"; import { toJson } from "../Inspectable.js"; import { hasProperty } from "../Predicate.js"; -import { exitFail, exitSucceed, NoSuchElementError, PipeInspectableProto, YieldableProto } from "./core.js"; +import { SingleShotGen } from "../Utils.js"; +import { PipeInspectableProto } from "./core.js"; const TypeId = "~effect/data/Option"; const CommonProto = { [TypeId]: { _A: _ => _ }, ...PipeInspectableProto, - ...YieldableProto + [Symbol.iterator]() { + return new SingleShotGen(this); + } }; -const SomeProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonProto), { +// `valueOrUndefined` is folded into the initializer (rather than a separate +// `Object.defineProperty(SomeProto, ...)` statement) so the whole definition +// is pure-annotated by the build and tree-shakable. +const SomeProto = /*#__PURE__*/Object.defineProperty(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonProto), { _tag: "Some", _op: "Some", [Equal.symbol](that) { @@ -33,12 +39,8 @@ const SomeProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonPr _tag: this._tag, value: toJson(this.value) }; - }, - asEffect() { - return exitSucceed(this.value); } -}); -Object.defineProperty(SomeProto, "valueOrUndefined", { +}), "valueOrUndefined", { get() { return this.value; } @@ -62,9 +64,6 @@ const NoneProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonPr _id: "Option", _tag: this._tag }; - }, - asEffect() { - return exitFail(new NoSuchElementError()); } }); /** @internal */ diff --git a/.opencode/node_modules/effect/dist/internal/option.js.map b/.opencode/node_modules/effect/dist/internal/option.js.map index fec118cf2ab36fa19b42822b823443689fbb7c85..d935e866a33e3fef6fd07aa0c87ce94613c49971 100644 --- a/.opencode/node_modules/effect/dist/internal/option.js.map +++ b/.opencode/node_modules/effect/dist/internal/option.js.map @@ -1 +1 @@ -{"version":3,"file":"option.js","names":["Equal","format","Hash","toJson","hasProperty","exitFail","exitSucceed","NoSuchElementError","PipeInspectableProto","YieldableProto","TypeId","CommonProto","_A","_","SomeProto","Object","assign","create","_tag","_op","symbol","that","isOption","isSome","equals","value","combine","hash","toString","toJSON","_id","asEffect","defineProperty","get","NoneHash","NoneProto","valueOrUndefined","undefined","isNone","input","fa","none","some","a"],"sources":["../../src/internal/option.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,KAAK,MAAM,aAAa;AACpC,SAASC,MAAM,QAAQ,iBAAiB;AACxC,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,QAAQ,EAAEC,WAAW,EAAEC,kBAAkB,EAAEC,oBAAoB,EAAEC,cAAc,QAAQ,WAAW;AAE3G,MAAMC,MAAM,GAAG,qBAAqB;AAEpC,MAAMC,WAAW,GAAG;EAClB,CAACD,MAAM,GAAG;IACRE,EAAE,EAAGC,CAAQ,IAAKA;GACnB;EACD,GAAGL,oBAAoB;EACvB,GAAGC;CACJ;AAED,MAAMK,SAAS,gBAAGC,MAAM,CAACC,MAAM,cAACD,MAAM,CAACE,MAAM,CAACN,WAAW,CAAC,EAAE;EAC1DO,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,MAAM;EACX,CAACnB,KAAK,CAACoB,MAAM,EAA2BC,IAAa;IACnD,OACEC,QAAQ,CAACD,IAAI,CAAC,IAAIE,MAAM,CAACF,IAAI,CAAC,IAAIrB,KAAK,CAACwB,MAAM,CAAC,IAA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EACDC,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,QAAQ;MACbZ,IAAI,EAAE,IAAI,CAACA;KACZ;EACH,CAAC;EACDa,QAAQA,CAAA;IACN,OAAO1B,QAAQ,CAAC,IAAIE,kBAAkB,EAAE,CAAC;EAC3C;CACD,CAAC;AAEF;AACA,OAAO,MAAMe,QAAQ,GAAIiB,KAAc,IAAsCnC,WAAW,CAACmC,KAAK,EAAE7B,MAAM,CAAC;AAEvG;AACA,OAAO,MAAM4B,MAAM,GAAOE,EAAoB,IAA2BA,EAAE,CAACtB,IAAI,KAAK,MAAM;AAE3F;AACA,OAAO,MAAMK,MAAM,GAAOiB,EAAoB,IAA2BA,EAAE,CAACtB,IAAI,KAAK,MAAM;AAE3F;AACA,OAAO,MAAMuB,IAAI,gBAAyB1B,MAAM,CAACE,MAAM,CAACkB,SAAS,CAAC;AAElE;AACA,OAAO,MAAMO,IAAI,GAAOjB,KAAQ,IAAsB;EACpD,MAAMkB,CAAC,GAAG5B,MAAM,CAACE,MAAM,CAACH,SAAS,CAAC;EAClC6B,CAAC,CAAClB,KAAK,GAAGA,KAAK;EACf,OAAOkB,CAAC;AACV,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"option.js","names":["Equal","format","Hash","toJson","hasProperty","SingleShotGen","PipeInspectableProto","TypeId","CommonProto","_A","_","Symbol","iterator","SomeProto","Object","defineProperty","assign","create","_tag","_op","symbol","that","isOption","isSome","equals","value","combine","hash","toString","toJSON","_id","get","NoneHash","NoneProto","valueOrUndefined","undefined","isNone","input","fa","none","some","a"],"sources":["../../src/internal/option.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,KAAK,MAAM,aAAa;AACpC,SAASC,MAAM,QAAQ,iBAAiB;AACxC,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,aAAa,QAAQ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MAAMO,QAAQ,gBAAG9B,IAAI,CAACyB,IAAI,CAAC,MAAM,CAAC;AAClC,MAAMM,SAAS,gBAAGnB,MAAM,CAACE,MAAM,cAACF,MAAM,CAACG,MAAM,CAACT,WAAW,CAAC,EAAE;EAC1DU,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,MAAM;EACXe,gBAAgB,EAAEC,SAAS;EAC3B,CAACnC,KAAK,CAACoB,MAAM,EAA2BC,IAAa;IACnD,OAAOC,QAAQ,CAACD,IAAI,CAAC,IAAIe,MAAM,CAACf,IAAI,CAAC;EACvC,CAAC;EACD,CAACnB,IAAI,CAACkB,MAAM,IAAC;IACX,OAAOY,QAAQ;EACjB,CAAC;EACDJ,QAAQA,CAAA;IACN,OAAO,QAAQ;EACjB,CAAC;EACDC,MAAMA,CAAA;IACJ,OAAO;MACLC,GAAG,EAAE,QAAQ;MACbZ,IAAI,EAAE,IAAI,CAACA;KACZ;EACH;CACD,CAAC;AAEF;AACA,OAAO,MAAMI,QAAQ,GAAIe,KAAc,IAAsCjC,WAAW,CAACiC,KAAK,EAAE9B,MAAM,CAAC;AAEvG;AACA,OAAO,MAAM6B,MAAM,GAAOE,EAAoB,IAA2BA,EAAE,CAACpB,IAAI,KAAK,MAAM;AAE3F;AACA,OAAO,MAAMK,MAAM,GAAOe,EAAoB,IAA2BA,EAAE,CAACpB,IAAI,KAAK,MAAM;AAE3F;AACA,OAAO,MAAMqB,IAAI,gBAAyBzB,MAAM,CAACG,MAAM,CAACgB,SAAS,CAAC;AAElE;AACA,OAAO,MAAMO,IAAI,GAAOf,KAAQ,IAAsB;EACpD,MAAMgB,CAAC,GAAG3B,MAAM,CAACG,MAAM,CAACJ,SAAS,CAAC;EAClC4B,CAAC,CAAChB,KAAK,GAAGA,KAAK;EACf,OAAOgB,CAAC;AACV,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/request.js b/.opencode/node_modules/effect/dist/internal/request.js index 31cc89745957cbc4bf42cccee884953677f51c3f..9e63936887fbc5b68cea49ab0bca1e8f08ce9940 100644 --- a/.opencode/node_modules/effect/dist/internal/request.js +++ b/.opencode/node_modules/effect/dist/internal/request.js @@ -21,7 +21,7 @@ export const requestUnsafe = (self, options) => { return () => removeEntryUnsafe(options.resolver, entry); }; const batchPool = []; -const pendingBatches = /*#__PURE__*/new Map(); +const pendingBatches = /*#__PURE__*/new WeakMap(); const addEntry = (resolver, request, resume, fiber) => { let batchMap = pendingBatches.get(resolver); if (!batchMap) { @@ -71,6 +71,8 @@ const addEntry = (resolver, request, resume, fiber) => { newBatch.entrySet.clear(); newBatch.key = undefined; newBatch.fiber = undefined; + newBatch.resolver = undefined; + newBatch.map = undefined; batchPool.push(newBatch); } return effect.void; diff --git a/.opencode/node_modules/effect/dist/internal/request.js.map b/.opencode/node_modules/effect/dist/internal/request.js.map index 3385690ee9b5870a17411d7a820251dadbe03f25..3be63edfaf5a3ab6d5678a8790fe4df4f5788160 100644 --- a/.opencode/node_modules/effect/dist/internal/request.js.map +++ b/.opencode/node_modules/effect/dist/internal/request.js.map @@ -1 +1 @@ -{"version":3,"file":"request.js","names":["Context","dual","makeEntry","Scheduler","exitDie","isEffect","effect","request","self","resolver","withResolver","callback","resume","entry","addEntry","getCurrentFiber","maybeRemoveEntry","flatMap","requestUnsafe","options","onExit","context","currentScheduler","get","removeEntryUnsafe","batchPool","pendingBatches","Map","fiber","batchMap","set","batch","completed","uninterruptible","completeUnsafe","entrySet","delete","preCheck","undefined","key","batchKey","length","pop","map","newBatch","Set","entries","delayEffect","suspend","delay","_","runBatch","run","runAll","Array","from","exit","_tag","Error","cause","clear","push","void","runForkWith","scheduler","add","collectWhile","interruptUnsafe","id","size","sync","has"],"sources":["../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AACA,OAAO,KAAKA,OAAO,MAAM,eAAe;AAIxC,SAASC,IAAI,QAAQ,gBAAgB;AAErC,SAASC,SAAS,QAAQ,eAAe;AAEzC,SAASC,SAAS,QAAQ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AI,CAAC,MAAM9C,iBAAiB,CAACf,QAAQ,EAAEI,KAAK,CAAC,CAAC;AAE1D,SAASsC,QAAQA,CAACpB,KAAY;EAC5B,IAAI,CAACA,KAAK,CAACY,GAAG,CAAC4B,GAAG,CAACxC,KAAK,CAACQ,GAAG,CAAC,EAAE,OAAOjC,MAAM,CAACwD,IAAI;EACjD/B,KAAK,CAACY,GAAG,CAACP,MAAM,CAACL,KAAK,CAACQ,GAAG,CAAC;EAC3B,OAAOR,KAAK,CAACqB,GAAG;AAClB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"request.js","names":["Context","dual","makeEntry","Scheduler","exitDie","isEffect","effect","request","self","resolver","withResolver","callback","resume","entry","addEntry","getCurrentFiber","maybeRemoveEntry","flatMap","requestUnsafe","options","onExit","context","currentScheduler","get","removeEntryUnsafe","batchPool","pendingBatches","WeakMap","fiber","batchMap","Map","set","batch","completed","uninterruptible","completeUnsafe","entrySet","delete","preCheck","undefined","key","batchKey","length","pop","map","newBatch","Set","entries","delayEffect","suspend","delay","_","runBatch","run","runAll","Array","from","exit","_tag","Error","cause","clear","push","void","runForkWith","scheduler","add","collectWhile","interruptUnsafe","id","size","sync","has"],"sources":["../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AACA,OAAO,KAAKA,OAAO,MAAM,eAAe;AAIxC,SAASC,IAAI,QAAQ,gBAAgB;AAErC,SAASC,SAAS,QAAQ,eAAe;AAEzC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,OAAO,EAAEC,QAAQ,QAAQ,WAAW;AAC7C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA,OAAO,MAAMC,OAAO,gBAgBhBN,IAAI,CACN,CAAC,EACD,CACEO,IAAO,EACPC,QAAiE,KAK/D;EACF,MAAMC,YAAY,GAAID,QAA4B,IAChDH,MAAM,CAACK,QAAQ,CAIZC,MAAM,IAAI;IACX,MAAMC,KAAK,GAAGC,QAAQ,CAACL,QAAQ,EAAED,IAAI,EA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ACY,GAAG,CAACP,MAAM,CAACL,KAAK,CAACQ,GAAG,CAAC;EAC3B,OAAOR,KAAK,CAACqB,GAAG;AAClB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/result.js b/.opencode/node_modules/effect/dist/internal/result.js index aee5c12593f3b223260daad0036155c62e32c27e..09eb49fddb001437f5d228a890db988f41e4f2be 100644 --- a/.opencode/node_modules/effect/dist/internal/result.js +++ b/.opencode/node_modules/effect/dist/internal/result.js @@ -4,7 +4,8 @@ import { dual } from "../Function.js"; import * as Hash from "../Hash.js"; import { toJson } from "../Inspectable.js"; import { hasProperty } from "../Predicate.js"; -import { exitFail, exitSucceed, PipeInspectableProto, YieldableProto } from "./core.js"; +import { SingleShotGen } from "../Utils.js"; +import { PipeInspectableProto } from "./core.js"; import * as option from "./option.js"; const TypeId = "~effect/data/Result"; const CommonProto = { @@ -14,7 +15,9 @@ const CommonProto = { _E: _ => _ }, ...PipeInspectableProto, - ...YieldableProto + [Symbol.iterator]() { + return new SingleShotGen(this); + } }; const SuccessProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonProto), { _tag: "Success", @@ -34,9 +37,6 @@ const SuccessProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(Commo _tag: this._tag, value: toJson(this.success) }; - }, - asEffect() { - return exitSucceed(this.success); } }); const FailureProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(CommonProto), { @@ -57,9 +57,6 @@ const FailureProto = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(Commo _tag: this._tag, failure: toJson(this.failure) }; - }, - asEffect() { - return exitFail(this.failure); } }); /** @internal */ diff --git a/.opencode/node_modules/effect/dist/internal/result.js.map b/.opencode/node_modules/effect/dist/internal/result.js.map index a27157b6223f393fa225ed50ad5f351ece0fbf6a..9a15707eaf60bf7fddb8184c95377b806923ce51 100644 --- a/.opencode/node_modules/effect/dist/internal/result.js.map +++ b/.opencode/node_modules/effect/dist/internal/result.js.map @@ -1 +1 @@ -{"version":3,"file":"result.js","names":["Equal","format","dual","Hash","toJson","hasProperty","exitFail","exitSucceed","PipeInspectableProto","YieldableProto","option","TypeId","CommonProto","_A","_","_E","SuccessProto","Object","assign","create","_tag","_op","symbol","that","isResult","isSuccess","equals","success","combine","hash","toString","toJSON","_id","value","asEffect","FailureProto","isFailure","failure","input","result","fail","a","succeed","getFailure","self","none","some","getSuccess","fromOption","onNone","isNone"],"sources":["../../src/internal/result.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,aAAa;AACpC,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,IAAI,QAAQ,gBAAgB;AACrC,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,iBAAiB;AAE7C,SAASC,QAAQ,EAAEC,WAAW,EAAEC,oBAAoB,EAAEC,cAAc,QAAQ,WAAW;AACvF,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,MAAMC,MAAM,GAAG,qBAAqB;AAEpC,MAAMC,WAAW,GAAG;EAClB,CAACD,MAAM,GAAG;IACR;IACAE,EAAE,EAAGC,CAAQ,IAAKA,CAAC;IACnBC,EAAE,EAAGD,CAAQ,IAAKA;GACnB;EACD,GAAGN,oBAAoB;EACvB,GAAGC;CACJ;AAED,MAAMO,YAAY,gBAAGC,MAAM,CAACC,MAAM,cAACD,MAAM,CAACE,MAAM,CAACP,WAAW,CAAC,EAAE;EAC7DQ,IAAI,EAAE,SAAS;EACfC,GAAG,EAAE,SAAS;EACd,CAACrB,KAAK,CAACsB,MAAM,EAAoCC,IAAa;IAC5D,OACEC,QAAQ,CAACD,IAAI,CAAC,IAAIE,SAAS,CAACF,IAAI,CAAC,IAAIvB,KAAK,CAAC0B,MAAM,CAAC,IAAI,CAACC,OAAO,EAAEJ,IAAI,CAACI,OAAO,CAAC;EAEjF,CAAC;EACD,CAACxB,IAAI,CA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AI,CACN,CAAC,EACD,CAAO0C,IAAe,EAAEK,MAAe,KACrCvC,MAAM,CAACwC,MAAM,CAACN,IAAI,CAAC,GAAGJ,IAAI,CAACS,MAAM,EAAE,CAAC,GAAGP,OAAO,CAACE,IAAI,CAACX,KAAK,CAAC,CAC7D","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"result.js","names":["Equal","format","dual","Hash","toJson","hasProperty","SingleShotGen","PipeInspectableProto","option","TypeId","CommonProto","_A","_","_E","Symbol","iterator","SuccessProto","Object","assign","create","_tag","_op","symbol","that","isResult","isSuccess","equals","success","combine","hash","toString","toJSON","_id","value","FailureProto","isFailure","failure","input","result","fail","a","succeed","getFailure","self","none","some","getSuccess","fromOption","onNone","isNone"],"sources":["../../src/internal/result.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,aAAa;AACpC,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,IAAI,QAAQ,gBAAgB;AACrC,OAAO,KAAKC,IAAI,MAAM,YAAY;AAClC,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,iBAAiB;AAE7C,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,oBAAoB,QAAQ,WAAW;AAChD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,MAAMC,MAAM,GAAG,qBAAqB;AAEpC,MAAMC,WAAW,GAAG;EAClB,CAACD,MAAM,GAAG;IACR;IACAE,EAAE,EAAGC,CAAQ,IAAKA,CAAC;IACnBC,EAAE,EAAGD,CAAQ,IAAKA;GACnB;EACD,GAAGL,oBAAoB;EACvB,CAACO,MAAM,CAACC,QAAQ,IAAC;IACf,OAAO,IAAIT,aAAa,CAAC,IAAI,CAAC;EAChC;CACD;AAED,MAAMU,YAAY,gBAAGC,MAAM,CAACC,MAAM,cAACD,MAAM,CAACE,MAAM,CAACT,WAAW,CAAC,EAAE;EAC7DU,IAAI,EAAE,SAAS;EACfC,GAAG,EAAE,SA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AI,CAAChB,OAAO,CAAC;AAE3D;AACA,OAAO,MAAMoB,UAAU,gBAGnB7C,IAAI,CACN,CAAC,EACD,CAAOyC,IAAe,EAAEK,MAAe,KACrCxC,MAAM,CAACyC,MAAM,CAACN,IAAI,CAAC,GAAGJ,IAAI,CAACS,MAAM,EAAE,CAAC,GAAGP,OAAO,CAACE,IAAI,CAACV,KAAK,CAAC,CAC7D","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/annotations.js.map b/.opencode/node_modules/effect/dist/internal/schema/annotations.js.map index 597c87a0e8d2b19292cdef5984387cc6b507dbf0..4abfa8506f38247bee261a0ffc321c3b5bf3a5c9 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/annotations.js.map +++ b/.opencode/node_modules/effect/dist/internal/schema/annotations.js.map @@ -1 +1 @@ -{"version":3,"file":"annotations.js","names":["memoize","resolve","ast","checks","length","annotations","resolveAt","key","resolveIdentifier","resolveTitle","resolveDescription","resolveBrands","getExpected","identifier","collectBrands","undefined","Array","isArray","brands"],"sources":["../../../src/internal/schema/annotations.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAI3C;AACA,OAAM,SAAUC,OAAOA,CAACC,GAAY;EAClC,OAAOA,GAAG,CAACC,MAAM,GAAGD,GAAG,CAACC,MAAM,CAACD,GAAG,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CAACC,WAAW,GAAGH,GAAG,CAACG,WAAW;AACrF;AAEA;AACA,OAAM,SAAUC,SAASA,CAAIC,GAAW;EACtC,OAAQL,GAAY,IAAoBD,OAAO,CAACC,GAAG,CAAC,GAAGK,GAAG,CAAkB;AAC9E;AAEA;AACA,OAAO,MAAMC,iBAAiB,gBAAGF,SAAS,CAAS,YAAY,CAAC;AAEhE;AACA,OAAO,MAAMG,YAAY,gBAAGH,SAAS,CAAS,OAAO,CAAC;AAEtD;AACA,OAAO,MAAMI,kBAAkB,gBAAGJ,SAAS,CAAS,aAAa,CAAC;AAElE;AACA,OAAO,MAAMK,aAAa,gBAAGL,SAAS,CAAwB,QAAQ,CAAC;AAEvE;AACA,OAAO,MAAMM,WAAW,gBAAGZ,OAAO,CAAEE,GAAY,IAAY;EAC1D,MAAMW,UAAU,GAAGL,iBAAiB,CAACN,GAAG,CAAC;EACzC,IAAI,OAAOW,UAAU,KAAK,QAAQ,EAAE,OAAOA,UAAU;EACrD,OAAOX,GAAG,CAACU,WAAW,CAACA,WAAW,CAAC;AACrC,CAAC,CAAC;AAEF;AACA,OAAM,SAAUE,aAAaA,CAACT,WAAuD;EACnF,OAAOA,WAAW,KAAKU,SAAS,IAAIC,KAAK,CAACC,OAAO,CAACZ,WAAW,CAACa,MAAM,CAAC,GAAGb,WAAW,CAACa,MAAM,GAAG,EAAE;AACjG","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"annotations.js","names":["memoize","resolve","ast","checks","length","annotations","resolveAt","key","resolveIdentifier","resolveTitle","resolveDescription","resolveBrands","getExpected","identifier","collectBrands","undefined","Array","isArray","brands"],"sources":["../../../src/internal/schema/annotations.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAI3C;AACA,OAAM,SAAUC,OAAOA,CAACC,GAAkB;EACxC,OAAOA,GAAG,CAACC,MAAM,GAAGD,GAAG,CAACC,MAAM,CAACD,GAAG,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CAACC,WAAW,GAAGH,GAAG,CAACG,WAAW;AACrF;AAEA;AACA,OAAM,SAAUC,SAASA,CAAIC,GAAW;EACtC,OAAQL,GAAkB,IAAoBD,OAAO,CAACC,GAAG,CAAC,GAAGK,GAAG,CAAkB;AACpF;AAEA;AACA,OAAO,MAAMC,iBAAiB,gBAAGF,SAAS,CAAS,YAAY,CAAC;AAEhE;AACA,OAAO,MAAMG,YAAY,gBAAGH,SAAS,CAAS,OAAO,CAAC;AAEtD;AACA,OAAO,MAAMI,kBAAkB,gBAAGJ,SAAS,CAAS,aAAa,CAAC;AAElE;AACA,OAAO,MAAMK,aAAa,gBAAGL,SAAS,CAAwB,QAAQ,CAAC;AAEvE;AACA,OAAO,MAAMM,WAAW,gBAAGZ,OAAO,CAAEE,GAAkB,IAAY;EAChE,MAAMW,UAAU,GAAGL,iBAAiB,CAACN,GAAG,CAAC;EACzC,IAAI,OAAOW,UAAU,KAAK,QAAQ,EAAE,OAAOA,UAAU;EACrD,OAAOX,GAAG,CAACU,WAAW,CAACA,WAAW,CAAC;AACrC,CAAC,CAAC;AAEF;AACA,OAAM,SAAUE,aAAaA,CAACT,WAAuD;EACnF,OAAOA,WAAW,KAAKU,SAAS,IAAIC,KAAK,CAACC,OAAO,CAACZ,WAAW,CAACa,MAAM,CAAC,GAAGb,WAAW,CAACa,MAAM,GAAG,EAAE;AACjG","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts index a11d431d0ca5bebf41583758a0f105e1b8c717da..db82252320f2bcc87a4aea95c9cc19561862c502 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts +++ b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts @@ -1,2 +1,5 @@ -export {}; +import type * as Schema from "../../Schema.ts"; +export interface MutableReport { + readonly warnings: Array; +} //# sourceMappingURL=arbitrary.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts.map b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts.map index aaa120cb1bc818e9a01d1cc42d1982d97decfbd0..8fe548eab4e0731a312d912386e1dd6918253c16 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts.map +++ b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../src/internal/schema/arbitrary.ts"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../src/internal/schema/arbitrary.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,MAAM,iBAAiB,CAAA;AA0B9C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;CACjE"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js index 268a7336db0421e80e7ed30061d8222c62278533..47af1ed7cd11252a6e522eaf6ee20adddb6fe423 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js +++ b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js @@ -1,129 +1,430 @@ import * as Array from "../../Array.js"; import * as Boolean from "../../Boolean.js"; +import * as Equal from "../../Equal.js"; import { memoize } from "../../Function.js"; import * as Number from "../../Number.js"; import * as Option from "../../Option.js"; +import * as Order from "../../Order.js"; import * as Predicate from "../../Predicate.js"; -import * as AST from "../../SchemaAST.js"; +import * as SchemaAST from "../../SchemaAST.js"; import * as Struct from "../../Struct.js"; import * as UndefinedOr from "../../UndefinedOr.js"; import { errorWithPath } from "../errors.js"; import * as InternalAnnotations from "./annotations.js"; const arbitraryMemoMap = /*#__PURE__*/new WeakMap(); +const suspendDepthIdentifierMap = /*#__PURE__*/new WeakMap(); +const emptyRecursionStack = []; +/** @internal */ +export function makeReport() { + return { + warnings: [] + }; +} +/** @internal */ +export function toReport(report) { + return { + warnings: report.warnings.slice() + }; +} +function arbitraryError(what) { + return new Error(`Unable to derive an arbitrary for ${what}`); +} +const entryComparator = ([a], [b]) => Equal.equals(a, b); function applyChecks(ast, filters, arbitrary) { - return filters.map(filter => a => filter.run(a, ast, AST.defaultParseOptions) === undefined).reduce((acc, filter) => acc.filter(filter), arbitrary); -} -function isUniqueArrayConstraintsCustomCompare(constraint) { - return constraint?.comparator !== undefined; -} -function array(fc, ctx, item) { - const constraint = ctx.constraints?.array; - const out = isUniqueArrayConstraintsCustomCompare(constraint) ? fc.uniqueArray(item, constraint) : fc.array(item, constraint); - if (ctx.isSuspend) { - return fc.oneof({ - maxDepth: 2, - depthIdentifier: "" - }, fc.constant([]), out); + return filters.reduce((acc, filter) => acc.filter(a => filter.run(a, ast, SchemaAST.defaultParseOptions) === undefined), arbitrary); +} +function validateArrayConstraints(constraint, label) { + if (constraint?.minLength !== undefined && constraint.maxLength !== undefined && constraint.minLength > constraint.maxLength) { + throw arbitraryError(`${label} constraints`); } - return out; +} +function lengthToFastCheckConstraints(constraint) { + return constraint === undefined || constraint.minLength === undefined && constraint.maxLength === undefined ? undefined : { + ...(constraint.minLength !== undefined ? { + minLength: constraint.minLength + } : {}), + ...(constraint.maxLength !== undefined ? { + maxLength: constraint.maxLength + } : {}) + }; +} +function arrayWithConstraints(fc, item, constraint, comparator) { + return comparator ? fc.uniqueArray(item, { + ...constraint, + comparator + }) : fc.array(item, constraint); +} +function array(fc, ctx, item, terminal = false) { + const constraint = ctx.constraint; + const arrayConstraints = lengthToFastCheckConstraints(constraint); + validateArrayConstraints(arrayConstraints, "array"); + return arrayWithConstraints(fc, item, terminal ? { + ...arrayConstraints, + maxLength: arrayConstraints?.minLength ?? 0 + } : arrayConstraints, constraint?.unique ? Equal.equals : undefined); +} +function appendArray(fc, out, len, rest) { + return out.chain(as => as.length < len ? fc.constant(as) : rest.map(rest => [...as, ...rest])); +} +function appendObjectEntries(out, entries) { + return out.chain(o => entries.map(entries => ({ + ...Object.fromEntries(entries), + ...o + }))); } const max = /*#__PURE__*/UndefinedOr.makeReducer(Number.ReducerMax); const min = /*#__PURE__*/UndefinedOr.makeReducer(Number.ReducerMin); const or = /*#__PURE__*/UndefinedOr.makeReducer(Boolean.ReducerOr); const concat = /*#__PURE__*/UndefinedOr.makeReducer(/*#__PURE__*/Array.makeReducerConcat()); const combiner = /*#__PURE__*/Struct.makeCombiner({ - isInteger: or, - max: min, - maxExcluded: or, + integer: or, maxLength: min, - min: max, - minExcluded: or, minLength: max, - noDefaultInfinity: or, - noInteger: or, - noInvalidDate: or, + noInfinity: or, noNaN: or, patterns: concat, - comparator: or + unique: or, + valid: or }, { omitKeyWhen: Predicate.isUndefined }); -function merge(_tag, constraints, constraint) { - const c = constraints[_tag]; +function mergeOrderedBound(order, self, selfExclusive, that, thatExclusive, takeComparison) { + if (that === undefined || self === undefined) { + return that === undefined ? [self, selfExclusive] : [that, thatExclusive]; + } + const comparison = order(self, that); + return comparison === takeComparison ? [that, thatExclusive] : comparison === 0 ? [self, selfExclusive || thatExclusive] : [self, selfExclusive]; +} +function mergeOrderedConstraints(self, that) { + if (self === undefined) { + return that; + } + if (self.order !== that.order) { + throw new Error("Cannot merge ordered arbitrary constraints with different Order instances"); + } + const [minimum, exclusiveMinimum] = mergeOrderedBound(self.order, self.minimum, self.exclusiveMinimum, that.minimum, that.exclusiveMinimum, -1); + const [maximum, exclusiveMaximum] = mergeOrderedBound(self.order, self.maximum, self.exclusiveMaximum, that.maximum, that.exclusiveMaximum, 1); return { - ...constraints, - [_tag]: c ? combiner.combine(c, constraint) : constraint + order: self.order, + ...(minimum !== undefined ? { + minimum + } : {}), + ...(exclusiveMinimum !== undefined ? { + exclusiveMinimum + } : {}), + ...(maximum !== undefined ? { + maximum + } : {}), + ...(exclusiveMaximum !== undefined ? { + exclusiveMaximum + } : {}) }; } -const constraintsKeys = { - string: null, - number: null, - bigint: null, - array: null, - date: null -}; -function isConstraintKey(key) { - return key in constraintsKeys; +function mergeConstraint(self, that) { + const { + ordered: selfOrdered, + ...selfRest + } = self ?? {}; + const { + ordered: thatOrdered, + ...thatRest + } = that; + const ordered = thatOrdered === undefined ? selfOrdered : mergeOrderedConstraints(selfOrdered, thatOrdered); + const out = combiner.combine(selfRest, thatRest); + return { + ...out, + ...(ordered === undefined ? {} : { + ordered + }) + }; } -/** @internal */ -export function constraintContext(filters) { - const annotations = filters.map(filter => filter.annotations?.toArbitraryConstraint).filter(Predicate.isNotUndefined); - return ctx => { - const constraints = annotations.reduce((acc, c) => { - const keys = Object.keys(c); - for (const key of keys) { - if (isConstraintKey(key)) { - acc = merge(key, acc, c[key]); - } +function collectChecks(checks) { + const filters = []; + const arbitraries = []; + function visit(check) { + if (check.annotations?.arbitrary) { + arbitraries.push(check.annotations.arbitrary); + } + if (check._tag !== "Filter") { + for (const child of check.checks) { + visit(child); } - return acc; - }, ctx.constraints || {}); + } else { + filters.push(check); + } + } + checks?.forEach(visit); + return { + filters, + arbitraries + }; +} +function constraintContext(arbitraries) { + const constraintAnnotations = arbitraries.map(({ + constraint + }) => constraint).filter(Predicate.isNotUndefined); + return ctx => { + const constraint = constraintAnnotations.reduce((acc, c) => mergeConstraint(acc, c), ctx.constraint); return { ...ctx, - constraints + constraint }; }; } function resetContext(ctx) { return { ...ctx, - constraints: undefined + constraint: undefined }; } -/** @internal */ -export function getFilters(checks) { - if (checks) { - return checks.flatMap(check => { - switch (check._tag) { - case "Filter": - return [check]; - case "FilterGroup": - return getFilters(check.checks); +function objectEntriesConstraints(ast, constraint, requiredKeys) { + if (constraint === undefined || constraint.minLength === undefined && constraint.maxLength === undefined) { + return undefined; + } + if (constraint.minLength !== undefined && ast.indexSignatures.length === 0 && constraint.minLength > ast.propertySignatures.length) { + throw arbitraryError("object property constraints"); + } + const out = {}; + if (constraint.minLength !== undefined) { + out.minLength = Math.max(0, constraint.minLength - requiredKeys); + } + if (constraint.maxLength !== undefined) { + out.maxLength = constraint.maxLength - requiredKeys; + if (out.maxLength < 0) { + throw arbitraryError("object property constraints"); + } + } + validateArrayConstraints(out, "object property"); + return out; +} +function objectWithOptionalCount(fc, pss, orderedNames, requiredKeys, optionalNames, constraint) { + const requiredCount = requiredKeys.length; + if (constraint.maxLength !== undefined && constraint.maxLength < requiredCount) { + throw arbitraryError("object property constraints"); + } + const minOptional = constraint.minLength === undefined ? 0 : Math.max(0, constraint.minLength - requiredCount); + const maxOptional = constraint.maxLength === undefined ? optionalNames.length : Math.min(optionalNames.length, constraint.maxLength - requiredCount); + if (minOptional > maxOptional) { + throw arbitraryError("object property constraints"); + } + const full = fc.record(pss, { + requiredKeys: [...requiredKeys, ...optionalNames] + }); + const chosen = fc.shuffledSubarray([...optionalNames], { + minLength: minOptional, + maxLength: maxOptional + }); + return fc.tuple(full, chosen).map(([base, names]) => { + const keep = new Set([...requiredKeys, ...names]); + const out = {}; + for (const name of orderedNames) { + if (keep.has(name)) { + out[name] = base[name]; + } + } + return out; + }); +} +function toRangeConstraints(ordered, min, max, error) { + const out = {}; + if (ordered?.minimum !== undefined) { + out.min = min(ordered.minimum, ordered.exclusiveMinimum === true); + } + if (ordered?.maximum !== undefined) { + out.max = max(ordered.maximum, ordered.exclusiveMaximum === true); + } + if (out.min !== undefined && out.max !== undefined && out.min > out.max) { + throw arbitraryError(error); + } + return out; +} +function toIntegerConstraints(ordered) { + return toRangeConstraints(ordered, (minimum, excluded) => excluded ? Math.floor(minimum) + 1 : Math.ceil(minimum), (maximum, excluded) => excluded ? Math.ceil(maximum) - 1 : Math.floor(maximum), "integer constraints"); +} +function toFloatConstraints(constraint, ordered) { + const out = { + ...(constraint?.noInfinity ? { + noDefaultInfinity: true + } : {}), + ...(constraint?.noNaN ? { + noNaN: true + } : {}), + ...(ordered?.minimum !== undefined ? { + min: ordered.minimum + } : {}), + ...(ordered?.exclusiveMinimum !== undefined ? { + minExcluded: ordered.exclusiveMinimum + } : {}), + ...(ordered?.maximum !== undefined ? { + max: ordered.maximum + } : {}), + ...(ordered?.exclusiveMaximum !== undefined ? { + maxExcluded: ordered.exclusiveMaximum + } : {}) + }; + if (out.min !== undefined && out.max !== undefined && (out.min > out.max || out.min === out.max && (out.minExcluded || out.maxExcluded))) { + throw arbitraryError("number constraints"); + } + return out; +} +function toBigIntConstraints(ordered) { + return toRangeConstraints(ordered, (minimum, excluded) => excluded ? minimum + BigInt(1) : minimum, (maximum, excluded) => excluded ? maximum - BigInt(1) : maximum, "the ordered bigint constraints"); +} +function makeLazy(normal, terminal) { + const out = (fc, ctx, recursionStack = emptyRecursionStack) => normal(fc, ctx, recursionStack); + out.terminal = (fc, ctx, recursionStack = emptyRecursionStack) => terminal(fc, ctx, recursionStack); + return out; +} +function same(f) { + return makeLazy(f, f); +} +function getSuspendRecursion(fc, ast) { + const depthIdentifier = suspendDepthIdentifierMap.get(ast) ?? fc.createDepthIdentifier(); + suspendDepthIdentifierMap.set(ast, depthIdentifier); + return { + maxDepth: 2, + depthIdentifier + }; +} +function oneOf(fc, arbitraries) { + return arbitraries.length === 0 ? undefined : arbitraries.length === 1 ? arbitraries[0] : fc.oneof(...arbitraries); +} +function reportChecks(report, checks, path) { + function visit(check, covered) { + const arbitrary = check.annotations?.arbitrary; + const nextCovered = covered || arbitrary?.constraint !== undefined || arbitrary?.candidate !== undefined; + if (check._tag !== "Filter") { + for (const child of check.checks) { + visit(child, nextCovered); } + } else if (!nextCovered) { + const meta = check.annotations?.meta; + const description = typeof meta === "object" && meta !== null && "_tag" in meta && typeof meta._tag === "string" ? meta._tag : check.annotations?.identifier ?? check.annotations?.expected; + report.warnings.push({ + _tag: "OpaqueFilter", + path, + ...(description === undefined ? {} : { + description + }) + }); + } + } + checks?.forEach(check => visit(check, false)); +} +/** @internal */ +export function collectReport(ast, report) { + const stack = new WeakSet(); + function visit(ast, path) { + if (stack.has(ast)) { + return; + } + stack.add(ast); + reportChecks(report, ast.checks, path); + switch (ast._tag) { + case "Declaration": + ast.typeParameters.forEach(tp => visit(tp, path)); + break; + case "Arrays": + { + for (const [i, type] of [...ast.elements, ...ast.rest].entries()) { + visit(type, [...path, i]); + } + break; + } + case "Objects": + ast.propertySignatures.forEach(ps => visit(ps.type, [...path, ps.name])); + ast.indexSignatures.forEach(is => { + visit(is.parameter, path); + visit(is.type, path); + }); + break; + case "Union": + ast.types.forEach(type => visit(type, path)); + break; + case "Suspend": + visit(ast.thunk(), path); + break; + } + stack.delete(ast); + } + visit(ast, []); +} +function applyCandidates(fc, ctx, arbitraries, base) { + const weighted = base === undefined ? [] : [{ + arbitrary: base, + weight: 1 + }]; + for (const { + candidate + } of arbitraries) { + if (!candidate) { + continue; + } + const arbitrary = candidate.make(fc, ctx); + if (arbitrary === undefined) { + continue; + } + const weight = candidate.weight ?? 1; + if (!globalThis.Number.isInteger(weight) || weight <= 0) { + throw arbitraryError("a candidate with an invalid weight"); + } + weighted.push({ + arbitrary, + weight }); } - return []; + return weighted.length === 0 ? undefined : weighted.length === 1 ? weighted[0].arbitrary : fc.oneof(...weighted); +} +function applyFilterLayer(ast, checks, fc, ctx, base) { + const out = applyCandidates(fc, ctx, checks.arbitraries, base); + return out === undefined ? undefined : applyChecks(ast, checks.filters, out); +} +function normalizeDerivation(output, hasTypeParameters) { + if (!(typeof output === "object" && output !== null && "arbitrary" in output)) { + return { + arbitrary: output, + terminal: hasTypeParameters ? undefined : output + }; + } + const terminal = "terminal" in output ? output.terminal : hasTypeParameters ? undefined : output.arbitrary; + return { + arbitrary: output.arbitrary, + terminal + }; +} +function makeTypeParameters(typeParameters, fc, ctx, recursionStack, lazyNormal) { + return typeParameters.map(tp => ({ + arbitrary: lazyNormal ? fc.constant(null).chain(() => tp(fc, ctx, recursionStack)) : tp(fc, ctx, recursionStack), + terminal: tp.terminal(fc, ctx, recursionStack) + })); +} +function filterLayer(ast, checks, normalBase, terminalBase) { + const f = constraintContext(checks.arbitraries); + return makeLazy((fc, ctx, recursionStack) => { + const nextCtx = f(ctx); + return applyFilterLayer(ast, checks, fc, nextCtx, normalBase(fc, ctx, nextCtx, recursionStack)); + }, (fc, ctx, recursionStack) => { + const nextCtx = f(ctx); + return applyFilterLayer(ast, checks, fc, nextCtx, terminalBase(fc, ctx, nextCtx, recursionStack)); + }); } /** @internal */ -export const memoized = /*#__PURE__*/memoize(ast => { - return recur(ast, []); -}); +export const memoized = /*#__PURE__*/memoize(ast => recur(ast, [])); function recur(ast, path) { // --------------------------------------------- - // handle Override annotation + // handle annotations // --------------------------------------------- const annotation = InternalAnnotations.resolve(ast)?.toArbitrary; if (annotation) { - const typeParameters = AST.isDeclaration(ast) ? ast.typeParameters.map(tp => recur(tp, path)) : []; - const filters = getFilters(ast.checks); - const f = constraintContext(filters); - return (fc, ctx) => applyChecks(ast, filters, annotation(typeParameters.map(tp => tp(fc, resetContext(ctx))))(fc, f(ctx))); + const typeParameters = SchemaAST.isDeclaration(ast) ? ast.typeParameters.map(tp => recur(tp, path)) : []; + const checks = collectChecks(ast.checks); + const derive = lazyNormal => (fc, ctx, nextCtx, recursionStack) => normalizeDerivation(annotation(makeTypeParameters(typeParameters, fc, resetContext(ctx), recursionStack, lazyNormal))(fc, nextCtx), typeParameters.length > 0)[lazyNormal ? "terminal" : "arbitrary"]; + return filterLayer(ast, checks, derive(false), derive(true)); } if (ast.checks) { - const filters = getFilters(ast.checks); - const f = constraintContext(filters); - const lawc = recur(AST.replaceChecks(ast, undefined), path); - return (fc, ctx) => applyChecks(ast, filters, lawc(fc, f(ctx))); + const checks = collectChecks(ast.checks); + const lawc = recur(SchemaAST.replaceChecks(ast, undefined), path); + return filterLayer(ast, checks, (fc, _ctx, nextCtx, recursionStack) => lawc(fc, nextCtx, recursionStack), (fc, _ctx, nextCtx, recursionStack) => lawc.terminal(fc, nextCtx, recursionStack)); } return base(ast, path); } @@ -133,134 +434,328 @@ function base(ast, path) { case "Declaration": throw errorWithPath(`Unsupported AST ${ast._tag}`, path); case "Null": - return fc => fc.constant(null); + return same(fc => fc.constant(null)); case "Void": case "Undefined": - return fc => fc.constant(undefined); + return same(fc => fc.constant(undefined)); case "Unknown": case "Any": - return fc => fc.anything(); + return same(fc => fc.anything()); case "String": - return (fc, ctx) => { - const constraint = ctx.constraints?.string; + return same((fc, ctx) => { + const constraint = ctx.constraint; const patterns = constraint?.patterns; - if (patterns) { - return fc.oneof(...patterns.map(pattern => fc.stringMatching(new RegExp(pattern)))); - } - return fc.string(constraint); - }; + return patterns ? fc.oneof(...patterns.map(pattern => fc.stringMatching(new RegExp(pattern)))) : fc.string(lengthToFastCheckConstraints(constraint)); + }); case "Number": - return (fc, ctx) => { - const constraint = ctx.constraints?.number; - if (constraint?.isInteger) { - return fc.integer(constraint); - } - return fc.float(constraint); - }; + return same((fc, ctx) => { + const constraint = ctx.constraint; + const ordered = constraint?.ordered?.order === Order.Number ? constraint.ordered : undefined; + return constraint?.integer ? fc.integer(toIntegerConstraints(ordered)) : fc.float(toFloatConstraints(constraint, ordered)); + }); case "Boolean": - return fc => fc.boolean(); + return same(fc => fc.boolean()); case "BigInt": - return (fc, ctx) => fc.bigInt(ctx.constraints?.bigint ?? {}); + return same((fc, ctx) => { + const ordered = ctx.constraint?.ordered?.order === Order.BigInt ? ctx.constraint.ordered : undefined; + return fc.bigInt(toBigIntConstraints(ordered)); + }); case "Symbol": - return fc => fc.string().map(Symbol.for); + return same(fc => fc.string().map(Symbol.for)); case "Literal": - return fc => fc.constant(ast.literal); + return same(fc => fc.constant(ast.literal)); case "UniqueSymbol": - return fc => fc.constant(ast.symbol); + return same(fc => fc.constant(ast.symbol)); case "ObjectKeyword": - return fc => fc.oneof(fc.object(), fc.array(fc.anything())); + return same(fc => fc.oneof(fc.object(), fc.array(fc.anything()))); case "Enum": - return recur(AST.enumsToLiterals(ast), path); + return recur(SchemaAST.enumsToLiterals(ast), path); case "TemplateLiteral": - return fc => fc.stringMatching(AST.getTemplateLiteralRegExp(ast)); + return same(fc => fc.stringMatching(SchemaAST.getTemplateLiteralRegExp(ast))); case "Arrays": - return (fc, ctx) => { - const reset = resetContext(ctx); - // --------------------------------------------- - // handle elements - // --------------------------------------------- - const elements = ast.elements.map((e, i) => { - const out = recur(e, [...path, i])(fc, reset); - if (!AST.isOptional(e)) { - return out.map(Option.some); + { + const elements = ast.elements.map((ast, i) => ({ + ast, + arbitrary: recur(ast, [...path, i]) + })); + const len = ast.elements.length; + const rest = ast.rest.map((ast, i) => ({ + ast, + arbitrary: recur(ast, [...path, len + i]) + })); + const terminal = (fc, ctx, recursionStack) => { + const reset = resetContext(ctx); + const elementArbitraries = []; + const optionals = []; + let length = 0; + for (const element of elements) { + const out = element.arbitrary.terminal(fc, reset, recursionStack); + if (SchemaAST.isOptional(element.ast)) { + optionals.push(out); + continue; + } + if (out === undefined) { + return undefined; + } + length++; + elementArbitraries.push(out.map(Option.some)); } - return out.chain(a => fc.boolean().map(b => b ? Option.some(a) : Option.none())); - }); - let out = fc.tuple(...elements).map(Array.getSomes); - // --------------------------------------------- - // handle rest element - // --------------------------------------------- - if (Array.isReadonlyArrayNonEmpty(ast.rest)) { - const len = ast.elements.length; - const [head, ...tail] = ast.rest.map((r, i) => recur(r, [...path, len + i])(fc, reset)); - const rest = array(fc, ast.elements.length === 0 ? ctx : reset, head); - out = out.chain(as => { - if (as.length < len) { - return fc.constant(as); + const minLength = ctx.constraint?.minLength ?? 0; + const needsRest = Array.isReadonlyArrayNonEmpty(rest) && minLength > length + optionals.length; + const optionalTarget = needsRest ? optionals.length : Math.max(0, minLength - length); + let includedOptionals = 0; + for (const out of optionals) { + if (includedOptionals >= optionalTarget || out === undefined) { + elementArbitraries.push(fc.constant(Option.none())); + continue; } - return rest.map(rest => [...as, ...rest]); + includedOptionals++; + length++; + elementArbitraries.push(out.map(Option.some)); + } + if (includedOptionals < optionalTarget) { + return undefined; + } + let out = fc.tuple(...elementArbitraries).map(Array.getSomes); + if (Array.isReadonlyArrayNonEmpty(rest)) { + const [head, ...tail] = rest; + const restCtx = ast.elements.length === 0 ? ctx : reset; + const minRestLength = Math.max(0, minLength - length - tail.length); + const headArbitrary = minRestLength === 0 ? undefined : head.arbitrary.terminal(fc, reset, recursionStack); + if (minRestLength > 0 && headArbitrary === undefined) { + return undefined; + } + const restArbitrary = minRestLength === 0 ? fc.constant([]) : array(fc, { + ...restCtx, + constraint: { + ...restCtx.constraint, + minLength: minRestLength + } + }, headArbitrary, true); + out = appendArray(fc, out, len, restArbitrary); + if (tail.length > 0) { + const tailArbitraries = []; + for (const element of tail) { + const out = element.arbitrary.terminal(fc, reset, recursionStack); + if (out === undefined) { + return undefined; + } + tailArbitraries.push(out); + } + const t = fc.tuple(...tailArbitraries); + out = appendArray(fc, out, len, t); + } + } + return out; + }; + return makeLazy((fc, ctx, recursionStack) => { + const reset = resetContext(ctx); + // --------------------------------------------- + // handle elements + // --------------------------------------------- + const elementArbitraries = elements.map(({ + ast, + arbitrary + }) => { + const out = arbitrary(fc, reset, recursionStack); + return SchemaAST.isOptional(ast) ? out.chain(a => fc.boolean().map(b => b ? Option.some(a) : Option.none())) : out.map(Option.some); }); + let out = fc.tuple(...elementArbitraries).map(Array.getSomes); // --------------------------------------------- - // handle post rest elements + // handle rest element // --------------------------------------------- - if (tail.length > 0) { - const t = fc.tuple(...tail); - out = out.chain(as => { - if (as.length < len) { - return fc.constant(as); - } - return t.map(rest => [...as, ...rest]); - }); + if (Array.isReadonlyArrayNonEmpty(rest)) { + const [head, ...tail] = rest.map(({ + arbitrary + }) => arbitrary(fc, reset, recursionStack)); + const restArbitrary = array(fc, ast.elements.length === 0 ? ctx : reset, head); + out = appendArray(fc, out, len, restArbitrary); + // --------------------------------------------- + // handle post rest elements + // --------------------------------------------- + if (tail.length > 0) { + const t = fc.tuple(...tail); + out = appendArray(fc, out, len, t); + } } - } - return out; - }; + if (ctx.recursion) { + const terminalOut = terminal(fc, ctx, recursionStack); + if (terminalOut !== undefined) { + return fc.oneof(ctx.recursion, terminalOut, out); + } + } + return out; + }, terminal); + } case "Objects": - return (fc, ctx) => { - const reset = resetContext(ctx); - // --------------------------------------------- - // handle property signatures - // --------------------------------------------- - const pss = {}; - const requiredKeys = []; - for (const ps of ast.propertySignatures) { - const name = ps.name; - if (!AST.isOptional(ps.type)) { + { + const propertySignatures = ast.propertySignatures.map(ps => ({ + ps, + arbitrary: recur(ps.type, [...path, ps.name]) + })); + const indexSignatures = ast.indexSignatures.map(is => ({ + is, + parameter: recur(is.parameter, path), + type: recur(is.type, path) + })); + const terminal = (fc, ctx, recursionStack) => { + const reset = resetContext(ctx); + const pss = {}; + const requiredKeys = []; + const optionals = []; + for (const { + ps, + arbitrary + } of propertySignatures) { + const name = ps.name; + const out = arbitrary.terminal(fc, reset, recursionStack); + if (SchemaAST.isOptional(ps.type)) { + if (out !== undefined) { + optionals.push([name, out]); + } + continue; + } + if (out === undefined) { + return undefined; + } requiredKeys.push(name); + pss[name] = out; } - pss[name] = recur(ps.type, [...path, name])(fc, reset); - } - let out = fc.record(pss, { - requiredKeys - }); - // --------------------------------------------- - // handle index signatures - // --------------------------------------------- - for (const is of ast.indexSignatures) { - const entry = fc.tuple(recur(is.parameter, path)(fc, reset), recur(is.type, path)(fc, reset)); - const entries = array(fc, ast.propertySignatures.length === 0 ? ctx : reset, entry); - out = out.chain(o => { - return entries.map(entries => { - return { - ...Object.fromEntries(entries), - ...o - }; - }); + let optionalCount = Math.max(0, (ctx.constraint?.minLength ?? 0) - requiredKeys.length); + for (const [name, out] of optionals) { + if (optionalCount === 0) { + break; + } + optionalCount--; + requiredKeys.push(name); + pss[name] = out; + } + if (optionalCount > 0 && ast.indexSignatures.length === 0) { + return undefined; + } + let out = fc.record(pss, { + requiredKeys }); - } - return out; - }; + const entriesConstraints = objectEntriesConstraints(ast, ctx.constraint, requiredKeys.length); + const minEntries = entriesConstraints?.minLength ?? 0; + for (const { + parameter, + type + } of indexSignatures) { + let entries; + if (minEntries === 0) { + entries = fc.constant([]); + } else { + const key = parameter.terminal(fc, reset, recursionStack); + const value = type.terminal(fc, reset, recursionStack); + if (key === undefined || value === undefined) { + return undefined; + } + entries = arrayWithConstraints(fc, fc.tuple(key, value), { + ...entriesConstraints, + maxLength: minEntries + }, entryComparator); + } + out = appendObjectEntries(out, entries); + } + return out; + }; + return makeLazy((fc, ctx, recursionStack) => { + const reset = resetContext(ctx); + // --------------------------------------------- + // handle property signatures + // --------------------------------------------- + const pss = {}; + const orderedNames = []; + const requiredKeys = []; + const optionalNames = []; + for (const { + ps, + arbitrary + } of propertySignatures) { + const name = ps.name; + orderedNames.push(name); + if (SchemaAST.isOptional(ps.type)) { + optionalNames.push(name); + } else { + requiredKeys.push(name); + } + pss[name] = arbitrary(fc, reset, recursionStack); + } + // When property-count constraints must be satisfied by selecting + // optional keys (no index signatures are available to fill the gap), + // generate a count-controlled subset of optional keys instead of + // relying on fast-check's independent inclusion plus discards. This + // enforces both bounds precisely while still varying which optionals + // appear. + const constraint = ctx.constraint; + if (optionalNames.length > 0 && indexSignatures.length === 0 && constraint !== undefined && (constraint.minLength !== undefined || constraint.maxLength !== undefined)) { + return objectWithOptionalCount(fc, pss, orderedNames, requiredKeys, optionalNames, constraint); + } + let out = fc.record(pss, { + requiredKeys + }); + const entriesConstraints = objectEntriesConstraints(ast, ctx.constraint, requiredKeys.length); + // --------------------------------------------- + // handle index signatures + // --------------------------------------------- + for (const { + parameter, + type + } of indexSignatures) { + const entry = fc.tuple(parameter(fc, reset, recursionStack), type(fc, reset, recursionStack)); + const entries = arrayWithConstraints(fc, entry, entriesConstraints, entryComparator); + out = appendObjectEntries(out, entries); + } + return out; + }, terminal); + } case "Union": - return (fc, ctx) => fc.oneof(...ast.types.map(ast => recur(ast, path)(fc, ctx))); + { + const types = ast.types.map(ast => recur(ast, path)); + const terminal = (fc, ctx, recursionStack) => oneOf(fc, types.map(type => type.terminal(fc, ctx, recursionStack)).filter(Predicate.isNotUndefined)); + return makeLazy((fc, ctx, recursionStack) => { + const arbitraries = types.map(type => type(fc, ctx, recursionStack)); + if (ctx.recursion) { + const terminalOut = terminal(fc, ctx, recursionStack); + if (terminalOut !== undefined) { + return fc.oneof(ctx.recursion, terminalOut, ...arbitraries); + } + } + const out = oneOf(fc, arbitraries); + if (out === undefined) { + throw arbitraryError("a union with no members"); + } + return out; + }, terminal); + } case "Suspend": { const memo = arbitraryMemoMap.get(ast); if (memo) return memo; - const get = AST.memoizeThunk(() => recur(ast.thunk(), path)); - const out = (fc, ctx) => fc.constant(null).chain(() => get()(fc, { - ...ctx, - isSuspend: true - })); + const get = SchemaAST.memoizeThunk(() => recur(ast.thunk(), path)); + const out = makeLazy((fc, ctx, recursionStack) => { + const recursion = getSuspendRecursion(fc, ast); + const nextCtx = { + ...ctx, + recursion + }; + const nextStack = recursionStack.includes(ast) ? recursionStack : [...recursionStack, ast]; + const terminal = get().terminal(fc, nextCtx, nextStack); + if (terminal === undefined) { + throw errorWithPath("Unable to derive an arbitrary for a recursive schema without a finite generation path", path); + } + return fc.oneof(recursion, terminal, fc.constant(null).chain(() => get()(fc, nextCtx, nextStack))); + }, (fc, ctx, recursionStack) => { + if (recursionStack.includes(ast)) { + return undefined; + } + const recursion = getSuspendRecursion(fc, ast); + return get().terminal(fc, { + ...ctx, + recursion + }, [...recursionStack, ast]); + }); arbitraryMemoMap.set(ast, out); return out; } diff --git a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js.map b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js.map index a22e7ad282ac717e8d7c42616500981ffdb006ba..c358c01f74537e4e4cdfd71a1969cd7a49959cea 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js.map +++ b/.opencode/node_modules/effect/dist/internal/schema/arbitrary.js.map @@ -1 +1 @@ -{"version":3,"file":"arbitrary.js","names":["Array","Boolean","memoize","Number","Option","Predicate","AST","Struct","UndefinedOr","errorWithPath","InternalAnnotations","arbitraryMemoMap","WeakMap","applyChecks","ast","filters","arbitrary","map","filter","a","run","defaultParseOptions","undefined","reduce","acc","isUniqueArrayConstraintsCustomCompare","constraint","comparator","array","fc","ctx","item","constraints","out","uniqueArray","isSuspend","oneof","maxDepth","depthIdentifier","constant","max","makeReducer","ReducerMax","min","ReducerMin","or","ReducerOr","concat","makeReducerConcat","combiner","makeCombiner","isInteger","maxExcluded","maxLength","minExcluded","minLength","noDefaultInfinity","noInteger","noInvalidDate","noNaN","patterns","omitKeyWhen","isUndefined","merge","_tag","c","combine","constraintsKeys","string","number","bigint","date","isConstraintKey","key","constraintContext","annotations","toArbitraryConstraint","isNotUndefined","keys","Object","resetContext","getFilters","checks","flatMap","check","memoized","recur","path","annotation","resolve","toArbitrary","typeParameters","isDeclaration","tp","f","lawc","replaceChecks","base","anything","pattern","stringMatching","RegExp","integer","float","boolean","bigInt","Symbol","for","literal","symbol","object","enumsToLiterals","getTemplateLiteralRegExp","reset","elements","e","i","isOptional","some","chain","b","none","tuple","getSomes","isReadonlyArrayNonEmpty","rest","len","length","head","tail","r","as","t","pss","requiredKeys","ps","propertySignatures","name","type","push","record","is","indexSignatures","entry","parameter","entries","o","fromEntries","types","memo","get","memoizeThunk","thunk","set"],"sources":["../../../src/internal/schema/arbitrary.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,gBAAgB;AACvC,OAAO,KAAKC,OAAO,MAAM,kBAAkB;AAE3C,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AACzC,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AACzC,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAE/C,OAAO,KAAKC,GAAG,MAAM,oBAAoB;AACzC,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AAE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,CAACxE,GAAG,CAAC0I,KAAK,EAAE,EAAEjE,IAAI,CAAC,CAAC;QAC5D,MAAMtD,GAAG,GAAkCA,CAACJ,EAAE,EAAEC,GAAG,KACjDD,EAAE,CAACU,QAAQ,CAAC,IAAI,CAAC,CAACgF,KAAK,CAAC,MAAM+B,GAAG,EAAE,CAACzH,EAAE,EAAE;UAAE,GAAGC,GAAG;UAAEK,SAAS,EAAE;QAAI,CAAE,CAAC,CAAC;QAEvExB,gBAAgB,CAAC8I,GAAG,CAAC3I,GAAG,EAAEmB,GAAG,CAAC;QAE9B,OAAOA,GAAG;MACZ;EACF;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"arbitrary.js","names":["Array","Boolean","Equal","memoize","Number","Option","Order","Predicate","SchemaAST","Struct","UndefinedOr","errorWithPath","InternalAnnotations","arbitraryMemoMap","WeakMap","suspendDepthIdentifierMap","emptyRecursionStack","makeReport","warnings","toReport","report","slice","arbitraryError","what","Error","entryComparator","a","b","equals","applyChecks","ast","filters","arbitrary","reduce","acc","filter","run","defaultParseOptions","undefined","validateArrayConstraints","constraint","label","minLength","maxLength","lengthToFastCheckConstraints","arrayWithConstraints","fc","item","comparator","uniqueArray","array","ctx","terminal","arrayConstraints","unique","appendArray","out","len","rest","chain","as","length","constant","map","appendObjectEntries","entries","o","Object","fromEntries","max","makeReducer","ReducerMax","min","ReducerMin","or","ReducerOr","concat","makeReducerConcat","combiner","makeCombiner","integer","noInfinity","noNaN","patterns","valid","omitKeyWhen","isUndefined","mergeOrderedBound","order","self","selfExclusive","that","thatExclusive","takeComparison","comparison","mergeOrderedConstraints","minimum","exclusiveMinimum","maximum","exclusiveMaximum","mergeConstraint","ordered","selfOrdered","selfRest","thatOrdered","thatRest","combine","collectChecks","checks","arbitraries","visit","check","annotations","push","_tag","child","forEach","constraintContext","constraintAnnotations","isNotUndefined","c","resetContext","objectEntriesConstraints","requiredKeys","indexSignatures","propertySignatures","Math","objectWithOptionalCount","pss","orderedNames","optionalNames","requiredCount","minOptional","maxOptional","full","record","chosen","shuffledSubarray","tuple","base","names","keep","Set","name","has","toRangeConstraints","error","toIntegerConstraints","excluded","floor","ceil","toFloatConstraints","noDefaultInfinity","minExcluded","maxExcluded","toBigIntConstraints","BigInt","makeLazy","normal","recursionStack","same","f","getSuspendRecursion","depthIdentifier","get","createDepthIdentifier","set","maxDepth","oneOf","oneof","reportChecks","path","covered","nextCovered","candidate","meta","description","identifier","expected","collectReport","stack","WeakSet","add","typeParameters","tp","i","type","elements","ps","is","parameter","types","thunk","delete","applyCandidates","weighted","weight","make","globalThis","isInteger","applyFilterLayer","normalizeDerivation","output","hasTypeParameters","makeTypeParameters","lazyNormal","filterLayer","normalBase","terminalBase","nextCtx","memoized","recur","annotation","resolve","toArbitrary","isDeclaration","derive","lawc","replaceChecks","_ctx","anything","pattern","stringMatching","RegExp","string","float","boolean","bigInt","Symbol","for","literal","symbol","object","enumsToLiterals","getTemplateLiteralRegExp","reset","elementArbitraries","optionals","element","isOptional","some","needsRest","isReadonlyArrayNonEmpty","optionalTarget","includedOptionals","none","getSomes","head","tail","restCtx","minRestLength","headArbitrary","restArbitrary","tailArbitraries","t","recursion","terminalOut","optionalCount","entriesConstraints","minEntries","key","value","entry","memo","memoizeThunk","nextStack","includes"],"sources":["../../../src/internal/schema/arbitrary.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,gBAAgB;AACvC,OAAO,KAAKC,OAAO,MAAM,kBAAkB;AAE3C,OAAO,KAAKC,KAAK,MAAM,gBAAgB;AACvC,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AACzC,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AACzC,OAAO,KAAKC,KAAK,MAAM,gBAAgB;AACvC,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAE/C,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAC/C,OAAO,KAAKC,MAAM,MAAM,iBAAi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;EACF;AACF","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/equivalence.js b/.opencode/node_modules/effect/dist/internal/schema/equivalence.js index b24590dff12596670e3a5953451544988fa55964..d526ba31804e7591427c159b2803e7c0335f6513 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/equivalence.js +++ b/.opencode/node_modules/effect/dist/internal/schema/equivalence.js @@ -2,8 +2,8 @@ import * as Equal from "../../Equal.js"; import * as Equivalence from "../../Equivalence.js"; import { memoize } from "../../Function.js"; import * as Predicate from "../../Predicate.js"; -import * as AST from "../../SchemaAST.js"; -import * as Parser from "../../SchemaParser.js"; +import * as SchemaAST from "../../SchemaAST.js"; +import * as SchemaParser from "../../SchemaParser.js"; import { errorWithPath } from "../errors.js"; import * as InternalAnnotations from "./annotations.js"; /** @internal */ @@ -16,7 +16,7 @@ function recur(ast, path) { // --------------------------------------------- const annotation = InternalAnnotations.resolve(ast)?.["toEquivalence"]; if (annotation) { - return annotation(AST.isDeclaration(ast) ? ast.typeParameters.map(tp => recur(tp, path)) : []); + return annotation(SchemaAST.isDeclaration(ast) ? ast.typeParameters.map(tp => recur(tp, path)) : []); } switch (ast._tag) { case "Never": @@ -102,7 +102,7 @@ function recur(ast, path) { const name = ps.name; const aHas = Object.hasOwn(a, name); const bHas = Object.hasOwn(b, name); - if (AST.isOptional(ps.type)) { + if (SchemaAST.isOptional(ps.type)) { if (aHas !== bHas) { return false; } @@ -116,8 +116,8 @@ function recur(ast, path) { // --------------------------------------------- for (let i = 0; i < indexSignatures.length; i++) { const is = ast.indexSignatures[i]; - const aKeys = AST.getIndexSignatureKeys(a, is.parameter); - const bKeys = AST.getIndexSignatureKeys(b, is.parameter); + const aKeys = SchemaAST.getIndexSignatureKeys(a, is.parameter); + const bKeys = SchemaAST.getIndexSignatureKeys(b, is.parameter); if (aKeys.length !== bKeys.length) return false; for (let j = 0; j < aKeys.length; j++) { const key = aKeys[j]; @@ -131,8 +131,8 @@ function recur(ast, path) { } case "Union": return Equivalence.make((a, b) => { - const candidates = AST.getCandidates(a, ast.types); - const types = candidates.map(Parser._is); + const candidates = SchemaAST.getCandidates(a, ast.types); + const types = candidates.map(SchemaParser._is); for (let i = 0; i < candidates.length; i++) { const is = types[i]; if (is(a) && is(b)) { @@ -143,7 +143,7 @@ function recur(ast, path) { }); case "Suspend": { - const get = AST.memoizeThunk(() => recur(ast.thunk(), path)); + const get = SchemaAST.memoizeThunk(() => recur(ast.thunk(), path)); return Equivalence.make((a, b) => get()(a, b)); } } diff --git a/.opencode/node_modules/effect/dist/internal/schema/equivalence.js.map b/.opencode/node_modules/effect/dist/internal/schema/equivalence.js.map index 84d32ad5d48e58f0c4f92adddf1f984c0e11c13f..fd3303756d9c6dd60b4daa7eb97c6168ba1bfe6b 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/equivalence.js.map +++ b/.opencode/node_modules/effect/dist/internal/schema/equivalence.js.map @@ -1 +1 @@ -{"version":3,"file":"equivalence.js","names":["Equal","Equivalence","memoize","Predicate","AST","Parser","errorWithPath","InternalAnnotations","toEquivalence","ast","recur","path","annotation","resolve","isDeclaration","typeParameters","map","tp","_tag","equals","elements","e","i","len","length","rest","r","make","a","b","Array","isArray","Math","min","head","tail","j","propertySignatures","indexSignatures","ps","type","name","is","isObject","aHas","Object","hasOwn","bHas","isOptional","aKeys","getIndexSignatureKeys","parameter","bKeys","key","candidates","getCandidates","types","_is","get","memoizeThunk","thunk"],"sources":["../../../src/internal/schema/equivalence.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,gBAAgB;AACvC,OAAO,KAAKC,WAAW,MAAM,sBAAsB;AACnD,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAE/C,OAAO,KAAKC,GAAG,MAAM,oBAAoB;AACzC,OAAO,KAAKC,MAAM,MAAM,uBAAuB;AAC/C,SAASC,aAAa,QAAQ,cAAc;AAC5C,OAAO,K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gBACjE,OAAO,KAAK;cACd;YACF;UACF;UACA,OAAO,IAAI;QACb,CAAC,CAAC;MACJ;IACA,KAAK,OAAO;MACV,OAAOpD,WAAW,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAI;QAC/B,MAAMyB,UAAU,GAAGlD,GAAG,CAACmD,aAAa,CAAC3B,CAAC,EAAEnB,GAAG,CAAC+C,KAAK,CAAC;QAClD,MAAMA,KAAK,GAAGF,UAAU,CAACtC,GAAG,CAACX,MAAM,CAACoD,GAAG,CAAC;QACxC,KAAK,IAAInC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGgC,UAAU,CAAC9B,MAAM,EAAEF,CAAC,EAAE,EAAE;UAC1C,MAAMoB,EAAE,GAAGc,KAAK,CAAClC,CAAC,CAAC;UACnB,IAAIoB,EAAE,CAACd,CAAC,CAAC,IAAIc,EAAE,CAACb,CAAC,CAAC,EAAE;YAClB,OAAOnB,KAAK,CAAC4C,UAAU,CAAChC,CAAC,CAAC,EAAEX,IAAI,CAAC,CAACiB,CAAC,EAAEC,CAAC,CAAC;UACzC;QACF;QACA,OAAO,KAAK;MACd,CAAC,CAAC;IACJ,KAAK,SAAS;MAAE;QACd,MAAM6B,GAAG,GAAGtD,GAAG,CAACuD,YAAY,CAAC,MAAMjD,KAAK,CAACD,GAAG,CAACmD,KAAK,EAAE,EAAEjD,IAAI,CAAC,CAAC;QAC5D,OAAOV,WAAW,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK6B,GAAG,EAAE,CAAC9B,CAAC,EAAEC,CAAC,CAAC,CAAC;MAChD;EACF;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"equivalence.js","names":["Equal","Equivalence","memoize","Predicate","SchemaAST","SchemaParser","errorWithPath","InternalAnnotations","toEquivalence","ast","recur","path","annotation","resolve","isDeclaration","typeParameters","map","tp","_tag","equals","elements","e","i","len","length","rest","r","make","a","b","Array","isArray","Math","min","head","tail","j","propertySignatures","indexSignatures","ps","type","name","is","isObject","aHas","Object","hasOwn","bHas","isOptional","aKeys","getIndexSignatureKeys","parameter","bKeys","key","candidates","getCandidates","types","_is","get","memoizeThunk","thunk"],"sources":["../../../src/internal/schema/equivalence.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,gBAAgB;AACvC,OAAO,KAAKC,WAAW,MAAM,sBAAsB;AACnD,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAE/C,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAC/C,OAAO,KAAKC,YAAY,MAAM,uBAAuB;AACrD,SAASC,aAAa,QAAQ,cAAc;AAC5C,OAAO,KAAKC,mBAAmB,MAAM,kBAAkB;AAEvD;AACA,OAAO,MAAMC,aAAa,gBAAGN,OAAO,CAAEO,GAAkB,IAAkC;EACxF,OAAOC,KAAK,CAACD,GAAG,EAAE,EAAE,CAAC;AACvB,CAAC,CAAC;AAEF,SAASC,KAAKA,CAACD,GAAkB,EAAEE,IAAgC;EACjE;EACA;EACA;EACA,MAAMC,UAAU,GAAGL,mBAAmB,CAACM,OAAO,CAACJ,GAAG,CAAC,GAAG,eAAe,CAExD;EACb,IAAIG,UAAU,EAAE;IACd,OAAOA,UAAU,CAACR,SAAS,CAACU,aAAa,CAACL,GAAG,CAAC,GAAGA,GAAG,CAACM,cAAc,CAACC,GAAG,CAAEC,EAAE,IAAKP,KAAK,CAACO,EAAE,EAAEN,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;EACxG;EACA,QAAQF,GAAG,CAACS,IAAI;IACd,KAAK,OAAO;MACV,MAAMZ,aAAa,CAAC,mBAAmBG,GAAG,CAACS,IAAI,EAAE,EAAEP,IAAI,CAAC;IAC1D,KAAK,aAAa;IAClB,KAAK,MAAM;IACX,KAAK,WAAW;IAChB,KAAK,MAAM;IACX,KAAK,SAAS;IACd,KAAK,KAAK;IACV,KAAK,QAAQ;IACb,KAAK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SAAS,CAACuD,YAAY,CAAC,MAAMjD,KAAK,CAACD,GAAG,CAACmD,KAAK,EAAE,EAAEjD,IAAI,CAAC,CAAC;QAClE,OAAOV,WAAW,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK6B,GAAG,EAAE,CAAC9B,CAAC,EAAEC,CAAC,CAAC,CAAC;MAChD;EACF;AACF","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/internal/schema/representation.js b/.opencode/node_modules/effect/dist/internal/schema/representation.js index 3f0f1546c3874b9f86893d877278dde5c6656681..286995b1b89309c7523e74a19e984190b0e19519 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/representation.js +++ b/.opencode/node_modules/effect/dist/internal/schema/representation.js @@ -5,7 +5,7 @@ import { escapeToken } from "../../JsonPointer.js"; import * as Predicate from "../../Predicate.js"; import * as Rec from "../../Record.js"; import * as RegEx from "../../RegExp.js"; -import * as AST from "../../SchemaAST.js"; +import * as SchemaAST from "../../SchemaAST.js"; import * as InternalAnnotations from "./annotations.js"; import * as InternalSchema from "./schema.js"; /** @internal */ @@ -47,7 +47,7 @@ export function fromASTs(asts) { $ref: found }; } - const last = AST.getLastEncoding(ast); + const last = SchemaAST.getLastEncoding(ast); const identifier = InternalAnnotations.resolveIdentifier(ast) ?? prefix; if (ast !== last) { return recur(last, identifier); @@ -99,11 +99,11 @@ export function fromASTs(asts) { function getEncodedSchema(last) { const getLink = last.annotations?.toCodecJson ?? last.annotations?.toCodec; if (Predicate.isFunction(getLink)) { - const tps = last.typeParameters.map(tp => InternalSchema.make(AST.toEncoded(tp))); + const tps = last.typeParameters.map(tp => InternalSchema.make(SchemaAST.toEncoded(tp))); const link = getLink(tps); - return AST.replaceEncoding(last, [link]); + return SchemaAST.replaceEncoding(last, [link]); } - return AST.null; + return SchemaAST.null; } function on(last) { const annotations = fromASTAnnotations(last.annotations); @@ -140,7 +140,7 @@ export function fromASTs(asts) { _tag: last._tag, checks: fromASTChecks(last.checks), ...annotations, - ...(typeof contentMediaType === "string" && AST.isAST(contentSchema) ? { + ...(typeof contentMediaType === "string" && SchemaAST.isAST(contentSchema) ? { contentSchema: recur(contentSchema) } : undefined) }; @@ -185,9 +185,9 @@ export function fromASTs(asts) { return { _tag: last._tag, elements: last.elements.map(e => { - const last = AST.getLastEncoding(e); + const last = SchemaAST.getLastEncoding(e); return { - isOptional: AST.isOptional(last), + isOptional: SchemaAST.isOptional(last), type: recur(e), ...fromASTAnnotations(last.context?.annotations) }; @@ -200,12 +200,12 @@ export function fromASTs(asts) { return { _tag: last._tag, propertySignatures: last.propertySignatures.map(ps => { - const last = AST.getLastEncoding(ps.type); + const last = SchemaAST.getLastEncoding(ps.type); return { name: ps.name, type: recur(ps.type), - isOptional: AST.isOptional(last), - isMutable: AST.isMutable(last), + isOptional: SchemaAST.isOptional(last), + isMutable: SchemaAST.isMutable(last), ...fromASTAnnotations(last.context?.annotations) }; }), @@ -275,7 +275,8 @@ export function fromASTs(asts) { /** @internal */ export const fromASTBlacklist = /*#__PURE__*/new Set([ // `expected` is preserved because is useful to generate descriptions in JSON Schemas -"~structural", "~sentinels", "meta", "toArbitrary", "toArbitraryConstraint", "toEquivalence", "toFormatter", "toCodec", "toCodecJson", "toCodecIso", AST.ClassTypeId]); +"~structural", "~sentinels", "meta", "arbitrary", "toArbitrary", "toEquivalence", "toFormatter", "toCodec", "toCodecJson", "toCodecIso", SchemaAST.ClassTypeId]); +const standardJsonSchemaAnnotationKeys = /*#__PURE__*/new Set(["title", "description", "default", "examples", "readOnly", "writeOnly", "format", "contentEncoding", "contentMediaType", "contentSchema"]); function fromASTAnnotations(annotations) { if (annotations !== undefined) { const filtered = Rec.filter(annotations, (_, k) => !fromASTBlacklist.has(k)); @@ -308,6 +309,7 @@ export function toJsonSchemaDocument(document, options) { export function toJsonSchemaMultiDocument(multiDocument, options) { const generateDescriptions = options?.generateDescriptions ?? false; const additionalProperties = options?.additionalProperties ?? false; + const includeAnnotationKey = options?.includeAnnotationKey; const definitions = Rec.map(multiDocument.references, d => recur(d)); return { dialect: "draft-2020-12", @@ -337,8 +339,15 @@ export function toJsonSchemaMultiDocument(multiDocument, options) { switch (schema._tag) { case "Any": case "Unknown": - case "ObjectKeyword": return {}; + case "ObjectKeyword": + return { + anyOf: [{ + type: "object" + }, { + type: "array" + }] + }; case "Void": case "Undefined": return { @@ -609,19 +618,26 @@ export function toJsonSchemaMultiDocument(multiDocument, options) { }; } function collectJsonSchemaAnnotations(annotations) { - if (annotations) { - const out = {}; - if (typeof annotations.title === "string") out.title = annotations.title; - if (typeof annotations.description === "string") out.description = annotations.description;else if (generateDescriptions && typeof annotations.expected === "string") out.description = annotations.expected; - if (annotations.default !== undefined) out.default = annotations.default; - if (Array.isArray(annotations.examples)) out.examples = annotations.examples; - if (typeof annotations.readOnly === "boolean") out.readOnly = annotations.readOnly; - if (typeof annotations.writeOnly === "boolean") out.writeOnly = annotations.writeOnly; - if (typeof annotations.format === "string") out.format = annotations.format; - if (typeof annotations.contentEncoding === "string") out.contentEncoding = annotations.contentEncoding; - if (typeof annotations.contentMediaType === "string") out.contentMediaType = annotations.contentMediaType; - if (Object.keys(out).length > 0) return out; + if (annotations === undefined) return undefined; + const out = {}; + if (typeof annotations.title === "string") out.title = annotations.title; + if (typeof annotations.description === "string") out.description = annotations.description;else if (generateDescriptions && typeof annotations.expected === "string") out.description = annotations.expected; + if (annotations.default !== undefined) out.default = annotations.default; + if (Array.isArray(annotations.examples)) out.examples = annotations.examples; + if (typeof annotations.readOnly === "boolean") out.readOnly = annotations.readOnly; + if (typeof annotations.writeOnly === "boolean") out.writeOnly = annotations.writeOnly; + if (typeof annotations.format === "string") out.format = annotations.format; + if (typeof annotations.contentEncoding === "string") out.contentEncoding = annotations.contentEncoding; + if (typeof annotations.contentMediaType === "string") out.contentMediaType = annotations.contentMediaType; + if (includeAnnotationKey) { + for (const [key, value] of Object.entries(annotations)) { + if (value === undefined) continue; + if (standardJsonSchemaAnnotationKeys.has(key)) continue; + if (!includeAnnotationKey(key)) continue; + out[key] = value; + } } + if (Object.keys(out).length > 0) return out; } function collectJsonSchemaChecks(checks, type) { return checks.map(collectJsonSchemaCheck).filter(c => c !== undefined); @@ -689,6 +705,7 @@ export function toJsonSchemaMultiDocument(multiDocument, options) { }] }; case "isPattern": + case "isGUID": case "isULID": case "isBase64": case "isBase64Url": @@ -838,9 +855,9 @@ function getPartPattern(part) { case "Literal": return RegEx.escape(globalThis.String(part.literal)); case "String": - return AST.STRING_PATTERN; + return SchemaAST.STRING_PATTERN; case "Number": - return AST.FINITE_PATTERN; + return SchemaAST.FINITE_PATTERN; case "TemplateLiteral": return part.parts.map(getPartPattern).join(""); case "Union": diff --git a/.opencode/node_modules/effect/dist/internal/schema/representation.js.map b/.opencode/node_modules/effect/dist/internal/schema/representation.js.map index e9874204d62aac9c38949ddda5a5e3a54aa4b7ba..29ced66d6b172f6b2c8c4d1e7daba0b891e035a1 100644 --- a/.opencode/node_modules/effect/dist/internal/schema/representation.js.map +++ b/.opencode/node_modules/effect/dist/internal/schema/representation.js.map @@ -1 +1 @@ -{"version":3,"file":"representation.js","names":["Arr","Equal","format","escapeToken","Predicate","Rec","RegEx","AST","InternalAnnotations","InternalSchema","fromAST","ast","references","representations","schemas","fromASTs","representation","asts","referenceMap","Map","uniqueReferences","Set","visiting","map","recur","gen","prefix","candidate","suffix","has","add","found","get","undefined","_tag","$ref","last","getLastEncoding","identifier","resolveIdentifier","reference","set","out","on","equals","delete","ref","getEncodedSchema","getLink","annotations","toCodecJson","toCodec","isFunction","tps","typeParameters","tp","make","toEncoded","link","replaceEncoding","null","fromASTAnnotations","encodedSchema","checks","fromASTChecks","contentMediaType","contentSchema","isAST","literal","symbol","enums","parts","elements","e","isOptional","type","context","rest","propertySignatures","ps","name","isMutable","indexSignatures","is","parameter","types","jsonReorder","mode","thunk","getCheck","filter","c","meta","propertyNames","isArrayNonEmpty","fromASTBlacklist","ClassTypeId","filtered","_","k","isEmptyRecord","toJsonSchemaDocument","document","options","definitions","dialect","source","toJsonSchemaMultiDocument","schema","multiDocument","generateDescriptions","additionalProperties","d","s","js","a","collectJsonSchemaAnnotations","collectJsonSchemaChecks","check","appendJsonSchema","not","hasCheck","enum","String","title","value","pattern","getPartPattern","join","length","globalThis","Error","minItems","prefixItems","v","maxItems","items","Object","keys","anyOf","properties","required","push","patternProperties","patterns","getParameterPatterns","isObject","compacted","compactEnums","oneOf","sharedType","values","t","Array","isArray","description","expected","default","examples","readOnly","writeOnly","contentEncoding","collectJsonSchemaCheck","filterToJsonSchema","allOf","minLength","maxLength","minimum","maximum","regExp","multipleOf","divisor","exclusiveMinimum","exclusiveMaximum","uniqueItems","minProperties","maxProperties","getPatterns","flatMap","tag","some","b","len","members","part","escape","STRING_PATTERN","FINITE_PATTERN","cause"],"sources":["../../../src/internal/schema/representation.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,GAAG,MAAM,gBAAgB;AACrC,OAAO,KAAKC,KAAK,MAAM,gBAAgB;AACvC,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,WAAW,QAAQ,sBAAsB;AAElD,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAC/C,OAAO,KAAKC,GAAG,MAAM,iBAAiB;AACtC,OAAO,KAAKC,KAAK,MAAM,iBAAiB;AAExC,OAAO,KAAKC,GAAG,MAAM,oBAAoB;AAEzC,OAAO,KAAKC,mBAAmB,MAAM,kBAAkB;AACvD,OAAO,KAAKC,cAAc,MAAM,aAAa;AAE7C;AACA,OAAM,SAAUC,OAAOA,CAACC,GAAY;EAClC,MAAM;IAAEC,UAAU;IAAEC,eAAe,EAAEC;EAAO,CAAE,GAAGC,QAAQ,CAAC,CAACJ,GAAG,CAAC,CAAC;EAChE,OAAO;IAAEK,cAAc,EAAEF,OAAO,CAAC,CAAC,CAAC;IAAEF;EAAU,CAAE;AACnD;AAEA;AACA,OAAM,SAAUG,QAAQA,CAACE,IAA2C;EAClE,MAAML,UAAU,GAAwD,E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I5B,KAAK,CAACC,OAAO,CAACvC,CAAC,CAACiD,KAAK,CAAC,EAAE;IAC1B,OAAO;MAAE,GAAGjD,CAAC;MAAEiD,KAAK,EAAE,CAAC,GAAGjD,CAAC,CAACiD,KAAK,EAAE,GAAGmB,OAAO;IAAC,CAAE;EAClD;EAEA,IAAI,OAAOpE,CAAC,CAAChF,IAAI,KAAK,QAAQ,EAAE;IAC9B,OAAO;MAAEiI,KAAK,EAAE,CAACjD,CAAC,EAAE,GAAGoE,OAAO;IAAC,CAAE;EACnC;EAEA,OAAO;IAAE,GAAGpE,CAAC;IAAEiD,KAAK,EAAEmB;EAAO,CAAE;AACjC;AAEA,SAASxD,cAAcA,CAACyD,IAAyC;EAC/D,QAAQA,IAAI,CAACtJ,IAAI;IACf,KAAK,SAAS;MACZ,OAAO5B,KAAK,CAACmL,MAAM,CAACvD,UAAU,CAACP,MAAM,CAAC6D,IAAI,CAACpH,OAAO,CAAC,CAAC;IACtD,KAAK,QAAQ;MACX,OAAO7D,GAAG,CAACmL,cAAc;IAC3B,KAAK,QAAQ;MACX,OAAOnL,GAAG,CAACoL,cAAc;IAC3B,KAAK,iBAAiB;MACpB,OAAOH,IAAI,CAACjH,KAAK,CAAChD,GAAG,CAACwG,cAAc,CAAC,CAACC,IAAI,CAAC,EAAE,CAAC;IAChD,KAAK,OAAO;MACV,OAAOwD,IAAI,CAACnG,KAAK,CAAC9D,GAAG,CAACwG,cAAc,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;IACjD;MACE,MAAM,IAAIE,UAAU,CAACC,KAAK,CAAC,kBAAkB,EAAE;QAAEyD,KAAK,EAAEJ;MAAI,CAAE,CAAC;EACnE;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"representation.js","names":["Arr","Equal","format","escapeToken","Predicate","Rec","RegEx","SchemaAST","InternalAnnotations","InternalSchema","fromAST","ast","references","representations","schemas","fromASTs","representation","asts","referenceMap","Map","uniqueReferences","Set","visiting","map","recur","gen","prefix","candidate","suffix","has","add","found","get","undefined","_tag","$ref","last","getLastEncoding","identifier","resolveIdentifier","reference","set","out","on","equals","delete","ref","getEncodedSchema","getLink","annotations","toCodecJson","toCodec","isFunction","tps","typeParameters","tp","make","toEncoded","link","replaceEncoding","null","fromASTAnnotations","encodedSchema","checks","fromASTChecks","contentMediaType","contentSchema","isAST","literal","symbol","enums","parts","elements","e","isOptional","type","context","rest","propertySignatures","ps","name","isMutable","indexSignatures","is","parameter","types","jsonReorder","mode","thunk","getCheck","filter","c","meta","propertyNames","isArrayNonEmpty","fromASTBlacklist","ClassTypeId","standardJsonSchemaAnnotationKeys","filtered","_","k","isEmptyRecord","toJsonSchemaDocument","document","options","definitions","dialect","source","toJsonSchemaMultiDocument","schema","multiDocument","generateDescriptions","additionalProperties","includeAnnotationKey","d","s","js","a","collectJsonSchemaAnnotations","collectJsonSchemaChecks","check","appendJsonSchema","anyOf","not","hasCheck","enum","String","title","value","pattern","getPartPattern","join","length","globalThis","Error","minItems","prefixItems","v","maxItems","items","Object","keys","properties","required","push","patternProperties","patterns","getParameterPatterns","isObject","compacted","compactEnums","oneOf","sharedType","values","t","Array","isArray","description","expected","default","examples","readOnly","writeOnly","contentEncoding","key","entries","collectJsonSchemaCheck","filterToJsonSchema","allOf","minLength","maxLength","minimum","maximum","regExp","multipleOf","divisor","exclusiveMinimum","exclusiveMaximum","uniqueItems","minProperties","maxProperties","getPatterns","flatMap","tag","some","b","len","members","part","escape","STRING_PATTERN","FINITE_PATTERN","cause"],"sources":["../../../src/internal/schema/representation.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,GAAG,MAAM,gBAAgB;AACrC,OAAO,KAAKC,KAAK,MAAM,gBAAgB;AACvC,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,WAAW,QAAQ,sBAAsB;AAElD,OAAO,KAAKC,SAAS,MAAM,oBAAoB;AAC/C,OAAO,KAAKC,GAAG,MAAM,iBAAiB;AACtC,OAAO,KAAKC,KAAK,MAAM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