Skip to content

Releases: frequenz-floss/frequenz-channels-python

v1.6.1

28 Jan 08:53
v1.6.1
ccef0ab
Compare
Choose a tag to compare

Frequenz channels Release Notes

Summary

Upgrading

New Features

Bug Fixes

What's Changed

  • Clear release notes by @shsms in #367
  • Explain the Receiver.close() method in the user guide by @shsms in #368

Full Changelog: v1.6.0...v1.6.1

v1.6.0

21 Jan 10:32
v1.6.0
7354269
Compare
Choose a tag to compare

Frequenz channels Release Notes

New Features

  • Added a Receiver.close() method for closing just a receiver. Also implemented it for all the Receiver implementations in this library.

What's Changed

Full Changelog: v1.5.0...v1.6.0

v1.5.0

08 Jan 09:53
v1.5.0
aceb7c5
Compare
Choose a tag to compare

Frequenz channels Release Notes

New Features

  • Added support for disabling the overflow-warning log messagess in broadcast receivers, through the warn_on_overflow parameter on Broadcast.new_receiver() calls.

What's Changed

  • Clear release notes by @llucax in #360
  • Support for disabling overflow-warning logs in broadcast receivers by @shsms in #329
  • Bump the required group with 7 updates by @dependabot in #362
  • Prepare for release v1.5.0 by @shsms in #363

Full Changelog: v1.4.0...v1.5.0

v1.4.0

05 Dec 14:12
v1.4.0
f4a6642
Compare
Choose a tag to compare

Frequenz channels Release Notes

New Features

Experimental

  • A new composable predicate, WithPrevious, to filter messages based on the previous message.

What's Changed

  • Clear release notes by @llucax in #338
  • Bump the required group across 1 directory with 9 updates by @dependabot in #337
  • Add useful predicates to filter based on the previous value by @llucax in #341
  • Prepare release notes for v1.4.0 by @llucax in #346
  • Use a float for the tolerance in the timer tests by @llucax in #347
  • Update watchfiles requirement from <0.25.0,>=0.15.0 to >=0.15.0,<1.1.0 by @dependabot in #352
  • Bump setuptools from 68.1.0 to 75.6.0 by @dependabot in #351
  • Bump the required group with 7 updates by @dependabot in #349
  • Bump setuptools-scm[toml] from 7.1.0 to 8.1.0 by @dependabot in #350
  • Fix documentation Broadcast -> Anycast by @Marenz in #358
  • Rename OnlyIfPrevious to WithPrevious by @llucax in #357
  • Update files using repo-config-0.11 by @llucax in #353
  • Bump types-markdown from 3.7.0.20240822 to 3.7.0.20241204 by @dependabot in #359

Full Changelog: v1.3.0...v1.4.0

v1.3.0

19 Nov 13:36
v1.3.0
b3c98e5
Compare
Choose a tag to compare

Frequenz channels Release Notes

New Features

  • There is a new Receiver.triggered method that can be used instead of selected_from:

    async for selected in select(recv1, recv2):
        if recv1.triggered(selected):
            print('Received from recv1:', selected.message)
        if recv2.triggered(selected):
            print('Received from recv2:', selected.message)
  • Receiver.filter() can now properly handle TypeGuards. The resulting receiver will now have the narrowed type when a TypeGuard is used.

Bug Fixes

  • Fixed a memory leak in the timer.

What's Changed

Full Changelog: v1.2.0...v1.3.0

v1.2.1

18 Nov 09:57
v1.2.1
391fe11
Compare
Choose a tag to compare

Frequenz channels Release Notes

Bug Fixes

  • Fixed a memory leak in the timer.

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

25 Sep 09:39
v1.2.0
13cf174
Compare
Choose a tag to compare

Frequenz channels Release Notes

Upgrading

  • FileWatcher: The file polling mechanism is now forced by default. This provides reliable and consistent file monitoring on network file systems (e.g., CIFS). However, it may have a performance impact on local file systems or when monitoring a large number of files.
    • To disable file polling, set the force_polling parameter to False.
    • The polling_interval parameter defines the interval for polling changes. This is relevant only when polling is enabled and defaults to 1 second.

New Features

  • Timer.reset() now supports setting the interval and will restart the timer with the new interval.

Bug Fixes

  • FileWatcher:

    • Fixed ready() method to return False when an error occurs. Before this fix, select() (and other code using ready()) never detected the FileWatcher was stopped and the select() loop was continuously waking up to inform the receiver was ready.
    • Reports file events correctly on network file systems like CIFS.
  • Timer.stop() and Timer.reset() now immediately stop the timer if it is running. Before this fix, the timer would continue to run until the next interval.

What's Changed

Full Changelog: v1.1.2...v1.2.0

v1.1.2

13 Sep 12:42
v1.1.2
62c2248
Compare
Choose a tag to compare

Frequenz channels Release Notes

Bug Fixes

  • FileWatcher: Fixed ready() method to return False when an error occurs. Before this fix, select() (and other code using ready()) never detected the FileWatcher was stopped and the select() loop was continuously waking up to inform the receiver was ready.

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

18 Jul 08:22
v1.1.1
a8710e5
Compare
Choose a tag to compare

Frequenz channels Release Notes

Summary

This release improves the documentation on Receiver.filter.

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

09 Jul 12:39
v1.1.0
a1c2102
Compare
Choose a tag to compare

Frequenz channels Release Notes

Summary

In addition to the new LatestValueCache and the ability to filter messages on Receivers, this release introduces two "Experimental" features for providing interconnections between channels.

New Features

  • The LatestValueCache class, which used to be internal to the Frequenz SDK, is now available through the channels package.

  • Experimental: RelaySender, which is a Sender that forwards the messages sent to it, to multiple senders.

  • Experimental: Pipe, which provides a pipe between two channels, by connecting a Receiver to a Sender.

  • Receivers now have a filter method that applies a filter function on the messages on a receiver.

What's Changed

  • Clear release notes by @llucax in #296
  • Bump the required group with 10 updates by @dependabot in #299
  • Bump markdown-svgbob from 202112.1022 to 202406.1023 by @dependabot in #305
  • Bump the required group with 10 updates by @dependabot in #304
  • Import the LatestValueCache implementation from the Frequenz SDK by @shsms in #302
  • Bump the required group with 2 updates by @dependabot in #309
  • Bump brettcannon/check-for-changed-files from 1.2.0 to 1.2.1 by @dependabot in #308
  • Bump docker/build-push-action from 5 to 6 by @dependabot in #307
  • Add abstractions for sharing messages between channels by @shsms in #301
  • Support filtering the messages on a receiver by @shsms in #303
  • Prepare for release v1.1.0 by @shsms in #311

Full Changelog: v1.0.1...v1.1.0