Frontmatter
| id | 8366 |
| title | Fix deprecated destination warning for registerRemote messages |
| state | Closed |
| labels | bugaicore |
| assignees | tobiu |
| createdAt | Jan 6, 2026, 9:10 PM |
| updatedAt | Jan 6, 2026, 9:16 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8366 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 6, 2026, 9:16 PM |
Fix deprecated destination warning for registerRemote messages
tobiu assigned to @tobiu on Jan 6, 2026, 9:16 PM

tobiu
Jan 6, 2026, 9:16 PM
Input from Gemini 3 Pro:
✦ I have applied the fix.
Changes:
- Suppressed the deprecation warning in
src/worker/Base.mjswhenaction === 'registerRemote'.- This treats
registerRemotetomainas a valid "System Broadcast" in SharedWorker environments, whichworker.Basecorrectly replays to all connecting windows.Commit:
2f6e49458
tobiu closed this issue on Jan 6, 2026, 9:16 PM
The
registerRemotemessage logic triggers a console warning ("sendMessage destination 'main' is deprecated") in SharedWorker environments because it correctly targets the 'main' destination for initial registration.This deprecation warning should be suppressed specifically for
registerRemoteactions, as they are intended to be broadcast-like or generic in this context.Changes:
src/worker/Base.mjs:sendMessage()to checkopts.action !== 'registerRemote'before warning.