@effect/tsgo 0.1.1 → 0.2.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 +33 -20
- package/dist/effect-tsgo.js +46 -46
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -191,8 +191,6 @@ Each release of `effect-tsgo` is built against a specific upstream `tsgo` commit
|
|
|
191
191
|
"refactors": true,
|
|
192
192
|
// Controls Effect diagnostics. (default: true)
|
|
193
193
|
"diagnostics": true,
|
|
194
|
-
// Maps rule names to severity levels. Use {} to enable diagnostics with rule defaults. (default: {})
|
|
195
|
-
"diagnosticSeverity": {},
|
|
196
194
|
// When false, suggestion-level Effect diagnostics are omitted from tsc CLI output. (default: true)
|
|
197
195
|
"includeSuggestionsInTsc": true,
|
|
198
196
|
// Controls Effect quickinfo. (default: true)
|
|
@@ -211,6 +209,22 @@ Each release of `effect-tsgo` is built against a specific upstream `tsgo` commit
|
|
|
211
209
|
"ignoreEffectErrorsInTscExitCode": false,
|
|
212
210
|
// When true, disabled diagnostics are still processed so directives can re-enable them. (default: false)
|
|
213
211
|
"skipDisabledOptimization": false,
|
|
212
|
+
// Mermaid rendering service for layer graph links. Accepts mermaid.live, mermaid.com, or a custom URL. (default: "mermaid.live")
|
|
213
|
+
"mermaidProvider": "mermaid.live",
|
|
214
|
+
// When true, suppresses external Mermaid links in hover output. (default: false)
|
|
215
|
+
"noExternal": false,
|
|
216
|
+
// How many levels deep the layer graph extraction follows symbol references. (default: 0)
|
|
217
|
+
"layerGraphFollowDepth": 0,
|
|
218
|
+
// When true, suppresses redundant return-type inlay hints on supported Effect generator functions. (default: false)
|
|
219
|
+
"inlays": false,
|
|
220
|
+
// Package names that should prefer namespace imports. (default: [])
|
|
221
|
+
"namespaceImportPackages": [],
|
|
222
|
+
// Package names that should prefer barrel named imports. (default: [])
|
|
223
|
+
"barrelImportPackages": [],
|
|
224
|
+
// Package-level import aliases keyed by package name. (default: {})
|
|
225
|
+
"importAliases": {},
|
|
226
|
+
// Controls whether named reexports are followed at package top-level. (default: "ignore")
|
|
227
|
+
"topLevelNamedReexports": "ignore",
|
|
214
228
|
// Configures key pattern formulas for the deterministicKeys rule. (default: [{"target":"service","pattern":"default","skipLeadingPath":["src/"]},{"target":"custom","pattern":"default","skipLeadingPath":["src/"]}])
|
|
215
229
|
"keyPatterns": [
|
|
216
230
|
{
|
|
@@ -232,28 +246,27 @@ Each release of `effect-tsgo` is built against a specific upstream `tsgo` commit
|
|
|
232
246
|
"extendedKeyDetection": false,
|
|
233
247
|
// Minimum number of contiguous pipeable transformations to trigger missedPipeableOpportunity. (default: 2)
|
|
234
248
|
"pipeableMinArgCount": 2,
|
|
235
|
-
//
|
|
236
|
-
"
|
|
237
|
-
// When true, suppresses external Mermaid links in hover output. (default: false)
|
|
238
|
-
"noExternal": false,
|
|
239
|
-
// How many levels deep the layer graph extraction follows symbol references. (default: 0)
|
|
240
|
-
"layerGraphFollowDepth": 0,
|
|
249
|
+
// Package names allowed to have multiple versions without triggering duplicatePackage. (default: [])
|
|
250
|
+
"allowedDuplicatedPackages": [],
|
|
241
251
|
// Controls which effectFnOpportunity quickfix variants are offered. (default: ["span"])
|
|
242
252
|
"effectFn": [
|
|
243
253
|
"span"
|
|
244
254
|
],
|
|
245
|
-
//
|
|
246
|
-
"
|
|
247
|
-
//
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
// Maps rule names to severity levels. Use {} to enable diagnostics with rule defaults. (default: {})
|
|
256
|
+
"diagnosticSeverity": {},
|
|
257
|
+
// Ordered per-file diagnostic option overrides. (default: [{"include":["src/**/*.ts"],"options":{"diagnosticSeverity":{"floatingEffect":"error"}}}])
|
|
258
|
+
"overrides": [
|
|
259
|
+
{
|
|
260
|
+
"include": [
|
|
261
|
+
"src/**/*.ts"
|
|
262
|
+
],
|
|
263
|
+
"options": {
|
|
264
|
+
"diagnosticSeverity": {
|
|
265
|
+
"floatingEffect": "error"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
257
270
|
}
|
|
258
271
|
]
|
|
259
272
|
}
|
package/dist/effect-tsgo.js
CHANGED
|
@@ -197377,7 +197377,7 @@ var FileReadError = class extends TaggedError("FileReadError") {
|
|
|
197377
197377
|
//#endregion
|
|
197378
197378
|
//#region package.json
|
|
197379
197379
|
var name = "@effect/tsgo";
|
|
197380
|
-
var version = "0.
|
|
197380
|
+
var version = "0.2.0";
|
|
197381
197381
|
|
|
197382
197382
|
//#endregion
|
|
197383
197383
|
//#region src/setup/consts.ts
|
|
@@ -198266,7 +198266,7 @@ var rules = [
|
|
|
198266
198266
|
"diagnostics": [{
|
|
198267
198267
|
"start": 154,
|
|
198268
198268
|
"end": 169,
|
|
198269
|
-
"text": "Self type parameter should be
|
|
198269
|
+
"text": "The `Self` type parameter for this class should be `InvalidContextTag`. effect(classSelfMismatch)"
|
|
198270
198270
|
}]
|
|
198271
198271
|
}
|
|
198272
198272
|
},
|
|
@@ -198296,7 +198296,7 @@ var rules = [
|
|
|
198296
198296
|
"diagnostics": [{
|
|
198297
198297
|
"start": 78,
|
|
198298
198298
|
"end": 83,
|
|
198299
|
-
"text": "Parameter
|
|
198299
|
+
"text": "Parameter `input` implicitly has type `any` in `Effect.fn`, `Effect.fnUntraced`, or `Effect.fnUntracedEager`. No parameter type is available from an explicit annotation or contextual function type. effect(effectFnImplicitAny)"
|
|
198300
198300
|
}]
|
|
198301
198301
|
}
|
|
198302
198302
|
},
|
|
@@ -198313,7 +198313,7 @@ var rules = [
|
|
|
198313
198313
|
"diagnostics": [{
|
|
198314
198314
|
"start": 41,
|
|
198315
198315
|
"end": 64,
|
|
198316
|
-
"text": "Effect
|
|
198316
|
+
"text": "This Effect value is neither yielded nor used in an assignment. effect(floatingEffect)"
|
|
198317
198317
|
}]
|
|
198318
198318
|
}
|
|
198319
198319
|
},
|
|
@@ -198347,7 +198347,7 @@ var rules = [
|
|
|
198347
198347
|
"diagnostics": [{
|
|
198348
198348
|
"start": 160,
|
|
198349
198349
|
"end": 167,
|
|
198350
|
-
"text": "
|
|
198350
|
+
"text": "This Effect requires a service that is missing from the expected Effect context: `Db`. effect(missingEffectContext)"
|
|
198351
198351
|
}]
|
|
198352
198352
|
}
|
|
198353
198353
|
},
|
|
@@ -198398,7 +198398,7 @@ var rules = [
|
|
|
198398
198398
|
"diagnostics": [{
|
|
198399
198399
|
"start": 121,
|
|
198400
198400
|
"end": 126,
|
|
198401
|
-
"text": "
|
|
198401
|
+
"text": "This Effect never succeeds; using `return yield*` preserves a definitive generator exit point for type narrowing and tooling support. effect(missingReturnYieldStar)"
|
|
198402
198402
|
}]
|
|
198403
198403
|
}
|
|
198404
198404
|
},
|
|
@@ -198415,7 +198415,7 @@ var rules = [
|
|
|
198415
198415
|
"diagnostics": [{
|
|
198416
198416
|
"start": 105,
|
|
198417
198417
|
"end": 110,
|
|
198418
|
-
"text": "
|
|
198418
|
+
"text": "This uses `yield` for an `Effect` value. `yield*` is the Effect-aware form in this context. effect(missingStarInYieldEffectGen)"
|
|
198419
198419
|
}]
|
|
198420
198420
|
}
|
|
198421
198421
|
},
|
|
@@ -198432,7 +198432,7 @@ var rules = [
|
|
|
198432
198432
|
"diagnostics": [{
|
|
198433
198433
|
"start": 142,
|
|
198434
198434
|
"end": 149,
|
|
198435
|
-
"text": "Effect.Service
|
|
198435
|
+
"text": "`Effect.Service` is declared with a primitive service type. `Effect.Service` models object-shaped services; primitive values use `Context.Tag` or `Effect.Tag` directly. effect(nonObjectEffectServiceType)"
|
|
198436
198436
|
}]
|
|
198437
198437
|
}
|
|
198438
198438
|
},
|
|
@@ -198449,11 +198449,11 @@ var rules = [
|
|
|
198449
198449
|
"diagnostics": [{
|
|
198450
198450
|
"start": 0,
|
|
198451
198451
|
"end": 0,
|
|
198452
|
-
"text": "This project targets Effect v4, but
|
|
198452
|
+
"text": "This project targets Effect v4, but this code uses Effect v3 APIs. The referenced API belongs to the v3 surface rather than the configured v4 surface. effect(outdatedApi)"
|
|
198453
198453
|
}, {
|
|
198454
198454
|
"start": 126,
|
|
198455
198455
|
"end": 133,
|
|
198456
|
-
"text": "
|
|
198456
|
+
"text": "This project targets Effect v4, but this code uses the Effect v3 API `runtime`. The referenced API belongs to the v3 surface rather than the configured v4 surface. Runtime has been removed in Effect v4. Use Effect.services to grab services and then run using Effect.runPromiseWith. effect(outdatedApi)"
|
|
198457
198457
|
}]
|
|
198458
198458
|
}
|
|
198459
198459
|
},
|
|
@@ -198470,7 +198470,7 @@ var rules = [
|
|
|
198470
198470
|
"diagnostics": [{
|
|
198471
198471
|
"start": 123,
|
|
198472
198472
|
"end": 134,
|
|
198473
|
-
"text": "
|
|
198473
|
+
"text": "This Schema subclass defines its own constructor. For Schema classes, constructor overrides break decoding behavior for the class shape. Custom construction can be expressed through a static `new` method instead. effect(overriddenSchemaConstructor)"
|
|
198474
198474
|
}]
|
|
198475
198475
|
}
|
|
198476
198476
|
},
|
|
@@ -198487,7 +198487,7 @@ var rules = [
|
|
|
198487
198487
|
"diagnostics": [{
|
|
198488
198488
|
"start": 82,
|
|
198489
198489
|
"end": 94,
|
|
198490
|
-
"text": "
|
|
198490
|
+
"text": "The previous Effect does not fail, so this error-handling branch will never run. effect(catchUnfailableEffect)"
|
|
198491
198491
|
}]
|
|
198492
198492
|
}
|
|
198493
198493
|
},
|
|
@@ -198504,7 +198504,7 @@ var rules = [
|
|
|
198504
198504
|
"diagnostics": [{
|
|
198505
198505
|
"start": 64,
|
|
198506
198506
|
"end": 137,
|
|
198507
|
-
"text": "Effect.fn returns a reusable function that can take arguments, but
|
|
198507
|
+
"text": "`Effect.fn` returns a reusable function that can take arguments, but it is invoked immediately here. `Effect.gen` represents the immediate-use form for this pattern with Effect.withSpan(\"preview\") piped in the end to maintain tracing spans. effect(effectFnIife)"
|
|
198508
198508
|
}]
|
|
198509
198509
|
}
|
|
198510
198510
|
},
|
|
@@ -198576,7 +198576,7 @@ var rules = [
|
|
|
198576
198576
|
"diagnostics": [{
|
|
198577
198577
|
"start": 56,
|
|
198578
198578
|
"end": 73,
|
|
198579
|
-
"text": "The
|
|
198579
|
+
"text": "The `catch` callback in `Effect.tryPromise` returns the global `Error` type. Untagged errors merge together in the Effect error channel and lose type-level distinction; a tagged error preserves that distinction and can wrap the original error in a `cause` property. effect(globalErrorInEffectCatch)"
|
|
198580
198580
|
}]
|
|
198581
198581
|
}
|
|
198582
198582
|
},
|
|
@@ -198627,7 +198627,7 @@ var rules = [
|
|
|
198627
198627
|
"diagnostics": [{
|
|
198628
198628
|
"start": 212,
|
|
198629
198629
|
"end": 217,
|
|
198630
|
-
"text": "Methods of this Service require
|
|
198630
|
+
"text": "Methods of this Service require `FileSystem` from every caller.\n\nThe requirement becomes part of the public service surface instead of remaining internal to Layer implementation.\n\nResolve these dependencies at Layer creation and provide them to each method, so the service's type reflects its purpose, not its implementation.\n\nTo suppress this diagnostic for specific dependency types that are intentionally passed through (e.g., HttpServerRequest), add `@effect-leakable-service` JSDoc to their interface declarations, or to this service by adding a `@effect-expect-leaking FileSystem` JSDoc.\n\nMore info and examples at https://effect.website/docs/requirements-management/layers/#avoiding-requirement-leakage effect(leakingRequirements)"
|
|
198631
198631
|
}]
|
|
198632
198632
|
}
|
|
198633
198633
|
},
|
|
@@ -198644,7 +198644,7 @@ var rules = [
|
|
|
198644
198644
|
"diagnostics": [{
|
|
198645
198645
|
"start": 348,
|
|
198646
198646
|
"end": 373,
|
|
198647
|
-
"text": "
|
|
198647
|
+
"text": "This expression chains multiple `Effect.provide` calls. Providing Layers in multiple calls in a chain can break service lifecycle behavior compared with a single combined provide with merged layers. effect(multipleEffectProvide)"
|
|
198648
198648
|
}]
|
|
198649
198649
|
}
|
|
198650
198650
|
},
|
|
@@ -198661,7 +198661,7 @@ var rules = [
|
|
|
198661
198661
|
"diagnostics": [{
|
|
198662
198662
|
"start": 91,
|
|
198663
198663
|
"end": 97,
|
|
198664
|
-
"text": "
|
|
198664
|
+
"text": "This generator returns an Effect-able value directly, which produces a nested `Effect<Effect<...>>`. If the intended result is the inner Effect value, `return yield*` represents that form. effect(returnEffectInGen)"
|
|
198665
198665
|
}]
|
|
198666
198666
|
}
|
|
198667
198667
|
},
|
|
@@ -198682,7 +198682,7 @@ var rules = [
|
|
|
198682
198682
|
"diagnostics": [{
|
|
198683
198683
|
"start": 101,
|
|
198684
198684
|
"end": 115,
|
|
198685
|
-
"text": "
|
|
198685
|
+
"text": "`Effect.runSync` is called inside an Effect with a separate services invocation. In this context, child Effects run with the surrounding services, which can be accessed through `Effect.services` and `Effect.runSyncWith`. effect(runEffectInsideEffect)"
|
|
198686
198686
|
}]
|
|
198687
198687
|
}
|
|
198688
198688
|
},
|
|
@@ -198699,7 +198699,7 @@ var rules = [
|
|
|
198699
198699
|
"diagnostics": [{
|
|
198700
198700
|
"start": 276,
|
|
198701
198701
|
"end": 293,
|
|
198702
|
-
"text": "
|
|
198702
|
+
"text": "`Schema.decodeSync` is used inside an Effect generator. `Schema.decode` preserves the typed Effect error channel for this operation without throwing. effect(schemaSyncInEffect)"
|
|
198703
198703
|
}]
|
|
198704
198704
|
}
|
|
198705
198705
|
},
|
|
@@ -198716,7 +198716,7 @@ var rules = [
|
|
|
198716
198716
|
"diagnostics": [{
|
|
198717
198717
|
"start": 211,
|
|
198718
198718
|
"end": 338,
|
|
198719
|
-
"text": "
|
|
198719
|
+
"text": "This layer construction leaves `Scope` in the requirement set. The scoped API removes `Scope` from the resulting requirements. effect(scopeInLayerEffect)"
|
|
198720
198720
|
}]
|
|
198721
198721
|
}
|
|
198722
198722
|
},
|
|
@@ -198750,7 +198750,7 @@ var rules = [
|
|
|
198750
198750
|
"diagnostics": [{
|
|
198751
198751
|
"start": 91,
|
|
198752
198752
|
"end": 151,
|
|
198753
|
-
"text": "
|
|
198753
|
+
"text": "This Effect generator contains `try/catch`; in this context, error handling is expressed with Effect APIs such as Effect.try, Effect.tryPromise, Effect.catch, Effect.catchTag). effect(tryCatchInEffectGen)"
|
|
198754
198754
|
}]
|
|
198755
198755
|
}
|
|
198756
198756
|
},
|
|
@@ -198767,7 +198767,7 @@ var rules = [
|
|
|
198767
198767
|
"diagnostics": [{
|
|
198768
198768
|
"start": 56,
|
|
198769
198769
|
"end": 73,
|
|
198770
|
-
"text": "The
|
|
198770
|
+
"text": "The `catch` callback in `Effect.tryPromise` returns `unknown`, so the Effect error type stays untyped. A specific typed error preserves error-channel information, for example by narrowing the value or wrapping it in `Data.TaggedError`. effect(unknownInEffectCatch)"
|
|
198771
198771
|
}]
|
|
198772
198772
|
}
|
|
198773
198773
|
},
|
|
@@ -198784,7 +198784,7 @@ var rules = [
|
|
|
198784
198784
|
"diagnostics": [{
|
|
198785
198785
|
"start": 14,
|
|
198786
198786
|
"end": 26,
|
|
198787
|
-
"text": "
|
|
198787
|
+
"text": "This class extends the native `Error` type directly. Untagged native errors lose distinction in the Effect failure channel. effect(extendsNativeError)"
|
|
198788
198788
|
}]
|
|
198789
198789
|
}
|
|
198790
198790
|
},
|
|
@@ -198801,7 +198801,7 @@ var rules = [
|
|
|
198801
198801
|
"diagnostics": [{
|
|
198802
198802
|
"start": 1,
|
|
198803
198803
|
"end": 23,
|
|
198804
|
-
"text": "
|
|
198804
|
+
"text": "This code uses `console.log`, the corresponding Effect logging API is `Effect.log or Logger`. effect(globalConsole)"
|
|
198805
198805
|
}]
|
|
198806
198806
|
}
|
|
198807
198807
|
},
|
|
@@ -198818,7 +198818,7 @@ var rules = [
|
|
|
198818
198818
|
"diagnostics": [{
|
|
198819
198819
|
"start": 83,
|
|
198820
198820
|
"end": 103,
|
|
198821
|
-
"text": "
|
|
198821
|
+
"text": "This Effect code uses `console.log`, logging in Effect code is represented through `Effect.log or Logger`. effect(globalConsoleInEffect)"
|
|
198822
198822
|
}]
|
|
198823
198823
|
}
|
|
198824
198824
|
},
|
|
@@ -198835,7 +198835,7 @@ var rules = [
|
|
|
198835
198835
|
"diagnostics": [{
|
|
198836
198836
|
"start": 24,
|
|
198837
198837
|
"end": 34,
|
|
198838
|
-
"text": "
|
|
198838
|
+
"text": "This code uses `Date.now()`, time access is represented through `Clock` from Effect. effect(globalDate)"
|
|
198839
198839
|
}]
|
|
198840
198840
|
}
|
|
198841
198841
|
},
|
|
@@ -198852,7 +198852,7 @@ var rules = [
|
|
|
198852
198852
|
"diagnostics": [{
|
|
198853
198853
|
"start": 95,
|
|
198854
198854
|
"end": 105,
|
|
198855
|
-
"text": "
|
|
198855
|
+
"text": "This Effect code uses `Date.now()`, time access in Effect code is represented through `Clock` from Effect. effect(globalDateInEffect)"
|
|
198856
198856
|
}]
|
|
198857
198857
|
}
|
|
198858
198858
|
},
|
|
@@ -198869,7 +198869,7 @@ var rules = [
|
|
|
198869
198869
|
"diagnostics": [{
|
|
198870
198870
|
"start": 24,
|
|
198871
198871
|
"end": 29,
|
|
198872
|
-
"text": "
|
|
198872
|
+
"text": "This code uses the global `fetch` function, HTTP requests are represented through `HttpClient` from `@effect/platform`. effect(globalFetch)"
|
|
198873
198873
|
}]
|
|
198874
198874
|
}
|
|
198875
198875
|
},
|
|
@@ -198899,7 +198899,7 @@ var rules = [
|
|
|
198899
198899
|
"diagnostics": [{
|
|
198900
198900
|
"start": 24,
|
|
198901
198901
|
"end": 37,
|
|
198902
|
-
"text": "
|
|
198902
|
+
"text": "This code uses `Math.random()`, randomness is represented through the Effect `Random` service. effect(globalRandom)"
|
|
198903
198903
|
}]
|
|
198904
198904
|
}
|
|
198905
198905
|
},
|
|
@@ -198916,7 +198916,7 @@ var rules = [
|
|
|
198916
198916
|
"diagnostics": [{
|
|
198917
198917
|
"start": 93,
|
|
198918
198918
|
"end": 106,
|
|
198919
|
-
"text": "
|
|
198919
|
+
"text": "This Effect code uses `Math.random()`, randomness is represented through the Effect `Random` service. effect(globalRandomInEffect)"
|
|
198920
198920
|
}]
|
|
198921
198921
|
}
|
|
198922
198922
|
},
|
|
@@ -198933,7 +198933,7 @@ var rules = [
|
|
|
198933
198933
|
"diagnostics": [{
|
|
198934
198934
|
"start": 1,
|
|
198935
198935
|
"end": 26,
|
|
198936
|
-
"text": "
|
|
198936
|
+
"text": "This code uses `setTimeout`, the corresponding Effect timer API is `Effect.sleep or Schedule` from Effect. effect(globalTimers)"
|
|
198937
198937
|
}]
|
|
198938
198938
|
}
|
|
198939
198939
|
},
|
|
@@ -198950,7 +198950,7 @@ var rules = [
|
|
|
198950
198950
|
"diagnostics": [{
|
|
198951
198951
|
"start": 83,
|
|
198952
198952
|
"end": 108,
|
|
198953
|
-
"text": "
|
|
198953
|
+
"text": "This Effect code uses `setTimeout`, the corresponding timer API in this context is `Effect.sleep or Schedule` from Effect. effect(globalTimersInEffect)"
|
|
198954
198954
|
}]
|
|
198955
198955
|
}
|
|
198956
198956
|
},
|
|
@@ -198967,7 +198967,7 @@ var rules = [
|
|
|
198967
198967
|
"diagnostics": [{
|
|
198968
198968
|
"start": 159,
|
|
198969
198969
|
"end": 180,
|
|
198970
|
-
"text": "
|
|
198970
|
+
"text": "This code uses `instanceof` with an Effect Schema type. `Schema.is` is the schema-aware runtime check for this case. effect(instanceOfSchema)"
|
|
198971
198971
|
}]
|
|
198972
198972
|
}
|
|
198973
198973
|
},
|
|
@@ -198984,7 +198984,7 @@ var rules = [
|
|
|
198984
198984
|
"diagnostics": [{
|
|
198985
198985
|
"start": 15,
|
|
198986
198986
|
"end": 24,
|
|
198987
|
-
"text": "
|
|
198987
|
+
"text": "This module reference uses the `fs` module, the corresponding Effect API is `FileSystem` from `@effect/platform`. effect(nodeBuiltinImport)"
|
|
198988
198988
|
}]
|
|
198989
198989
|
}
|
|
198990
198990
|
},
|
|
@@ -199001,7 +199001,7 @@ var rules = [
|
|
|
199001
199001
|
"diagnostics": [{
|
|
199002
199002
|
"start": 142,
|
|
199003
199003
|
"end": 158,
|
|
199004
|
-
"text": "
|
|
199004
|
+
"text": "This code uses `JSON.parse` or `JSON.stringify`. Effect Schema provides Effect-aware APIs for JSON parsing and stringifying. effect(preferSchemaOverJson)"
|
|
199005
199005
|
}]
|
|
199006
199006
|
}
|
|
199007
199007
|
},
|
|
@@ -199018,7 +199018,7 @@ var rules = [
|
|
|
199018
199018
|
"diagnostics": [{
|
|
199019
199019
|
"start": 150,
|
|
199020
199020
|
"end": 162,
|
|
199021
|
-
"text": "
|
|
199021
|
+
"text": "`Effect.mapError` expresses the same error-type transformation more directly than `Effect.catch` followed by `Effect.fail`. effect(catchAllToMapError)"
|
|
199022
199022
|
}]
|
|
199023
199023
|
}
|
|
199024
199024
|
},
|
|
@@ -199035,7 +199035,7 @@ var rules = [
|
|
|
199035
199035
|
"diagnostics": [{
|
|
199036
199036
|
"start": 116,
|
|
199037
199037
|
"end": 134,
|
|
199038
|
-
"text": "
|
|
199038
|
+
"text": "This key does not match the deterministic key for this declaration. The expected key is `effect-v4-tests/preview/RenamedService`. effect(deterministicKeys)"
|
|
199039
199039
|
}]
|
|
199040
199040
|
}
|
|
199041
199041
|
},
|
|
@@ -199052,7 +199052,7 @@ var rules = [
|
|
|
199052
199052
|
"diagnostics": [{
|
|
199053
199053
|
"start": 54,
|
|
199054
199054
|
"end": 61,
|
|
199055
|
-
"text": "
|
|
199055
|
+
"text": "This expression can be rewritten in the reusable function form `Effect.fn(function*() { ... })`. effect(effectFnOpportunity)"
|
|
199056
199056
|
}]
|
|
199057
199057
|
}
|
|
199058
199058
|
},
|
|
@@ -199069,7 +199069,7 @@ var rules = [
|
|
|
199069
199069
|
"diagnostics": [{
|
|
199070
199070
|
"start": 82,
|
|
199071
199071
|
"end": 92,
|
|
199072
|
-
"text": "
|
|
199072
|
+
"text": "This expression discards the success value through mapping. `Effect.asVoid` represents that form directly. effect(effectMapVoid)"
|
|
199073
199073
|
}]
|
|
199074
199074
|
}
|
|
199075
199075
|
},
|
|
@@ -199086,7 +199086,7 @@ var rules = [
|
|
|
199086
199086
|
"diagnostics": [{
|
|
199087
199087
|
"start": 56,
|
|
199088
199088
|
"end": 81,
|
|
199089
|
-
"text": "Effect.void
|
|
199089
|
+
"text": "`Effect.void` represents the same outcome as `Effect.succeed(undefined)` or `Effect.succeed(void 0)`. effect(effectSucceedWithVoid)"
|
|
199090
199090
|
}]
|
|
199091
199091
|
}
|
|
199092
199092
|
},
|
|
@@ -199103,7 +199103,7 @@ var rules = [
|
|
|
199103
199103
|
"diagnostics": [{
|
|
199104
199104
|
"start": 116,
|
|
199105
199105
|
"end": 172,
|
|
199106
|
-
"text": "
|
|
199106
|
+
"text": "This nested call structure has a pipeable form. `Schema.decodeEffect(User)({ id: 1 }).pipe(...)` represents the same call sequence in pipe style and may be easier to read. effect(missedPipeableOpportunity)"
|
|
199107
199107
|
}]
|
|
199108
199108
|
}
|
|
199109
199109
|
},
|
|
@@ -199154,7 +199154,7 @@ var rules = [
|
|
|
199154
199154
|
"diagnostics": [{
|
|
199155
199155
|
"start": 64,
|
|
199156
199156
|
"end": 136,
|
|
199157
|
-
"text": "Schema.Struct
|
|
199157
|
+
"text": "This `Schema.Struct` includes a `_tag` field. `Schema.TaggedStruct` is the tagged-struct form for this pattern and makes the tag optional in the constructor. effect(schemaStructWithTag)"
|
|
199158
199158
|
}]
|
|
199159
199159
|
}
|
|
199160
199160
|
},
|
|
@@ -199171,7 +199171,7 @@ var rules = [
|
|
|
199171
199171
|
"diagnostics": [{
|
|
199172
199172
|
"start": 64,
|
|
199173
199173
|
"end": 118,
|
|
199174
|
-
"text": "
|
|
199174
|
+
"text": "This `Schema.Union` contains multiple `Schema.Literal` members and can be simplified to a single `Schema.Literal` call. effect(schemaUnionOfLiterals)"
|
|
199175
199175
|
}]
|
|
199176
199176
|
}
|
|
199177
199177
|
},
|
|
@@ -199188,7 +199188,7 @@ var rules = [
|
|
|
199188
199188
|
"diagnostics": [{
|
|
199189
199189
|
"start": 60,
|
|
199190
199190
|
"end": 107,
|
|
199191
|
-
"text": "ServiceMap.Service
|
|
199191
|
+
"text": "`ServiceMap.Service` is assigned to a variable here, but this API is intended for a class declaration shape such as `class Preview extends ServiceMap.Service<Preview, { port: number }>()(\"Preview\") {}`. effect(serviceNotAsClass)"
|
|
199192
199192
|
}]
|
|
199193
199193
|
}
|
|
199194
199194
|
},
|
|
@@ -199243,7 +199243,7 @@ var rules = [
|
|
|
199243
199243
|
"diagnostics": [{
|
|
199244
199244
|
"start": 178,
|
|
199245
199245
|
"end": 183,
|
|
199246
|
-
"text": "This Effect.fail
|
|
199246
|
+
"text": "This `yield* Effect.fail(...)` passes a yieldable error value. `yield*` represents that value directly without wrapping it in `Effect.fail`. effect(unnecessaryFailYieldableError)"
|
|
199247
199247
|
}]
|
|
199248
199248
|
}
|
|
199249
199249
|
},
|
|
@@ -199277,7 +199277,7 @@ var rules = [
|
|
|
199277
199277
|
"diagnostics": [{
|
|
199278
199278
|
"start": 64,
|
|
199279
199279
|
"end": 125,
|
|
199280
|
-
"text": "
|
|
199280
|
+
"text": "This expression contains chained `pipe` calls that can be simplified to a single `pipe` call. effect(unnecessaryPipeChain)"
|
|
199281
199281
|
}]
|
|
199282
199282
|
}
|
|
199283
199283
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@effect/tsgo-win32-x64": "0.
|
|
26
|
-
"@effect/tsgo-win32-arm64": "0.
|
|
27
|
-
"@effect/tsgo-linux-x64": "0.
|
|
28
|
-
"@effect/tsgo-linux-arm64": "0.
|
|
29
|
-
"@effect/tsgo-linux-arm": "0.
|
|
30
|
-
"@effect/tsgo-darwin-x64": "0.
|
|
31
|
-
"@effect/tsgo-darwin-arm64": "0.
|
|
25
|
+
"@effect/tsgo-win32-x64": "0.2.0",
|
|
26
|
+
"@effect/tsgo-win32-arm64": "0.2.0",
|
|
27
|
+
"@effect/tsgo-linux-x64": "0.2.0",
|
|
28
|
+
"@effect/tsgo-linux-arm64": "0.2.0",
|
|
29
|
+
"@effect/tsgo-linux-arm": "0.2.0",
|
|
30
|
+
"@effect/tsgo-darwin-x64": "0.2.0",
|
|
31
|
+
"@effect/tsgo-darwin-arm64": "0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@effect/platform-node": "^4.0.0-beta.40",
|