Update dependency @effect/language-service to ^0.72.0 #32
Reference in New Issue
Block a user
Delete Branch "renovate/bun-minor-patch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^0.65.0→^0.72.0Release Notes
Effect-TS/language-service (@effect/language-service)
v0.72.0Compare Source
Minor Changes
a34f997Thanks @mattiamanzati! - Refactor internal structure and harnessv0.71.2Compare Source
Patch Changes
422087dThanks @mattiamanzati! - Fix CLI patching to targetemitFilesAndReportErrorsfunction instead ofemitFilesAndReportErrorsAndGetExitStatus, updating the injection approach to replace the diagnostics property in the return statement's object literal.v0.71.1Compare Source
Patch Changes
#624
d279457Thanks @mattiamanzati! - AddignoreEffectSuggestionsInTscExitCodeoption (default:true) to control whether Effect-related suggestions affect the TSC exit code. When enabled, suggestions won't causetscto return a non-zero exit code.#622
5eab20aThanks @mattiamanzati! - AddignoreEffectWarningsInTscExitCodeoption to allow Effect-related warnings to not affect the TSC exit code. When enabled,tscwill compile successfully even if Effect warnings are emitted. This is useful for CI/CD pipelines where Effect diagnostics should be informational rather than blocking.v0.71.0Compare Source
Minor Changes
#619
f171350Thanks @mattiamanzati! - AddeffectSucceedWithVoiddiagnostic to suggest usingEffect.voidinstead ofEffect.succeed(undefined)orEffect.succeed(void 0).The diagnostic detects calls to
Effect.succeedwhere the argument is exactlyundefinedorvoid 0(including parenthesized variants) and suggests replacing them with the more idiomaticEffect.void. A quick fix is provided to automatically apply the replacement.Before:
After:
Patch Changes
#621
74ef937Thanks @mattiamanzati! - Improve diagnostic messages forglobalErrorInEffectFailureandglobalErrorInEffectCatchto be more concise and actionable.Before:
After:
v0.70.0Compare Source
Minor Changes
#618
ed689f8Thanks @mattiamanzati! - ImproveglobalErrorInEffectFailurediagnostic to detect global Error type in any Effect failure channel.The diagnostic now works by finding
new Error()expressions and checking if they end up in an Effect's failure channel, rather than only checkingEffect.failcalls. This means it will now detect global Error usage in:Effect.fail(new Error(...))Effect.genfunctions that fail with global ErrorEffect.mapErrorconverting to global ErrorEffect.flatMapchains that include global ErrorThe diagnostic now reports at the
new Error()location for better precision.Patch Changes
#616
b32da44Thanks @mattiamanzati! - ImprovemissedPipeableOpportunitydiagnostic message to show the suggested subject for.pipe(...).Before:
After:
v0.69.2Compare Source
Patch Changes
#612
2b49181Thanks @mattiamanzati! - Improve effectFnIife diagnostic message to suggest Effect.withSpan with the trace name when availableWhen
Effect.fn("traceName")is used as an IIFE, the diagnostic now suggests usingEffect.genwithEffect.withSpan("traceName")piped at the end to maintain tracing spans. ForEffect.fnUntraced, it simply suggests usingEffect.genwithout the span suggestion.#615
ae4f054Thanks @mattiamanzati! - Improve effectFnOpportunity diagnostic with more specific messages and configurable fixeseffectFnconfiguration option to control which code fix variants are offered:"untraced","span","inferred-span","no-span"(defaults to["span"])Effect.withSpanvs inferred trace from function nameBefore:
After:
v0.69.1Compare Source
Patch Changes
990ccbcThanks @mattiamanzati! - Improve effectFnOpportunity diagnostic message to mention that quickfixes are available in the editor or via the CLI quickfixes command.v0.69.0Compare Source
Minor Changes
#608
bc7da1eThanks @mattiamanzati! - AddeffectFnIifediagnostic to warn whenEffect.fnorEffect.fnUntracedis used as an IIFE (Immediately Invoked Function Expression).Effect.fnis designed to create reusable functions that can take arguments and provide tracing. When used as an IIFE,Effect.genis more appropriate.Example:
A quick fix is provided to automatically convert
Effect.fnIIFEs toEffect.gen.v0.68.0Compare Source
Minor Changes
#603
d747210Thanks @mattiamanzati! - AddedinstanceOfSchemadiagnostic that suggests usingSchema.isinstead ofinstanceoffor Effect Schema types.Example:
The diagnostic is disabled by default and can be enabled with
instanceOfSchema:suggestionorinstanceOfSchema:warning.Patch Changes
d63d5dfThanks @mattiamanzati! - ImproveleakingRequirementsdiagnostic message for clarityv0.67.0Compare Source
Minor Changes
#599
4c9f5c7Thanks @mattiamanzati! - AddquickfixesCLI command that shows diagnostics with available quick fixes and their proposed code changes.Example usage:
The command displays each diagnostic along with the available code fixes and a diff preview of the proposed changes, making it easy to see what automatic fixes are available before applying them.
Patch Changes
#601
c0a6da3Thanks @mattiamanzati! - Reduce over-suggestion of effectFnOpportunity diagnostic for regular functions.The diagnostic now only suggests
Effect.fnfor regular functions (not usingEffect.gen) when:Functions using
Effect.genare still always suggested regardless of body size.v0.66.1Compare Source
Patch Changes
#597
3833a10Thanks @mattiamanzati! - ImprovedeffectFnOpportunitydiagnostic message to mention that Effect.fn accepts piped transformations as additional arguments when pipe transformations are detected.When a function has
.pipe()calls that would be absorbed by Effect.fn, the message now includes: "Effect.fn also accepts the piped transformations as additional arguments."Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
4b89584ef8toe25592530aUpdate dependency @effect/language-service to ^0.67.0to Update dependency @effect/language-service to ^0.69.0e25592530atoc07f63c5a2Update dependency @effect/language-service to ^0.69.0to Update dependency @effect/language-service to ^0.71.0c07f63c5a2tod40c30f837Update dependency @effect/language-service to ^0.71.0to Update dependency @effect/language-service to ^0.72.0d40c30f837to2dcea4c81d