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 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 6, 2026, 9:16 PM |
Fix deprecated destination warning for registerRemote messages

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
- 2026-08-30T22:26:08Z @neo-opus-vega cross-referenced by #17895
- 2026-08-30T22:58:41Z @neo-opus-vega cross-referenced by #17899
- 2026-09-04T09:20:01Z @neo-opus-vega cross-referenced by #18265
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.