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

diode

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diode - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

invariant.js

2

diode.js

@@ -7,3 +7,3 @@ /**

var invariant = require('react/lib/invariant')
var invariant = require('./invariant')
var _callbacks = []

@@ -10,0 +10,0 @@

{
"name": "diode",
"version": "1.0.0",
"version": "1.1.0",
"description": "A simple state propagation tool for Flux/React apps",

@@ -41,6 +41,3 @@ "main": "diode.js",

"react": ">= 0.12.1"
},
"peerDependencies": {
"react": ">= 0.12.1"
}
}
# Diode
A simple state propagation tool for React. It takes advantage of
A simple state propagation tool for React. It takes advantage of
[components that are pure](http://facebook.github.io/react/docs/pure-render-mixin.html)
to significantly simplify event subscription when propagating changes
to significantly simplify event subscription when propagating changes
in the data layer.
Diode has no dependencies.
**Diode is an event emitter with one event**. By including the `Stateful`

@@ -12,3 +14,3 @@ mixin, an expected `getState` method is called every time the Diode

It is also quite small (see [API](#api)). We found ourselves building
It is also quite small (see [API](#api)). We found ourselves building
something similar to it on several projects and decided it was better

@@ -15,0 +17,0 @@ to keep it in one place.

@@ -1,3 +0,3 @@

var Diode = require('../diode');
var invariant = require('react/lib/invariant');
var Diode = require('./diode');
var invariant = require('./invariant');

@@ -4,0 +4,0 @@ var Stateful = {

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