Skip to content

spectrum-ts v9.2.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 09 Jul 23:30

New Features

  • Spectrum can now read SPECTRUM_PROJECT_ID, SPECTRUM_PROJECT_SECRET, and SPECTRUM_WEBHOOK_SECRET automatically when you leave those options out. Explicit config still wins.

  • Provider string config fields can now come from env vars using SPECTRUM_<PLATFORM>_<FIELD>. For example, Telegram reads SPECTRUM_TELEGRAM_BOT_TOKEN, and WhatsApp Business reads SPECTRUM_WHATSAPP_BUSINESS_PHONE_NUMBER_ID.

  • WhatsApp Business can now boot direct mode from env vars when accessToken and phoneNumberId are both set. Slack also supports SPECTRUM_SLACK_ENDPOINT, while token maps still stay in code.

Bug Fixes

  • Empty-string credential env vars are now treated as unset, so blank CI variables no longer break config parsing.

  • The platform-name env-var formatter no longer uses the regex pattern that triggered a CodeQL ReDoS warning.

Improvement

  • Docs now explain the new env-var fallback rules and list the supported env vars for Slack, Telegram, and WhatsApp Business. ✨

Version: 9.2.0