@effect/tsgo 0.61.0 → 0.63.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
@@ -6,13 +6,13 @@ This project targets **Effect V4** (codename: "smol") primarily and also Effect
6
6
  <!-- supported-components:start -->
7
7
  ## Supported Package Versions
8
8
 
9
- The following target package versions are supported by `@effect/tsgo@0.61.0`:
9
+ The following target package versions are supported by `@effect/tsgo@0.63.0`:
10
10
 
11
11
  | Component | Supported versions |
12
12
  |---|---|
13
- | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261026.1` |
14
- | tsrs | `0.20.0-ts7.1.0-beta` |
15
- | Oxlint | `1.87.0`, `1.88.0`, `1.89.0` |
13
+ | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261028.1` |
14
+ | tsrs | `0.20.1-ts7.1.0-beta` |
15
+ | Oxlint | `1.88.0`, `1.89.0`, `1.90.0` |
16
16
  | oxlint-tsgolint | `7.0.2004`, `7.0.2005` |
17
17
  <!-- supported-components:end -->
18
18
 
@@ -172,11 +172,15 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
172
172
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/effect-map-void.md"><code>effectMapVoid</code></a></td><td>Suggests using Effect.asVoid instead of Effect.map(() =&gt; void 0), Effect.map(() =&gt; undefined), or Effect.map(() =&gt; {})</td></tr>
173
173
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/effect-sleep-zero-to-yield-now.md"><code>effectSleepZeroToYieldNow</code></a></td><td>Suggests Effect.yieldNow for cooperative yielding instead of sleeping for zero duration</td></tr>
174
174
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/effect-succeed-with-void.md"><code>effectSucceedWithVoid</code></a></td><td>Suggests using Effect.void instead of Effect.succeed(undefined) or Effect.succeed(void 0)</td></tr>
175
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/fail-cause-to-constructor.md"><code>failCauseToConstructor</code></a></td><td>Suggests Effect.fail/die/failSync/dieSync instead of failCause/failCauseSync wrapping a single Cause.fail/die</td></tr>
175
176
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-conditional-to-filter-or-fail.md"><code>flatMapConditionalToFilterOrFail</code></a></td><td>Suggests Effect.filterOrFail or Effect.filterOrElse when Effect.flatMap conditionally passes its input through with Effect.succeed</td></tr>
176
177
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-identity-to-flatten.md"><code>flatMapIdentityToFlatten</code></a></td><td>Suggests Effect.flatten instead of Effect.flatMap when the callback is Effect&#39;s identity export referenced directly or an unannotated function returning its parameter</td></tr>
177
178
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-ignored-param-to-and-then.md"><code>flatMapIgnoredParamToAndThen</code></a></td><td>Suggests using Effect.andThen instead of Effect.flatMap when a zero-parameter callback returns an existing Effect value</td></tr>
178
179
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-to-map.md"><code>flatMapToMap</code></a></td><td>Suggests using Effect.map instead of Effect.flatMap when the callback only wraps its result with Effect.succeed</td></tr>
179
180
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-to-tap.md"><code>flatMapToTap</code></a></td><td>Suggests Effect.tap when a flatMap or andThen callback runs an effect and returns its unchanged parameter</td></tr>
181
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/manual-metric-tap-to-track.md"><code>manualMetricTapToTrack</code></a></td><td>Suggests Effect.trackSuccesses/trackErrors/trackDefects when an Effect.tap/tapError/tapDefect only updates a metric</td></tr>
182
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/map-const-to-as.md"><code>mapConstToAs</code></a></td><td>Suggests using Effect.as instead of Effect.map when the callback ignores its input and returns a constant</td></tr>
183
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/map-map-error-to-map-both.md"><code>mapMapErrorToMapBoth</code></a></td><td>Suggests Effect.mapBoth when Effect.map and Effect.mapError are adjacent steps of a piping flow</td></tr>
180
184
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/map-some-to-as-some.md"><code>mapSomeToAsSome</code></a></td><td>Suggests using Effect.asSome instead of Effect.map when the mapper only wraps the success value with Option.some</td></tr>
181
185
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/match-effect-to-map-both.md"><code>matchEffectToMapBoth</code></a></td><td>Suggests Effect.mapBoth when Effect.matchEffect only transforms the failure and success channels</td></tr>
182
186
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/match-effect-to-match.md"><code>matchEffectToMatch</code></a></td><td>Suggests Effect.match or Effect.matchCause when both Effect.matchEffect handlers only return Effect.succeed</td></tr>
@@ -52769,7 +52769,7 @@ const runWith = (command, config) => {
52769
52769
  //#endregion
52770
52770
  //#region package.json
52771
52771
  var name = "@effect/tsgo";
52772
- var version = "0.61.0";
52772
+ var version = "0.63.0";
52773
52773
 
52774
52774
  //#endregion
52775
52775
  //#region src/metadata.json
@@ -52833,6 +52833,7 @@ var presets$1 = [
52833
52833
  "effectSucceedWithVoid": "suggestion",
52834
52834
  "errorPayloadShadowsName": "suggestion",
52835
52835
  "experimentalApiUsage": "warning",
52836
+ "failCauseToConstructor": "suggestion",
52836
52837
  "flatMapConditionalToFilterOrFail": "suggestion",
52837
52838
  "flatMapIdentityToFlatten": "suggestion",
52838
52839
  "flatMapIgnoredParamToAndThen": "suggestion",
@@ -52847,6 +52848,8 @@ var presets$1 = [
52847
52848
  "lazyEffect": "suggestion",
52848
52849
  "lazyPromiseInEffectSync": "warning",
52849
52850
  "leakingRequirements": "suggestion",
52851
+ "manualMetricTapToTrack": "suggestion",
52852
+ "mapConstToAs": "suggestion",
52850
52853
  "mapSomeToAsSome": "suggestion",
52851
52854
  "matchEffectToMapBoth": "suggestion",
52852
52855
  "matchEffectToMatch": "suggestion",
@@ -52927,6 +52930,7 @@ var presets$1 = [
52927
52930
  "effectSucceedWithVoid": "error",
52928
52931
  "errorPayloadShadowsName": "error",
52929
52932
  "experimentalApiUsage": "error",
52933
+ "failCauseToConstructor": "error",
52930
52934
  "flatMapConditionalToFilterOrFail": "error",
52931
52935
  "flatMapIdentityToFlatten": "error",
52932
52936
  "flatMapIgnoredParamToAndThen": "error",
@@ -52941,6 +52945,8 @@ var presets$1 = [
52941
52945
  "lazyEffect": "error",
52942
52946
  "lazyPromiseInEffectSync": "error",
52943
52947
  "leakingRequirements": "error",
52948
+ "manualMetricTapToTrack": "error",
52949
+ "mapConstToAs": "error",
52944
52950
  "mapSomeToAsSome": "error",
52945
52951
  "matchEffectToMapBoth": "error",
52946
52952
  "matchEffectToMatch": "error",
@@ -53101,11 +53107,15 @@ var presets$1 = [
53101
53107
  "effectMapVoid": "warning",
53102
53108
  "effectSleepZeroToYieldNow": "warning",
53103
53109
  "effectSucceedWithVoid": "warning",
53110
+ "failCauseToConstructor": "warning",
53104
53111
  "flatMapConditionalToFilterOrFail": "warning",
53105
53112
  "flatMapIdentityToFlatten": "warning",
53106
53113
  "flatMapIgnoredParamToAndThen": "warning",
53107
53114
  "flatMapToMap": "warning",
53108
53115
  "flatMapToTap": "warning",
53116
+ "manualMetricTapToTrack": "warning",
53117
+ "mapConstToAs": "warning",
53118
+ "mapMapErrorToMapBoth": "warning",
53109
53119
  "mapSomeToAsSome": "warning",
53110
53120
  "matchEffectToMapBoth": "warning",
53111
53121
  "matchEffectToMatch": "warning",
@@ -54326,7 +54336,7 @@ var rules = [
54326
54336
  "diagnostics": [{
54327
54337
  "start": 142,
54328
54338
  "end": 158,
54329
- "text": "This code uses `JSON.parse` or `JSON.stringify`. Use `Schema.UnknownFromJsonString` for unknown shapes, `Schema.fromJsonString(schema)` for known ones, or `Schema.toCodecJson(schema)` when working with JSON values instead of strings. effect(preferSchemaOverJson)"
54339
+ "text": "This code uses `JSON.parse` or `JSON.stringify`. Use `Schema.fromJsonString(Schema.Unknown)` for unknown shapes, `Schema.fromJsonString(schema)` for known ones, or `Schema.toCodecJson(schema)` when working with JSON values instead of strings. effect(preferSchemaOverJson)"
54330
54340
  }]
54331
54341
  }
54332
54342
  },
@@ -54704,6 +54714,23 @@ var rules = [
54704
54714
  }]
54705
54715
  }
54706
54716
  },
54717
+ {
54718
+ "name": "failCauseToConstructor",
54719
+ "group": "style",
54720
+ "description": "Suggests Effect.fail/die/failSync/dieSync instead of failCause/failCauseSync wrapping a single Cause.fail/die",
54721
+ "defaultSeverity": "suggestion",
54722
+ "fixable": true,
54723
+ "supportedEffect": ["v3", "v4"],
54724
+ "codes": [377155],
54725
+ "preview": {
54726
+ "sourceText": "import { Cause, Effect } from \"effect\"\n\nexport const crashed = Effect.failCause(Cause.die(new Error(\"boom\")))\n",
54727
+ "diagnostics": [{
54728
+ "start": 63,
54729
+ "end": 79,
54730
+ "text": "`Effect.die` expresses this failure directly instead of wrapping `Cause.die` in `Effect.failCause`. effect(failCauseToConstructor)"
54731
+ }]
54732
+ }
54733
+ },
54707
54734
  {
54708
54735
  "name": "flatMapConditionalToFilterOrFail",
54709
54736
  "group": "style",
@@ -54789,6 +54816,57 @@ var rules = [
54789
54816
  }]
54790
54817
  }
54791
54818
  },
