@effect/tsgo 0.73.7 → 0.74.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 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.73.7`:
8
+ The following target package versions are supported by `@effect/tsgo@0.74.1`:
9
9
 
10
10
  | Component | Supported versions |
11
11
  |---|---|
12
- | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261124.1` |
12
+ | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261126.1` |
13
13
  | tsrs | `7.1.0-beta.tsrs2`, `7.1.0-beta.tsrs4`, `7.1.0-beta.tsrs5` |
14
14
  | Oxlint | `1.93.0`, `1.94.0`, `1.95.0` |
15
- | oxlint-tsgolint | `7.0.2006`, `7.0.2008` |
15
+ | oxlint-tsgolint | `7.0.2006`, `7.0.2009` |
16
16
  <!-- supported-components:end -->
17
17
 
18
18
  ## Installation
@@ -229,6 +229,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
229
229
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/schema-struct-with-tag.md"><code>schemaStructWithTag</code></a></td><td>Suggests using Schema.TaggedStruct instead of Schema.Struct with _tag field</td></tr>
230
230
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/schema-union-of-literals.md"><code>schemaUnionOfLiterals</code></a></td><td>Suggests combining multiple Schema.Literal calls in Schema.Union into a single Schema.Literal</td></tr>
231
231
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/service-not-as-class.md"><code>serviceNotAsClass</code></a></td><td>Warns when Context.Service is used as a variable instead of a class declaration</td></tr>
232
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/sql-tagged-row-type-to-sql-schema.md"><code>sqlTaggedRowTypeToSqlSchema</code></a></td><td>Suggests SqlSchema instead of an explicit row type argument on Effect&#39;s sql tagged template</td></tr>
232
233
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/strict-boolean-expressions.md"><code>strictBooleanExpressions</code></a></td><td>Enforces boolean types in conditional expressions for type safety</td></tr>
233
234
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/suspend-fail-to-fail-sync.md"><code>suspendFailToFailSync</code></a></td><td>Suggests Effect.failSync/dieSync instead of Effect.suspend wrapping a single Effect.fail/die</td></tr>
234
235
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/sync-to-succeed.md"><code>syncToSucceed</code></a></td><td>Suggests using Effect.succeed instead of Effect.sync when the thunk returns a constant value</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.73.7";
57914
+ var version = "0.74.1";
57915
57915
 
57916
57916
  //#endregion
57917
57917
  //#region src/metadata.json
@@ -58317,6 +58317,7 @@ var presets$1 = [
58317
58317
  "schemaStructWithTag": "warning",
58318
58318
  "schemaUnionOfLiterals": "warning",
58319
58319
  "serviceNotAsClass": "warning",
58320
+ "sqlTaggedRowTypeToSqlSchema": "warning",
58320
58321
  "strictBooleanExpressions": "warning",
58321
58322
  "suspendFailToFailSync": "warning",
58322
58323
  "syncToSucceed": "warning",
@@ -60781,6 +60782,23 @@ var rules = [
60781
60782
  }]
60782
60783
  }
60783
60784
  },
60785
+ {
60786
+ "name": "sqlTaggedRowTypeToSqlSchema",
60787
+ "group": "style",
60788
+ "description": "Suggests SqlSchema instead of an explicit row type argument on Effect's sql tagged template",
60789
+ "defaultSeverity": "off",
60790
+ "fixable": false,
60791
+ "supportedEffect": ["v4"],
60792
+ "codes": [377224],
60793
+ "preview": {
60794
+ "sourceText": "import { Effect } from \"effect\"\nimport { SqlClient } from \"effect/sql\"\n\ninterface CommandRow {\n readonly command_id: string\n}\n\nexport const program = Effect.gen(function*() {\n const sql = yield* SqlClient.SqlClient\n return yield* sql<CommandRow>`SELECT command_id FROM commands`\n})\n",
60795
+ "diagnostics": [{
60796
+ "start": 233,
60797
+ "end": 236,
60798
+ "text": "The sql tagged template only asserts its row type CommandRow and does not validate it at runtime; use SqlSchema (findAll, findOne, findOneOption, findNonEmpty, void) with a Schema for Result to decode rows. effect(sqlTaggedRowTypeToSqlSchema)"
60799
+ }]
60800
+ }
60801
+ },
60784
60802
  {
60785
60803
  "name": "strictBooleanExpressions",
60786
60804
  "group": "style",
@@ -61023,10 +61041,10 @@ var tags = {
61023
61041
  "typescript": {
61024
61042
  "latest": "7.0.2",
61025
61043
  "beta": "7.1.0-beta",
61026
- "next": "7.1.0-dev.20261124.1"
61044
+ "next": "7.1.0-dev.20261126.1"
61027
61045
  },
61028
61046
  "oxlint": { "latest": "1.95.0" },
61029
- "oxlint-tsgolint": { "latest": "7.0.2008" },
61047
+ "oxlint-tsgolint": { "latest": "7.0.2009" },
61030
61048
  "tsrs": { "latest": "7.1.0-beta.tsrs5" }
61031
61049
  };
61032
61050
  var components = {
@@ -61039,8 +61057,8 @@ var components = {
61039
61057
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a",
61040
61058
  "provider": "typescript"
61041
61059
  },
61042
- "7.1.0-dev.20261124.1": {
61043
- "gitHead": "88071f4e84b1517c58429b4e10908275824c225c",
61060
+ "7.1.0-dev.20261126.1": {
61061
+ "gitHead": "e0fce98eec043375c0d9cf5906542e7922570237",
61044
61062
  "provider": "typescript"
61045
61063
  }
61046
61064
  },
@@ -61049,8 +61067,8 @@ var components = {
61049
61067
  "gitHead": "420f4f134c4802af98780e3dc413f3452d53fe45",
61050
61068
  "dependencies": { "typescript": "7.0.2" }
61051
61069
  },
61052
- "7.0.2008": {
61053
- "gitHead": "eac99bdcc87d40667bcb68bcd746c99e8943731a",
61070
+ "7.0.2009": {
61071
+ "gitHead": "dd617d51d187882176a4e8cc7b9efdcd2a0d9e5e",
61054
61072
  "dependencies": { "typescript": "7.0.2" }
61055
61073
  }
61056
61074
  },
@@ -415,6 +415,7 @@ export const style = {
415
415
  "effecttsgo/schema-struct-with-tag": "warn",
416
416
  "effecttsgo/schema-union-of-literals": "warn",
417
417
  "effecttsgo/service-not-as-class": "warn",
418
+ "effecttsgo/sql-tagged-row-type-to-sql-schema": "warn",
418
419
  "effecttsgo/strict-boolean-expressions": "warn",
419
420
  "effecttsgo/suspend-fail-to-fail-sync": "warn",
420
421
  "effecttsgo/sync-to-succeed": "warn",
@@ -71,6 +71,7 @@
71
71
  "effecttsgo/schema-struct-with-tag": "warn",
72
72
  "effecttsgo/schema-union-of-literals": "warn",
73
73
  "effecttsgo/service-not-as-class": "warn",
74
+ "effecttsgo/sql-tagged-row-type-to-sql-schema": "warn",
74
75
  "effecttsgo/strict-boolean-expressions": "warn",
75
76
  "effecttsgo/suspend-fail-to-fail-sync": "warn",
76
77
  "effecttsgo/sync-to-succeed": "warn",
@@ -2710,6 +2710,9 @@
2710
2710
  "effecttsgo/service-not-as-class": {
2711
2711
  "$ref": "#/definitions/RuleNoConfig"
2712
2712
  },
2713
+ "effecttsgo/sql-tagged-row-type-to-sql-schema": {
2714
+ "$ref": "#/definitions/RuleNoConfig"
2715
+ },
2713
2716
  "effecttsgo/strict-boolean-expressions": {
2714
2717
  "$ref": "#/definitions/RuleNoConfig"
2715
2718
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.73.7",
3
+ "version": "0.74.1",
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.73.7",
46
- "@effect/tsgo-win32-arm64": "0.73.7",
47
- "@effect/tsgo-linux-x64": "0.73.7",
48
- "@effect/tsgo-linux-arm64": "0.73.7",
49
- "@effect/tsgo-linux-arm": "0.73.7",
50
- "@effect/tsgo-darwin-x64": "0.73.7",
51
- "@effect/tsgo-darwin-arm64": "0.73.7"
45
+ "@effect/tsgo-win32-x64": "0.74.1",
46
+ "@effect/tsgo-win32-arm64": "0.74.1",
47
+ "@effect/tsgo-linux-x64": "0.74.1",
48
+ "@effect/tsgo-linux-arm64": "0.74.1",
49
+ "@effect/tsgo-linux-arm": "0.74.1",
50
+ "@effect/tsgo-darwin-x64": "0.74.1",
51
+ "@effect/tsgo-darwin-arm64": "0.74.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@effect/platform-node": "^4.1.2",
package/schema.json CHANGED
@@ -3049,6 +3049,11 @@
3049
3049
  "default": "off",
3050
3050
  "description": "Warns when Context.Service is used as a variable instead of a class declaration"
3051
3051
  },
3052
+ "sqlTaggedRowTypeToSqlSchema": {
3053
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
3054
+ "default": "off",
3055
+ "description": "Suggests SqlSchema instead of an explicit row type argument on Effect's sql tagged template"
3056
+ },
3052
3057
  "strictBooleanExpressions": {
3053
3058
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
3054
3059
  "default": "off",