Skip to content

spectrum-ts v1.6.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 10 May 22:51
· 185 commits to main since this release

Breaking Changes

Platform adapters now use top-level messages and send entries instead of events.messages and actions.send. Reply, reaction, edit, and typing behavior now flows through send, so provider authors should switch on content.type there.

New Features

Added first-class reply(), edit(), and typing() content builders. You can now use space.send(reply(...)), space.send(edit(...)), and space.send(typing()) directly. ✨

Bug Fixes

reaction() now rejects reaction messages as targets, preventing invalid reaction-on-reaction requests before they reach a provider.

Improvement

message.reply(), message.react(), message.edit(), space.startTyping(), space.stopTyping(), and space.responding() now all delegate through the same send pipeline. This makes provider behavior simpler and more consistent across iMessage, Terminal, and WhatsApp Business.


Version: 1.6.0