@effect/language-service 0.55.5 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -72,6 +72,7 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
72
72
  - Warn when catch callbacks in `Effect.tryPromise`, `Effect.tryMap`, or `Effect.tryMapPromise` return `unknown` or `any` types
73
73
  - Warn when using `Effect.runSync`, `Effect.runPromise`, `Effect.runFork`, or `Effect.runCallback` inside an Effect
74
74
  - Warn when using `Schema.Union` with multiple `Schema.Literal` calls that can be simplified to a single `Schema.Literal` call
75
+ - Warn when using `yield* Effect.fail()` with yieldable error types that can be yielded directly
75
76
 
76
77
  ### Completions
77
78
 
@@ -99,6 +100,11 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
99
100
  - Toggle between pipe styles `X.pipe(Y)` and `pipe(X, Y)`
100
101
  - Layer Magic: Automatically compose and build layers based on service dependencies
101
102
 
103
+ ### Codegens
104
+
105
+ - Automatically adds type annotations to exported constants based on their initializer types using `// @effect-codegens annotate`
106
+ - Automatically implements service accessors in `Effect.Service`, `Context.Tag` or `Effect.Tag` declarations using `// @effect-codegens accessors`
107
+
102
108
  ### Miscellaneous
103
109
  - Renaming a class name, will rename the identifier as well for TaggedError, TaggedClass, etc...
104
110
  - "Go to definition" for RpcClient will resolve to the Rpc definition
@@ -218,6 +224,9 @@ Found 1 error in index.ts:3
218
224
 
219
225
  The effect language service plugin comes with a builtin CLI tool that can be used to perform various utilities, checks and setups. Since it relies on typescript, we recommend to install it locally and run it locally to ensure it loads the same typescript version of your project rather than a global installation that may resolve to use a different TS version from the one of your project.
220
226
 
227
+ ### `effect-language-service codegen`
228
+ Automatically updates Effect codegens in your TypeScript files. This command scans files for `@effect-codegens` directives and applies the necessary code transformations. Use `--file` to update a specific file, or `--project` with a tsconfig file to update an entire project. The `--verbose` flag provides detailed output about which files are being processed and updated.
229
+
221
230
  ### `effect-language-service diagnostics`
222
231
  Provides a way to get through a CLI the list of Effect specific diagnostics; without patching your typescript installation. A --file option may be used to get diagnostics for a specific file, or --project with a tsconfig file to get an entire project.
223
232