⬆️ Update dependency effect to v3 #126
Open
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->3.18.4Release Notes
Effect-TS/effect (effect)
v3.18.4Compare Source
Patch Changes
#5617
6ae2f5dThanks @gcanti! - JSONSchema: Fix issue where invaliddefaults were included in the output.Now they are ignored, similar to invalid
examples.Before
After
v3.18.3Compare Source
Patch Changes
#5612
25fab81Thanks @gcanti! - Fix JSON Schema generation withtopLevelReferenceStrategy: "skip", closes #5611This patch fixes a bug that occurred when generating JSON Schemas with nested schemas that had identifiers, while using
topLevelReferenceStrategy: "skip".Previously, the generator would still output
$refentries even though references were supposed to be skipped, leaving unresolved definitions.Before
After
Now schemas are correctly inlined, and no leftover
$refentries or unused definitions remain.v3.18.2Compare Source
Patch Changes
8ba4757Thanks @cyberixae! - Fix Array Do documentationv3.18.1Compare Source
Patch Changes
07802f7Thanks @indietyp! - Enableconsole.groupuse inLogger.prettyFormatwhen using Bunv3.18.0Compare Source
Minor Changes
#5302
1c6ab74Thanks @schickling! - Add experimental Graph module with comprehensive graph data structure supportThis experimental module provides:
Example usage:
#5302
70fe803Thanks @mikearnaldi! - Automatically set otel parent when present as external span#5302
c296e32Thanks @tim-smart! - add Effect.Semaphore.resize#5302
a098ddfThanks @mikearnaldi! - Introduce ReadonlyTag as the covariant side of a tag, enables:v3.17.14Compare Source
Patch Changes
ea95998Thanks @IMax153! - Preserve the precision of histogram boundary valuesv3.17.13Compare Source
Patch Changes
51bfc78Thanks @tim-smart! - ensure tracerLogger does not drop message itemsv3.17.12Compare Source
Patch Changes
b359bdcThanks @tim-smart! - add preload options to LayerMapv3.17.11Compare Source
Patch Changes
#5449
fb5e414Thanks @tim-smart! - Simplify Effect.raceAll implementation, ensure children fibers are awaited#5451
018363bThanks @mikearnaldi! - Fix Predicate.isIterable to allow stringsv3.17.10Compare Source
Patch Changes
#5368
3b26094Thanks @gcanti! - ## Annotation BehaviorWhen you call
.annotationson a schema, any identifier annotations that were previously set will now be removed. Identifiers are now always tied to the schema'sastreference (this was the intended behavior).Example
v3.17.9Compare Source
Patch Changes
0271f14Thanks @gcanti! - backportformatUnknownfrom v4v3.17.8Compare Source
Patch Changes
84bc300Thanks @thewilkybarkid! - Fix Schema.Defect when seeing a null-prototype objectv3.17.7Compare Source
Patch Changes
a949539Thanks @tim-smart! - expose RcMap.has apiv3.17.6Compare Source
Patch Changes
f187941Thanks @beezee! - Use non-greedy matching for Schema.String in Schema.TemplateLiteralParserv3.17.5Compare Source
Patch Changes
5f98388Thanks @patroza! - improve provide/merge apis to support readonly array inputs.v3.17.4Compare Source
Patch Changes
7d7c55dThanks @leonitousconforti! - Align RcMap.keys return type with internal signaturev3.17.3Compare Source
Patch Changes
#5275
3504555Thanks @taylornz! - fix DateTime.makeZoned handling of DST transitions#5282
f6c7ca7Thanks @beezee! - Improve inference on Metric.trackSuccessWith for use in Effect.pipe(...)#5275
3504555Thanks @taylornz! - add DateTime.Disambiguation for handling DST edge casesAdded four disambiguation strategies to
DateTime.Zonedconstructors for handling DST edge cases:'compatible'- Maintains backward compatibility'earlier'- Choose earlier time during ambiguous periods (default)'later'- Choose later time during ambiguous periods'reject'- Throw error for ambiguous timesv3.17.2Compare Source
Patch Changes
6309e0aThanks @tim-smart! - Fix Layer.mock dual detectionv3.17.1Compare Source
Patch Changes
ea95998Thanks @IMax153! - Preserve the precision of histogram boundary valuesv3.17.0Compare Source
Minor Changes
#4949
40c3c87Thanks @fubhy! - AddedRandom.fixedto create a version of theRandomservice with fixedvalues for testing.
#4949
ed2c74aThanks @dmaretskyi! - AddStruct.entriesfunction#4949
073a1b8Thanks @f15u! - AddLayer.mockCreates a mock layer for testing purposes. You can provide a partial
implementation of the service, and any methods not provided will
throw an
UnimplementedErrordefect when called.#4949
f382e99Thanks @KhraksMamtsov! - Schedule output has been added intoCurrentIterationMetadata#4949
e8c7ba5Thanks @mikearnaldi! - Remove global state index by version, make version mismatch a warning message#4949
7e10415Thanks @devinjameson! - Array: add findFirstWithIndex function#4949
e9bdeceThanks @vinassefranche! - Add HashMap.countBy#4949
8d95eb0Thanks @tim-smart! - add Effect.ensure{Success,Error,Requirements}Type, for constraining Effect typesv3.16.17Compare Source
Patch Changes
#5246
aaa6ad0Thanks @mikearnaldi! - Copy over apply, bind, call into service proxy#5158
5b74ea5Thanks @cyberixae! - Clarify Tuple length requirementsv3.16.16Compare Source
Patch Changes
127e602Thanks @tim-smart! - prevent fiber leak when Stream.toAsyncIterable returns earlyv3.16.15Compare Source
Patch Changes
15df9bfThanks @gcanti! - Schema.attachPropertySignature: simplify signature and fix parameter type to use Schema instead of SchemaClassv3.16.14Compare Source
Patch Changes
#5213
f5dfabfThanks @gcanti! - Fix incorrect schema ID annotation inSchema.lessThanOrEqualToDate, closes #5212#5192
17a5ea8Thanks @nikelborm! - Updated deprecated OTel Resource attributes names and values.Many of the attributes have undergone the process of deprecation not once, but twice. Most of the constants holding attribute names have been renamed. These are minor changes.
Additionally, there were numerous changes to the attribute keys themselves. These changes can be considered major.
In the
@opentelemetry/semantic-conventionspackage, new attributes having ongoing discussion about them are going through a process called incubation, until a consensus about their necessity and form is reached. Otel team recommends devs to copy them directly into their code. Luckily, it's not necessary because all of the new attribute names and values came out of this process (some of them were changed again) and are now considered stable.v3.16.13Compare Source
Patch Changes
#5097
c1c05a8Thanks @tim-smart! - remove completion helper overload from Effect.catchTag, to fix Effect.fn inference#5157
81fe4a2Thanks @cyberixae! - Clarify Array rotate examplev3.16.12Compare Source
Patch Changes
905da99Thanks @milkyskies! - Fix$matchto disallow invalid_tagkeys inTaggedEnumhandler objects.v3.16.11Compare Source
Patch Changes
#5127
99590a6Thanks @tim-smart! - fix DateTime zone check to includes zones without ":"#5123
6c3e24cThanks @gcanti! - Schema.equivalence: handle non-array and non-record inputsv3.16.10Compare Source
Patch Changes
faad30eThanks @tim-smart! - relax Predicate.compose constraint on second refinementv3.16.9Compare Source
Patch Changes
#5081
5137c70Thanks @tim-smart! - expose Stream.provideSomeContext#5082
c23d25cThanks @tim-smart! - fix Effect.filterOrFail return type inferencev3.16.8Compare Source
Patch Changes
#5047
8cb98d5Thanks @tim-smart! - ensure Stream.toReadableStream ignores empty chunks#5046
db2dd3cThanks @tim-smart! - ignore ReadableStream defect in bun due to controller bugv3.16.7Compare Source
Patch Changes
1bb0d8aThanks @tim-smart! - ensure DateTime.make interprets strings without zone as UTCv3.16.6Compare Source
Patch Changes
#5026
a5f7595Thanks @KhraksMamtsov! - Add missing type variances#5031
a02470cThanks @KhraksMamtsov! - Fix Context.add & Context.make signatures#5003
f891d45Thanks @beezee! - Ensure binding__proto__to lexical scope in do notation is preserved bybindandletv3.16.5Compare Source
Patch Changes
bf418efThanks @jdharrisnz! - Record.findFirst: Accept ReadonlyRecord type input and optimise the loopv3.16.4Compare Source
Patch Changes
#4994
74ab9a0Thanks @tim-smart! - don't inherit interruption flag in Effect.addFinalizer#4986
770008eThanks @tim-smart! - ensure Cause.YieldableError extends Errorv3.16.3Compare Source
Patch Changes
#4952
87722fcThanks @tim-smart! - improve Effect.catchTag auto-completion#4950
36217eeThanks @tim-smart! - removethistype propagation from Effect.fnv3.16.2Compare Source
Patch Changes
0ddf148Thanks @gcanti! - relaxSchema.brandconstraint, closes #4942v3.16.1Compare Source
Patch Changes
#5246
aaa6ad0Thanks @mikearnaldi! - Copy over apply, bind, call into service proxy#5158
5b74ea5Thanks @cyberixae! - Clarify Tuple length requirementsv3.16.0Compare Source
Minor Changes
#4891
ee0bd5dThanks @KhraksMamtsov! -Schedule.CurrentIterationMetadatahas been added#4891
5189800Thanks @vinassefranche! - Add HashMap.hasBy helper#4891
58bfeaaThanks @jrudder! - Add round and sumAll to BigDecimal#4891
194d748Thanks @tim-smart! - add ExecutionPlan moduleA
ExecutionPlancan be used withEffect.withExecutionPlanorStream.withExecutionPlan, allowing you to provide different resources for each step of execution until the effect succeeds or the plan is exhausted.#4891
918c9eaThanks @thewilkybarkid! - Add Array.removeOption and Chunk.removeOption#4891
9198e6fThanks @TylorS! - Add parameter support for Effect.ServiceThis allows you to pass parameters to the
effect&scopedEffect.Serviceconstructors, which will also be reflected in the
.Defaultlayer.#4891
2a370bfThanks @vinassefranche! - AddIterable.countByandArray.countBy#4891
58ccb91Thanks @KhraksMamtsov! - TheConfig.portandConfig.brandedfunctions have been added.#4891
fd47834Thanks @tim-smart! - return a proxy Layer from LayerMap serviceThe new usage is:
v3.15.5Compare Source
Patch Changes
cc5bb2bThanks @KhraksMamtsov! - Fix type inference for Effect suptypes in NonGen casev3.15.4Compare Source
Patch Changes
#4869
f570554Thanks @IGassmann! - Fix summary metric’s min/max values when no samples#4917
78047e8Thanks @KhraksMamtsov! - Fix Effect.fn inference in case of use with pipe functionsv3.15.3Compare Source
Patch Changes
4577f54Thanks @mattiamanzati! - Escape JSON-pointersv3.15.2Compare Source
Patch Changes
b8722b8Thanks @KhraksMamtsov! - - TheHashMap.has/getfamily has become more type-safe.v3.15.1Compare Source
Patch Changes
#4870
787ce70Thanks @tim-smart! - ensure generic refinements work with Effect.filterOr*#4857
1269641Thanks @tim-smart! - preserve explicitthisin Effect.fn apis#4857
1269641Thanks @tim-smart! - use span name as function name in Effect.fnv3.15.0Compare Source
Minor Changes
#4641
c654595Thanks @tim-smart! - Add Layer.setRandom, for over-riding the default Random service#4641
d9f5deaThanks @KhraksMamtsov! -Brand.unbrandedgetter has been added#4641
49aa723Thanks @titouancreach! - Add Either.transposeMapOption#4641
74c14d0Thanks @vinassefranche! - Add Record.findFirst#4641
e4f49b6Thanks @KhraksMamtsov! - Defaultnevertype has been added toMutableHasMap.empty&MutableList.emptyctors#4641
6f02224Thanks @tim-smart! - add Stream.toAsyncIterable* apis#4641
1dcfd41Thanks @tim-smart! - improve Effect.filter* types to exclude candidates in fallback functions#4641
b21ab16Thanks @KhraksMamtsov! - Simplified the creation of pipeable classes.#4641
fcf1822Thanks @KhraksMamtsov! - propertymessage: stringhas been added toConfigError.And&Ormembers#4641
0061dd1Thanks @tim-smart! - allow catching multiple different tags in Effect.catchTag#4641
8421e6eThanks @mlegenhausen! - ExposeCause.isTimeoutException#4641
fa10f56Thanks @thewilkybarkid! - Support multiple values in Function.applyv3.14.22Compare Source
Patch Changes
#4847
24a9ebbThanks @gcanti! - Schema: TaggedError no longer crashes when themessagefield is explicitly defined.If you define a
messagefield in your schema,TaggedErrorwill no longer add its ownmessagegetter. This avoids a stack overflow caused by infinite recursion.Before
After
v3.14.21Compare Source
Patch Changes
2f3b7d4Thanks @tim-smart! - fix Mailbox.fromStreamv3.14.20Compare Source
Patch Changes
#4832
17e2f30Thanks @gcanti! - JSONSchema: respect annotations on declarations.Previously, annotations added with
.annotations(...)onSchema.declare(...)were not included in the generated JSON Schema output.Before
After
v3.14.19Compare Source
Patch Changes
#4822
056a910Thanks @KhraksMamtsov! - fixLayer.discardjsdoc#4816
3273d57Thanks @mikearnaldi! - Fix captureStackTrace for bunv3.14.18Compare Source
Patch Changes
b1164d4Thanks @tim-smart! - fix refinement narrowing in Matchv3.14.17Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.