Skip to content

docs(v10-breaking-changes): moderation v2 flag, flat partial-update set, Date guards - #2006

Merged
oliverlaz merged 1 commit into
release-v10from
docs/v10-guide-moderation-partial-updates
Nov 6, 2026
Merged

oliverlaz merged 1 commit into
release-v10from
docs/v10-guide-moderation-partial-updates

Conversation

@oliverlaz

@oliverlaz oliverlaz commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

Ticket: REACT-1307.

A v14/v9 → v15/v10 migration run surfaced three things v10-breaking-changes.md didn't say. Docs only.

  • Moderation needs the v2 flag. v9's client.muteUser / unmuteUser / flagUser / flagMessage hit the v1 /moderation/* endpoints. They were removed in feat!: remove hand-written types and API wrappers #1836, and the client.moderation replacements only call /api/v2/moderation/{mute,unmute,flag}. On an app without the v2 moderation feature flag these fail with 403 "this endpoint needs a feature flag, contact support to get it enabled" (reported on 10.0.0-rc.34). The moderation entry now says so and suggests trying a mute and a flag against the app before upgrading.
  • Partial updates keep custom fields flat. The custom-data entry named only updateUsersPartial. It now lists every partial update (updateMessagePartial, channel.updatePartial, channel.updateMemberPartial, updateThreadPartial), says custom is a reserved key in set (rejected with field `custom` is reserved), and notes TypeScript can't catch it because every generated set is Record<string, any>.
  • ts instanceof Date joins the silent timestamp failures.

The "Behaviour changes that still compile" table gets matching rows.

React guide counterpart: GetStream/stream-chat-react#3416.

Changelog

  • docs: moderation v2 feature flag, flat set in partial updates, Date guards on timestamps

…et, Date guards

- client.moderation mute / unmute / flag need the moderation v2 feature flag (403 otherwise)
- every partial update keeps custom fields flat in set; custom is a reserved key there
- ts instanceof Date is a silent timestamp failure
- matching rows in the still-compiles table
@oliverlaz
oliverlaz merged commit 8e8bb61 into release-v10 Nov 6, 2026
4 of 5 checks passed
@oliverlaz
oliverlaz deleted the docs/v10-guide-moderation-partial-updates branch November 6, 2026 12:47
@stream-ci-bot

Copy link
Copy Markdown

🎉 This PR is included in version 10.0.0-rc.35 🎉

The release is available on:

Your semantic-release bot 📦🚀

@stream-ci-bot

Copy link
Copy Markdown

🎉 This PR is included in version 10.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants