Releases: briancavalier/creed
Releases · briancavalier/creed
1.4.0: Add finally
1.2.1: Defend against missing/non-string Error stacks
- Prevent Error instances with missing or non-string
.stack
property from causing a crash when async traces are enabled
1.2.0: Add async traces
- Add async traces (aka "long stack traces") that track promises across thens, chains, maps, etc.
- Enable by setting NODE_ENV or CREED_DEBUG, or by calling
enableAsyncTraces
- V8 only, for now
- Enable by setting NODE_ENV or CREED_DEBUG, or by calling
import { resolve } from '../../src/main'
resolve().then(function f1() {
return resolve().then(function f2() {
return resolve().then(function f3() {
doh(); // <<< throws ReferenceError
});
});
});
> CREED_DEBUG=1 babel-node ./experiments/context/bb.js
/Users/brian/Projects/creed/dist/creed.js:668
throw value;
^
ReferenceError: doh is not defined
at f3 (/Users/brian/Projects/creed/experiments/context/bb.js:6:7)
from Then:
at f2 (/Users/brian/Projects/creed/experiments/context/bb.js:5:22)
from Then:
at f1 (/Users/brian/Projects/creed/experiments/context/bb.js:4:20)
from Then:
at Object.<anonymous> (/Users/brian/Projects/creed/experiments/context/bb.js:3:11)
at loader (/Users/brian/Projects/creed/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/brian/Projects/creed/node_modules/babel-register/lib/node.js:154:7)
1.1.1: Fix broken build
- Fix broken built files. The built files in 1.1.0 were unusable due to an open issue with the newer version of buble used to create the build.
1.1.0: New APIs, experimental Fantasy Land 2.1
- Add
promise.bimap(f, g)
, to map either rejection reason or fulfillment value. - Add
promise.or(otherPromise)
, as a simpl binary race, equivalent torace([promise. otherPromise])
- Add experimental support for Fantasy Land 2.1 types: Bifunctor, Alt, Plus, Alternative
1.0.4: Fix unhandledRejection false positive
- Fix a rare unhandledRejection false positive case in
race
,all
, andmerge
.
1.0.3
- Standardize coroutine continuations: coroutines always resume asynchronously, even when yielding already-settled promises.
- Improve internal architecture, and test case coverage.
1.0.2: Faster and smaller
- Switch build tooling to buba and bublé for more streamlined build, better performance, and smaller size.
- Significant performance improvement and smaller dist build size. See the latest perf results.
- Add rollup
jsnext:main
compatible dist build. If you build creed into your app using rollup, you'll get the advantage of rollup's tree shaking.