Skip to content

Net v0.7.0

Compare
Choose a tag to compare
@YetAnotherClown YetAnotherClown released this 03 Jan 01:26
· 94 commits to main since this release

Net v0.7.0

Roblox Typescript

Net v0.7.0 brings official Typescript Support for Net, with Type Definitions and Documentation in both Luau and Typescript.

You can install Net on NPM like so,

"@rbxts/yetanothernet": "0.7.0-beta.3"

Or checkout the Package on NPM here.
And if you find any issues with the Type Definitions for Net, please be sure to file an issue.

Breaking API Changes

The Net Namespace

The Library's main module now returns a Namespace instead of an Object, in this namespace you can find the all the Public API in this Namespace now. You can access Net.Route, Net.createHook() and Net.start() through this namespace.

Updates to Middleware

Middleware is no longer added through the Route's configuration, you can now use Route:addIncomingMiddleware() and Route:addOutgoingMiddleware() which are now both fully type-checked to ensure you're using Middleware correctly.

You can see the new documentation here.

Other Changes

  • Refactored internals
  • Improved implementation of a default channel

Fixed

  • Channel Validation fails when Channel is Unreliable
  • QueryResult returns the incorrect position