-
Notifications
You must be signed in to change notification settings - Fork 0
⬆️ Update dependency effect to v2.4.19 #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/effect-2.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
9361861 to
23ff088
Compare
23ff088 to
03406f2
Compare
03406f2 to
93a5434
Compare
93a5434 to
520faf0
Compare
520faf0 to
0377f9c
Compare
0377f9c to
9bc2922
Compare
9bc2922 to
e2f94ae
Compare
f3c9102 to
02d1bdd
Compare
02d1bdd to
411a972
Compare
2e4013f to
1ce2a6e
Compare
0713848 to
66f918e
Compare
8434a61 to
37405cf
Compare
914f5fc to
9bddf09
Compare
9bddf09 to
d1f1485
Compare
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.
This PR contains the following updates:
2.2.5->2.4.19Release Notes
Effect-TS/effect (effect)
v2.4.19Compare Source
Patch Changes
#2503
41c8102Thanks @gcanti! - Centralize error messages for bugs#2493
776ef2bThanks @gcanti! - add aRegExpmodule topackages/effect, closes #2488#2499
217147eThanks @tim-smart! - ensure FIFO ordering when a Deferred is resolved#2502
90776ecThanks @tim-smart! - make tracing spans cheaper to construct#2472
8709856Thanks @tim-smart! - add Subscribable trait / moduleSubscribable represents a resource that has a current value and can be subscribed to for updates.
The following data types are subscribable:
SubscriptionRefActorfrom the experimentalMachinemodule#2500
232c353Thanks @tim-smart! - simplify scope internals#2507
0ca835cThanks @gcanti! - ensure correct value is passed to mapping function inmapAccumloop, closes #2506#2472
8709856Thanks @tim-smart! - add Readable module / traitReadableis a common interface for objects that can be read from using agetEffect.
For example,
Ref's implementReadable:#2498
e983740Thanks @jessekelly881! - added {Readable, Subscribable}.unwrap#2494
e3e0924Thanks @thewilkybarkid! - AddDuration.divideandDuration.unsafeDivide.v2.4.18Compare Source
Patch Changes
#2473
dadc690Thanks @tim-smart! - add Logger.withConsoleLog/withConsoleError apisThese apis send a Logger's output to console.log/console.error respectively.
v2.4.17Compare Source
Patch Changes
#2461
8fdfda6Thanks @tim-smart! - add Inspectable.toStringUnknown/stringifyCircular#2462
607b2e7Thanks @tim-smart! - remove handled errors from Effect.retryOrElse#2461
8fdfda6Thanks @tim-smart! - improve formatting of Runtime failures#2415
8206cafThanks @tim-smart! - add Iterable moduleThis module shares many apis compared to "effect/ReadonlyArray", but is fully lazy.
#2438
7ddd654Thanks @mikearnaldi! - Support Heterogeneous Effects in Effect Iterable apisIncluding:
Effect.allSuccessesEffect.firstSuccessOfEffect.mergeAllEffect.reduceEffectEffect.raceAllEffect.forkAllFor example:
The above is now possible while before it was expecting all Effects to conform to the same type
#2438
7ddd654Thanks @mikearnaldi! - add Effect.filterMap apiWhich allows you to filter and map an Iterable of Effects in one step.
#2461
8fdfda6Thanks @tim-smart! - use Inspectable.toStringUnknown for absurd runtime errors#2460
f456ba2Thanks @tim-smart! - use const type parameter for Config.withDefaultWhich ensures that the fallback value type is not widened for literals.
v2.4.16Compare Source
Patch Changes
5170ce7Thanks @vecerek! - generate proper trace ids in default effect Tracerv2.4.15Compare Source
Patch Changes
#2407
d7688c0Thanks @thewilkybarkid! - Add Config.durationThis can be used to parse Duration's from environment variables:
#2416
b3a4facThanks @mikearnaldi! - Collect exits on forEach interrupt of residual requestsv2.4.14Compare Source
Patch Changes
6180c0cThanks @patroza! - fix interruption of parked Requestsv2.4.13Compare Source
Patch Changes
#2402
3336287Thanks @tim-smart! - add Duration.subtract api#2399
54b7c00Thanks @coleea! - add BigInt.fromString and BigInt.fromNumber#2402
3336287Thanks @tim-smart! - remove use of bigint literals in Durationv2.4.12Compare Source
Patch Changes
3307729Thanks @tim-smart! - update typescript to 5.4v2.4.11Compare Source
Patch Changes
#2384
2f488c4Thanks @tim-smart! - update dependencies#2381
37ca592Thanks @tim-smart! - add fiber ref for disabling the tracerYou can use it with the Effect.withTracerEnabled api:
#2383
317b5b8Thanks @tim-smart! - add Duration.isFinite api, to determine if a duration is not Infinityv2.4.10Compare Source
Patch Changes
#2375
9bab1f9Thanks @tim-smart! - remove dangling variable in frequency metric hook#2373
9bbde5bThanks @patroza! - Use incremental counters instead of up-down for runtime metricsv2.4.9Compare Source
Patch Changes
71fd528Thanks @tim-smart! - make more data types in /platform implement Inspectablev2.4.8Compare Source
Patch Changes
#2354
bb0b69eThanks @tim-smart! - add overload to Effect.filterOrFail that fails with NoSuchElementExceptionThis allows you to perform a filterOrFail without providing a fallback failure
function.
Example:
#2336
6b20badThanks @jessekelly881! - added Predicate.isTruthy#2351
4e64e9bThanks @tim-smart! - fix metrics not using labels from fiber ref#2266
3851a02Thanks @patroza! - fix Effect.Tag generated proxy functions to work with andThen/tap, or others that do function/isEffect checks#2353
5f5fcd9Thanks @tim-smart! - Types: addHashelper#2299
814e5b8Thanks @alex-dixon! - Prevent Effect.if from crashing when first argument is not an Effectv2.4.7Compare Source
Patch Changes
eb93283Thanks @tim-smart! - set unhandled log level to none for fibers in FiberSet/Mapv2.4.6Compare Source
Patch Changes
#2290
4f35a7eThanks @mikearnaldi! - Remove function renaming from internals, introduce new cutpoint strategy#2311
9971186Thanks @tim-smart! - add Channel.splitLines apiIt splits strings on newlines. Handles both Windows newlines (
\r\n) and UNIXnewlines (
\n).v2.4.5Compare Source
Patch Changes
#2300
bce21c5Thanks @gcanti! - ReadonlyArray: fixinterspersesignature#2303
c7d3036Thanks @gcanti! - ReadonlyArray: fixsortsignature, closes #2301v2.4.4Compare Source
Patch Changes
#2172
5d47ee0Thanks @gcanti! - Brand: addrefinedoverload#2285
817a04cThanks @tim-smart! - add support for AbortSignal's to runPromiseIf the signal is aborted, the effect execution will be interrupted.
#2293
d90a99dThanks @tim-smart! - add AbortSignal support to ManagedRuntime#2288
dd05faaThanks @tim-smart! - optimize addition of blocked requests to parallel collection#2288
dd05faaThanks @tim-smart! - use Chunk for request block collections#2280
802674bThanks @jessekelly881! - added support for PromiseLikev2.4.3Compare Source
Patch Changes
#2211
20e63fbThanks @tim-smart! - add ManagedRuntime module, to make incremental adoption easierYou can use a ManagedRuntime to run Effect's that can use the
dependencies from the given Layer. For example:
#2211
20e63fbThanks @tim-smart! - add Layer.toRuntimeWithMemoMap apiSimilar to Layer.toRuntime, but allows you to share a Layer.MemoMap between
layer builds.
By sharing the MemoMap, layers are shared between each build - ensuring layers
are only built once between multiple calls to Layer.toRuntimeWithMemoMap.
v2.4.2Compare Source
Patch Changes
#2264
e03811eThanks @patroza! - fix: unmatched function fallthrough inandThenandtap#2225
ac41d84Thanks @mikearnaldi! - Add Effect.Tag to simplify access to service.This change allows to define tags in the following way:
And use them like:
This fuses together
serviceFunctionsandserviceConstantsin the static side of the tag.Additionally it allows using the service like:
This is especially useful when having functions that contain generics in the service given that those can't be reliably transformed at the type level and because of that we can't put them on the tag.
#2238
6137533Thanks @JJayet! - Request: swap Success and Error params#2270
f373529Thanks @tim-smart! - add structured logging apisLogger.jsonlogs JSON serialized strings to the console.Logger.structuredlogs structured objects, which is useful in the browserwhere you can inspect objects logged to the console.
#2257
1bf9f31Thanks @mikearnaldi! - Make sure Effect.Tag works on primitives.This change allows the following to work just fine:
#2244
e3ff789Thanks @tim-smart! - add FiberMap/FiberSet.join apiThis api can be used to propogate failures back to a parent fiber, in case any of the fibers added to the FiberMap/FiberSet fail with an error.
Example:
#2238
6137533Thanks @JJayet! - make Effect.request dual#2263
507ba40Thanks @thewilkybarkid! - Allow duration inputs to be singular#2255
e466afeThanks @jessekelly881! - added Either.Either.{Left,Right} and Option.Option.Value type utils#2270
f373529Thanks @tim-smart! - add Logger.batched, for batching logger outputIt takes a duration window and an effectful function that processes the batched output.
Example:
#2233
de74eb8Thanks @gcanti! - Struct: makepick/omitdualv2.4.1Compare Source
Patch Changes
#2503
41c8102Thanks @gcanti! - Centralize error messages for bugs#2493
776ef2bThanks @gcanti! - add aRegExpmodule topackages/effect, closes #2488#2499
217147eThanks @tim-smart! - ensure FIFO ordering when a Deferred is resolved#2502
90776ecThanks @tim-smart! - make tracing spans cheaper to construct#2472
8709856Thanks @tim-smart! - add Subscribable trait / moduleSubscribable represents a resource that has a current value and can be subscribed to for updates.
The following data types are subscribable:
SubscriptionRefActorfrom the experimentalMachinemodule#2500
232c353Thanks @tim-smart! - simplify scope internals#2507
0ca835cThanks @gcanti! - ensure correct value is passed to mapping function inmapAccumloop, closes #2506#2472
8709856Thanks @tim-smart! - add Readable module / traitReadableis a common interface for objects that can be read from using agetEffect.
For example,
Ref's implementReadable:#2498
e983740Thanks @jessekelly881! - added {Readable, Subscribable}.unwrap#2494
e3e0924Thanks @thewilkybarkid! - AddDuration.divideandDuration.unsafeDivide.v2.4.0Compare Source
Minor Changes
#2101
5de7be5Thanks @github-actions! - remove ReadonlyRecord.fromIterable (duplicate of fromEntries)#2101
489fcf3Thanks @github-actions! - - swapScheduletype parameters fromSchedule<out Env, in In, out Out>toSchedule<out Out, in In = unknown, out R = never>, closes #2154ScheduleDrivertype parameters fromScheduleDriver<out Env, in In, out Out>toScheduleDriver<out Out, in In = unknown, out R = never>#2101
7d9c3bfThanks @github-actions! - ConsolidateEffect.asyncOption,Effect.asyncEither,Stream.asyncOption,Stream.asyncEither, andStream.asyncInterruptThis PR removes
Effect.asyncOptionandEffect.asyncEitheras their behavior can be entirely implemented with the new signature ofEffect.async, which optionally returns a cleanupEffectfrom the registration callback.Additionally, this PR removes
Stream.asyncOption,Stream.asyncEither, andStream.asyncInterruptas their behavior can be entirely implemented with the new signature ofStream.async, which can optionally return a cleanupEffectfrom the registration callback.#2101
d8d278bThanks @github-actions! - swapGroupBytype parameters fromGroupBy<out R, out E, out K, out V>toGroupBy<out K, out V, out E = never, out R = never>#2101
14c5711Thanks @github-actions! - Remove Effect.unified and Effect.unifiedFn in favour of Unify.unify.The
Unifymodule fully replaces the need for specific unify functions, when before you did:You can now do:
#2101
5de7be5Thanks @github-actions! - add key type to ReadonlyRecord#2101
585fcceThanks @github-actions! - add support for optional property keys topick,omitandgetBefore:
Now
#2101
a025b12Thanks @github-actions! - Swap type params of Either fromEither<E, A>toEither<R, L = never>.Along the same line of the other changes this allows to shorten the most common types such as:
Patch Changes
#2193
b9cb3a9Thanks @jessekelly881! - added Number.parse, BigInt.toNumber, ParseResult.fromOption#2101
93b412dThanks @github-actions! - ReadonlyArray.groupBy: allow for grouping by symbols, closes #2180#2101
55b26a6Thanks @github-actions! - Either: fixfromOptionoverloads order#2101
2097739Thanks @github-actions! - Add Do notation methodsDo,bindTo,bindandletto Eitherv2.3.8Compare Source
Patch Changes
#2167
5ad2eecThanks @tim-smart! - add Hash.cachedThis api assists with adding a layer of caching, when hashing immutable data structures.
#2187
e6d36c0Thanks @tim-smart! - update development dependenciesv2.3.7Compare Source
Patch Changes
#2142
bc8404dThanks @mikearnaldi! - Expose version control via ModuleVersion.This enables low level framework authors to run their own effect version which won't conflict with any other effect versions running on the same process.
Imagine cases where for example a function runtime is built on effect, we don't want lifecycle of the runtime to clash with lifecycle of user-land provided code.
To manually control the module version one can use:
Note that this code performs side effects and should be executed before any module is imported ideally via an init script.
The resulting order of execution has to be:
#2159
2c5cbcdThanks @IMax153! - Avoid incrementing cache hits for expired entries#2165
6565916Thanks @tim-smart! - fix Hash implemention for Option.nonev2.3.6Compare Source
Patch Changes
#2145
b1163b2Thanks @tim-smart! - add RequestResolver.aroundRequests apiThis can be used to run side effects that introspect the requests being
executed.
Example:
#2148
b46b869Thanks @riordanpawley! - Flipped scheduleForked types to match new <A, E, R> signature#2139
de1b226Thanks @mikearnaldi! - Introduce FiberId.Single, make FiberId.None behave like FiberId.Runtime, relax FiberRefs to use Single instead of Runtime.This change is a precursor to enable easier APIs to modify the Runtime when patching FiberRefs.
#2137
a663390Thanks @mikearnaldi! - Expose Random Tag and functions to use a specific random service implementation#2143
ff88f80Thanks @mikearnaldi! - Fix Cause.pretty when toString is invalidThe code above used to throw now it prints:
Error: [{"toString":""}]#2080
11be07bThanks @KhraksMamtsov! - Add functional analogue ofsatisfiesoperator.This is a convenient operator to use in the
pipechain to localize type errors closer to their source.#2147
c568645Thanks @tim-smart! - generate a random span id for the built-in tracerThis ensures the same span id isn't used between application runs.
#2144
88835e5Thanks @mikearnaldi! - Fix withRandom and withClock types#2138
b415577Thanks @mikearnaldi! - Fix internals of TestAnnotationsMap making it respect equality#2149
ff8046fThanks @tim-smart! - add Runtime.updateFiberRefs/setFiberRef/deleteFiberRefThis change allows you to update fiber ref values inside a Runtime object.
Example:
v2.3.5Compare Source
Patch Changes
b881365Thanks @IMax153! - Fix the ordering of results returned from batched requestsv2.3.4Compare Source
Patch Changes
17bda66Thanks @tim-smart! - ensure large semaphore takes don't block smaller takesv2.3.3Compare Source
Patch Changes
#2090
efd41d8Thanks @hsubra89! - UpdateRateLimiterto support passing in a customcostper effect. This is really useful for API(s) that have a "credit cost" per endpoint.Usage Example :
#2097
0f83515Thanks @IMax153! - Updates theRateLimiter.makeconstructor to take an object ofRateLimiter.Options, which allows for specifying the rate-limiting algorithm to utilize:You can choose from either the
token-bucketor thefixed-windowalgorithms for rate-limiting.#2097
0f83515Thanks @IMax153! - return the resulting available permits from Semaphore.releasev2.3.2Compare Source
Patch Changes
#2096
6654f5fThanks @tim-smart! - default toneverfor Runtime returning functionsThis includes:
It prevents
unknownfrom creeping into types, as well asneverbeing auseful default type for propogating Fiber Refs and other context.
#2094
2eb11b4Thanks @tim-smart! - revert some type param adjustments in FiberSetmakeRuntimenow has the R parameter first again.Default to
unknownfor the A and E parameters instead of never.#2103
56c09bdThanks @patroza! - Expand Either and OptionandThento support themapcase like Effects'andThenFor example:
expConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.