Skip to content

chore(release): 2.2.0 - screenshare visibility, notifications enhancements, device selectors and reconnection bug fixes - #230

Merged
ravindra-cloudflare merged 31 commits into
mainfrom
staging
Dec 2, 2026
Merged

ravindra-cloudflare merged 31 commits into
mainfrom
staging

Conversation

@ravindra-cloudflare

Copy link
Copy Markdown
Collaborator

Description

Releases 2.2.0.

Compatibility

  • Requires RealtimeKit Web Core 2.2.0 or later. rtk-screenshare-view and rtk-livestream-player call Web Core methods that 2.1.0 does not have. Release Web Core 2.2.0 before this.

Features

Backward compatibility

  • The old notification keys still work (fix(notifications): ensure backward compatibility for existing users #226): chat, polls, tab_sync, webinar. They are marked @deprecated. If a config sets an old key, its value overwrites the new keys that replace it:
    • chat → chat_new_message
    • polls → polls_new_poll
    • tab_sync → tab_sync_plugin_switched, tab_sync_screen_share_switched
    • webinar → stage_requested_to_join, stage_joined

Behavior changes

  • participant_left notifications now show while the socket is connected. Before, they showed only when it was not connected, a bug.

  • participant_joined_sound_notification_limit defaults to 3 (based on kind of setup, it might have been 10 earlier), and a custom config without it had no limit.

  • stage_requested_to_join and stage_joined are off by default, as before. If a config sets webinar: true, they now show. Before, rtk-notifications never showed them.

  • Notifications sent with sendNotification() now follow notifications.custom, notification_sounds.custom, and the "Notification sound" setting.

  • rtk-mic-toggle and rtk-camera-toggle are wider because of the menu trigger. Set hideDeviceSelectionMenu to disable new functionality and keep the old size.

  • Viewers on older UI Kit versions do not report viewing status and show as "not viewing". Set disableScreenshareVisibilityTracking to hide the status, until every Web & Mobile SDK supports it.

Fixes

New localization keys

{
  "screenshare.visibility.none": "No one is viewing your screen.",
  "screenshare.visibility.all": "Everyone is viewing your screen.",
  "screenshare.visibility.not_viewing": "Not currently viewing:",
  "screenshare.visibility.more": "More participants",
  "mic_toggle.audio_devices": "Audio devices",
  "camera_toggle.video_devices": "Video devices",
  "camera_toggle.mirror_video": "Mirror my preview",
  "not_found_microphone": "No microphone found",
  "not_found_speaker": "No speaker found",
  "not_found_camera": "No camera found",
  "device_selector_permission_needed_microphone": "Microphone permission needed",
  "device_selector_permission_needed_speaker": "Speaker permission needed",
  "device_selector_permission_needed_camera": "Camera permission needed",
  "notifications.chat_message_edited": "edited a message",
  "notifications.chat_message_deleted": "deleted a message"
}

New icons

mirror_on, mirror_off

swapnilmadavi and others added 30 commits November 17, 2026 17:34
…cies-typo

build(core): correct peerDependencies typo in package.json
…n-reporting

fix(sdk-version-reporting): report ui kit sdk name and versions
…n-reporting

fix(logs): upgrading realtimekit for proper type
## [2.1.1-staging.1](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.1.0...@cloudflare/realtimekit-ui-v2.1.1-staging.1) (2026-11-19)

### Bug Fixes

* **logs:** upgrading realtimekit for proper type ([d8fc02b](d8fc02b))
* **sdk-version-reporting:** report ui kit sdk name and versions ([8d87b6b](8d87b6b))

skip-checks: true
#213)

* feat(pip): added screenshare support in PIP, fixed every known pip bug

* chore(sdk-upgrade): upgraded realtimekit sdk

* fix(screenshare-view): added null checks for video element

* fix(peer-deps): remove peer to prevent staging web examples CI failures on SDK prereleases
# [2.2.0-staging.1](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.1.1-staging.1...@cloudflare/realtimekit-ui-v2.2.0-staging.1) (2026-11-23)

### Features

* **pip:** added screenshare support in PIP, fixed every known pip bug ([#213](#213)) ([d7b28b4](d7b28b4))

skip-checks: true
…a-toggle now have device dropdowns and slots for noise cancellation and video effects (#214)

* feat(pip): added screenshare support in PIP, fixed every known pip bug

* feat(quick-device-selection): added device menu alongside rtk-mic-toggle and rtk-camera-toggle

* fix(media-toggles): shifted menu position, added override to hide media selectors

* fix(media-toggle): added docs, fixed device refreshes, fixed spec regex
# [2.2.0-staging.2](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.1...@cloudflare/realtimekit-ui-v2.2.0-staging.2) (2026-11-23)

### Features

* **device-list-alongside-media-toggles:** rtk-mic-toggle & rtk-camera-toggle now have device dropdowns and slots for noise cancellation and video effects ([#214](#214)) ([bb71819](bb71819))

skip-checks: true
…ipants (#218)

* fix(notifications): do not emit notifications for reconnecting participants

* fix(notifications): skipping notifications for reconnected participants

* fix(notifications): added new line back, reworded comment
# [2.2.0-staging.3](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.2...@cloudflare/realtimekit-ui-v2.2.0-staging.3) (2026-11-26)

### Bug Fixes

* **notifications:** do not emit notifications for reconnecting participants ([#218](#218)) ([c77533b](c77533b))

skip-checks: true
…eting - can you see my screen (#217)

* feat(screenshare): fixing the problem - can you see my screen

* fix(ai-review): removed stale tests exclusion, fixed headers in skill

* fix(screenshare): fixed security & speed concerns, updated agents skills path
# [2.2.0-staging.4](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.3...@cloudflare/realtimekit-ui-v2.2.0-staging.4) (2026-11-26)

### Features

* **screenshare:** answering the question that gets asked in every meeting - can you see my screen ([#217](#217)) ([33a08b4](33a08b4))

skip-checks: true
…n, and toggle (#220)

* feat(notifications): ability to customize notification sound, duration, and toggle

* fix(notifications): fixed partial configs, missing permission checks

* style(notifications): fixed formatting of config spec

* fix(notifications): only allowing absolute urls
# [2.2.0-staging.5](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.4...@cloudflare/realtimekit-ui-v2.2.0-staging.5) (2026-11-27)

### Features

* **notifications:** ability to customize notification sound, duration, and toggle ([#220](#220)) ([5869c2d](5869c2d))

skip-checks: true
# [2.2.0-staging.6](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.5...@cloudflare/realtimekit-ui-v2.2.0-staging.6) (2026-11-30)

### Bug Fixes

* **screenshare:** added override to disable screenshare tracking, if customers want to ([#222](#222)) ([c8bcf73](c8bcf73))

skip-checks: true
# [2.2.0-staging.7](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.6...@cloudflare/realtimekit-ui-v2.2.0-staging.7) (2026-11-30)

### Bug Fixes

* **firefox:** device list was not refreshed, speakers were never there ([#224](#224)) ([d9d0978](d9d0978))

skip-checks: true
# [2.2.0-staging.9](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.8...@cloudflare/realtimekit-ui-v2.2.0-staging.9) (2026-11-30)

### Bug Fixes

* **notifications:** ensure backward compatibility for existing users ([#226](#226)) ([2857659](2857659))

skip-checks: true
# [2.2.0-staging.10](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.9...@cloudflare/realtimekit-ui-v2.2.0-staging.10) (2026-11-30)

### Bug Fixes

* **rtk-screenshare-view:** when a viewer reconnects, they do not inform sharer of their state ([#227](#227)) ([02996eb](02996eb))

skip-checks: true
…d permission hints (#229)

* fix(media-toggles): hiding speaker for camera, giving permission hints

* test(media-toggles): added tests for permission hints

* fix(media-toggles): restricting permission hints to just permission denied/not-asked states
# [2.2.0-staging.12](https://github.com/cloudflare/realtimekit-ui/compare/@cloudflare/realtimekit-ui-v2.2.0-staging.11...@cloudflare/realtimekit-ui-v2.2.0-staging.12) (2026-12-01)

### Bug Fixes

* **media-toggles:** hiding speakers for safari to be consistent, added permission hints ([#229](#229)) ([27e3de9](27e3de9))

skip-checks: true
@ravindra-cloudflare ravindra-cloudflare changed the title chore(release): 2.2.0 - chore(release): 2.2.0 - screenshare visibility, notifications enhancements, device selectors and reconnection bug fixes Dec 1, 2026

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Approved with comments — No blocking or warning-level issues. There are only INFO notes: unhandled rejections from device refresh, an unguarded browserSpecs call in the Chromium audio fix, and no declared peer dependency for the Web Core 2.2.0 minimum.

Findings: 3 info (3 are inline comments on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #230.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## INFO (3)

### [Code Quality] `refreshDevices()` has no error handling; SDK rejections become unhandled promise rejections (mic toggle; the camera toggle has the same pattern at rtk-camera-toggle.tsx:125-134).
- **File:** packages/core/src/components/rtk-mic-toggle/rtk-mic-toggle.tsx:128

### [Code Quality] Unguarded `browserSpecs.isChromiumBased()` call in `removeTrack` can throw midway and leave the physical track attached.
- **File:** packages/core/src/lib/audio.ts:97

### [Documentation] The misspelled peer dependency is removed rather than corrected, so the required Web Core 2.2.0 minimum is not declared.
- **File:** packages/core/package.json

📋 Code Quality: 💬 2 info

Two minor robustness notes in the new device menus and the Chromium audio fix.

Recommendation: 💬 Optional Nits

  • [INFO] refreshDevices() has no error handling; SDK rejections become unhandled promise rejections (mic toggle; the camera toggle has the same pattern at rtk-camera-toggle.tsx:125-134). (packages/core/src/components/rtk-mic-toggle/rtk-mic-toggle.tsx:128)
  • [INFO] Unguarded browserSpecs.isChromiumBased() call in removeTrack can throw midway and leave the physical track attached. (packages/core/src/lib/audio.ts:97)
View full review
  • refreshDevices() in rtk-mic-toggle and rtk-camera-toggle is fired with void and has no try/catch. A rejected SDK device call becomes an unhandled promise rejection, and the menu keeps its old list.
  • lib/audio.ts:97 calls this.meeting.__internals__.browserSpecs.isChromiumBased() with no guard. If an SDK build or mock lacks it, removeTrack throws after the logical map is already updated, and the physical track is never removed.

I also checked these and they look correct:

  • Notification legacy-key mapping, per-key show/sound/duration settings and the visible limit.
  • Listener cleanup on meeting swap.
  • Producer and sender checks on screen share visibility messages.
  • registerScreenshareVideoElement and deregisterScreenshareVideoElement are called in pairs.
  • Livestream PiP source cleanup.
  • prepublish.js version stamping.

📝 Documentation: 💬 1 info

The Web Core 2.2.0 minimum is not declared anywhere in the package.

Recommendation: 💬 Optional Nits

  • [INFO] The misspelled peer dependency is removed rather than corrected, so the required Web Core 2.2.0 minimum is not declared. (packages/core/package.json)
View full review

This release calls Web Core methods that 2.1.0 does not have, for example registerScreenshareVideoElement(). The misspelled peerDepdendencies block is removed, and no correct peerDependencies entry replaces it. Neither npm nor the setup docs tell consumers about the 2.2.0 minimum.


✅ All other checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. The release bundles public UI and notification behavior changes, and screen share features that need RealtimeKit Web Core 2.2.0 or later. The description documents the compatibility requirement, the release order, the legacy notification key mapping and the behavior changes.


🔒 Security: ✅ LGTM

  • Sound URLs are limited to absolute http: and https: URLs that end in an audio file extension, and they are checked again before playback.
  • Built-in sound names are checked with hasOwnProperty.
  • The config merge only writes fixed legacy keys.
  • Screen share visibility reports are accepted only for the current producer, from joined participants, with type-checked payloads.
  • Participant names are rendered as escaped JSX text.

📖 AGENTS.md: ✅ LGTM

The new SKILLS pointer and the removal of the outdated peerDepdendencies note match the code changes.


Reviewed commit: 6973686b

Comment thread packages/core/src/lib/audio.ts Resolved
Comment thread packages/core/package.json Resolved
@ravindra-cloudflare
ravindra-cloudflare merged commit b45565c into main Dec 2, 2026
5 checks passed
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants