reflux-core
Advanced tools
Comparing version 0.4.3 to 1.0.0
# Changelog | ||
## v1.0.0 | ||
* Breaking change: actions are now sync by default unless they involve child actions. | ||
* Child actions can now have complex definitions instead of only string action names. | ||
Check for latest changes on the [milestones page](https://github.com/reflux/refluxjs/milestones). | ||
@@ -4,0 +9,0 @@ |
@@ -62,4 +62,5 @@ "use strict"; | ||
for (; i < definition.children.length; i++) { | ||
var name = definition.children[i]; | ||
childActions[name] = createAction(name); | ||
var chDef = definition.children[i]; | ||
var chName = typeof chDef === "string" ? chDef : chDef.actionName; | ||
childActions[chName] = createAction(chDef); | ||
} | ||
@@ -74,3 +75,9 @@ | ||
var functor = function functor() { | ||
var triggerType = functor.sync ? "trigger" : "triggerAsync"; | ||
var hasChildActions = false; | ||
/* eslint no-unused-vars:0 */ | ||
for (var ignore in functor.childActions) { | ||
hasChildActions = true;break; | ||
} | ||
var async = !functor.sync && typeof functor.sync !== "undefined" || hasChildActions; | ||
var triggerType = async ? "triggerAsync" : "trigger"; | ||
return functor[triggerType].apply(functor, arguments); | ||
@@ -77,0 +84,0 @@ }; |
@@ -41,3 +41,3 @@ "use strict"; | ||
var version = { | ||
"reflux-core": "0.4.3" | ||
"reflux-core": "1.0.0" | ||
}; | ||
@@ -44,0 +44,0 @@ |
{ | ||
"name": "reflux-core", | ||
"version": "0.4.3", | ||
"version": "1.0.0", | ||
"description": "A simple library for uni-directional dataflow application architecture inspired by ReactJS Flux", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
55877
848
1