0.2.1
github-actions
released this
04 Feb 04:06
·
2 commits
to a8b57653f349366e294b700ce505b1062029dd1e
since this release
Added
-
Added support for string interpolation syntax (update to Luau 0.561)
-
Added network server functionality using
net.serve
Example usage:
net.serve(8080, function(request) print(`Got a {request.method} request at {request.path}!`) local data = net.jsonDecode(request.body) -- For simple text responses with a 200 status return "OK" -- For anything else return { status = 203, headers = { ["Content-Type"] = "application/json" }, body = net.jsonEncode({ message = "echo", data = data, }) } end)
Changed
- Improved type definitions file for Selene, now including constants like
process.env
+ tags such asreadonly
andmustuse
wherever applicable
Fixed
- Fixed type definitions file for Selene not including all API members and parameters
- Fixed
process.exit
exiting at the first yield instead of exiting instantly as it should