@effect/tsgo 0.15.0 → 0.16.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 +1 -0
- package/dist/effect-tsgo.js +18 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -93,6 +93,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
|
|
|
93
93
|
<tr><td><code>unsafeEffectTypeAssertion</code></td><td>➖</td><td>🔧</td><td>Detects unsafe type assertions that narrow Effect, Stream, or Layer error or requirements channels</td><td>✓</td><td>✓</td></tr>
|
|
94
94
|
<tr><td colspan="6"><strong>Style</strong> <em>Cleanup, consistency, and idiomatic Effect code.</em></td></tr>
|
|
95
95
|
<tr><td><code>catchAllToMapError</code></td><td>💡</td><td>🔧</td><td>Suggests using Effect.mapError instead of Effect.catch + Effect.fail</td><td>✓</td><td>✓</td></tr>
|
|
96
|
+
<tr><td><code>catchToIgnore</code></td><td>💡</td><td>🔧</td><td>Suggests using Effect.ignore or Effect.ignoreCause instead of Effect.catch/catchCause returning Effect.void</td><td></td><td>✓</td></tr>
|
|
96
97
|
<tr><td><code>catchToOrElseSucceed</code></td><td>💡</td><td>🔧</td><td>Suggests using Effect.orElseSucceed instead of Effect.catch + Effect.succeed</td><td>✓</td><td>✓</td></tr>
|
|
97
98
|
<tr><td><code>deterministicKeys</code></td><td>➖</td><td>🔧</td><td>Enforces deterministic naming for service/tag/error identifiers based on class names</td><td>✓</td><td>✓</td></tr>
|
|
98
99
|
<tr><td><code>effectDoNotation</code></td><td>➖</td><td></td><td>Suggests using Effect.gen or Effect.fn instead of the Effect.Do notation helpers</td><td>✓</td><td>✓</td></tr>
|
package/dist/effect-tsgo.js
CHANGED
|
@@ -204437,7 +204437,7 @@ var FileReadError = class extends TaggedError("FileReadError") {
|
|
|
204437
204437
|
//#endregion
|
|
204438
204438
|
//#region package.json
|
|
204439
204439
|
var name = "@effect/tsgo";
|
|
204440
|
-
var version = "0.
|
|
204440
|
+
var version = "0.16.1";
|
|
204441
204441
|
|
|
204442
204442
|
//#endregion
|
|
204443
204443
|
//#region src/setup/consts.ts
|
|
@@ -206287,6 +206287,23 @@ var rules = [
|
|
|
206287
206287
|
}]
|
|
206288
206288
|
}
|
|
206289
206289
|
},
|
|
206290
|
+
{
|
|
206291
|
+
"name": "catchToIgnore",
|
|
206292
|
+
"group": "style",
|
|
206293
|
+
"description": "Suggests using Effect.ignore or Effect.ignoreCause instead of Effect.catch/catchCause returning Effect.void",
|
|
206294
|
+
"defaultSeverity": "suggestion",
|
|
206295
|
+
"fixable": true,
|
|
206296
|
+
"supportedEffect": ["v4"],
|
|
206297
|
+
"codes": [377099],
|
|
206298
|
+
"preview": {
|
|
206299
|
+
"sourceText": "import { Effect } from \"effect\"\n\ndeclare const program: Effect.Effect<void, string, never>\n\nexport const recovered = program.pipe(\n Effect.catch(() => Effect.void)\n)\n",
|
|
206300
|
+
"diagnostics": [{
|
|
206301
|
+
"start": 133,
|
|
206302
|
+
"end": 145,
|
|
206303
|
+
"text": "`Effect.ignore` expresses ignored failure more directly than `Effect.catch` returning `Effect.void`. effect(catchToIgnore)"
|
|
206304
|
+
}]
|
|
206305
|
+
}
|
|
206306
|
+
},
|
|
206290
206307
|
{
|
|
206291
206308
|
"name": "catchToOrElseSucceed",
|
|
206292
206309
|
"group": "style",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@effect/tsgo-win32-x64": "0.
|
|
26
|
-
"@effect/tsgo-win32-arm64": "0.
|
|
27
|
-
"@effect/tsgo-linux-x64": "0.
|
|
28
|
-
"@effect/tsgo-linux-arm64": "0.
|
|
29
|
-
"@effect/tsgo-linux-arm": "0.
|
|
30
|
-
"@effect/tsgo-darwin-x64": "0.
|
|
31
|
-
"@effect/tsgo-darwin-arm64": "0.
|
|
25
|
+
"@effect/tsgo-win32-x64": "0.16.1",
|
|
26
|
+
"@effect/tsgo-win32-arm64": "0.16.1",
|
|
27
|
+
"@effect/tsgo-linux-x64": "0.16.1",
|
|
28
|
+
"@effect/tsgo-linux-arm64": "0.16.1",
|
|
29
|
+
"@effect/tsgo-linux-arm": "0.16.1",
|
|
30
|
+
"@effect/tsgo-darwin-x64": "0.16.1",
|
|
31
|
+
"@effect/tsgo-darwin-arm64": "0.16.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@effect/platform-node": "^4.0.0-beta.83",
|