Repository navigation
v0.46.0
Minor Changes
-
#424
4bbfdb0Thanks @mattiamanzati! - Add support to mark a service as "leakable" via JSDoc tag. Services marked with@effect-leakable-servicewill be excluded from the leaking requirements diagnostic, allowing requirements that are expected to be provided per method invocation (e.g. HttpServerRequest).Example:
/** * @effect-leakable-service */ export class FileSystem extends Context.Tag("FileSystem")< FileSystem, { writeFile: (content: string) => Effect.Effect<void>; } >() {}
-
#428
ebaa8e8Thanks @mattiamanzati! - Add diagnostic to warn when@effect-diagnostics-next-linecomments have no effect. This helps identify unused suppression comments that don't actually suppress any diagnostics, improving code cleanliness.The new
missingDiagnosticNextLineoption controls the severity of this diagnostic (default: "warning"). Set to "off" to disable.Example:
// This comment will trigger a warning because it doesn't suppress any diagnostic // @effect-diagnostics-next-line effect/floatingEffect:off const x = 1; // This comment is correctly suppressing a diagnostic // @effect-diagnostics-next-line effect/floatingEffect:off Effect.succeed(1);
Patch Changes
-
#426
22717bdThanks @mattiamanzati! - Improve Layer Magic refactor with enhanced dependency sorting and cycle detectionThe Layer Magic refactor now includes:
- Better handling of complex layer composition scenarios
- Support for detecting missing layer implementations with helpful error messages