Minor Changes
-
7e30dc9: Add the
acquireReleaseDisposablerule to replace manual disposal finalizers passed toEffect.acquireReleasewithEffect.acquireDisposable. -
f134c31: Add the
optionMatchToFromOptiondiagnostic and quick fix for Option-to-Effect conversions that can useEffect.fromOption.The rule recognizes supported
Option.matchcall styles andOption.isSome/Option.isNoneconditional expressions whose branches only wrap the value withEffect.succeedor produceEffect.fail. It suggests the one-argumentEffect.fromOptionform for the defaultCause.NoSuchElementError, and preserves custom failures in a lazy callback. -
90c884e: Expose piping-flow extraction through the
etsgoapiGo API.The type parser already understands "piping flows" — a subject expression followed by an ordered list of transformations, unifying the
pipe(...), pipeable.pipe(...), data-first, data-last andEffect.fnforms — but that analysis was only reachable from internal packages.etsgoapi.TypeParsernow surfaces it so external Go integrations can consume it without importinginternal/....tp := etsgoapi.NewTypeParser(program, checker) for _, flow := range tp.PipingFlows(sourceFile, true /* includeEffectFn */) { // flow.Subject.Node / flow.Subject.OutType — the starting expression and its type for _, step := range flow.Transformations { // step.Kind (pipe | pipeable | dataFirst | dataLast | call | effectFn | effectFnUntraced) // step.Callee / step.Args / step.OutType } }
Adds the public
PipingFlow,PipingFlowSubject,PipingFlowTransformationandTransformationKindtypes alongside the new(*TypeParser).PipingFlowsmethod. -
804c2a9: Add the
flatMapConditionalToFilterOrFaildiagnostic and quick fix, which replaces identity-succeedEffect.flatMapconditionals withEffect.filterOrFailorEffect.filterOrElse. -
4e14641: Add the
preferSucceedSomeOrNonediagnostic and autofix for replacingEffect.succeed(Option.none())andEffect.succeed(Option.some(value)), including equivalent pipe forms, withEffect.succeedNoneandEffect.succeedSome(value).
Patch Changes
- fcc641e: Keep the Nix TypeScript source pin synchronized with the TypeScript next metadata so Nix builds compile generated shims against the matching compiler revision.
- 36f2524: Update the TypeScript next tag to
typescript@next, which shipstypescript-gocommit9a8581c393a38961489cc8409ae4dfbe97fc25ec, and update the TypeScript latest tag totypescript@latest.