@effect/language-service 0.65.0 → 0.66.1
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 +2 -0
- package/cli.js +723 -336
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +719 -332
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +719 -332
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +719 -332
- package/transform.js.map +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ And you're done! You'll now be able to use a set of refactors and diagnostics th
|
|
|
73
73
|
- Warn when catch callbacks in `Effect.tryPromise`, `Effect.tryMap`, or `Effect.tryMapPromise` return `unknown` or `any` types
|
|
74
74
|
- Warn when catch callbacks in `Effect.tryPromise`, `Effect.try`, `Effect.tryMap`, or `Effect.tryMapPromise` return the global `Error` type instead of typed errors
|
|
75
75
|
- Warn when using `Effect.runSync`, `Effect.runPromise`, `Effect.runFork`, or `Effect.runCallback` inside an Effect
|
|
76
|
+
- Warn when using `Schema.decodeSync`, `Schema.decodeUnknownSync`, `Schema.encodeSync`, or `Schema.encodeUnknownSync` inside Effect generators, suggesting Effect-based alternatives
|
|
77
|
+
- Suggest using Effect Schema for JSON operations instead of `JSON.parse`/`JSON.stringify` inside Effect contexts
|
|
76
78
|
- Warn when using `Schema.Union` with multiple `Schema.Literal` calls that can be simplified to a single `Schema.Literal` call
|
|
77
79
|
- Suggest using `Schema.TaggedStruct` instead of `Schema.Struct` when a `_tag` field with `Schema.Literal` is present to make the tag optional in the constructor
|
|
78
80
|
- Warn when using `yield* Effect.fail()` with yieldable error types that can be yielded directly
|