changes
tcmts.examples.effect.changes · #lzpjycuc · patch file
diff --color -ru npmorig/package/src/Runtime.ts npmapply/package/src/Runtime.ts
--- src/Runtime.ts 1985-10-26 01:15:00
+++ src/Runtime.ts 2026-11-02 06:39:41
@@ -10,10 +10,10 @@
* @stability stable
* @since 4.0.0
*/
-import * as Cause from "effect/Cause"
-import * as Effect from "effect/Effect"
-import * as Exit from "effect/Exit"
-import { constVoid, dual } from "effect/Function"
+import * as Cause from "./Cause.ts"
+import * as Effect from "./Effect.ts"
+import * as Exit from "./Exit.ts"
+import { constVoid, dual } from "./Function.ts"
import type * as Fiber from "./Fiber.ts"
/**
diff --color -ru npmorig/package/src/SchemaAST.ts npmapply/package/src/SchemaAST.ts
--- src/SchemaAST.ts 1985-10-26 01:15:00
+++ src/SchemaAST.ts 2026-11-02 06:36:32
@@ -3119,7 +3119,7 @@
pending: Effect.Effect<unknown, SchemaIssue.Issue, any>
): Effect.Effect<unknown, SchemaIssue.Issue, any> => {
const property = properties![index]
- return Effect.flatMap(Effect.exit(pending), (exit) => {
+ return Effect.flatMap(Effect.exit(pending), (exit): Effect.Effect<unknown, SchemaIssue.Issue, any> => {
// Copy the parsed prefix per execution so reruns cannot overwrite earlier results.
const state: ObjectParserState = { ...snapshot, out: { ...snapshot.out } }
const terminal = stepProperty(state, property, exit)
diff --color -ru npmorig/package/src/cluster/SingleRunner.ts npmapply/package/src/cluster/SingleRunner.ts
--- src/cluster/SingleRunner.ts 1985-10-26 01:15:00
+++ src/cluster/SingleRunner.ts 2026-11-02 06:39:41
@@ -11,7 +11,7 @@
* @stability unstable
* @since 4.0.0
*/
-import * as Layer from "effect/Layer"
+import * as Layer from "../Layer.ts"
import type { ConfigError } from "../Config.ts"
import type * as Digest from "../crypto/Digest.ts"
import type * as SqlClient from "../sql/SqlClient.ts"
diff --color -ru npmorig/package/src/crypto/KeyWrap.ts npmapply/package/src/crypto/KeyWrap.ts
--- src/crypto/KeyWrap.ts 1985-10-26 01:15:00
+++ src/crypto/KeyWrap.ts 2026-11-02 06:36:32
@@ -311,7 +311,13 @@
/** @internal */
export const secretFamily = (algorithm: KeyFormat.SecretAlgorithm): SecretFamily =>
- "nonceLength" in algorithm ? Aead : "mode" in algorithm ? Cipher : "_tag" in algorithm ? { key, toBytes } : Mac
+ "nonceLength" in algorithm ?
+ { key: Aead.key, toBytes: Aead.toBytes } :
+ "mode" in algorithm ?
+ { key: Cipher.key, toBytes: Cipher.toBytes } :
+ "_tag" in algorithm ?
+ { key, toBytes } :
+ { key: Mac.key, toBytes: Mac.toBytes }
// AES-KW in WebCrypto only wraps `CryptoKey`s, so the key bytes go through a
// temporary extractable HMAC key, which imports any non-empty length.
diff --color -ru npmorig/package/src/graphql/GraphQL.ts npmapply/package/src/graphql/GraphQL.ts
--- src/graphql/GraphQL.ts 1985-10-26 01:15:00
+++ src/graphql/GraphQL.ts 2026-11-02 06:36:32
@@ -323,7 +323,7 @@
readonly result: Result
}
) => Operation<"query", Name, Variables extends Schema.Struct.Fields ? Schema.Struct<Variables> : Variables, Result> =
- makeOperation("query")
+ makeOperation("query") as any
/**
* Defines a mutation. Same shape as {@link query}.
@@ -363,7 +363,7 @@
Name,
Variables extends Schema.Struct.Fields ? Schema.Struct<Variables> : Variables,
Result
-> = makeOperation("mutation")
+> = makeOperation("mutation") as any
/**
* Defines a subscription. The client method for a subscription returns a
@@ -404,7 +404,7 @@
Name,
Variables extends Schema.Struct.Fields ? Schema.Struct<Variables> : Variables,
Result
-> = makeOperation("subscription")
+> = makeOperation("subscription") as any
/**
* The `__typename` Schema for the "every other type" member of a generated
diff --color -ru npmorig/package/src/http/HttpClient.ts npmapply/package/src/http/HttpClient.ts
--- src/http/HttpClient.ts 1985-10-26 01:15:00
+++ src/http/HttpClient.ts 2026-11-02 06:36:32
@@ -474,7 +474,7 @@
tag,
f
)
- )
+ ) as any
)
/**
Only in npmapply/package/src/http: HttpClient.ts.orig
diff --color -ru npmorig/package/src/schema/SchemaCompiler/runtime.ts npmapply/package/src/schema/SchemaCompiler/runtime.ts
--- src/schema/SchemaCompiler/runtime.ts 1985-10-26 01:15:00
+++ src/schema/SchemaCompiler/runtime.ts 2026-11-02 06:36:32
@@ -70,7 +70,7 @@
pending: Effect.Effect<unknown, SchemaIssue.Issue, any>
): Effect.Effect<unknown, SchemaIssue.Issue, any> => {
const property = properties![index]
- return Effect.flatMap(Effect.exit(pending), (exit) => {
+ return Effect.flatMap(Effect.exit(pending), (exit): Effect.Effect<unknown, SchemaIssue.Issue, any> => {
// Each execution gets its own output; `issues` is still undefined here
// because `errors: "all"` is routed to the fallback before suspending.
const state: ObjectParserState = { ...snapshot, out: { ...snapshot.out } }
used by