Skip to content

Commit 194c73f

Browse files
chore(deps): upgrade Effect to stable 4.0.1 (#16138)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 3e6b450 commit 194c73f

835 files changed

Lines changed: 3642 additions & 2162 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/desktop/src/app/DesktopConnectionCatalogStore.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { assert, describe, it } from "@effect/vitest";
33
import { ConnectionCatalogDocument } from "@t3tools/client-runtime/platform";
44
import { EnvironmentId, type PersistedSavedEnvironmentRecord } from "@t3tools/contracts";
55
import * as Effect from "effect/Effect";
6-
import * as Encoding from "effect/Encoding";
6+
import * as Base64 from "effect/encoding/Base64";
77
import * as FileSystem from "effect/FileSystem";
88
import * as Path from "effect/Path";
99
import * as Layer from "effect/Layer";
@@ -175,7 +175,7 @@ describe("DesktopConnectionCatalogStore", () => {
175175
record.environmentId === "bearer-environment"
176176
? {
177177
...record,
178-
encryptedBearerToken: Encoding.encodeBase64(
178+
encryptedBearerToken: Base64.encode(
179179
textEncoder.encode("encrypted:legacy-token"),
180180
),
181181
}

‎apps/desktop/src/app/DesktopConnectionCatalogStore.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { fromLenientJson } from "@t3tools/shared/schemaJson";
1515
import * as Context from "effect/Context";
1616
import * as Crypto from "effect/Crypto";
1717
import * as Effect from "effect/Effect";
18-
import * as Encoding from "effect/Encoding";
18+
import * as Base64 from "effect/encoding/Base64";
1919
import * as FileSystem from "effect/FileSystem";
2020
import * as Layer from "effect/Layer";
2121
import * as Option from "effect/Option";
@@ -171,7 +171,7 @@ function decodeSecretBytes(
171171
catalogPath: string,
172172
encoded: string,
173173
): Effect.Effect<Uint8Array, DesktopConnectionCatalogStoreDecodeError> {
174-
return Effect.fromResult(Encoding.decodeBase64(encoded)).pipe(
174+
return Effect.fromResult(Base64.decode(encoded)).pipe(
175175
Effect.mapError(
176176
(cause) =>
177177
new DesktopConnectionCatalogStoreDecodeError({
@@ -399,7 +399,7 @@ export const make = Effect.gen(function* () {
399399
const writeCatalog = Effect.fn("desktop.connectionCatalogStore.writeCatalog")(function* (
400400
catalog: string,
401401
) {
402-
const encryptedCatalog = Encoding.encodeBase64(
402+
const encryptedCatalog = Base64.encode(
403403
yield* safeStorage.encryptString(catalog).pipe(
404404
Effect.mapError(
405405
(cause) =>

‎apps/desktop/src/app/DesktopLinuxUrlHandler.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as PlatformError from "effect/PlatformError";
1010
import * as Sink from "effect/Sink";
1111
import * as Stream from "effect/Stream";
1212
import * as TestClock from "effect/testing/TestClock";
13-
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
13+
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
1414

1515
import * as DesktopEnvironment from "./DesktopEnvironment.ts";
1616
import * as DesktopAssets from "./DesktopAssets.ts";

‎apps/desktop/src/app/DesktopLinuxUrlHandler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import * as FileSystem from "effect/FileSystem";
44
import * as Layer from "effect/Layer";
55
import * as Option from "effect/Option";
66
import * as Schema from "effect/Schema";
7-
import * as ChildProcess from "effect/unstable/process/ChildProcess";
8-
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
7+
import * as ChildProcess from "effect/process/ChildProcess";
8+
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
99

1010
import * as ElectronProtocol from "../electron/ElectronProtocol.ts";
1111
import * as DesktopAssets from "./DesktopAssets.ts";

‎apps/desktop/src/app/DesktopObservability.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import * as Effect from "effect/Effect";
66
import * as FileSystem from "effect/FileSystem";
77
import * as Layer from "effect/Layer";
88
import * as Schema from "effect/Schema";
9-
import * as HttpClient from "effect/unstable/http/HttpClient";
10-
import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
9+
import * as HttpClient from "effect/http/HttpClient";
10+
import * as HttpClientResponse from "effect/http/HttpClientResponse";
1111

1212
import * as DesktopConfig from "./DesktopConfig.ts";
1313
import * as DesktopEnvironment from "./DesktopEnvironment.ts";

‎apps/desktop/src/app/DesktopObservability.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import * as Scope from "effect/Scope";
2626
import * as Semaphore from "effect/Semaphore";
2727
import * as SynchronizedRef from "effect/SynchronizedRef";
2828
import * as Tracer from "effect/Tracer";
29-
import { OtlpExporter, OtlpLogger, OtlpTracer } from "effect/unstable/observability";
29+
import { OtlpExporter, OtlpLogger, OtlpTracer } from "effect/observability";
3030

3131
import * as DesktopEnvironment from "./DesktopEnvironment.ts";
3232

‎apps/desktop/src/backend/DesktopBackendConfiguration.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as Option from "effect/Option";
99
import * as Path from "effect/Path";
1010
import * as PlatformError from "effect/PlatformError";
1111
import * as Schema from "effect/Schema";
12-
import { ChildProcessSpawner } from "effect/unstable/process";
12+
import { ChildProcessSpawner } from "effect/process";
1313

1414
import * as DesktopEnvironment from "../app/DesktopEnvironment.ts";
1515
import * as DesktopBackendConfiguration from "./DesktopBackendConfiguration.ts";

‎apps/desktop/src/backend/DesktopBackendConfiguration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { parsePersistedServerObservabilitySettings } from "@t3tools/shared/serve
44
import * as Context from "effect/Context";
55
import * as Crypto from "effect/Crypto";
66
import * as Effect from "effect/Effect";
7-
import * as Encoding from "effect/Encoding";
7+
import * as Hex from "effect/encoding/Hex";
88
import * as FileSystem from "effect/FileSystem";
99
import * as Layer from "effect/Layer";
1010
import * as Option from "effect/Option";
@@ -842,7 +842,7 @@ export const make = Effect.gen(function* () {
842842
onNone: () =>
843843
crypto.randomBytes(24).pipe(
844844
Effect.map((bytes) => {
845-
const token = Encoding.encodeHex(bytes);
845+
const token = Hex.encode(bytes);
846846
return [token, Option.some(token)] as const;
847847
}),
848848
),

‎apps/desktop/src/backend/DesktopBackendManager.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import * as Sink from "effect/Sink";
1919
import * as Scope from "effect/Scope";
2020
import * as Stream from "effect/Stream";
2121
import * as TestClock from "effect/testing/TestClock";
22-
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
23-
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
22+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
23+
import { ChildProcess, ChildProcessSpawner } from "effect/process";
2424

2525
import * as DesktopBackendManager from "./DesktopBackendManager.ts";
2626
import * as DesktopApp from "../app/DesktopApp.ts";

‎apps/desktop/src/backend/DesktopBackendManager.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import * as Schema from "effect/Schema";
3838
import * as Semaphore from "effect/Semaphore";
3939
import * as Scope from "effect/Scope";
4040
import * as Stream from "effect/Stream";
41-
import { HttpClient } from "effect/unstable/http";
42-
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
41+
import { HttpClient } from "effect/http";
42+
import { ChildProcess, ChildProcessSpawner } from "effect/process";
4343

4444
import {
4545
DesktopBackendBootstrap,

0 commit comments

Comments
 (0)