Releases: calvinmetcalf/lie
3.3.0
v3.2.0
Add finally method
v3.1.1
fix edge case related to spec: 2.3.3: "Otherwise, if x is an object or function"
v3.1.0
do browserify transforms as prepublish
actually build v3.0.3
forgot to update the built files in v3.0.3
less fancy exports
should fix #32 plus it updates the es3ify dep that was relying on a dep that was breaking in newer npm versions
3.0.1
3.0.0
Overall it should be very much in line with how es6 promises work in the browser/node and should be about 18% smaller now coming in at 1867 bytes minified and gzipped.
-
BREAKING adds some es6 compatibility fixes to make inheriting possible, which now means
Process.[all|race|resolve|reject]
may not be called in an arbitrary context, i.e.// WON'T WORK var resolve = Promise.resolve; var promise = resolve(true); // STILL WORKS var promise = Promise.resolve(true);
-
BREAKING new is no longer optional for constructors, e.g.
// WON'T WORK var foo = Promise(); // STILL WORKS var foo = new Promise();
this is exactly how es6 promises work
-
resolve no longer caches falsy promises, this was of minimal perf benefit and could cause global issues issues if somebody was to screw around with one of those cached promises as they were global and mutable, this is theoretically breaking, but honestly you'd have to be doing something pretty dumb for this to be a breaking change in your code.
-
no longer broken into many modules, this doesn't effect performance or how it works in any way, but makes it a lot smaller as the library is small enough that all the wrapping functions added up to a noticeable fraction of the total library size
2.8.0
Adds a couple things:
- finally adds
Promise.race
static method which means that lie can be used as a polyfill - fixes a potential bug with the
Promise.all
implementation that mutable error objects were being cached. - updated the pre-built options in the dist folder
- updated the readme
- test now in phantomjs (which involved fixing the promise test suite to be browserifyiable)
2.7.7
fixes a bug where Promise.all could resolve more then once