Re:Allora – Use promises on any JavaScript object
by pythonistah on Monday July 18, 2016 @06:51PM
(#12118477)
It uses Proxy and Promise classes.
[ Parent
| on HN ]
Re:Allora – Use promises on any JavaScript object
by izym on Monday July 18, 2016 @07:18PM
(#12118553)
The point is to take APIs that don't and wrap them with said classes, not to provide an alternative.
Re:Allora – Use promises on any JavaScript object
by pythonistah on Monday July 18, 2016 @07:37PM
(#12118617)
What percentage of browsers in use implement Proxy and Promise classes? 40 percent?
Re:Allora – Use promises on any JavaScript object
by JonathonW on Monday July 18, 2016 @10:49PM
(#12119237)
Per Can I Use [1], promises are in 74% of browsers (only current major browser not supporting them is IE11) and proxies are in 57% of browsers.
Promise is pretty easily polyfilled for older browsers; proxies are more problematic and I don't know whether or not any of the existing proxy polyfills will work with Allora.
Re:Allora – Use promises on any JavaScript object
by pythonistah on Tuesday July 19, 2016 @12:44AM
(#12119736)
The data behind their world wide browser stats is questionable. - their combined IE and Edge market share totals to only 8%.
On https://www.netmarketshare.com combined IE market share is 31% and Edge is 5%.
Re:Allora – Use promises on any JavaScript object
by nilliams on Tuesday July 19, 2016 @06:43AM
(#12120950)
What about IE8-10? I agree with pythonistah, that can-i-use data doesn't really map to real-world usage.
Re:Allora – Use promises on any JavaScript object
by pythonistah on Tuesday July 19, 2016 @08:59AM
(#12121445)
Perhaps they only collect data from browsers hitting their web site?
Re:Allora – Use promises on any JavaScript object
by gianlucaguarini on Tuesday July 19, 2016 @01:00AM
(#12119804)
you got it, there are many libraries on npm doing the same but none was build with less than 50 lines of code