unstale

pypi / faststream

faststream

What changed in faststream 0.7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

1 breaking13 new APIs and options1 performance2 behavior and defaults1 tooling28 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

faststream 0.746 changes

Breaking changes 1

  • Stops the subscriber on terminal stream errors instead of restarting.

    0.7.6release notes

New APIs and options 13

  • Adds assert_called_once_with for subscribers and publishers in testing.

    0.7.6release notes

  • Adds assert_called_with and assert_any_call for subscribers and publishers in testing.

    0.7.6release notes

  • Adds StreamSub claim_min_idle_time support for XREADGROUP CLAIM.

    0.7.6release notes

  • Adds annotations for the native Confluent consumer and MQTT client.

    0.7.6release notes

  • Exposes the Redis stream delivery count.

    0.7.6release notes

  • Adds a Confluent Topic schema for configuring topic creation.

    0.7.6release notes

  • Renders the Address template in the generated schema.

    0.7.5release notes

  • Adds batch stream message annotation support for Redis.

    0.7.5release notes

  • Adds ContextRepo composition.

    0.7.5release notes

  • Adds a correlation_id factory function at broker creation time, for example to generate ULIDs.

    0.7.5release notes

  • Adds an MQTT DSN as an alternative to setting direct URL attributes.

    0.7.5release notes

  • Adds support for MQTT Will messages.

    0.7.5release notes

  • Adds a declare option to StreamSub.

    0.7.5release notes

Performance 1

  • Uses one context scope object per consumed message.

    0.7.6release notes

Behavior and default changes 2

  • Typing now accepts every broker annotated as BrokerUsecase[Any, Any].

    0.7.7release notes

  • Addresses across all brokers support literal braces.

    0.7.6release notes

Tooling 1

  • Emulates Redis Stream PEL to route messages to min_idle_time subscribers.

    0.7.5release notes

Fixes and other changes 28

  • Declared __slots__ now take effect in subclasses too.

    0.7.7release notes

  • In the 3.0 schema, the address field carries the address.

    0.7.6release notes

  • Publishes an empty message when a batch publisher has nothing to send.

    0.7.6release notes

  • Warns when a batch subscriber drops max_workers.

    0.7.6release notes

  • Resolves batch subscribers and publishers to one type rather than a Union.

    0.7.6release notes

  • Opens a concurrent subscriber's queue on start and closes it on stop.

    0.7.6release notes

  • Fixes brace escaping so it reaches consumers that read the declaration.

    0.7.6release notes

  • YAML and AsyncAPI errors are surfaced by docs serve.

    0.7.6release notes

  • Fixes the supervisor deadlock during shutdown.

    0.7.6release notes

  • NATS AsyncAPI channels now render filter_subjects.

    0.7.6release notes

  • Keeps a handler's declared call separate from its composed call.

    0.7.6release notes

  • Accepts KafkaPublishMessage in batch publish signatures.

    0.7.6release notes

  • Accepts a plain str as the License and Contact url.

    0.7.6release notes

  • Redis stream subscribers can use MANUAL ack_policy with max_workers.

    0.7.6release notes

  • Stops warning that no_ack has no effect with a Redis consumer group.

    0.7.6release notes

  • Types a plain Confluent publish() as the message rather than a Future.

    0.7.6release notes

  • Types the NATS pull consumer callback as a coroutine function.

    0.7.6release notes

  • Keeps the group read cursor in get_one and iterator.

    0.7.6release notes

  • Corrects the types of RedisClusterBroker ssl_* options.

    0.7.6release notes

  • A router prefix is included in the address it decorates.

    0.7.6release notes

  • A subscriber over several addresses is represented as several channels.

    0.7.6release notes

  • Corrects MQTT subscriber typing so a decorated handler stays typed by max_workers.

    0.7.6release notes

  • Fixes TelemetryMiddleware.

    0.7.6release notes

  • Tells users to install the extra when zmqtt is missing.

    0.7.6release notes

  • Skips the acknowledgement action when a handler is cancelled.

    0.7.5release notes

  • Prevents an instant resubscribe loop on a broken zmqtt 0.2.0 connection and adds new options.

    0.7.5release notes

  • Corrects partition assignment strategy type hints.

    0.7.5release notes

  • New Redis Stream groups consume existing entries.

    0.7.5release notes