Skip to content

effect@4.0.0-beta.36

Pre-release
Pre-release

Choose a tag to compare

@effect-bot effect-bot released this 20 Mar 03:20
· 440 commits to main since this release
d61d1d8

Patch Changes

  • #1793 60fcbcc Thanks @tim-smart! - Ensure streamed tool results are emitted before the finish part so chat history includes tool outputs before stream termination.

  • #1762 0a60837 Thanks @kitlangton! - Allow unstable HttpApi middleware to declare multiple error schemas with arrays.

    Middleware errors now follow endpoint error behavior for response status resolution, client decoding, and generated API schemas.

  • #1805 49164d2 Thanks @tim-smart! - Fix Effect.cachedWithTTL and Effect.cachedInvalidateWithTTL to start TTL expiration when the cached value is produced instead of when computation starts.

  • #1808 334b6e4 Thanks @tim-smart! - Backport Cron.prev with reverse lookup tables and cron stepping logic, including DST-aware reverse traversal.

  • #1789 5700695 Thanks @mikearnaldi! - Fix Stream.scanEffect hanging and repeatedly emitting the initial state.

  • #1810 f8f4456 Thanks @tim-smart! - Support key-derived idleTimeToLive in LayerMap options (make, fromRecord, and LayerMap.Service) and add LayerMap tests for dynamic TTL behavior.

  • #1802 969d24f Thanks @kitlangton! - PubSub.publish and PubSub.publishAll now return false on shutdown instead of interrupting, matching Queue.offer semantics.

  • #1796 851eda0 Thanks @tim-smart! - Improve Prompt.file to support incremental filtering while typing, including backspace and ctrl-u handling.

  • #1806 8059c1c Thanks @tim-smart! - Fix a regression in PubSub.shutdown so shutting down a pubsub interrupts suspended subscribers (including takeAll) by ensuring subscriptions are scoped under the pubsub shutdown scope.

  • #1797 6f83295 Thanks @tim-smart! - Add `Ctrl-A` and `Ctrl-E` key handling for editable CLI text prompts to move the cursor to the beginning or end of the current input line.

  • #1633 65f7f57 Thanks @kitlangton! - Schema: add decodeUnknownResult / decodeResult and encodeUnknownResult / encodeResult helpers for synchronous Result-based parsing.

  • #1798 e7fabd2 Thanks @gcanti! - Schema: allow using Struct type helpers directly, e.g. Schema.Struct.Type<F> instead of Schema.Schema.Type<Schema.Struct<F>>.

  • #1794 89c3e98 Thanks @tim-smart! - Fix ai LanguageModel streaming finish parts so finish events are always emitted when a toolkit is provided.

  • #1785 53794ab Thanks @KhraksMamtsov! - add missing Equivalence.Date