@effect/tsgo 0.23.0 → 0.24.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 +1 -0
- package/dist/effect-tsgo.js +18 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -109,6 +109,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
|
|
|
109
109
|
<tr><td><code>multipleCatchTag</code></td><td>💡</td><td></td><td>Suggests collapsing consecutive Effect.catchTag transformations into a single Effect.catchTags call when semantics stay equivalent</td><td></td><td>✓</td></tr>
|
|
110
110
|
<tr><td><code>nestedEffectGenYield</code></td><td>➖</td><td></td><td>Warns when yielding a nested bare Effect.gen inside an existing Effect generator context</td><td>✓</td><td>✓</td></tr>
|
|
111
111
|
<tr><td><code>newSchemaClass</code></td><td>➖</td><td>🔧</td><td>Suggests using Schema make instead of new for Schema classes</td><td></td><td>✓</td></tr>
|
|
112
|
+
<tr><td><code>preferSchemaTypeProperty</code></td><td>➖</td><td>🔧</td><td>Disallows Schema.Schema.Type<typeof X> in favor of typeof X.Type</td><td>✓</td><td>✓</td></tr>
|
|
112
113
|
<tr><td><code>redundantMapError</code></td><td>💡</td><td></td><td>Suggests hoisting a repeated trailing Effect.mapError from every yield in an Effect generator</td><td>✓</td><td>✓</td></tr>
|
|
113
114
|
<tr><td><code>redundantOrDie</code></td><td>💡</td><td></td><td>Suggests hoisting a repeated trailing Effect.orDie from every yield in an Effect generator</td><td>✓</td><td>✓</td></tr>
|
|
114
115
|
<tr><td><code>redundantSchemaTagIdentifier</code></td><td>💡</td><td>🔧</td><td>Suggests removing redundant identifier argument when it equals the tag value in Schema.TaggedClass/TaggedError/TaggedRequest</td><td>✓</td><td>✓</td></tr>
|
package/dist/effect-tsgo.js
CHANGED
|
@@ -204851,7 +204851,7 @@ var FileReadError = class extends TaggedError("FileReadError") {
|
|
|
204851
204851
|
//#endregion
|
|
204852
204852
|
//#region package.json
|
|
204853
204853
|
var name = "@effect/tsgo";
|
|
204854
|
-
var version = "0.
|
|
204854
|
+
var version = "0.24.0";
|
|
204855
204855
|
|
|
204856
204856
|
//#endregion
|
|
204857
204857
|
//#region src/setup/consts.ts
|
|
@@ -206956,6 +206956,23 @@ var rules = [
|
|
|
206956
206956
|
}]
|
|
206957
206957
|
}
|
|
206958
206958
|
},
|
|
206959
|
+
{
|
|
206960
|
+
"name": "preferSchemaTypeProperty",
|
|
206961
|
+
"group": "style",
|
|
206962
|
+
"description": "Disallows Schema.Schema.Type<typeof X> in favor of typeof X.Type",
|
|
206963
|
+
"defaultSeverity": "off",
|
|
206964
|
+
"fixable": true,
|
|
206965
|
+
"supportedEffect": ["v3", "v4"],
|
|
206966
|
+
"codes": [377104],
|
|
206967
|
+
"preview": {
|
|
206968
|
+
"sourceText": "import { Schema } from \"effect\"\n\nconst User = Schema.Struct({ name: Schema.String })\ntype User = Schema.Schema.Type<typeof User>\n",
|
|
206969
|
+
"diagnostics": [{
|
|
206970
|
+
"start": 97,
|
|
206971
|
+
"end": 128,
|
|
206972
|
+
"text": "Do not use `Schema.Schema.Type<typeof X>` to extract a schema's type. Use `typeof X.Type` instead. effect(preferSchemaTypeProperty)"
|
|
206973
|
+
}]
|
|
206974
|
+
}
|
|
206975
|
+
},
|
|
206959
206976
|
{
|
|
206960
206977
|
"name": "redundantMapError",
|
|
206961
206978
|
"group": "style",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"schema.json"
|
|
24
24
|
],
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@effect/tsgo-win32-x64": "0.
|
|
27
|
-
"@effect/tsgo-win32-arm64": "0.
|
|
28
|
-
"@effect/tsgo-linux-x64": "0.
|
|
29
|
-
"@effect/tsgo-linux-arm64": "0.
|
|
30
|
-
"@effect/tsgo-linux-arm": "0.
|
|
31
|
-
"@effect/tsgo-darwin-
|
|
32
|
-
"@effect/tsgo-darwin-
|
|
26
|
+
"@effect/tsgo-win32-x64": "0.24.0",
|
|
27
|
+
"@effect/tsgo-win32-arm64": "0.24.0",
|
|
28
|
+
"@effect/tsgo-linux-x64": "0.24.0",
|
|
29
|
+
"@effect/tsgo-linux-arm64": "0.24.0",
|
|
30
|
+
"@effect/tsgo-linux-arm": "0.24.0",
|
|
31
|
+
"@effect/tsgo-darwin-x64": "0.24.0",
|
|
32
|
+
"@effect/tsgo-darwin-arm64": "0.24.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@effect/platform-node": "^4.0.0-beta.83",
|