113 Commits

Author SHA1 Message Date
Mariusz Nowak
fe3e4922a7 style: Prettify 2024-05-23 21:55:17 +02:00
Mariusz Nowak
b390a7420b style: prettier 2018-08-04 09:02:16 +02:00
Mariusz Nowak
ed8f81831f style: prettier 2018-08-04 09:01:49 +02:00
Mariusz Nowak
7cb1c7a603 fix: _get and _has internal args handling.
Fixes #88
2017-09-11 13:05:30 +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
Hem Brahmbhatt
726b6dc4b3 linting 2017-08-24 11:07:42 +01:00
Hem Brahmbhatt
00b4fa42a6 profileName option 2017-08-22 12:31:22 +01:00
Mariusz Nowak
f29a97ba5a fix: resolution of extensions with weak handling
Closes #79
2017-05-10 08:40:15 +02:00
epayet
5aa137f518 Add null check for _has 2017-03-14 16:45:13 +00:00
epayet
66a3731e7e Add defineLength
Rename methods to _get and _has
Linting
2017-03-14 14:52:51 +00:00
epayet
ff6fadb01d Expose get and has methods 2017-03-10 16:20:09 +00:00
Mariusz Nowak
7431542792 Do not crash when validating resolved normalizer
Fix #70
2017-02-20 09:46:37 +01:00
Mariusz Nowak
5f666bf5a5 Merge with master 2016-07-05 15:28:05 +02:00
Mariusz Nowak
9f86b198f9 Fix resolvers bug. Fixes #12 2016-04-21 14:50:01 +02:00
Kirill Efimov
9cf8df8c22 Added promise support 2016-01-27 04:16:49 +03:00
Mariusz Nowak
ab7044f32c Fix arguments resolution in weak length=1 version 2015-09-17 21:30:16 +02:00
Mariusz Nowak
453ee0d484 Update up to changes to WeakMap 2015-04-13 11:01:36 +02:00
Mariusz Nowak
a363f22d8b Add duplicate memoization prevention 2014-09-22 16:20:00 +02:00
Mariusz Nowak
67bd739655 WeakMap based functionality 2014-09-22 14:30:18 +02:00
Mariusz Nowak
30075bda46 -- lint 2014-09-22 14:28:13 +02:00
Mariusz Nowak
3d0e4eaf2f Fix normalizer resolution 2014-09-22 12:50:32 +02:00
Mariusz Nowak
669ac746ec -- whitespace 2014-09-22 12:28:33 +02:00
Mariusz Nowak
d73ff62d04 Seclude resolver utilities 2014-09-22 12:25:03 +02:00
Mariusz Nowak
da0f3356a7 Fix internal primitive id resolution. Fix #15
It was not forced to be serialized to string, therefore it collided
with `null` case
2014-07-07 12:15:46 +02:00
Mariusz Nowak
f471af7835 Provide no-args handling out of a box 2014-05-01 11:35:48 +02:00
Mariusz Nowak
29808f6776 Provide length to getNormalizer 2014-04-27 13:44:45 +02:00
Mariusz Nowak
48fadbe765 getNormalizer options for methods 2014-04-27 13:24:18 +02:00
Mariusz Nowak
78af0c0c51 Moved normalizers out of lib folder 2014-04-27 12:59:01 +02:00
Mariusz Nowak
50cb4cfde1 Remove support for serialize option
Instead support function value for `normalizer`
2014-04-27 12:17:37 +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
Mariusz Nowak
38f907315d Update up to changes in event-emitter package 2014-04-24 21:58:25 +02:00
Mariusz Nowak
0fe6670fed Update up to changes in event-emitter package 2014-04-24 16:00:11 +02:00
Mariusz Nowak
223a34623d Provide access to references count 2013-11-22 19:21:15 +01:00
Mariusz Nowak
0cc9969de0 Memoized methods factory
Based on `d` descriptors factory.
It's first step to replace `method` option
2013-10-23 18:18:39 +02:00
Mariusz Nowak
f9e9c9edc5 Update up to changes in es5-ext 2013-10-08 18:55:10 +02:00
Mariusz Nowak
05949b19e3 Merge with v0.2 2013-10-08 15:27:12 +02:00
Mariusz Nowak
ff85fb5228 Do not emit asyncpurge on uninitialized values
Fix #9
2013-10-08 15:20:23 +02:00
Mariusz Nowak
9846a233ab -- whitespace 2013-10-03 21:09:37 +02:00
Mariusz Nowak
3a25f3d14c Update up to changes in es5-ext package 2013-10-01 15:14:15 +02:00
Mariusz Nowak
2986e6d0e9 Update up to changes in es5-ext package 2013-08-28 12:59:22 +02:00
Mariusz Nowak
b0ad851327 -- lint 2013-08-07 22:40:53 +02:00
Mariusz Nowak
343b6cdcd4 serialize option, for custom args serialization 2013-07-22 20:37:15 +02:00
Mariusz Nowak
baae9f8d54 Define once 2013-07-22 20:24:04 +02:00
Mariusz Nowak
2b4cf268c8 Fix primitive handling for dynamic length 2013-07-22 19:35:28 +02:00
Mariusz Nowak
748a9aa2d5 Fix primitive handling for dynamic length 2013-07-22 19:34:28 +02:00
Mariusz Nowak
aa79f75eb6 -- whitespace 2013-07-22 19:33:23 +02:00
Mariusz Nowak
f955c6ffbd Rename get to serialize 2013-07-22 19:15:49 +02:00
Mariusz Nowak
53a6304f27 -- whitespace 2013-05-18 10:12:07 +02:00
Mariusz Nowak
434b866ec3 force option
Force memoization of already memoized function
2013-05-18 10:11:09 +02:00