Releases: Effect-TS/language-service
v0.40.0
Minor Changes
-
#384
62b9829
Thanks @mattiamanzati! - Add new diagnostic:effectGenUsesAdapter
- warns when usingEffect.gen
with the generator adapter pattern (function*(_)) instead of usingpipe()
The generator adapter pattern
function*(_)
is an old pattern. Users should usepipe()
for composing effects orEffect.gen(function*())
without the adapter for generator-based code.Example that will trigger the warning:
const example = Effect.gen(function* (_) { const result = yield* _(Effect.succeed(42)); return result; });
Patch Changes
-
#382
2f318b6
Thanks @mattiamanzati! - Add noExternal option -
#385
8580bed
Thanks @mattiamanzati! - Fix false positive regarding Schema.Class
v0.39.0
Minor Changes
- #380
98e30dd
Thanks @mattiamanzati! - Added exposed APIs for mermaid chart locally and allow to disable external links
v0.38.4
Patch Changes
-
#378
2f9bc51
Thanks @mattiamanzati! - Add support for Effect.Tag in writeTagClassAccessors refactorThe writeTagClassAccessors refactor now supports Effect.Tag classes in addition to Effect.Service and Context.Tag. This allows users to generate accessor methods for services created with Effect.Tag, maintaining consistency across all tag-based service patterns.
v0.38.3
Patch Changes
- #375
74696fd
Thanks @mattiamanzati! - FixresolveModulePattern
to use fallback mechanism for package scope resolution when primary method is unavailable
v0.38.2
Patch Changes
-
#374
9d66c1e
Thanks @mattiamanzati! - Fix Mermaid graph generation for layers with generic typesProperly escape angle brackets (
<
and>
) in Mermaid diagrams to prevent rendering issues when displaying layer names containing generic type parameters. -
#370
0e25fbc
Thanks @mattiamanzati! - Layer Magic refactor now shows previously provided layers as a comment in the generated type annotation.When using the Layer Magic "Prepare for reuse" refactor, layers that were already provided at the location are now shown as a trailing comment (e.g.,
/* Foo | Bar */
) next to the newly introduced layer types. This helps developers understand which layers were already available and which ones are being newly introduced. -
#372
172363c
Thanks @mattiamanzati! - Add general support for Effect.Tag in various diagnostics/refactors
v0.38.1
Patch Changes
- #368
01f62a9
Thanks @mattiamanzati! - Fix logic of firstChild with patching mode
v0.38.0
Minor Changes
-
#365
3b418c5
Thanks @mattiamanzati! - Add Layer Magic refactor for automatic layer composition and buildingThis refactor allows you to automatically compose and build layers based on service dependencies. It helps simplify complex layer constructions by:
- Analyzing service dependencies
- Automatically composing layers in the correct order
- Building final layer structures with proper dependency resolution
Example: When working with services that have dependencies, the refactor can transform your layer setup code into a properly composed layer structure that respects all service requirements.
Patch Changes
- #367
0e6034b
Thanks @mattiamanzati! - Add shebang to CLI entry point for proper executable support and bump version
v0.37.0
Minor Changes
-
#361
3834abe
Thanks @mattiamanzati! - Add to patching mode support to storing metadata such as relation error locations and types to improve perf -
#363
8fb54a9
Thanks @mattiamanzati! - Add support for importAliases config
Patch Changes
-
#356
8c906e1
Thanks @mattiamanzati! - Add helper for renames, so that triggering a rename will include the identifier of a class as well -
#360
331051d
Thanks @mattiamanzati! - Some minor perf improvements -
#358
03cfa73
Thanks @mattiamanzati! - Refactor TypeChecker utilities to improve code organization by moving utility functions from TypeCheckerApi.ts to TypeCheckerUtils.ts -
#364
358f323
Thanks @mattiamanzati! - Replace direct.text
property access with TypeScript API helperts.idText()
for getting identifier text from nodes. This is a more robust approach that properly handles escaped identifiers and follows TypeScript's recommended practices.
v0.36.0
Minor Changes
- #354
b4b4657
Thanks @mattiamanzati! - Add LSP patch mode
Patch Changes
-
#353
790d4d0
Thanks @mattiamanzati! - Fix CLI and LSP improvements:- Remove deprecated check command from CLI
- Fix unpatch command to default to both typescript and tsc modules when no modules specified
- Add concatDiagnostics utility to prevent duplicate diagnostics in LSP
-
#351
be5d851
Thanks @mattiamanzati! - Fix TypeScript module reference in patch utility to use correct module name when patching TypeScript directly -
#349
46a1ef2
Thanks @mattiamanzati! - Introduce ts-patch less mode
v0.35.2
Patch Changes
-
#346
5a37be2
Thanks @mattiamanzati! - Fix auto-import barrel-to-barrel mapping for top-level named re-exportsWhen
topLevelNamedReexports
is set to "follow", the auto-import provider now correctly maps barrel exports to their barrel modules, ensuring proper import suggestions for re-exported functions likepipe
fromeffect/Function
.