@effect/tsgo 0.68.1 → 0.69.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.68.1`:
8
+ The following target package versions are supported by `@effect/tsgo@0.69.0`:
9
9
 
10
10
  | Component | Supported versions |
11
11
  |---|---|
12
- | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261110.1` |
13
- | tsrs | `0.24.0-ts7.1.0-beta` |
12
+ | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261112.1` |
13
+ | tsrs | `0.25.0-ts7.1.0-beta` |
14
14
  | Oxlint | `1.91.0`, `1.92.0`, `1.93.0` |
15
- | oxlint-tsgolint | `7.0.2005`, `7.0.2006` |
15
+ | oxlint-tsgolint | `7.0.2005`, `7.0.2006`, `7.0.2007` |
16
16
  <!-- supported-components:end -->
17
17
 
18
18
  ## Installation
@@ -197,6 +197,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
197
197
  <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>
198
198
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/match-to-result-or-option.md"><code>matchToResultOrOption</code></a></td><td>Suggests Effect.result, Effect.option or Effect.either when match handlers, or a map step followed by a catch step, only reify the outcome</td></tr>
199
199
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/missed-pipeable-opportunity.md"><code>missedPipeableOpportunity</code></a></td><td>Suggests using .pipe() for nested function calls</td></tr>
200
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/missing-concurrency-option.md"><code>missingConcurrencyOption</code></a></td><td>Reports Effect.all and Effect.forEach calls without an explicit concurrency option, which run sequentially by default</td></tr>
200
201
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/missing-effect-service-dependency.md"><code>missingEffectServiceDependency</code></a></td><td>Checks that Effect.Service dependencies satisfy all required layer inputs</td></tr>
201
202
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/missing-pipeable-signature.md"><code>missingPipeableSignature</code></a></td><td>Reports exported fixed-arity functions whose call signatures have no corresponding pipeable overload</td></tr>
202
203
  <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>
@@ -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.68.1";
57914
+ var version = "0.69.0";
57915
57915
 
57916
57916
  //#endregion
57917
57917
  //#region src/metadata.json
@@ -58282,6 +58282,7 @@ var presets$1 = [
58282
58282
  "matchEffectToMatch": "warning",
58283
58283
  "matchToResultOrOption": "warning",
58284
58284
  "missedPipeableOpportunity": "warning",
58285
+ "missingConcurrencyOption": "warning",
58285
58286
  "missingEffectServiceDependency": "warning",
58286
58287
  "missingPipeableSignature": "warning",
58287
58288
  "multipleCatchTag": "warning",
@@ -60236,6 +60237,23 @@ var rules = [
60236
60237
  }]
60237
60238
  }
60238
60239
  },
60240
+ {
60241
+ "name": "missingConcurrencyOption",
60242
+ "group": "style",
60243
+ "description": "Reports Effect.all and Effect.forEach calls without an explicit concurrency option, which run sequentially by default",
60244
+ "defaultSeverity": "off",
60245
+ "fixable": true,
60246
+ "supportedEffect": ["v3", "v4"],
60247
+ "codes": [377188],
60248
+ "preview": {
60249
+ "sourceText": "import { Effect } from \"effect\"\n\ndeclare const items: ReadonlyArray<number>\ndeclare const save: (n: number) => Effect.Effect<void>\n\nexport const program = Effect.forEach(items, save)\n",
60250
+ "diagnostics": [{
60251
+ "start": 155,
60252
+ "end": 169,
60253
+ "text": "`Effect.forEach` runs sequentially unless `concurrency` is set; pass `{ concurrency: 1 }` to keep sequential execution or set the concurrency you intend. effect(missingConcurrencyOption)"
60254
+ }]
60255
+ }
60256
+ },
60239
60257
  {
60240
60258
  "name": "missingEffectServiceDependency",
60241
60259
  "group": "style",
@@ -60911,11 +60929,11 @@ var tags = {
60911
60929
  "typescript": {
60912
60930
  "latest": "7.0.2",
60913
60931
  "beta": "7.1.0-beta",
60914
- "next": "7.1.0-dev.20261110.1"
60932
+ "next": "7.1.0-dev.20261112.1"
60915
60933
  },
60916
60934
  "oxlint": { "latest": "1.93.0" },
60917
- "oxlint-tsgolint": { "latest": "7.0.2006" },
60918
- "tsrs": { "latest": "0.24.0-ts7.1.0-beta" }
60935
+ "oxlint-tsgolint": { "latest": "7.0.2007" },
60936
+ "tsrs": { "latest": "0.25.0-ts7.1.0-beta" }
60919
60937
  };
60920
60938
  var components = {
60921
60939
  "typescript": {
@@ -60927,8 +60945,8 @@ var components = {
60927
60945
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a",
60928
60946
  "provider": "typescript"
60929
60947
  },
60930
- "7.1.0-dev.20261110.1": {
60931
- "gitHead": "b7917e5e4c278f132ed19f777d968b6b1180fc24",
60948
+ "7.1.0-dev.20261112.1": {
60949
+ "gitHead": "ad24728023c52ef6a92a278046cdb69621048365",
60932
60950
  "provider": "typescript"
60933
60951
  }
60934
60952
  },
@@ -60940,6 +60958,10 @@ var components = {
60940
60958
  "7.0.2006": {
60941
60959
  "gitHead": "420f4f134c4802af98780e3dc413f3452d53fe45",
60942
60960
  "dependencies": { "typescript": "7.0.2" }
60961
+ },
60962
+ "7.0.2007": {
60963
+ "gitHead": "1ae4bbd516db0a7a5390e86c90623dc343dea1e6",
60964
+ "dependencies": { "typescript": "7.0.2" }
60943
60965
  }
60944
60966
  },
60945
60967
  "oxlint": {
@@ -60947,8 +60969,8 @@ var components = {
60947
60969
  "1.92.0": { "gitHead": "29daf901a1ea6b0a7a56c2b9d488bd2850d0abd4" },
60948
60970
  "1.93.0": { "gitHead": "7d8e1f4953a694e9705117f674933925142ed457" }
60949
60971
  },
60950
- "tsrs": { "0.24.0-ts7.1.0-beta": {
60951
- "gitHead": "86de03ae428a956686af29177b50f0fdf4aee059",
60972
+ "tsrs": { "0.25.0-ts7.1.0-beta": {
60973
+ "gitHead": "0f82b670e4ff861840b1315f8610816229e73e3a",
60952
60974
  "typescript": {
60953
60975
  "version": "7.1.0-beta",
60954
60976
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a"
@@ -61025,7 +61047,8 @@ const tsrsTargets = [
61025
61047
  "linux-x64-musl",
61026
61048
  "linux-arm64-gnu",
61027
61049
  "linux-arm64-musl",
61028
- "win32-x64"
61050
+ "win32-x64",
61051
+ "win32-arm64"
61029
61052
  ];
61030
61053
  const tsrsTarget = (platform, arch, glibc) => {
61031
61054
  const target = platform === "linux" ? `${platform}-${arch}-${glibc ? "gnu" : "musl"}` : `${platform}-${arch}`;
@@ -61214,7 +61237,8 @@ const tsrsReplacementTargets = [
61214
61237
  "darwin-x64",
61215
61238
  "linux-x64-gnu",
61216
61239
  "linux-arm64-gnu",
61217
- "win32-x64"
61240
+ "win32-x64",
61241
+ "win32-arm64"
61218
61242
  ];
61219
61243
  const packagedComponentPath = (packageDir, component, version, fileName) => gen(function* () {
61220
61244
  const path = yield* Path$2;
@@ -380,6 +380,7 @@ export const style = {
380
380
  "effecttsgo/match-effect-to-match": "warn",
381
381
  "effecttsgo/match-to-result-or-option": "warn",
382
382
  "effecttsgo/missed-pipeable-opportunity": "warn",
383
+ "effecttsgo/missing-concurrency-option": "warn",
383
384
  "effecttsgo/missing-effect-service-dependency": "warn",
384
385
  "effecttsgo/missing-pipeable-signature": "warn",
385
386
  "effecttsgo/multiple-catch-tag": "warn",
@@ -42,6 +42,7 @@
42
42
  "effecttsgo/match-effect-to-match": "warn",
43
43
  "effecttsgo/match-to-result-or-option": "warn",
44
44
  "effecttsgo/missed-pipeable-opportunity": "warn",
45
+ "effecttsgo/missing-concurrency-option": "warn",
45
46
  "effecttsgo/missing-effect-service-dependency": "warn",
46
47
  "effecttsgo/missing-pipeable-signature": "warn",
47
48
  "effecttsgo/multiple-catch-tag": "warn",
@@ -2493,6 +2493,9 @@
2493
2493
  "effecttsgo/missed-pipeable-opportunity": {
2494
2494
  "$ref": "#/definitions/RuleNoConfig"
2495
2495
  },
2496
+ "effecttsgo/missing-concurrency-option": {
2497
+ "$ref": "#/definitions/RuleNoConfig"
2498
+ },
2496
2499
  "effecttsgo/missing-effect-context": {
2497
2500
  "$ref": "#/definitions/RuleNoConfig"
2498
2501
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.68.1",
3
+ "version": "0.69.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.68.1",
46
- "@effect/tsgo-win32-arm64": "0.68.1",
47
- "@effect/tsgo-linux-x64": "0.68.1",
48
- "@effect/tsgo-linux-arm64": "0.68.1",
49
- "@effect/tsgo-linux-arm": "0.68.1",
50
- "@effect/tsgo-darwin-x64": "0.68.1",
51
- "@effect/tsgo-darwin-arm64": "0.68.1"
45
+ "@effect/tsgo-win32-x64": "0.69.0",
46
+ "@effect/tsgo-win32-arm64": "0.69.0",
47
+ "@effect/tsgo-linux-x64": "0.69.0",
48
+ "@effect/tsgo-linux-arm64": "0.69.0",
49
+ "@effect/tsgo-linux-arm": "0.69.0",
50
+ "@effect/tsgo-darwin-x64": "0.69.0",
51
+ "@effect/tsgo-darwin-arm64": "0.69.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@effect/platform-node": "^4.1.2",
package/schema.json CHANGED
@@ -2741,6 +2741,11 @@
2741
2741
  "default": "off",
2742
2742
  "description": "Suggests using .pipe() for nested function calls"
2743
2743
  },
2744
+ "missingConcurrencyOption": {
2745
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2746
+ "default": "off",
2747
+ "description": "Reports Effect.all and Effect.forEach calls without an explicit concurrency option, which run sequentially by default"
2748
+ },
2744
2749
  "missingEffectContext": {
2745
2750
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2746
2751
  "default": "error",