Skip to content
Newer
Older
100644 197 lines (170 sloc) 8.72 KB
8707027 @medikoo v0.6.1
authored Oct 5, 2012
1 v0.6.1 -- 2012.10.05
2 * Fix profiler paths detection to work on Windows systems
3 * Fix monitor test so it's not dependent on order in which is run
4 * Added When implementation to benchmarks
5
822ece2 @medikoo v0.6.0
authored Sep 22, 2012
6 v0.6.0 -- 2012.09.22
7 Major refactor, with focus on performance and better modularization.
8 * New Deferred is about x3 faster than v0.5 version
9 * Promise is now also an event emitter
10 * Better extensions system (deferred.extend)
11 * `aside` extension (derived from `cb`), that allows to split promise chain
12 * New `cb` extension with different semantics, allows escaping promise chain with typical asynchronous function callback
13 * Refactored Array#map, it doesn't support any more limit argument (it should be now achieved with help of deferred.gate)
14 * Refactored Array#reduce, added support for sparse arrays
15 * Array#some - added support for sparse arrays
16 * Changed signature of `end` it's now on pair with `then` and newly introduced `aside` extension
17 * Profiler - gather promise initialization statistics
18 * Removed promise.js module, some of it's logic is left as internal _ext.js module and other part was merged into deferred.js
19 * Benchmarks
20
5817a6c @medikoo v0.5.6
authored Jul 17, 2012
21 v0.5.6 -- 2012-07.17
8707027 @medikoo v0.6.1
authored Oct 5, 2012
22 (Maintenance, as v0.6 is nearly ready for rollout).
5817a6c @medikoo v0.5.6
authored Jul 17, 2012
23 Added workaround for for v8 bug (eminent in Node v0.6):
24 Defining property via descriptor on plain function, prevents us from
25 setting same property directly later on different function.
26
ee1304a @medikoo v0.5.5
authored Jun 13, 2012
27 v0.5.5 -- 2012.06.13
28 * deferred.some - (array & promise extension). Promise aware Array's some for
29 array-like objects.
30 * Fix handling of callbacks in `cb` promise extension. Only success callback
31 mode was not handled correctly.
32 * Mark functions that returns promises with 'returnsPromise' flag, and provide
33 awareness of that in `promisify` extensions, so they return same functions
34 back if they're called on such.
35 * Files reorganization so internal modules are no longer in utils folder but
36 instead are prefixed with '_' (it's convention we use in other projects)
37
36fd07e @medikoo Describe changes for 0.5.4
authored May 28, 2012
38 v0.5.4 -- 2012.05.28
39 * deferred.gate - (function extension) Handles maximum concurrency number for
40 given asynchronous task. Additionally postponed calls queue length can also be
8707027 @medikoo v0.6.1
authored Oct 5, 2012
41 limited to chosen number
36fd07e @medikoo Describe changes for 0.5.4
authored May 28, 2012
42 * Modify code so we can use es5-ext at it's latest version
43
422313d @medikoo CHANGES doc
authored May 4, 2012
44 v0.5.3 -- 2012.05.04
8707027 @medikoo v0.6.1
authored Oct 5, 2012
45 * Fixed resolution of synchronous calls in a queue of map extension, they were
422313d @medikoo CHANGES doc
authored May 4, 2012
46 not resolved as expected
47
23ebe88 @medikoo CHANGES doc
authored May 2, 2012
48 v0.5.2 -- 2012.05.02
49 * Fixed serious issue in `get` extension, which in some scenarios made errors in
50 following resolved flow silent
51
3c823b7 @medikoo CHANGES doc
authored Apr 29, 2012
52 v0.5.1 -- 2012.04.29
23ebe88 @medikoo CHANGES doc
authored May 2, 2012
53 * Fixed error handling in invoke extension for case in which context object is
54 null or undefined
3c823b7 @medikoo CHANGES doc
authored Apr 29, 2012
55
e0b5e3b @medikoo CHANGES doc
authored Apr 18, 2012
56 v0.5.0 -- 2012.04.18
57 * Addons & Improvements
58 * Resigned from dual async/sync: `invoke` extension and `promisify` method.
59 Such abstraction lead to unexpected results in some cases.
bd2939e @medikoo Update CHANGES
authored Apr 29, 2012
60 `invokeSync` is from now on `invoke` (`invokeSync` is no longer available),
61 `promisifyAsync` is now `promisify` (`promisifyAsync` is no longer
e0b5e3b @medikoo CHANGES doc
authored Apr 18, 2012
62 available).
63 * Brought back `cb` extension in slightly different form. It's useful for
64 creating "hybrid" asynchronous functions that both take callback and return
65 promise, it can also be useful if we want to split promise chain, return
66 promise and carry on with other flow.
67 * `get` now accepts more than one argument, this way we can with one call get
68 to nested properties of object
69 * `extend` functions that helps in configuration of promise extensions now
70 accepts array of validation functions that should be called on extension
71 initial call.
72 * Input arguments of promise extensions are now validated on initial call.
73 It is quite important as error now can be easily tracked down, if we
74 propagate our error to some next event loop it's more problematic.
75
76 * Fixes
77 * Arguments validation in `extend` function was broken
f7823f6 @medikoo Update CHANGES
authored Apr 29, 2012
78 * When run on resolved promises, errors invoked by some extensions where not
79 propagated into promise chain as expected
e0b5e3b @medikoo CHANGES doc
authored Apr 18, 2012
80
ee79d00 @medikoo Changes doc
authored Feb 20, 2012
81 v0.4.3 -- 2012.02.20
82 * Improvements:
8707027 @medikoo v0.6.1
authored Oct 5, 2012
83 * Added support for fourth argument in deferred.map through which we can set
84 maximum number of tasks that should be run simultaneously
ee79d00 @medikoo Changes doc
authored Feb 20, 2012
85 * Exposed `promisifyAsync` and `promisifySync` on deferred, and exposed by
8707027 @medikoo v0.6.1
authored Oct 5, 2012
86 default `invokeSync` and `invokeAsync` promise extensions
ee79d00 @medikoo Changes doc
authored Feb 20, 2012
87 * Added possibility to add just onsuccess callback to `end`
88 * Optimize internal logic by reducing number of created unresolved promises
89 * Code validation with JSLint
90
91 * Fixes:
92 * Removed invalid doubled call from invoke extensions
93 * Handle exceptions thrown by asynchronous functions
94
f27c46a @medikoo Changes doc
authored Jan 26, 2012
95 v0.4.2 -- 2012.01.26
96 * Optimization. Cut down promise creation time about 60%
97
dd0bd96 @medikoo CHANGES doc
authored Jan 26, 2012
98 v0.4.1 -- 2012.01.26
99 * Fixed logic error for multi argument `deferred` call. It was same case as with
100 `map` fixed with v0.4.0: In specific cases resolve was called in callback
8707027 @medikoo v0.6.1
authored Oct 5, 2012
101 passed to promise, cause of that any errors that occurred in same event loop
dd0bd96 @medikoo CHANGES doc
authored Jan 26, 2012
102 were silent.
103
61052e8 @medikoo CHANGES doc
authored Jan 19, 2012
104 v0.4.0 -- 2012.01.19
105 * Changed the way `end` behaves:
106 * When called without arguments, throws error if promise is rejected
107 * When called with one function argument, it's treated as callback passed to
108 Node.js style asynchronous function. When promise is resolved it is called
109 with two arguments, first is error if promise is rejected, second is
110 resolved value if promise succeeds.
111 * When called with two function arguments, first one is taken as onsuccess and
112 second as onerror (it behaves similar as `then` but it doesn't extend chain
113 with another promise)
114 * It no longer returns its promise
115 * Fixed `map` extension. There was logic error: in specific cases resolve of map
116 was called in callback passed to promise, cause of that any errors that
8707027 @medikoo v0.6.1
authored Oct 5, 2012
117 occurred in same event loop were silent.
d511baf @medikoo Update CHANGES doc
authored Jan 19, 2012
118 * Removed `cb` extension as now `end` has same functionality
61052e8 @medikoo CHANGES doc
authored Jan 19, 2012
119
27cdfa2 @medikoo Changes doc
authored Jan 13, 2012
120 v0.3.1 -- 2012.01.13
121 * Promisify and invoke extension now resolves also input arguments before
122 calling the function
123 * Possibility to preset fixed number of arguments for promisified function,
124 it makes promisified functions less error prone
125
7e1d146 @medikoo Changes doc
authored Jan 8, 2012
126 v0.3.0 -- 2012.01.08
127 Major update:
128 * Revised promise collections approach:
129 There's no longer all, join & first functions.
130 Instead we may use deferred for grouping promises: deferred(p1, p2, p3)
131 or use map or reduce extensions e.g. deferred.map(paths, readFile). See
132 documentation for more info
133 * Introduced promise extensions.
134 * cb - end promise chain with regular asynchronous callback
135 * get - get property of resolved object
136 * invoke - invoke function on resolved object (supports both synchronous and
8707027 @medikoo v0.6.1
authored Oct 5, 2012
137 asynchronous functions)
7e1d146 @medikoo Changes doc
authored Jan 8, 2012
138 * map - promise aware version of Array's map
139 * match - match result array to function arguments
140 * reduce promise aware version of Array's reduce
141 * Replaced asyncToPromise (used as a2p or ba2p) and syncToPromise (used as s2p
142 or bs2p) with 'promisify', it works as 'bind' version for both asynchronous
8707027 @medikoo v0.6.1
authored Oct 5, 2012
143 and synchronous functions and is available on deferred as deferred.promisify.
7e1d146 @medikoo Changes doc
authored Jan 8, 2012
144 It has also been improved to support asynchronous functions that return more
145 than one value.
146 * Rewritten internal logic. Currently promises are backed with _base object
147 which is different for resolved and unresolved promises
a70c2a5 @medikoo Improvements to CHANGES doc
authored Jan 10, 2012
148 * Removed nextTick rule, no new event loops are introduced by deferred.
7e1d146 @medikoo Changes doc
authored Jan 8, 2012
149 * Unresolved promises can now be tracked via deferred.MONITOR
150 * valueOf promise function. Returns self promise if unresolved and resolved
151 value if resolved
152 * isPromise returns true only for deferred's like promise, as deferred api
a70c2a5 @medikoo Improvements to CHANGES doc
authored Jan 10, 2012
153 diverged from other promises implementations it's no open anymore to work
154 with foreign promises.
155 * Exposed 'isPromise' & 'delay' functions on deferred
7e1d146 @medikoo Changes doc
authored Jan 8, 2012
156
6364fd8 @medikoo Fixed package.json so it doesn't show warning in npm
authored Dec 12, 2011
157 v0.2.6 -- 2011.12.12
158 * Cleared npm warning for misnamed property in package.json
159
7397f49 @medikoo Changes document
authored Nov 8, 2011
160 v0.2.5 -- 2011.11.08
161 * Fix for bug introduced with node.js >= 0.5.7 ( https://github.com/joyent/node/issues/1877 )
162
b35b4a5 @medikoo Update CHANGES doc
authored Aug 9, 2011
163 v0.2.4 -- 2011.08.09
164 * Expose 'promise' function on deferred object returned by index.js.
165 There are valid use cases for using it outside of deferred lib
166
b7427f9 @medikoo Update CHANGES doc
authored Aug 9, 2011
167 v0.2.3 -- 2011.08.09
168 * 'delay' function: delay execution of given function,
169 return promise for function result
170
990f746 @medikoo Updated CHANGES
authored Aug 8, 2011
171 v0.2.2 -- 2011.08.08
172 * Added TAD test suite to devDependencies, configured test commands.
173 Tests can be run with 'make test' or 'npm test'
174
2d77444 @medikoo update CHANGES
authored Aug 8, 2011
175 v0.2.1 -- 2011.08.08
176 * Use process.nextTick instead of setTimeout if available
2e7b001 @medikoo CHANGES update
authored Aug 8, 2011
177
2d77444 @medikoo update CHANGES
authored Aug 8, 2011
178 v0.2.0 -- 2011.08.08
2e7b001 @medikoo CHANGES update
authored Aug 8, 2011
179 * Renamed 'chain' dir into 'join' as it's more about joining promises
180 * promise is now promise.then function (promise === promise.then)
b7427f9 @medikoo Update CHANGES doc
authored Aug 9, 2011
181 * resolve returns promise, handful for quick function returns
182 (return d.resolve(x))
2e7b001 @medikoo CHANGES update
authored Aug 8, 2011
183 * syncToPromise function
184 * Compatibility with es5-ext v0.6
185 * Test with TAD
186
187 v0.1.2 -- 2011.07.11
188 * Make it possible to use it with older JavaScript implementations
b6b2909 @medikoo v0.1.2
authored Jul 11, 2011
189 * Removed dead code
190 * Better tests coverage
191
2e7b001 @medikoo CHANGES update
authored Aug 8, 2011
192 v0.1.1 -- 2011.07.07
b6b2909 @medikoo v0.1.2
authored Jul 11, 2011
193 * Documentation
2e7b001 @medikoo CHANGES update
authored Aug 8, 2011
194
195 v0.1.0 -- 2011.07.05
196 * Initial version
Something went wrong with that request. Please try again.