Skip to content

deps: update dependency @effect/tsgo to v0.74.1 - #197

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/effect-tsgo
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/effect-tsgo

Conversation

@renovate

@renovate renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@effect/tsgo (source) 0.68.1 → 0.74.1 age confidence

Release Notes

Effect-TS/tsgo (@​effect/tsgo)

v0.74.1

Compare Source

Patch Changes
  • 059b878: missedPipeableOpportunity no longer pulls React hooks into a pipe when the program references React (a package named react or @types/react, or any package depending on react). A callee named like a hook (use followed by an uppercase letter or a digit) ends the pipeable run, so the calls before it can still be reported:

    // before: Effect.succeed(1).pipe(Effect.asVoid, Effect.asVoid, useEffectValue)
    // after:
    useEffectValue(Effect.succeed(1).pipe(Effect.asVoid, Effect.asVoid))

v0.74.0

Compare Source

Minor Changes
  • c001a43: Add the sqlTaggedRowTypeToSqlSchema diagnostic (off by default, Effect v4). It flags Effect's sql tagged template when it is given an explicit row type, which only asserts the row shape, and suggests SqlSchema with a Result Schema so rows are decoded at runtime.

    const [existing] = yield* sql<CommandRow>`SELECT command_id, fingerprint FROM commands WHERE key_hash = ${keyHash}`
    // Suggested instead:
    const findByKey = SqlSchema.findOne({
      Request: Schema.String,
      Result: CommandRow,
      execute: (key) => sql`SELECT command_id, fingerprint FROM commands WHERE key_hash = ${key}`
    })
Patch Changes

v0.73.7

Compare Source

Patch Changes

v0.73.4

Compare Source

Patch Changes

v0.73.2

Compare Source

Patch Changes
  • b8ea08c: Fix the intermittent win32-x64 tsrs release build failure "malformed instrumentation profile data: not enough space for another header" / "no profile can be merged". tsrs-test's conformance training runs in many worker processes that all write one suite-%m.profraw through LLVM's online profile merging, which on Windows occasionally leaves the file truncated, and llvm-profdata merge then rejects the whole merge. The release build now checks every raw profile with llvm-profdata show after training and, when one is malformed, runs the training again from fresh profiles (up to 3 attempts) instead of failing the job.

v0.70.0

Compare Source

