Skip to content

Releases: airtai/faststream

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

v0.2.2

06 Oct 13:13
2c89647
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.1...0.2.2

v0.2.1

04 Oct 12:22
847b81f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.2.1

v0.2.0

02 Oct 18:50
050cbff
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.6...0.2.0

v0.1.6

29 Sep 07:30
0a9c3c4
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.5...0.1.6

v0.1.5

26 Sep 12:01
6c04162
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.4...0.1.5

v0.1.4

26 Sep 09:17
465ae82
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.3...0.1.4