Skip to content

Commit 048694c

Browse files
committed
[update] Replace pulse with Diode
1 parent cdb782a commit 048694c

File tree

9 files changed

+18
-77
lines changed

9 files changed

+18
-77
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
coverage
22
stats.json
3+
dist

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
### 6.2.0
4+
5+
- Microcosm's event system has been replaced with
6+
[Diode](https://github.com/vigetlabs/diode). The APIs are the
7+
same. This should not lead to any breaking changes.
8+
39
### 6.1.0
410

511
- `Microcosm::pull` can now accept an array of keys for the first

dist/Microcosm.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/Microcosm.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "microcosm",
3-
"version": "6.1.0",
3+
"version": "6.2.0",
44
"description": "A functional flux architecture",
55
"main": "dist/Microcosm.js",
66
"scripts": {
@@ -15,7 +15,9 @@
1515
"url": "git://github.com/vigetlabs/microcosm.git"
1616
},
1717
"license": "MIT",
18-
"dependencies": {},
18+
"dependencies": {
19+
"diode": "^4.0.0"
20+
},
1921
"devDependencies": {
2022
"autoprefixer-core": "^5.1.7",
2123
"babel": "^5.x.x",

src/Microcosm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
*/
66

77
import Action from './Action'
8+
import Diode from 'diode'
89
import Plugin from './Plugin'
910
import Store from './Store'
1011
import assert from './assert'
1112
import clone from './clone'
13+
import getIn from './getIn'
1214
import install from './install'
13-
import pulse from './pulse'
1415
import remap from './remap'
1516
import remapIf from './remapIf'
16-
import getIn from './getIn'
1717

1818
export default class Microcosm {
1919

2020
constructor() {
21-
pulse(this)
21+
Diode.decorate(this)
2222

2323
this._state = {}
2424
this._stores = {}

src/__tests__/pulse-test.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/pulse.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ module.exports = {
2222
modulesDirectories: [ 'web_modules', 'node_modules', 'src' ]
2323
},
2424

25+
externals: {
26+
diode: 'diode'
27+
},
28+
2529
module: {
2630
loaders: [
2731
{

0 commit comments

Comments
 (0)