Commit graph

2 commits

Author SHA1 Message Date
dde8ad0893
chore(pkg): rusty-luau v0.2.0
This release includes various changes to API interfaces, documentation, and includes new implementations.

- Fixed inconsistencies `Option` & `Result` implementations
- Implemented `Future`, a pollable asynchronous idiom, alternative to promises

  ```luau
	local net = require("@lune/net")

	local fut: Future<Result<string, string>> = Future.try(function(url)
		local resp = net.request({
			url = url,
			method = "GET",
		})

		assert(resp.ok)

		return resp.body
	end, { "https://jsonplaceholder.typicode.com/posts/1" })

	local resp: Result<string, string> = fut:await()
	print(net.jsonDecode(resp:unwrap()))
	```

- Added documentation for all available implementations
- Included CI action
- Added examples for `Result`
- Removed incomplete `Iter` implementation
2024-06-21 16:02:41 +05:30
b33abef2ca
chore(pkg): rusty-luau v0.1.0
The very first release of rusty-luau.

- Initial `Option` & `Result` implementations
2024-04-02 17:38:48 +05:30