54819
+ {
54820
+ "name": "manualMetricTapToTrack",
54821
+ "group": "style",
54822
+ "description": "Suggests Effect.trackSuccesses/trackErrors/trackDefects when an Effect.tap/tapError/tapDefect only updates a metric",
54823
+ "defaultSeverity": "suggestion",
54824
+ "fixable": true,
54825
+ "supportedEffect": ["v4"],
54826
+ "codes": [377154],
54827
+ "preview": {
54828
+ "sourceText": "import { Effect, Metric } from \"effect\"\n\nconst responseSize = Metric.gauge(\"response_size\")\n\ndeclare const handleRequest: Effect.Effect<number, Error>\n\nexport const instrumented = handleRequest.pipe(Effect.tap((size) => Metric.update(responseSize, size)))\n",
54829
+ "diagnostics": [{
54830
+ "start": 199,
54831
+ "end": 209,
54832
+ "text": "`Effect.trackSuccesses` expresses recording a metric on every success directly. effect(manualMetricTapToTrack)"
54833
+ }]
54834
+ }
54835
+ },
54836
+ {
54837
+ "name": "mapConstToAs",
54838
+ "group": "style",
54839
+ "description": "Suggests using Effect.as instead of Effect.map when the callback ignores its input and returns a constant",
54840
+ "defaultSeverity": "suggestion",
54841
+ "fixable": true,
54842
+ "supportedEffect": ["v3", "v4"],
54843
+ "codes": [377152],
54844
+ "preview": {
54845
+ "sourceText": "import { Effect } from \"effect\"\n\nconst saveUser = (name: string): Effect.Effect<number> => Effect.succeed(name.length)\n\nexport const saved = saveUser(\"alice\").pipe(Effect.map(() => \"saved\"))\n",
54846
+ "diagnostics": [{
54847
+ "start": 164,
54848
+ "end": 174,
54849
+ "text": "`Effect.as` expresses replacing the success value with a constant directly. effect(mapConstToAs)"
54850
+ }]
54851
+ }
54852
+ },
54853
+ {
54854
+ "name": "mapMapErrorToMapBoth",
54855
+ "group": "style",
54856
+ "description": "Suggests Effect.mapBoth when Effect.map and Effect.mapError are adjacent steps of a piping flow",
54857
+ "defaultSeverity": "off",
54858
+ "fixable": true,
54859
+ "supportedEffect": ["v3", "v4"],
54860
+ "codes": [377153],
54861
+ "preview": {
54862
+ "sourceText": "import { Data, Effect } from \"effect\"\n\nclass TaskError extends Data.TaggedError(\"TaskError\")<{\n readonly message: string\n}> {}\n\ndeclare const fetchCount: Effect.Effect<number, string>\n\n// MUST TRIGGER: adjacent Effect.map + Effect.mapError is a single Effect.mapBoth\nexport const isPositive = fetchCount.pipe(\n Effect.map((n) => n > 0),\n Effect.mapError((message) => new TaskError({ message }))\n)\n",
54863
+ "diagnostics": [{
54864
+ "start": 341,
54865
+ "end": 356,
54866
+ "text": "`Effect.map` + `Effect.mapError` transform the success and failure channels one step at a time; `Effect.mapBoth` expresses both transformations in a single step. effect(mapMapErrorToMapBoth)"
54867
+ }]
54868
+ }
54869
+ },
54792
54870
  {
54793
54871
  "name": "mapSomeToAsSome",
54794
54872
  "group": "style",
@@ -55442,11 +55520,11 @@ var tags = {
55442
55520
  "typescript": {
55443
55521
  "latest": "7.0.2",
55444
55522
  "beta": "7.1.0-beta",
55445
- "next": "7.1.0-dev.20261026.1"
55523
+ "next": "7.1.0-dev.20261028.1"
55446
55524
  },
55447
- "oxlint": { "latest": "1.89.0" },
55525
+ "oxlint": { "latest": "1.90.0" },
55448
55526
  "oxlint-tsgolint": { "latest": "7.0.2005" },
55449
- "tsrs": { "latest": "0.20.0-ts7.1.0-beta" }
55527
+ "tsrs": { "latest": "0.20.1-ts7.1.0-beta" }
55450
55528
  };
55451
55529
  var components = {
55452
55530
  "typescript": {
@@ -55458,8 +55536,8 @@ var components = {
55458
55536
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a",
55459
55537
  "provider": "typescript"
55460
55538
  },
55461
- "7.1.0-dev.20261026.1": {
55462
- "gitHead": "8a62bbe746909624b69b6e671026b454da2f02cf",
55539
+ "7.1.0-dev.20261028.1": {
55540
+ "gitHead": "97aedd3b75e8e18a3cf2786ffbdb2e6c88aea23f",
55463
55541
  "provider": "typescript"
55464
55542
  }
55465
55543
  },
@@ -55474,12 +55552,12 @@ var components = {
55474
55552
  }
55475
55553
  },
55476
55554
  "oxlint": {
55477
- "1.87.0": { "gitHead": "2bd08ebe8f36fcf1954a675ffdeb4c6d0129f609" },
55478
55555
  "1.88.0": { "gitHead": "6941b4ed45ead21c45bc2164cb80a180eed85b43" },
55479
- "1.89.0": { "gitHead": "07ed78f4abde4020ca7919381ffea4da8616b78a" }
55556
+ "1.89.0": { "gitHead": "07ed78f4abde4020ca7919381ffea4da8616b78a" },
55557
+ "1.90.0": { "gitHead": "9b6fff42fa6edf0bec55861b6f0764c7b9acd86b" }
55480
55558
  },
55481
- "tsrs": { "0.20.0-ts7.1.0-beta": {
55482
- "gitHead": "d197eeea709616d61930c2bd5eac048471e404b8",
55559
+ "tsrs": { "0.20.1-ts7.1.0-beta": {
55560
+ "gitHead": "77d3cddb44540734abc33a42ccca4d3f33bee527",
55483
55561
  "typescript": {
55484
55562
  "version": "7.1.0-beta",
55485
55563
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a"
@@ -152,6 +152,7 @@ export const recommended = {
152
152
  "effecttsgo/effect-succeed-with-void": "warn",
153
153
  "effecttsgo/error-payload-shadows-name": "warn",
154
154
  "effecttsgo/experimental-api-usage": "warn",
155
+ "effecttsgo/fail-cause-to-constructor": "warn",
155
156
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
156
157
  "effecttsgo/flat-map-identity-to-flatten": "warn",
157
158
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
@@ -166,6 +167,8 @@ export const recommended = {
166
167
  "effecttsgo/lazy-effect": "warn",
167
168
  "effecttsgo/lazy-promise-in-effect-sync": "warn",
168
169
  "effecttsgo/leaking-requirements": "warn",
170
+ "effecttsgo/manual-metric-tap-to-track": "warn",
171
+ "effecttsgo/map-const-to-as": "warn",
169
172
  "effecttsgo/map-some-to-as-some": "warn",
170
173
  "effecttsgo/match-effect-to-map-both": "warn",
171
174
  "effecttsgo/match-effect-to-match": "warn",
@@ -251,6 +254,7 @@ export const strict = {
251
254
  "effecttsgo/effect-succeed-with-void": "error",
252
255
  "effecttsgo/error-payload-shadows-name": "error",
253
256
  "effecttsgo/experimental-api-usage": "error",
257
+ "effecttsgo/fail-cause-to-constructor": "error",
254
258
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
255
259
  "effecttsgo/flat-map-identity-to-flatten": "error",
256
260
  "effecttsgo/flat-map-ignored-param-to-and-then": "error",
@@ -265,6 +269,8 @@ export const strict = {
265
269
  "effecttsgo/lazy-effect": "error",
266
270
  "effecttsgo/lazy-promise-in-effect-sync": "error",
267
271
  "effecttsgo/leaking-requirements": "error",
272
+ "effecttsgo/manual-metric-tap-to-track": "error",
273
+ "effecttsgo/map-const-to-as": "error",
268
274
  "effecttsgo/map-some-to-as-some": "error",
269
275
  "effecttsgo/match-effect-to-map-both": "error",
270
276
  "effecttsgo/match-effect-to-match": "error",
@@ -341,11 +347,15 @@ export const style = {
341
347
  "effecttsgo/effect-map-void": "warn",
342
348
  "effecttsgo/effect-sleep-zero-to-yield-now": "warn",
343
349
  "effecttsgo/effect-succeed-with-void": "warn",
350
+ "effecttsgo/fail-cause-to-constructor": "warn",
344
351
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
345
352
  "effecttsgo/flat-map-identity-to-flatten": "warn",
346
353
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
347
354
  "effecttsgo/flat-map-to-map": "warn",
348
355
  "effecttsgo/flat-map-to-tap": "warn",
356
+ "effecttsgo/manual-metric-tap-to-track": "warn",
357
+ "effecttsgo/map-const-to-as": "warn",
358
+ "effecttsgo/map-map-error-to-map-both": "warn",
349
359
  "effecttsgo/map-some-to-as-some": "warn",
350
360
  "effecttsgo/match-effect-to-map-both": "warn",
351
361
  "effecttsgo/match-effect-to-match": "warn",
@@ -34,6 +34,7 @@
34
34
  "effecttsgo/effect-succeed-with-void": "warn",
35
35
  "effecttsgo/error-payload-shadows-name": "warn",
36
36
  "effecttsgo/experimental-api-usage": "warn",
37
+ "effecttsgo/fail-cause-to-constructor": "warn",
37
38
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
38
39
  "effecttsgo/flat-map-identity-to-flatten": "warn",
39
40
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
@@ -48,6 +49,8 @@
48
49
  "effecttsgo/lazy-effect": "warn",
49
50
  "effecttsgo/lazy-promise-in-effect-sync": "warn",
50
51
  "effecttsgo/leaking-requirements": "warn",
52
+ "effecttsgo/manual-metric-tap-to-track": "warn",
53
+ "effecttsgo/map-const-to-as": "warn",
51
54
  "effecttsgo/map-some-to-as-some": "warn",
52
55
  "effecttsgo/match-effect-to-map-both": "warn",
53
56
  "effecttsgo/match-effect-to-match": "warn",
@@ -34,6 +34,7 @@
34
34
  "effecttsgo/effect-succeed-with-void": "error",
35
35
  "effecttsgo/error-payload-shadows-name": "error",
36
36
  "effecttsgo/experimental-api-usage": "error",
37
+ "effecttsgo/fail-cause-to-constructor": "error",
37
38
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
38
39
  "effecttsgo/flat-map-identity-to-flatten": "error",
39
40
  "effecttsgo/flat-map-ignored-param-to-and-then": "error",
@@ -48,6 +49,8 @@
48
49
  "effecttsgo/lazy-effect": "error",
49
50
  "effecttsgo/lazy-promise-in-effect-sync": "error",
50
51
  "effecttsgo/leaking-requirements": "error",
52
+ "effecttsgo/manual-metric-tap-to-track": "error",
53
+ "effecttsgo/map-const-to-as": "error",
51
54
  "effecttsgo/map-some-to-as-some": "error",
52
55
  "effecttsgo/match-effect-to-map-both": "error",
53
56
  "effecttsgo/match-effect-to-match": "error",
@@ -25,11 +25,15 @@
25
25
  "effecttsgo/effect-map-void": "warn",
26
26
  "effecttsgo/effect-sleep-zero-to-yield-now": "warn",
27
27
  "effecttsgo/effect-succeed-with-void": "warn",
28
+ "effecttsgo/fail-cause-to-constructor": "warn",
28
29
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
29
30
  "effecttsgo/flat-map-identity-to-flatten": "warn",
30
31
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
31
32
  "effecttsgo/flat-map-to-map": "warn",
32
33
  "effecttsgo/flat-map-to-tap": "warn",
34
+ "effecttsgo/manual-metric-tap-to-track": "warn",
35
+ "effecttsgo/map-const-to-as": "warn",
36
+ "effecttsgo/map-map-error-to-map-both": "warn",
33
37
  "effecttsgo/map-some-to-as-some": "warn",
34
38
  "effecttsgo/match-effect-to-map-both": "warn",
35
39
  "effecttsgo/match-effect-to-match": "warn",
@@ -837,6 +837,18 @@
837
837
  },
838
838
  "type": "object"
839
839
  },
840
+ "AwaitThenableConfig": {
841
+ "additionalProperties": false,
842
+ "properties": {
843
+ "allowMixedPromiseArrays": {
844
+ "default": false,
845
+ "description": "Allow Promise aggregators such as `Promise.all` to receive mixed arrays or\niterables containing at least one potentially Promise-like value.\nInputs containing only synchronous values are still reported.",
846
+ "markdownDescription": "Allow Promise aggregators such as `Promise.all` to receive mixed arrays or\niterables containing at least one potentially Promise-like value.\nInputs containing only synchronous values are still reported.",
847
+ "type": "boolean"
848
+ }
849
+ },
850
+ "type": "object"
851
+ },
840
852
  "BanConfigValue": {
841
853
  "anyOf": [
842
854
  {
@@ -2341,6 +2353,9 @@
2341
2353
  "effecttsgo/extends-native-error": {
2342
2354
  "$ref": "#/definitions/RuleNoConfig"
2343
2355
  },
2356
+ "effecttsgo/fail-cause-to-constructor": {
2357
+ "$ref": "#/definitions/RuleNoConfig"
2358
+ },
2344
2359
  "effecttsgo/flat-map-conditional-to-filter-or-fail": {
2345
2360
  "$ref": "#/definitions/RuleNoConfig"
2346
2361
  },
@@ -2416,6 +2431,15 @@
2416
2431
  "effecttsgo/leaking-requirements": {
2417
2432
  "$ref": "#/definitions/RuleNoConfig"
2418
2433
  },
2434
+ "effecttsgo/manual-metric-tap-to-track": {
2435
+ "$ref": "#/definitions/RuleNoConfig"
2436
+ },
2437
+ "effecttsgo/map-const-to-as": {
2438
+ "$ref": "#/definitions/RuleNoConfig"
2439
+ },
2440
+ "effecttsgo/map-map-error-to-map-both": {
2441
+ "$ref": "#/definitions/RuleNoConfig"
2442
+ },
2419
2443
  "effecttsgo/map-some-to-as-some": {
2420
2444
  "$ref": "#/definitions/RuleNoConfig"
2421
2445
  },
@@ -7800,7 +7824,24 @@
7800
7824
  ]
7801
7825
  },
7802
7826
  "typescript/await-thenable": {
7803
- "$ref": "#/definitions/RuleNoConfig"
7827
+ "anyOf": [
7828
+ {
7829
+ "$ref": "#/definitions/RuleNoConfig"
7830
+ },
7831
+ {
7832
+ "items": [
7833
+ {
7834
+ "$ref": "#/definitions/AllowWarnDeny"
7835
+ },
7836
+ {
7837
+ "$ref": "#/definitions/AwaitThenableConfig"
7838
+ }
7839
+ ],
7840
+ "maxItems": 2,
7841
+ "minItems": 2,
7842
+ "type": "array"
7843
+ }
7844
+ ]
7804
7845
  },
7805
7846
  "typescript/ban-ts-comment": {
7806
7847
  "anyOf": [
@@ -8586,6 +8627,9 @@
8586
8627
  "typescript/no-unsafe-declaration-merging": {
8587
8628
  "$ref": "#/definitions/RuleNoConfig"
8588
8629
  },
8630
+ "typescript/no-unsafe-enum-assignment": {
8631
+ "$ref": "#/definitions/RuleNoConfig"
8632
+ },
8589
8633
  "typescript/no-unsafe-enum-comparison": {
8590
8634
  "$ref": "#/definitions/RuleNoConfig"
8591
8635
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.61.0",
3
+ "version": "0.63.0",
4
4
  "type": "module",
5
5
  "description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
6
6
  "license": "MIT",
@@ -41,13 +41,13 @@
41
41
  "schema.json"
42
42
  ],
43
43
  "optionalDependencies": {
44
- "@effect/tsgo-win32-x64": "0.61.0",
45
- "@effect/tsgo-win32-arm64": "0.61.0",
46
- "@effect/tsgo-linux-x64": "0.61.0",
47
- "@effect/tsgo-linux-arm64": "0.61.0",
48
- "@effect/tsgo-linux-arm": "0.61.0",
49
- "@effect/tsgo-darwin-x64": "0.61.0",
50
- "@effect/tsgo-darwin-arm64": "0.61.0"
44
+ "@effect/tsgo-win32-x64": "0.63.0",
45
+ "@effect/tsgo-win32-arm64": "0.63.0",
46
+ "@effect/tsgo-linux-x64": "0.63.0",
47
+ "@effect/tsgo-linux-arm64": "0.63.0",
48
+ "@effect/tsgo-linux-arm": "0.63.0",
49
+ "@effect/tsgo-darwin-x64": "0.63.0",
50
+ "@effect/tsgo-darwin-arm64": "0.63.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@effect/platform-node": "^4.0.2",
package/schema.json CHANGED
@@ -2519,6 +2519,11 @@
2519
2519
  "default": "off",
2520
2520
  "description": "Warns when a class directly extends the native Error class"
2521
2521
  },
2522
+ "failCauseToConstructor": {
2523
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2524
+ "default": "suggestion",
2525
+ "description": "Suggests Effect.fail/die/failSync/dieSync instead of failCause/failCauseSync wrapping a single Cause.fail/die"
2526
+ },
2522
2527
  "flatMapConditionalToFilterOrFail": {
2523
2528
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2524
2529
  "default": "suggestion",
@@ -2644,6 +2649,21 @@
2644
2649
  "default": "suggestion",
2645
2650
  "description": "Detects implementation services leaked in service methods"
2646
2651
  },
2652
+ "manualMetricTapToTrack": {
2653
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2654
+ "default": "suggestion",
2655
+ "description": "Suggests Effect.trackSuccesses/trackErrors/trackDefects when an Effect.tap/tapError/tapDefect only updates a metric"
2656
+ },
2657
+ "mapConstToAs": {
2658
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2659
+ "default": "suggestion",
2660
+ "description": "Suggests using Effect.as instead of Effect.map when the callback ignores its input and returns a constant"
2661
+ },
2662
+ "mapMapErrorToMapBoth": {
2663
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2664
+ "default": "off",
2665
+ "description": "Suggests Effect.mapBoth when Effect.map and Effect.mapError are adjacent steps of a piping flow"
2666
+ },
2647
2667
  "mapSomeToAsSome": {
2648
2668
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2649
2669
  "default": "suggestion",