@effect/tsgo 0.67.7 → 0.68.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
@@ -5,14 +5,14 @@ A wrapper for both [TSRS](https://github.com/oxc-project/tsrs) and [TypeScript-G
5
5
  <!-- supported-components:start -->
6
6
  ## Supported Package Versions
7
7
 
8
- The following target package versions are supported by `@effect/tsgo@0.67.7`:
8
+ The following target package versions are supported by `@effect/tsgo@0.68.0`:
9
9
 
10
10
  | Component | Supported versions |
11
11
  |---|---|
12
- | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261109.1` |
13
- | tsrs | `0.23.0-ts7.1.0-beta` |
14
- | Oxlint | `1.89.0`, `1.91.0`, `1.92.0`, `1.93.0` |
15
- | oxlint-tsgolint | `7.0.2004`, `7.0.2005`, `7.0.2006` |
12
+ | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261110.1` |
13
+ | tsrs | `0.24.0-ts7.1.0-beta` |
14
+ | Oxlint | `1.91.0`, `1.92.0`, `1.93.0` |
15
+ | oxlint-tsgolint | `7.0.2005`, `7.0.2006` |
16
16
  <!-- supported-components:end -->
17
17
 
18
18
  ## Installation
@@ -202,6 +202,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
202
202
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/multiple-catch-tag.md"><code>multipleCatchTag</code></a></td><td>Suggests collapsing consecutive Effect.catchTag transformations into a single Effect.catchTags call when semantics stay equivalent</td></tr>
203
203
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/nested-effect-gen-yield.md"><code>nestedEffectGenYield</code></a></td><td>Warns when yielding a nested bare Effect.gen inside an existing Effect generator context</td></tr>
204
204
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/new-schema-class.md"><code>newSchemaClass</code></a></td><td>Suggests using Schema make instead of new for Schema classes</td></tr>
205
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/on-exit-failure-to-on-error.md"><code>onExitFailureToOnError</code></a></td><td>Suggests Effect.onError when an Effect.onExit callback only acts on failure</td></tr>
205
206
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/option-match-to-from-option.md"><code>optionMatchToFromOption</code></a></td><td>Suggests Effect.fromOption when Option.match or an Option tag conditional only converts Some to Effect.succeed and None to Effect.fail</td></tr>
206
207
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/prefer-barrel-import.md"><code>preferBarrelImport</code></a></td><td>Reports imports of individual modules from packages configured in barrelImportPackages that should be named imports from the package barrel</td></tr>
207
208
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/prefer-namespace-import.md"><code>preferNamespaceImport</code></a></td><td>Reports named imports from packages configured in namespaceImportPackages that should be namespace imports</td></tr>
@@ -57911,7 +57911,7 @@ const runWith = (command, config) => {
57911
57911
  //#endregion
57912
57912
  //#region package.json
57913
57913
  var name = "@effect/tsgo";
57914
- var version = "0.67.7";
57914
+ var version = "0.68.0";
57915
57915
 
57916
57916
  //#endregion
57917
57917
  //#region src/metadata.json
@@ -58009,6 +58009,7 @@ var presets$1 = [
58009
58009
  "nonObjectEffectServiceType": "error",
58010
58010
  "obsoleteMatchImport": "warning",
58011
58011
  "obsoleteSchemaImport": "warning",
58012
+ "onExitFailureToOnError": "suggestion",
58012
58013
  "optionMatchToFromOption": "suggestion",
58013
58014
  "outdatedApi": "warning",
58014
58015
  "overriddenSchemaConstructor": "error",
@@ -58112,6 +58113,7 @@ var presets$1 = [
58112
58113
  "nonObjectEffectServiceType": "error",
58113
58114
  "obsoleteMatchImport": "error",
58114
58115
  "obsoleteSchemaImport": "error",
58116
+ "onExitFailureToOnError": "error",
58115
58117
  "optionMatchToFromOption": "error",
58116
58118
  "outdatedApi": "error",
58117
58119
  "overriddenSchemaConstructor": "error",
@@ -58285,6 +58287,7 @@ var presets$1 = [
58285
58287
  "multipleCatchTag": "warning",
58286
58288
  "nestedEffectGenYield": "warning",
58287
58289
  "newSchemaClass": "warning",
58290
+ "onExitFailureToOnError": "warning",
58288
58291
  "optionMatchToFromOption": "warning",
58289
58292
  "preferBarrelImport": "warning",
58290
58293
  "preferNamespaceImport": "warning",
@@ -60318,6 +60321,23 @@ var rules = [
60318
60321
  }]
60319
60322
  }
60320
60323
  },
60324
+ {
60325
+ "name": "onExitFailureToOnError",
60326
+ "group": "style",
60327
+ "description": "Suggests Effect.onError when an Effect.onExit callback only acts on failure",
60328
+ "defaultSeverity": "suggestion",
60329
+ "fixable": false,
60330
+ "supportedEffect": ["v3", "v4"],
60331
+ "codes": [377184],
60332
+ "preview": {
60333
+ "sourceText": "import { Effect, Exit } from \"effect\"\n\ndeclare const program: Effect.Effect<number, string>\n\nprogram.pipe(\n Effect.onExit((exit) =>\n Exit.isFailure(exit)\n ? Effect.logError(\"failed\", { cause: exit.cause })\n : Effect.void\n )\n)\n",
60334
+ "diagnostics": [{
60335
+ "start": 109,
60336
+ "end": 122,
60337
+ "text": "Effect.onError expresses this failure-only Effect.onExit callback more directly. effect(onExitFailureToOnError)"
60338
+ }]
60339
+ }
60340
+ },
60321
60341
  {
60322
60342
  "name": "optionMatchToFromOption",
60323
60343
  "group": "style",
@@ -60891,11 +60911,11 @@ var tags = {
60891
60911
  "typescript": {
60892
60912
  "latest": "7.0.2",
60893
60913
  "beta": "7.1.0-beta",
60894
- "next": "7.1.0-dev.20261109.1"
60914
+ "next": "7.1.0-dev.20261110.1"
60895
60915
  },
60896
60916
  "oxlint": { "latest": "1.93.0" },
60897
60917
  "oxlint-tsgolint": { "latest": "7.0.2006" },
60898
- "tsrs": { "latest": "0.23.0-ts7.1.0-beta" }
60918
+ "tsrs": { "latest": "0.24.0-ts7.1.0-beta" }
60899
60919
  };
60900
60920
  var components = {
60901
60921
  "typescript": {
@@ -60907,16 +60927,12 @@ var components = {
60907
60927
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a",
60908
60928
  "provider": "typescript"
60909
60929
  },
60910
- "7.1.0-dev.20261109.1": {
60911
- "gitHead": "f7973164a5f079a2d8b88d0fdb39347222549124",
60930
+ "7.1.0-dev.20261110.1": {
60931
+ "gitHead": "b7917e5e4c278f132ed19f777d968b6b1180fc24",
60912
60932
  "provider": "typescript"
60913
60933
  }
60914
60934
  },
60915
60935
  "oxlint-tsgolint": {
60916
- "7.0.2004": {
60917
- "gitHead": "a61289117febcb1a60cf3bc75ef2b6bbccc4b665",
60918
- "dependencies": { "typescript": "7.0.2" }
60919
- },
60920
60936
  "7.0.2005": {
60921
60937
  "gitHead": "4ebf80fd2b166cba4890c6896220fec4a1462b29",
60922
60938
  "dependencies": { "typescript": "7.0.2" }
@@ -60927,13 +60943,12 @@ var components = {
60927
60943
  }
60928
60944
  },
60929
60945
  "oxlint": {
60930
- "1.89.0": { "gitHead": "07ed78f4abde4020ca7919381ffea4da8616b78a" },
60931
60946
  "1.91.0": { "gitHead": "f3fcdcc61b08e9880476279ba21a363967940fa4" },
60932
60947
  "1.92.0": { "gitHead": "29daf901a1ea6b0a7a56c2b9d488bd2850d0abd4" },
60933
60948
  "1.93.0": { "gitHead": "7d8e1f4953a694e9705117f674933925142ed457" }
60934
60949
  },
60935
- "tsrs": { "0.23.0-ts7.1.0-beta": {
60936
- "gitHead": "fc384313300dee5a1ba64ff15282bee9307f59c3",
60950
+ "tsrs": { "0.24.0-ts7.1.0-beta": {
60951
+ "gitHead": "86de03ae428a956686af29177b50f0fdf4aee059",
60937
60952
  "typescript": {
60938
60953
  "version": "7.1.0-beta",
60939
60954
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a"
@@ -188,6 +188,7 @@ export const recommended = {
188
188
  "effecttsgo/non-object-effect-service-type": "error",
189
189
  "effecttsgo/obsolete-match-import": "warn",
190
190
  "effecttsgo/obsolete-schema-import": "warn",
191
+ "effecttsgo/on-exit-failure-to-on-error": "warn",
191
192
  "effecttsgo/option-match-to-from-option": "warn",
192
193
  "effecttsgo/outdated-api": "warn",
193
194
  "effecttsgo/overridden-schema-constructor": "error",
@@ -296,6 +297,7 @@ export const strict = {
296
297
  "effecttsgo/non-object-effect-service-type": "error",
297
298
  "effecttsgo/obsolete-match-import": "error",
298
299
  "effecttsgo/obsolete-schema-import": "error",
300
+ "effecttsgo/on-exit-failure-to-on-error": "error",
299
301
  "effecttsgo/option-match-to-from-option": "error",
300
302
  "effecttsgo/outdated-api": "error",
301
303
  "effecttsgo/overridden-schema-constructor": "error",
@@ -383,6 +385,7 @@ export const style = {
383
385
  "effecttsgo/multiple-catch-tag": "warn",
384
386
  "effecttsgo/nested-effect-gen-yield": "warn",
385
387
  "effecttsgo/new-schema-class": "warn",
388
+ "effecttsgo/on-exit-failure-to-on-error": "warn",
386
389
  "effecttsgo/option-match-to-from-option": "warn",
387
390
  "effecttsgo/prefer-barrel-import": "warn",
388
391
  "effecttsgo/prefer-namespace-import": "warn",
@@ -68,6 +68,7 @@
68
68
  "effecttsgo/non-object-effect-service-type": "error",
69
69
  "effecttsgo/obsolete-match-import": "warn",
70
70
  "effecttsgo/obsolete-schema-import": "warn",
71
+ "effecttsgo/on-exit-failure-to-on-error": "warn",
71
72
  "effecttsgo/option-match-to-from-option": "warn",
72
73
  "effecttsgo/outdated-api": "warn",
73
74
  "effecttsgo/overridden-schema-constructor": "error",
@@ -68,6 +68,7 @@
68
68
  "effecttsgo/non-object-effect-service-type": "error",
69
69
  "effecttsgo/obsolete-match-import": "error",
70
70
  "effecttsgo/obsolete-schema-import": "error",
71
+ "effecttsgo/on-exit-failure-to-on-error": "error",
71
72
  "effecttsgo/option-match-to-from-option": "error",
72
73
  "effecttsgo/outdated-api": "error",
73
74
  "effecttsgo/overridden-schema-constructor": "error",
@@ -47,6 +47,7 @@
47
47
  "effecttsgo/multiple-catch-tag": "warn",
48
48
  "effecttsgo/nested-effect-gen-yield": "warn",
49
49
  "effecttsgo/new-schema-class": "warn",
50
+ "effecttsgo/on-exit-failure-to-on-error": "warn",
50
51
  "effecttsgo/option-match-to-from-option": "warn",
51
52
  "effecttsgo/prefer-barrel-import": "warn",
52
53
  "effecttsgo/prefer-namespace-import": "warn",
@@ -2541,6 +2541,9 @@
2541
2541
  "effecttsgo/obsolete-schema-import": {
2542
2542
  "$ref": "#/definitions/RuleNoConfig"
2543
2543
  },
2544
+ "effecttsgo/on-exit-failure-to-on-error": {
2545
+ "$ref": "#/definitions/RuleNoConfig"
2546
+ },
2544
2547
  "effecttsgo/option-match-to-from-option": {
2545
2548
  "$ref": "#/definitions/RuleNoConfig"
2546
2549
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.67.7",
3
+ "version": "0.68.0",
4
4
  "type": "module",
5
5
  "description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
6
6
  "license": "MIT",
@@ -42,13 +42,13 @@
42
42
  "schema.json"
43
43
  ],
44
44
  "optionalDependencies": {
45
- "@effect/tsgo-win32-x64": "0.67.7",
46
- "@effect/tsgo-win32-arm64": "0.67.7",
47
- "@effect/tsgo-linux-x64": "0.67.7",
48
- "@effect/tsgo-linux-arm64": "0.67.7",
49
- "@effect/tsgo-linux-arm": "0.67.7",
50
- "@effect/tsgo-darwin-x64": "0.67.7",
51
- "@effect/tsgo-darwin-arm64": "0.67.7"
45
+ "@effect/tsgo-win32-x64": "0.68.0",
46
+ "@effect/tsgo-win32-arm64": "0.68.0",
47
+ "@effect/tsgo-linux-x64": "0.68.0",
48
+ "@effect/tsgo-linux-arm64": "0.68.0",
49
+ "@effect/tsgo-linux-arm": "0.68.0",
50
+ "@effect/tsgo-darwin-x64": "0.68.0",
51
+ "@effect/tsgo-darwin-arm64": "0.68.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@effect/platform-node": "^4.1.2",
package/schema.json CHANGED
@@ -2821,6 +2821,11 @@
2821
2821
  "default": "warning",
2822
2822
  "description": "Warns when importing @effect/schema in projects targeting Effect v4, where Schema is included directly in the effect package"
2823
2823
  },
2824
+ "onExitFailureToOnError": {
2825
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2826
+ "default": "suggestion",
2827
+ "description": "Suggests Effect.onError when an Effect.onExit callback only acts on failure"
2828
+ },
2824
2829
  "optionMatchToFromOption": {
2825
2830
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2826
2831
  "default": "suggestion",