Minor Changes
  • 9ada5da: Add the flatMapProvideServiceToProvideServiceEffect suggestion in style. An Effect.flatMap (or Effect.andThen given a callback) whose callback only forwards its parameter to Effect.provideService is a manual Effect.provideServiceEffect. The rule reports it in every spelling: pipeable, data-first, pipe(...) and curried, on both the outer flatMap and the inner provideService, and inside Effect.gen / Effect.fn bodies.

    makeConnection.pipe(Effect.flatMap((conn) => Effect.provideService(program, Database, conn))) // reported
    Effect.provideServiceEffect(program, Database, makeConnection)                                // ok

    A quick fix rewrites the expression to Effect.provideServiceEffect(self, Key, acquire) and keeps any later pipe steps: Effect.suspend(() => step(s)).pipe(Effect.flatMap((meta) => Effect.provideService(effect, Key, meta)), Effect.map(f)) becomes Effect.provideServiceEffect(effect, Key, Effect.suspend(() => step(s))).pipe(Effect.map(f)).

    The callback is not reported when it does anything else: when the parameter appears outside the service argument (in the program, in any earlier step of the program, or in the key), when the program or key uses something the callback binds (the name of a named function expression, or a function-expression callback's own this, super, new.target or arguments, plain or as shorthand { arguments }), when the service argument is not the bare parameter, when steps follow provideService, when the acquired value's type is not assignable to the key's service type (for example through a (conn: any) parameter), or when the flatMap result type differs from the provideServiceEffect one (a return-type annotation on the callback or explicit type arguments that widen it, or explicit type arguments on provideService), since code after it may rely on that type. After the fix, the program expression is evaluated once when the expression is built rather than on every run of the callback. The Effect.gen form (const p = yield* acquire; return yield* Effect.provideService(self, Key, p)) is deliberately not reported. On Effect v3, data-first Effect.andThen(acquire, callback) is not reported, since its overloads do not form a dual. The rule supports Effect v3 and v4.

    Piping-flow fixes can now build an expression for a flow prefix with PipingFlowPrefixExpression, including prefixes that end inside a .pipe(...) or pipe(...) call.

  • 50c28e5: Add the forLoopPushToForEach diagnostic (style, off by default; enable it with "forLoopPushToForEach": "suggestion") and quickfix. Inside an Effect generator, a for (const x of iterable) loop whose only statement is acc.push(yield* effect), with acc a const acc = [] declared just before the loop, is reported. The fix replaces it with Effect.forEach. The fix is not offered when the accumulator is mutated after the loop, or when the loop binding or the yielded expression contains a yield of the generator. The callback is passed directly only when it is a plain single-parameter function applied to the loop variable, whether as f(x), pipe(x, f) or x.pipe(f); otherwise an arrow is kept.

    // before
    const results = []
    for (const item of items) {
      results.push(yield* processItem(item))
    }
    // after
    const results = yield* Effect.forEach(items, processItem)
Patch Changes
  • 75a36b2: Update the TypeScript next tag to typescript@next, which ships typescript-go commit 6bdcb54d23f41bc7098c1f3488ac599c75b852ca, update the TypeScript beta tag to typescript@beta, and update the TypeScript latest tag to typescript@latest. Refresh the Oxlint configuration schema from the selected package.

  • 9ada5da: manualMetricTapToTrack now decides more precisely whether a function-expression callback can become an arrow mapper. It looks for the callback's own this, super, new.target, arguments and name the way the compiler resolves them, through the new typeparser helper UsesFunctionOwnBindings, which flatMapProvideServiceToProvideServiceEffect now uses too.

    The rule now reports callbacks it used to skip, since none of these read a binding of the callback:

    Effect.tap(function(size) { return Metric.update(responseSize, size + sizes.arguments) })       // a property named `arguments`
    Effect.tap(function(size) { return Metric.update(responseSize, size + import.meta.url.length) }) // `import.meta`
    Effect.tap(function(size) {                                                                     // a class that uses its own `this` and `arguments`
      return Metric.update(responseSize, size + new (class { readonly n = this; m() { return arguments.length } })().m())
    })

    It no longer reports a named callback that reads its own name through a shorthand property, which the fix would have left unbound:

    Effect.tap(function record(size) { return Metric.update(responseSize, size + Object.keys({ record }).length) })

    Class expressions are still skipped when their extends clause, a computed member name or a member decorator reads the callback's bindings.

v0.69.0

Compare Source

Minor Changes
  • 647cd77: Add the opt-in missingConcurrencyOption diagnostic in style. Effect.all and Effect.forEach run sequentially unless concurrency is set, which readers coming from Promise.all often do not expect. The rule reports calls whose options argument is missing or is an object literal without a concurrency key, in every spelling: data-first, data-last in a pipe, curried, and inside Effect.gen / Effect.fn bodies.

    yield* Effect.forEach(items, save)                      // reported
    yield* Effect.forEach(items, save, { concurrency: 1 })  // ok
    yield* Effect.all(checks, { concurrency: 4 })           // ok

    A quick fix adds concurrency: 1, which keeps the current behaviour: Effect.forEach(items, save) becomes Effect.forEach(items, save, { concurrency: 1 }), and Effect.all(checks, { discard: true }) becomes Effect.all(checks, { discard: true, concurrency: 1 }). Options that are not an object literal, or that use a spread, are not reported. A literal under as const, as or satisfies is checked like a bare one; under satisfies the call is reported without the quick fix, since adding concurrency may not satisfy the type. The rule defaults to off and supports Effect v3 and v4.

    Piping flows now recognize Effect v4's forEach as a dual, so Effect.forEach(items, f) and Effect.forEach(f)(items) normalize like they do on v3.

Patch Changes
  • 0f776a9: Fix schemaNumber false positives for isInt() and isFinite() checks wrapped in .abort() or combined with .and(...). .abort() keeps the filter's predicate and X.and(Y) runs both filters, so the schema still rejects NaN, Infinity and -Infinity, like the bare filter and the .annotate(...) form, which was already accepted. A finite filter on either side of .and(...) counts, and the wrappers can be chained in any order, in .check(...) and in piped Schema.check(...).

    Schema.Number.check(Schema.isInt().abort())                              // no longer reported
    Schema.Number.check(Schema.isFinite().abort(), Schema.isBetween({ minimum: 1, maximum: 24 })) // no longer reported
    Schema.Number.check(Schema.isInt().and(Schema.isGreaterThan(0)))         // no longer reported
    Schema.Number.check(Schema.isGreaterThan(0).and(Schema.isInt()))         // no longer reported
    Schema.Number.check(Schema.isGreaterThan(0).abort())                     // still reported
  • f374280: Update the TypeScript next tag to typescript@next, which ships typescript-go commit ad24728023c52ef6a92a278046cdb69621048365, update the TypeScript beta tag to typescript@beta, and update the TypeScript latest tag to typescript@latest.


Configuration

📅 Schedule: (in timezone Europe/Istanbul)

  • Branch creation
    • Between 12:00 AM and 05:59 AM (* 0-5 * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Nov 28, 2026
@altaywtf

Copy link
Copy Markdown
Member

Landed in #198 together with the vite-plus toolchain; tsgo and the bundled oxlint must move together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant