Skip to content

Add net BlockList/SocketAddress, buffer utils, cluster aliases - #203

Merged
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/net-buffer-cluster
Jul 13, 2026
Merged

Add net BlockList/SocketAddress, buffer utils, cluster aliases#203
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/net-buffer-cluster

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add net.BlockList and net.SocketAddress externs, plus Net static class refs and autoSelectFamily default getters/setters.
  • Add buffer module helpers isUtf8, isAscii, atob, and btoa via BufferModule wrappers.
  • Add cluster aliases isPrimary and setupPrimary.

Test plan

  • haxe completion.hxml / targeted typecheck of js.node.Net, js.node.net.BlockList, js.node.net.SocketAddress, js.node.buffer.Buffer, js.node.Cluster on Haxe 4.3.x
  • Confirm require('net').BlockList / SocketAddress and buffer/cluster aliases match Node LTS docs

Made with Cursor

kevinresol and others added 2 commits July 13, 2026 22:22
Expose newer Node.js net blocklist/address APIs, buffer module helpers, and cluster primary aliases.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add BlockList.isBlockList/fromJSON/toJSON and SocketAddress.parse, fix SocketAddress family typing, widen buffer isUtf8/isAscii inputs, and correct primary alias docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol

Copy link
Copy Markdown
Contributor Author

ready to merge

@kevinresol
kevinresol merged commit 5c87889 into HaxeFoundation:master Jul 13, 2026
@kevinresol
kevinresol deleted the feat/net-buffer-cluster branch July 15, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant