feat: upgrade effect to 4.0.0-beta.93#223
Open
godu wants to merge 1 commit into
Open
Conversation
Bump effect and @effect/* deps from beta.48 to beta.93 (via projen) and migrate to the beta.66 API shape after the Yieldable interface removal (Effect-TS/effect-smol#2163): - drop .asEffect() — Context.Service/Reference and Config now extend Effect directly (powertools-logger, powertools-tracer, dynamodb, s3, and the ssm/secrets-manager ConfigProvider tests) - yield* Option -> Effect.fromOption (s3 multipartUpload) - fix TS4023 in commons/Service.ts via explicit return-type annotations - raise the effect peer range floor to >=4.0.0-beta.66 <5.0.0 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade
effectand@effect/*from4.0.0-beta.48→4.0.0-beta.93(via projen) and migrate to the API shape introduced in effect@4.0.0-beta.66 — see Effect-TS/effect-smol#2159 (Yieldable removal; underlying change Effect-TS/effect-smol#2163).Changes
Yieldableremoval migration:.asEffect()—Context.Service/ReferenceandConfignow extendEffectdirectly (powertools-logger, powertools-tracer, dynamodb, s3, and the ssm/secrets-manager ConfigProvider tests)yield* Option→Effect.fromOption(s3multipartUpload)TS4023incommons/Service.tsvia explicit return-type annotationseffectpeer range floor to>=4.0.0-beta.66 <5.0.0across all 70 packages, since the migrated code relies on the beta.66 shape and would fail on older effect.Verification
pnpm -r --filter './packages/*' compile— greenscripts/generate-client.ts) emits byte-identical output for un-drifted clients under beta.93🤖 Generated with Claude Code