Commit graph

163 commits

Author SHA1 Message Date
eryn L. K
48d756b6d6
Merge pull request #47 from oltrep/promise-reduce
Promise.fold()
2020-12-01 20:20:59 -05:00
Eryn Lynn
73e91d89dd Fix typo 2020-12-01 20:18:02 -05:00
otrepanier
ce6c12f177 remove promise check 2020-11-30 16:42:21 -08:00
otrepanier
1ac7d3cae9 refactor implementation to support cancel 2020-11-30 16:34:13 -08:00
otrepanier
df07638f43 update changelog 2020-11-20 15:11:53 -08:00
otrepanier
9d554f236a update documentation 2020-11-20 15:11:41 -08:00
otrepanier
4fc7792c0c implement Promise.fold 2020-11-20 14:14:27 -08:00
eryn L. K
33736a3254
Merge pull request #43 from evaera/dependabot/npm_and_yarn/http-proxy-1.18.1
Bump http-proxy from 1.18.0 to 1.18.1
2020-09-28 14:58:36 -04:00
eryn L. K
5586f8e340
Merge pull request #44 from Dog2puppy/patch-1
Configure HttpEnabled when installing
2020-09-28 14:57:48 -04:00
Dog2puppy
25ef780336
Configure HttpEnabled when installing
When using the command bar script, it first stores the current setting of HttpEnabled, sets it to true, adds the module, and sets it back to the previous value. This removes the step requiring the user to configure HttpEnabled within the Game Settings window.
2020-09-23 22:53:02 -04:00
dependabot[bot]
20a3ee2345
Bump http-proxy from 1.18.0 to 1.18.1
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-10 12:48:48 +00:00
Eryn Lynn
948331d19b 3.0.1 2020-08-24 13:39:44 -04:00
Eryn Lynn
e7a01c7bed Fix #39 2020-08-24 13:34:36 -04:00
Eryn Lynn
a4256062a0 Fix casing 2020-08-24 13:25:09 -04:00
eryn L. K
7fc6fc90f0
Merge pull request #40 from Validark/patch-3
(Promise.delay) Allow OnCancel to break out of the current loop
2020-08-24 13:23:51 -04:00
Eryn Lynn
d20535d13b Update CHANGELOG.md 2020-08-24 13:23:25 -04:00
Eryn Lynn
eafa18be87 Merge branch 'master' into pr/40 2020-08-24 13:22:16 -04:00
Eryn Lynn
d47d597259 Fix #41 2020-08-24 13:20:47 -04:00
Eryn Lynn
8ee520d839 Update .gitignore 2020-08-24 13:20:03 -04:00
Niles
7e9fa1be6b
Update init.spec.lua 2020-08-23 01:22:43 -05:00
Niles
a2eab47196
Update init.spec.lua 2020-08-23 01:22:05 -05:00
Niles
7dd656dede
Update init.spec.lua 2020-08-23 01:21:35 -05:00
Niles
3a96a1d2a7
Allow OnCancel to break out of the current loop 2020-08-22 03:49:59 -05:00
Eryn Lynn
9db73644e6 3.0.0 2020-08-17 19:32:01 -04:00
Eryn Lynn
4f55aa52bf Merge branch 'master' of https://github.com/evaera/roblox-lua-promise 2020-08-17 19:31:50 -04:00
eryn L. K
5514aefe64
Update README.md 2020-08-17 19:31:08 -04:00
Eryn Lynn
9b5a39d2c3 Add more examples to docs 2020-08-17 19:30:35 -04:00
Eryn Lynn
3aff27def0 Add installation guide
Closes #15
2020-08-17 19:30:25 -04:00
eryn L. K
c285a2a16a
Merge pull request #35 from evaera/dependabot/npm_and_yarn/prismjs-1.21.0
Bump prismjs from 1.20.0 to 1.21.0
2020-08-17 17:46:06 -04:00
eryn L. K
d684d40cc3
Merge pull request #34 from evaera/dependabot/npm_and_yarn/elliptic-6.5.3
Bump elliptic from 6.5.2 to 6.5.3
2020-08-17 17:45:56 -04:00
eryn L. K
62a7adfec2
Merge pull request #36 from Validark/patch-2
Add license and add username to `name` in rotriever.toml
2020-08-17 17:45:36 -04:00
eryn L. K
2e5b07f0d8
Merge pull request #32 from Validark/patch-1
Promise.delay fix
2020-08-12 22:52:04 -04:00
Niles
e2a81b60e1
Add license and add username to name in rotriever.toml 2020-08-10 05:34:50 -05:00
dependabot[bot]
daa88504c1
Bump prismjs from 1.20.0 to 1.21.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-07 23:33:23 +00:00
Niles
313d1cb6ab
Revert back to Promise._timeEvent and Promise._getTime statics 2020-08-07 00:52:41 -05:00
dependabot[bot]
944c476b91
Bump elliptic from 6.5.2 to 6.5.3
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-31 18:31:22 +00:00
eryn L. K
2ffad609d6
Merge pull request #33 from evaera/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-21 14:15:54 -04:00
dependabot[bot]
a879d641aa
Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-18 05:56:31 +00:00
Niles
d1ff9be774
Promise.delay fix 2020-07-16 05:51:54 -05:00
Eryn Lynn
06066c2dd0 v3.0.0-rc.3 2020-07-10 23:48:09 -04:00
Eryn Lynn
13ae48a5ee Fix #31 2020-07-10 23:45:47 -04:00
Eryn Lynn
6b71fa3896 Update testez 2020-07-10 23:45:10 -04:00
Eryn Lynn
e110f537cb v3.0.0-rc.2 2020-06-16 19:41:57 -04:00
eryn L. K
ad71d3021c
Merge pull request #27 from howmanysmall/patch-3
Update init.lua
2020-06-10 18:40:12 -04:00
eryn L. K
f15b298030
Merge pull request #26 from evaera/dependabot/npm_and_yarn/websocket-extensions-0.1.4
Bump websocket-extensions from 0.1.3 to 0.1.4
2020-06-10 16:58:26 -04:00
eryn L. K
b5865e925d
Merge pull request #20 from evaera/dependabot/npm_and_yarn/acorn-6.4.1
Bump acorn from 6.3.0 to 6.4.1
2020-06-10 16:57:50 -04:00
eryn L. K
168239707b
Merge pull request #28 from FableRBX/patch-1
Update Tour.md
2020-06-10 16:57:36 -04:00
FableRBX
6fb7ed746f
Update Tour.md 2020-06-10 13:53:24 -07:00
howmanysmall
dde1c6517e
Update init.lua
- [Prefer calling string functions directly](https://developer.roblox.com/en-us/resources/release-note/Release-Notes-for-433)
- Fixed spaces being used in `Promise.retry`.
- Fixed `Promise:done` calling itself `Promise:finallyO` in the assert. (intentional?)
- Prefer using the first return of `ipairs` to add a Promise to the array instead of `table.insert`.
- Removed the unused `reject` in `Promise._try`
- Trailing commas as per Roblox Lua style guide.

Other suggestions:

- You could use `table.create` in `Promise:timeout` like so:

```Lua
function Promise.prototype:timeout(seconds, rejectionValue)
	local traceback = debug.traceback(nil, 2)

	local racedPromises = table.create(2)
	racedPromises[1] = Promise.delay(seconds):andThen(function()
		return Promise.reject(rejectionValue == nil and Error.new({
			kind = Error.Kind.TimedOut,
			error = "Timed out",
			context = string.format(
				"Timeout of %d seconds exceeded.\n:timeout() called at:\n\n%s",
				seconds,
				traceback
			),
		}) or rejectionValue)
	end)

	racedPromises[2] = self
	return Promise.race(racedPromises)
end
```
2020-06-09 12:53:06 -06:00
dependabot[bot]
1b1a6a7bbf
Bump websocket-extensions from 0.1.3 to 0.1.4
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-07 06:35:54 +00:00