Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reflux-core

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflux-core - npm Package Compare versions

Comparing version 0.4.3 to 1.0.0

5

CHANGELOG.md
# 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 @@

13

lib/createAction.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc