Mariusz Nowak
fe3e4922a7
style: Prettify
2024-05-23 21:55:17 +02:00
Mariusz Nowak
9b416eafaa
fix: ensure to not force unhandled rejections
2018-08-13 13:14:06 +02:00
Mariusz Nowak
855c46077e
style: prettier
2018-08-13 13:10:01 +02:00
Page-
b4b018d83e
feat(promise): support cancellation case
...
PR #97 by @Page-
2018-08-06 20:55:10 +02:00
Mariusz Nowak
6294d5f942
style: prettier
2018-08-04 09:01:31 +02:00
Mariusz Nowak
a90b8ab985
style: prettier
2018-08-04 09:01:19 +02:00
Mariusz Nowak
f7b01666d8
style: prettier
2018-08-04 09:01:03 +02:00
Mariusz Nowak
5bcc5a4fad
fix(max-age): unref timeouts to not block processes from exiting
...
Fix #25
2018-02-23 16:41:34 +01:00
Mariusz Nowak
ad0f1f4f13
style: prettier
2018-02-23 16:37:33 +01:00
Mariusz Nowak
5bb5e1d93b
docs: remove wrong information code comment
2018-01-30 12:03:05 +01:00
Mariusz Nowak
26076c4ee7
docs: remove invalid comment
2018-01-30 12:02:05 +01:00
Mariusz Nowak
053361dd6a
style: update to new lint rules
2017-09-07 08:58:41 +02:00
Mariusz Nowak
5b79698ef9
fix: remove then:finally mode as it can't work right
...
In case of rejections it forces unhandledRejection warning, even if they're handled on promises returned to consumer
2017-09-07 08:55:24 +02:00
Mariusz Nowak
56db843d36
docs: improve error message
2017-08-29 10:02:47 +02:00
Mariusz Nowak
d23b94f6de
feat: improve internal promise validation
2017-08-29 09:50:16 +02:00
Mariusz Nowak
759e3157dd
feat: improve 'promise' mode handling
...
Improve default handling (fallback to 'then:finally' instead of 'done'). Support four different modes
2017-08-28 17:31:44 +02:00
Mariusz Nowak
a257d6b9b7
chore: cleanup eslint settings
2017-08-28 16:43:16 +02:00
Mariusz Nowak
3aa13c3070
refactor: update after change of linter
2017-08-28 15:13:36 +02:00
Mariusz Nowak
9b1d235a34
refactor: update up to new lint rules
2017-08-28 13:51:01 +02:00
Mariusz Nowak
65d160ee1b
Improve error message
2017-02-17 12:18:11 +01:00
Mariusz Nowak
2bf82225ac
Throw in case of unordered promise resolution
2017-02-17 12:04:25 +01:00
Mariusz Nowak
69ce299dfc
Fix promise mode. To not use then & finally
...
Additionally `done` mode was provided, so `done` can be used with no `finally`
2016-07-13 09:46:22 +02:00
Mariusz Nowak
f493704b20
On internal reinvocation supress error warnings
2016-07-07 15:17:44 +02:00
Mariusz Nowak
c00e7c90f9
Improve documentation
2016-07-07 14:43:50 +02:00
Mariusz Nowak
bd3a96b4b5
Improve documentation
2016-07-07 14:43:29 +02:00
Mariusz Nowak
22e3647bd1
Support finally with done
...
Still allow to force `then` usage with implementations that have
primitive `done` support
2016-07-07 14:34:06 +02:00
Mariusz Nowak
279c3a021a
Fix pass of result in then mode
2016-07-07 13:47:31 +02:00
Mariusz Nowak
ea9b331634
Remove 'finally' when using done
2016-07-07 12:44:53 +02:00
Mariusz Nowak
27f3a0d5e3
Use eventual 'finally' to handle error flow
...
That way we do not mark eventual error as handled
2016-07-07 12:17:51 +02:00
Mariusz Nowak
e0a8bf83b1
Prefetch result in nextTick
2016-07-07 11:36:02 +02:00
Mariusz Nowak
3cf8a48670
Reuse promises to emit getasync events
2016-07-07 11:10:16 +02:00
Mariusz Nowak
f9a7e38127
Ensure to handle async events in case of promise mode
2016-07-05 17:14:24 +02:00
Mariusz Nowak
e6e98853b5
Improve result emit
2016-07-05 17:13:29 +02:00
Mariusz Nowak
01874cc639
Improve handling of non-promise result
2016-07-05 16:59:25 +02:00
Mariusz Nowak
47509f5999
Improve cache events handling
2016-07-05 16:52:23 +02:00
Mariusz Nowak
476754f9e0
Improve promise value resolution
2016-07-05 15:53:01 +02:00
Mariusz Nowak
aaa6109028
Rename ignored arguments
2016-07-05 15:43:52 +02:00
Kirill Efimov
9cf8df8c22
Added promise support
2016-01-27 04:16:49 +03:00
Mariusz Nowak
168a9faf87
Fix prefetch support for asynchronous functions
...
Fix #19
2014-08-14 11:16:31 +02:00
Mariusz Nowak
fd0f39c3d5
Fix major issue in maxAge functionality
...
After timeout whole cache was cleared instead of call in question
2014-07-28 18:16:53 +02:00
Mariusz Nowak
c691c97a8d
Fix returning id (after clear) race cond issue
...
Fix #18
2014-07-28 18:12:13 +02:00
Mariusz Nowak
e45b526596
-- whitespace
2014-07-28 12:15:47 +02:00
Mariusz Nowak
eb72d16bf6
Major reorganization and partial refactoring
...
- Move out main modules from `lib` folder
- Introduce `normalizer` based configurations, and convert primitive and regular handlers into thos normalizers (can be found in lib/normalizers folder). Custom normalizers can be provided at run time via `normaizer` option
- Provide `plain` module which does not load any extensions or normalizers. Any extensions that have to be used should be required upfront and normalizers should be provided directly
- Remove `method` option, instead `methods` and `methods-plan` modules are provided which generate descriptors for lazy created memoized methods
- `profile` is no longer extension. To be used it should be required directly
- Improve logic for `async` handling
- Take out `max` extensionLRU logic into external `lru-queue` package
- Remove `context` option
- Remove possibility to access original arguments when resolvers are used
- Assure expected length of memoized functions
2014-04-27 12:11:06 +02:00