@effect/tsgo 0.42.0 → 0.43.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
@@ -38,7 +38,7 @@ When running in dedicated diagnostics mode, the Effect diagnostics can be emitte
38
38
  <!-- supported-components:start -->
39
39
  ## Supported Package Versions
40
40
 
41
- The following target package versions are supported by `@effect/tsgo@0.42.0`:
41
+ The following target package versions are supported by `@effect/tsgo@0.43.0`:
42
42
 
43
43
  | Component | Supported versions |
44
44
  |---|---|
@@ -48900,7 +48900,7 @@ const runWith = (command, config) => {
48900
48900
  //#endregion
48901
48901
  //#region package.json
48902
48902
  var name = "@effect/tsgo";
48903
- var version = "0.42.0";
48903
+ var version = "0.43.0";
48904
48904
 
48905
48905
  //#endregion
48906
48906
  //#region src/metadata.json
@@ -49939,11 +49939,15 @@ var rules = [
49939
49939
  "supportedEffect": ["v3", "v4"],
49940
49940
  "codes": [377057],
49941
49941
  "preview": {
49942
- "sourceText": "import fs from \"node:fs\"\n\nexport const preview = fs.readFileSync\n",
49942
+ "sourceText": "import { Effect } from \"effect\"\nimport { randomUUID } from \"node:crypto\"\nimport fs from \"node:fs\"\n\nexport const preview = Effect.sync(() => ({\n id: randomUUID(),\n contents: fs.readFileSync(\"config.json\", \"utf8\")\n}))\n",
49943
49943
  "diagnostics": [{
49944
- "start": 15,
49945
- "end": 24,
49946
- "text": "This module reference uses the `fs` module, the corresponding Effect API is `FileSystem` from `@effect/platform`. effect(nodeBuiltinImport)"
49944
+ "start": 59,
49945
+ "end": 72,
49946
+ "text": "This module reference uses the `crypto` module, the corresponding Effect API is `Crypto` from `effect`. effect(nodeBuiltinImport)"
49947
+ }, {
49948
+ "start": 88,
49949
+ "end": 97,
49950
+ "text": "This module reference uses the `fs` module, the corresponding Effect API is `FileSystem` from `effect`. effect(nodeBuiltinImport)"
49947
49951
  }]
49948
49952
  }
49949
49953
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
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.42.0",
45
- "@effect/tsgo-win32-arm64": "0.42.0",
46
- "@effect/tsgo-linux-x64": "0.42.0",
47
- "@effect/tsgo-linux-arm64": "0.42.0",
48
- "@effect/tsgo-linux-arm": "0.42.0",
49
- "@effect/tsgo-darwin-x64": "0.42.0",
50
- "@effect/tsgo-darwin-arm64": "0.42.0"
44
+ "@effect/tsgo-win32-x64": "0.43.0",
45
+ "@effect/tsgo-win32-arm64": "0.43.0",
46
+ "@effect/tsgo-linux-x64": "0.43.0",
47
+ "@effect/tsgo-linux-arm64": "0.43.0",
48
+ "@effect/tsgo-linux-arm": "0.43.0",
49
+ "@effect/tsgo-darwin-x64": "0.43.0",
50
+ "@effect/tsgo-darwin-arm64": "0.43.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@effect/platform-node": "^4.0.0-beta.107",