This release is all about channel options. Here is the full changelog
-
Channel options were extracted into a seperate model ChannelOptions. However it's still backward campatible with
Hashand you don't need to do make any adjustments to your code -
The
ChannelOptionsclass now supports:params,:modesand:cipheras options. Previously only:cipherwas available -
The client
:idempotent_rest_publishingoption istrueby default. Previously:idempotent_rest_publishingwasfalseby default.
-
Changing channel options with
Channels#getis now deprecated in favor of explicit options change- If channel state is attached or attaching an exception will be raised
- Otherwise the library will emit a warning
For example, the following code
client.channels.get(channel_name, new_channel_options)
Should be changed to:
channel = client.channels.get(channel_name)
channel.options = new_channel_options