docs: update spectrum-ts documentation for v4.2.0#88
Open
photon-action-bot[bot] wants to merge 1 commit into
Open
docs: update spectrum-ts documentation for v4.2.0#88photon-action-bot[bot] wants to merge 1 commit into
photon-action-bot[bot] wants to merge 1 commit into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation Update: spectrum-ts v4.2.0
This PR updates documentation for spectrum-ts based on the v4.2.0 release.
Release Notes
New Features
app.webhook()now handles both native Spectrum Cloud webhooks and Fusor webhooks through the same method. Native webhooks are HMAC-signed JSON and still arrive in your handler as the familiar(space, message)pair.Added
webhookSecretsupport, withSPECTRUM_WEBHOOK_SECRETas a fallback, so native webhook signatures can be verified before your handler runs.Added first-party webhook adapters for Hono, Express, and Elysia:
spectrum-ts/hono,spectrum-ts/express, andspectrum-ts/elysia. These mount the endpoint for you and handle raw request bodies correctly. 🔌Native webhook payloads now deserialize Spectrum content like text, attachments, contacts, rich links, reactions, and groups into normal SDK messages.
Bug Fixes
X-Spectrum-Signature. Both native and Fusor deliveries can include that header, so this prevents valid Fusor webhooks from being routed incorrectly.Improvement
Version: 4.2.0
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.