react 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/doc/advanced.md +2 -1
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ You can read more and see his example site here https://github.com/ryanatkn/reac
|
|
|
44
44
|
- class method calls
|
|
45
45
|
- selectFirst flow where the first task that returns defined, non-null value is used
|
|
46
46
|
- promise style functions - also automatic resolution of promise inputs (optionally loaded with `react.resolvePromises();`)
|
|
47
|
-
- use of resulting flow function as callback style or promise style (if no callback provided) (provided via plugin corresponding to the promise library used) See https://github.com/jeffbski/react-deferred
|
|
47
|
+
- use of resulting flow function as callback style or promise style (if no callback provided) (provided via plugin corresponding to the promise library used) See https://github.com/jeffbski/react-deferred and https://github.com/jeffbski/react-q
|
|
48
48
|
- supports ES5 browsers (can work with others by using polyfills)
|
|
49
49
|
- (planned) iteration on arrays, streams, sockets
|
|
50
50
|
- (planned) event emitter integration
|
package/doc/advanced.md
CHANGED
|
@@ -121,7 +121,7 @@ Available Events that can be logged:
|
|
|
121
121
|
|
|
122
122
|
### Automatic Promise Resolution for inputs
|
|
123
123
|
|
|
124
|
-
If you want to automatically resolve promises in React without having to manually call `when` or `then`, React provides a plugin which will detect the existence of a `then` method (indicating a promise) at runtime from any inputs to the flow and will internally create `when` tasks to resolve them before passing the values to other tasks. This built-in plugin is not loaded normally but is loaded by invoking the react method `resolvePromises`. External plugins like `react-deferred` also enable this but also provide additional promise integration. See https://github.com/jeffbski/react-deferred
|
|
124
|
+
If you want to automatically resolve promises in React without having to manually call `when` or `then`, React provides a plugin which will detect the existence of a `then` method (indicating a promise) at runtime from any inputs to the flow and will internally create `when` tasks to resolve them before passing the values to other tasks. This built-in plugin is not loaded normally but is loaded by invoking the react method `resolvePromises`. External plugins like `react-deferred` and `react-q` also enable this but also provide additional promise integration. See https://github.com/jeffbski/react-deferred and https://github.com/jeffbski/react-q
|
|
125
125
|
|
|
126
126
|
```javascript
|
|
127
127
|
var react = require('react');
|
|
@@ -172,3 +172,4 @@ collector.clear(); // clear the list of events;
|
|
|
172
172
|
### External Plugins
|
|
173
173
|
|
|
174
174
|
- https://github.com/jeffbski/react-deferred - integrates jQuery style Deferred/Promises with react, providing automatic promise resolution and optional usage for react functions where by calling without a callback returns a promise.
|
|
175
|
+
- https://github.com/jeffbski/react-q - integrates Q-style Deferred/Promises with react, providing automatic promise resolution and optional usage for react functions where by calling without a callback returns a promise.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react",
|
|
3
3
|
"description": "React is a javascript module implementing a lightweight rules engine to make it easier to work with asynchronous code, by reducing boilerplate code and improving error and exception handling while allowing variable and task dependencies when defining flow.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"author": "Jeff Barczewski <jeff.barczewski@gmail.com>",
|
|
6
6
|
"repository": { "type": "git", "url": "http://github.com/jeffbski/react.git" },
|
|
7
7
|
"bugs" : { "url": "http://github.com/jeffbski/react/issues" },
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
"jake": "~0.5.15",
|
|
21
21
|
"Deferred" : "~0.1.1"
|
|
22
22
|
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"flow",
|
|
25
|
+
"flow control",
|
|
26
|
+
"control flow",
|
|
27
|
+
"dataflow",
|
|
28
|
+
"reactive",
|
|
29
|
+
"deferred",
|
|
30
|
+
"promise",
|
|
31
|
+
"async"
|
|
32
|
+
],
|
|
23
33
|
"scripts": {
|
|
24
34
|
"test": "./node_modules/mocha/bin/mocha ./test/*.mocha.js"
|
|
25
35
|
}
|