Skip to content

spectrum-ts v9.0.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 06 Jul 21:42

Breaking Changes

  • Space now reserves getMembers, getAvatar, add, remove, and leave. If a custom platform used those names in space.actions, rename them because Spectrum now owns them as universal methods.
  • Content now includes addMember, removeMember, and leaveSpace, so exhaustive switch statements over message.content.type may need new cases.

New Features

  • Added group membership APIs: addMember(), removeMember(), and leaveSpace(), plus the friendlier space.add(), space.remove(), and space.leave() helpers.
  • Added space.getMembers() and space.getAvatar() so apps can read a group roster or fetch the current group icon when the provider supports it.
  • iMessage remote/dedicated mode now supports adding members, removing members, leaving groups, reading members, and reading group avatars.
  • iMessage group changes from other people now arrive on app.messages as normal inbound messages, including membership changes, renames, and avatar updates. ✨
  • Webhook deserialization now understands membership, rename, and avatar content instead of falling back to custom content.

Bug Fixes

  • getMembers() now validates provider results and throws a clear error if a provider returns something other than an array.
  • Telegram now explicitly reports membership operations as unsupported instead of letting them fall through the generic send path.

Improvement

  • Group membership, avatar reads, inbound group events, and nullable message.sender behavior are now documented with iMessage-specific guidance.

Version: 9.0.0