Audit js.node.web for Node 24 web globals - #230
Merged
Conversation
Drop Haxe 3 import gates, tighten Dynamic/Any typing for fetch/abort/events, and add missing Node 24 web-platform externs (streams, messaging, WebSocket, EventSource, Navigator/locks, Storage, encoding globals). Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 14, 2026
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.
Summary
js.node.webagainst Node.js 24 web platform globals (undici fetch + EventTarget family + streams/messaging).#if haxe4import branches; keep Haxe 4js.lib.*only.DynamicwithAny/ concrete types where clear; typeBlob.stream()/Request/Response.bodyasReadableStream.BroadcastChannel/MessageChannel/MessagePort/MessageEvent,WebSocket/CloseEvent,EventSource,Navigator/LockManager,Storage, globalTextEncoder/TextDecoder(+ stream variants).RequestacceptURL; Request gainsisHistoryNavigation/isReloadNavigation.Coordination TODOs
js.Node/globalThisfacade (fetch, Abort*, Event*, Blob/File, Navigator, Storage, TextEncoder/Decoder, …).URLPatternglobal (URL package affinity); alignjs.node.util.TextEncoderwith globalencodeIntoif desired; webcrypto remains crypto-util.MessagePort.postMessagetransfer list onceworker_threadstransferables exist.Dispatchertyping forRequestInit/WebSocket/EventSource; deeper BYOB/underlying-source callback typing if needed.Test plan
haxe build.hxml(ImportAll + examples) succeedsMade with Cursor