@effect/tsgo 0.36.4 → 0.36.5
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 +12 -0
- package/dist/effect-tsgo.cjs +52 -21
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -35,6 +35,18 @@ When running in `tsc` mode, the Effect diagnostics are emitted as standard TypeS
|
|
|
35
35
|
|
|
36
36
|
When running in dedicated diagnostics mode, the Effect diagnostics can be emitted in structured formats, which can be further processed by other tools.
|
|
37
37
|
|
|
38
|
+
<!-- supported-components:start -->
|
|
39
|
+
## Supported Package Versions
|
|
40
|
+
|
|
41
|
+
The following target package versions are supported by `@effect/tsgo@0.36.5`:
|
|
42
|
+
|
|
43
|
+
| Component | Supported versions |
|
|
44
|
+
|---|---|
|
|
45
|
+
| TypeScript | `7.0.2`, `7.1.0-dev.20260813.1` |
|
|
46
|
+
| Oxlint | `1.77.0`, `1.78.0` |
|
|
47
|
+
| oxlint-tsgolint | `7.0.2001` |
|
|
48
|
+
<!-- supported-components:end -->
|
|
49
|
+
|
|
38
50
|
## Diagnostic Status
|
|
39
51
|
|
|
40
52
|
Some diagnostics are off by default or have a default severity of suggestion, but you can always enable them or change their default severity in the plugin options.
|
package/dist/effect-tsgo.cjs
CHANGED
|
@@ -48897,6 +48897,11 @@ const runWith = (command, config) => {
|
|
|
48897
48897
|
}, catchFilter((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$6(error) : fail$5(error), (error) => andThen(showHelp(command, error, config.renderErrors !== false), fail$1(error))), catchFilter((error) => config.renderErrors !== false && isCliError(error) && error._tag === "UserError" ? succeed$6(error) : fail$5(error), (error) => andThen(showUserError(error), fail$1(error))), catchFilter((e) => isQuitError(e) ? succeed$6(e) : fail$5(e), (_) => interrupt$1));
|
|
48898
48898
|
};
|
|
48899
48899
|
|
|
48900
|
+
//#endregion
|
|
48901
|
+
//#region package.json
|
|
48902
|
+
var name = "@effect/tsgo";
|
|
48903
|
+
var version = "0.36.5";
|
|
48904
|
+
|
|
48900
48905
|
//#endregion
|
|
48901
48906
|
//#region src/metadata.json
|
|
48902
48907
|
var groups = [
|
|
@@ -50604,6 +50609,31 @@ var metadata_default = {
|
|
|
50604
50609
|
rules
|
|
50605
50610
|
};
|
|
50606
50611
|
|
|
50612
|
+
//#endregion
|
|
50613
|
+
//#region upstream.json
|
|
50614
|
+
var tags = {
|
|
50615
|
+
"typescript": {
|
|
50616
|
+
"latest": "7.0.2",
|
|
50617
|
+
"next": "7.1.0-dev.20260813.1"
|
|
50618
|
+
},
|
|
50619
|
+
"oxlint": { "latest": "1.78.0" },
|
|
50620
|
+
"oxlint-tsgolint": { "latest": "7.0.2001" }
|
|
50621
|
+
};
|
|
50622
|
+
var components = {
|
|
50623
|
+
"typescript": {
|
|
50624
|
+
"7.0.2": { "gitHead": "2bd066d87f5bafd315be9f40889d0a60b9e58e0b" },
|
|
50625
|
+
"7.1.0-dev.20260813.1": { "gitHead": "34ffe2a2531a226da0046d213899ae0b721229b0" }
|
|
50626
|
+
},
|
|
50627
|
+
"oxlint-tsgolint": { "7.0.2001": {
|
|
50628
|
+
"gitHead": "482dcf70bffce7ea56f63128c74beb67dec658a2",
|
|
50629
|
+
"dependencies": { "typescript": "7.0.2" }
|
|
50630
|
+
} },
|
|
50631
|
+
"oxlint": {
|
|
50632
|
+
"1.77.0": { "gitHead": "9a423f2f485b79c2353c49442c0c7f60f900261d" },
|
|
50633
|
+
"1.78.0": { "gitHead": "c42d6397eab5b2d5bb2bd6746c57bc2a9cad21bd" }
|
|
50634
|
+
}
|
|
50635
|
+
};
|
|
50636
|
+
|
|
50607
50637
|
//#endregion
|
|
50608
50638
|
//#region src/patcher/fileHash.ts
|
|
50609
50639
|
const textEncoder = new TextEncoder();
|
|
@@ -50757,7 +50787,13 @@ var ReplacementUnavailableError = class extends TaggedError$1("ReplacementUnavai
|
|
|
50757
50787
|
return this.reason;
|
|
50758
50788
|
}
|
|
50759
50789
|
};
|
|
50790
|
+
var UnsupportedTargetPackageVersionError = class extends TaggedError$1("UnsupportedTargetPackageVersionError") {
|
|
50791
|
+
get message() {
|
|
50792
|
+
return `Package ${this.target.packageName} version ${this.target.packageVersion} is not supported by @effect/tsgo version ${version}. Either change @effect/tsgo to a compatible version or set ${this.target.packageName} to one of the supported versions: ${this.supportedVersions.join(", ")}.`;
|
|
50793
|
+
}
|
|
50794
|
+
};
|
|
50760
50795
|
const exists = (fs, filePath) => fs.exists(filePath).pipe(mapError((error) => new PatcherError({ reason: `Unable to inspect ${filePath}: ${error.message}` })));
|
|
50796
|
+
const supportedVersions = (component) => Object.keys(components[component]).sort();
|
|
50761
50797
|
const toKebabCase = (value) => {
|
|
50762
50798
|
let result = "";
|
|
50763
50799
|
const characters = [...value];
|
|
@@ -50821,10 +50857,17 @@ const resolveReplacement = (target) => gen(function* () {
|
|
|
50821
50857
|
if (target.component === "oxlint-dts") return yield* resolveOxlintDeclarations(target);
|
|
50822
50858
|
const platform = yield* resolvePlatformPackage(target);
|
|
50823
50859
|
const replacementPath = path.join(platform.packageDir, "artifacts", target.component, target.packageVersion, path.basename(target.binaryPath));
|
|
50824
|
-
if (!(yield* exists(fs, replacementPath)))
|
|
50825
|
-
target
|
|
50826
|
-
|
|
50827
|
-
|
|
50860
|
+
if (!(yield* exists(fs, replacementPath))) {
|
|
50861
|
+
const versions = supportedVersions(target.component);
|
|
50862
|
+
if (!versions.includes(target.packageVersion)) return yield* new UnsupportedTargetPackageVersionError({
|
|
50863
|
+
target,
|
|
50864
|
+
supportedVersions: versions
|
|
50865
|
+
});
|
|
50866
|
+
return yield* new ReplacementUnavailableError({
|
|
50867
|
+
target,
|
|
50868
|
+
reason: `Missing packaged artifact ${replacementPath}.`
|
|
50869
|
+
});
|
|
50870
|
+
}
|
|
50828
50871
|
return {
|
|
50829
50872
|
path: replacementPath,
|
|
50830
50873
|
fileHash: yield* hashFile(replacementPath).pipe(mapError((error) => new PatcherError({ reason: `Unable to hash packaged artifact ${replacementPath}: ${error.message}` })))
|
|
@@ -50842,7 +50885,7 @@ const preparePatch = (targets, options) => gen(function* () {
|
|
|
50842
50885
|
const targetExists = yield* exists(fs, target.binaryPath);
|
|
50843
50886
|
const backupExists = yield* exists(fs, backupPath);
|
|
50844
50887
|
if (!targetExists) return yield* new PatcherError({ reason: `Installed binary does not exist: ${target.binaryPath}` });
|
|
50845
|
-
const
|
|
50888
|
+
const onUnavailable = (error) => {
|
|
50846
50889
|
if (!options.skipMissing) return fail$1(error);
|
|
50847
50890
|
skipped.push({
|
|
50848
50891
|
target,
|
|
@@ -50850,6 +50893,10 @@ const preparePatch = (targets, options) => gen(function* () {
|
|
|
50850
50893
|
message: error.message
|
|
50851
50894
|
});
|
|
50852
50895
|
return succeed$2(void 0);
|
|
50896
|
+
};
|
|
50897
|
+
const replacement = yield* resolver(target).pipe(catchTags({
|
|
50898
|
+
ReplacementUnavailableError: onUnavailable,
|
|
50899
|
+
UnsupportedTargetPackageVersionError: onUnavailable
|
|
50853
50900
|
}));
|
|
50854
50901
|
if (replacement === void 0) continue;
|
|
50855
50902
|
if (backupExists && target.fileHash === replacement.fileHash) {
|
|
@@ -198185,11 +198232,6 @@ var FileReadError = class extends TaggedError$1("FileReadError") {
|
|
|
198185
198232
|
}
|
|
198186
198233
|
};
|
|
198187
198234
|
|
|
198188
|
-
//#endregion
|
|
198189
|
-
//#region package.json
|
|
198190
|
-
var name = "@effect/tsgo";
|
|
198191
|
-
var version = "0.36.4";
|
|
198192
|
-
|
|
198193
198235
|
//#endregion
|
|
198194
198236
|
//#region src/cli/setup/consts.ts
|
|
198195
198237
|
const LSP_PACKAGE_NAME = name;
|
|
@@ -200220,17 +200262,6 @@ const gatherTargetOptions = (assessment) => gen(function* () {
|
|
|
200220
200262
|
};
|
|
200221
200263
|
});
|
|
200222
200264
|
|
|
200223
|
-
//#endregion
|
|
200224
|
-
//#region upstream.json
|
|
200225
|
-
var tags = {
|
|
200226
|
-
"typescript": {
|
|
200227
|
-
"latest": "7.0.2",
|
|
200228
|
-
"next": "7.1.0-dev.20260808.1"
|
|
200229
|
-
},
|
|
200230
|
-
"oxlint": { "latest": "1.77.0" },
|
|
200231
|
-
"oxlint-tsgolint": { "latest": "7.0.2001" }
|
|
200232
|
-
};
|
|
200233
|
-
|
|
200234
200265
|
//#endregion
|
|
200235
200266
|
//#region src/cli/setup/index.ts
|
|
200236
200267
|
const setupCommand = make("setup", setupFlags).pipe(withDescription("Setup @effect/tsgo for the given project."), withHandler((flags) => gen(function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.5",
|
|
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.36.
|
|
45
|
-
"@effect/tsgo-win32-arm64": "0.36.
|
|
46
|
-
"@effect/tsgo-linux-x64": "0.36.
|
|
47
|
-
"@effect/tsgo-linux-arm64": "0.36.
|
|
48
|
-
"@effect/tsgo-linux-arm": "0.36.
|
|
49
|
-
"@effect/tsgo-darwin-x64": "0.36.
|
|
50
|
-
"@effect/tsgo-darwin-arm64": "0.36.
|
|
44
|
+
"@effect/tsgo-win32-x64": "0.36.5",
|
|
45
|
+
"@effect/tsgo-win32-arm64": "0.36.5",
|
|
46
|
+
"@effect/tsgo-linux-x64": "0.36.5",
|
|
47
|
+
"@effect/tsgo-linux-arm64": "0.36.5",
|
|
48
|
+
"@effect/tsgo-linux-arm": "0.36.5",
|
|
49
|
+
"@effect/tsgo-darwin-x64": "0.36.5",
|
|
50
|
+
"@effect/tsgo-darwin-arm64": "0.36.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@effect/platform-node": "^4.0.0-beta.107",
|