Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore(deps): upgrade Effect to rc.112 and Alchemy to beta.76 #10652

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/10652/headmerged by juliusmarminge View on GitHub

Showing 250 changed files with 4 additions and 4 deletions (loading 246).

x
0 of 250 viewed, 250 left
1 addition and 1 deletion.macroscope/check-run-agents/effect-service-conventions.mdModified
View file
@@ -52,7 +52,7 @@
​
## Errors
​
-- Define service failures with `Schema.TaggedErrorClass` and structured attributes: operation or stage, resource path or entity identifier, normalized category or status. Derive `message` from those attributes only. Never derive it from `cause`, `cause.message`, or a stringified defect, and do not add a `detail` field that copies `cause.message`.
+- Define service failures with `Schema.TaggedError` and structured attributes: operation or stage, resource path or entity identifier, normalized category or status. Derive `message` from those attributes only. Never derive it from `cause`, `cause.message`, or a stringified defect, and do not add a `detail` field that copies `cause.message`.
- When wrapping a real failure, keep the immediate underlying error as `cause` so the chain and stack survive. Make `cause` required if every construction wraps a failure. Pure validation or domain errors created without an underlying failure need no cause.
- Keep attributes and log annotations safe and bounded: no raw wire payloads, command arguments or output, signed URLs, credentials, query strings, or arbitrary defect text. Preserve the exact value only as `cause`; expose normalized categories, lengths, counts, and safe URL protocol or hostname where useful.
- At a translation boundary, pass through an already structured domain error when it is part of the target error channel; wrap only unknown or lower-level failures. Map failures where the context is known instead of wrapping a whole multi-step pipeline in one generic error.
2 additions and 2 deletionsapps/desktop/src/app/DesktopApp.tsModified
View file
@@ -41,7 +41,7 @@
Effect.map((value) => value.replaceAll("-", "").slice(0, 12)),
);
​
-export class DesktopBackendPortUnavailableError extends Schema.TaggedErrorClass<DesktopBackendPortUnavailableError>()(
+export class DesktopBackendPortUnavailableError extends Schema.TaggedError<DesktopBackendPortUnavailableError>()(
"DesktopBackendPortUnavailableError",
startPort: Schema.Int,
@@ -54,7 +54,7 @@
​
-export class DesktopDevelopmentBackendPortRequiredError extends Schema.TaggedErrorClass<DesktopDevelopmentBackendPortRequiredError>()(
+export class DesktopDevelopmentBackendPortRequiredError extends Schema.TaggedError<DesktopDevelopmentBackendPortRequiredError>()(