Effect
Version 4.0.0-beta.13
Patch Changes
-
#1454
368f4c3Thanks @lucas-barake! - ExposeNoSuchElementErrorin the error type of stream-basedAtom.makeoverloads. -
#1469
db8a579Thanks @tim-smart! - Update unstable schema variant helpers to use array-based arguments forFieldOnly,FieldExcept, andUnion, aligningVariantSchemaandModelwith other v4 API shapes. -
#1457
668b703Thanks @tim-smart! - Run request resolver batch fibers with request services by usingEffect.runForkWith, so resolver delay effects andrunAllexecution see the request service map. -
#1461
d40e76bThanks @mikearnaldi! - FixSchedule.fixeddouble-executing the effect due to clock jitter.The
elapsedSincePrevious > windowcheck included sleep time from the previous step, so any timer imprecision (e.g. 1001ms for a 1000ms sleep) triggered an immediate zero-delay re-execution. -
#1464
6e18cf8Thanks @gcanti! - Use theidentifierannotation as the expected message when available, closes #1458. -
#1475
86062e8Thanks @tim-smart! - Add a CI check job that runspnpm ai-docgenand fails if it produces uncommitted changes. -
#1448
c27ce75Thanks @IMax153! - Refactor CLI built-in options to use Effect services withGlobalFlagBuilt-in CLI flags (
--help,--version,--completions,--log-level) are now implemented as Effect services usingContext.Reference. This provides:- Visibility: Built-in flags now appear in help output’s “GLOBAL FLAGS” section
- Extensibility: Users can register custom global flags via
GlobalFlag.add - Override capability: Built-in flag behavior can be replaced or disabled
- Composability: Flags compose via Effect’s service system
New
GlobalFlagmodule exports:Action<A>andSetting<A>types for different flag behaviorsHelp,Version,Completions,LogLevelreferences for built-in flagsadd,remove,clearfunctions for managing global flags
Example:
const app = Command.make("myapp");Command.run(app, { version: "1.0.0" }).pipe(GlobalFlag.add(CustomFlag, customFlagValue),); -
#1468
e2d4fbfThanks @lucas-barake! - FixRpc.ExtractProvidesto use middleware service ID instead of constructor type. -
#1465
114ab42Thanks @lloydrichards! - tighten Schema on _meta fields in McpSchema; closes #1463 -
#1470
484caecThanks @tim-smart! - AddCommand.withAliasfor unstable CLI commands, including subcommand parsing by alias and help output that renders aliases asname, aliasin subcommand listings.