Skip to content

Releases: airtai/faststream

v0.2.12

13 Nov 13:15
6c54a08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.11...0.2.12

v0.2.11

03 Nov 15:45
d4103c9
Compare
Choose a tag to compare

What's Changed

Bug fixes

Documentation

New Contributors

Full Changelog: 0.2.10...0.2.11

v0.2.10

01 Nov 19:43
f4fc2bf
Compare
Choose a tag to compare

What's Changed

Now, you can hide your connection secrets in the AsyncAPI schema by manually setting up the server URL:

broker = RabbitBroker(
    "amqp://guest:guest@localhost:5672/",  # Connection URL
    asyncapi_url="amqp://****:****@localhost:5672/",  # Public schema URL
)

Additionally, the RabbitMQ AsyncAPI schema has been improved, adding support for faststream.security, and the connection scheme is now defined automatically.

RabbitMQ connection parameters are now merged, allowing you to define the main connection data as a URL string and customize it using kwargs:

broker = RabbitBroker(
    "amqp://guest:guest@localhost:5672/",
    host="127.0.0.1",
)

# amqp://guest:[email protected]:5672/ - The final URL
  • A more suitable faststream.security import instead of faststream.broker.security
  • chore: add release notes for 0.2.9 by @kumaranvpl in #894
  • chore: upgrade packages by @davorrunje in #901
  • chore: use js redirect and redirect to version by @kumaranvpl in #902
  • feat: add asyncapi_url broker arg by @Lancetnik in #903

Full Changelog: 0.2.9...0.2.10

v0.2.9

26 Oct 20:52
a0c4890
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.8...0.2.9

v0.2.8

20 Oct 17:57
6873f1b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.7...0.2.8

v0.2.7

19 Oct 18:37
a2d8ea0
Compare
Choose a tag to compare

What's Changed

  • fix: ImportError: typing 'override' from 'faststream._compat' (python 3.12) by @Jaroslav2001 in #870
  • fix: remove jsonref dependency by @Lancetnik in #873

Full Changelog: 0.2.6...0.2.7

v0.2.6

19 Oct 06:25
b292c1e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.5...0.2.6

v0.2.5

15 Oct 19:42
4231c1f
Compare
Choose a tag to compare

What's Changed

  • fix: pass missing parameters and update docs by @sheldygg in #841

Full Changelog: 0.2.4...0.2.5

v0.2.4

15 Oct 18:52
a9bc8cd
Compare
Choose a tag to compare

New Functionalities

Now, Context provides access to inner dict keys too:

# headers is a `dict`
async def handler(
  user_id: int = Context("message.headers.user_id", cast=True),
): ...

Added Header object as a shortcut to Context("message.headers.") inner fields (NATS example):

# the same with the previous example
async def handler(
  user_id: int = Header(),
  u_id: int = Header("user_id"),  # with custom name
): ...

Added Path object to get access to NATS wildcard subject or RabbitMQ topic routing key (a shortcut to access Context("message.path.") as well):

@nats_broker.subscriber("logs.{level}")
async def handler(
  level: str = Path(),
)

Also, the original message Context annotation was copied from faststream.[broker].annotations.[Broker]Message to faststream.[broker].[Broker]Message to provide you with faster access to the most commonly used object (NATS example).

What's Changed

Full Changelog: 0.2.3...0.2.4

v0.2.3

08 Oct 12:01
0374fde
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.2...0.2.3