flux-capacitor
Advanced tools
Comparing version 0.2.1 to 0.2.2
# Changelog - flux-capacitor | ||
## 0.2.2 | ||
- Bugfix: Make compatible with node 4.x | ||
- Minor bugfix: Only create event ID on dispatch if there is no event ID yet | ||
## 0.2.1 | ||
@@ -4,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
# Concept | ||
# Concept (Work in Progress) | ||
@@ -3,0 +3,0 @@ ## Writing data |
@@ -137,3 +137,3 @@ 'use strict' | ||
// can dispatch a complete event to the subscribers without an additional DB read | ||
id: database.createEventId(), | ||
id: event.id || database.createEventId(), | ||
timestamp: (new Date(Date.now())).toISOString() | ||
@@ -140,0 +140,0 @@ }) |
'use strict' | ||
function reduceEvent (database, event) { | ||
const { Events } = database.collections | ||
const Events = database.collections.Events | ||
return Events.create(event) | ||
@@ -6,0 +6,0 @@ } |
'use strict' | ||
const { applyMiddleware, compose } = require('redux') | ||
const redux = require('redux') | ||
const aggregateReducers = require('./aggregateReducers') | ||
@@ -10,6 +10,6 @@ const createStore = require('./createStore') | ||
aggregateReducers, | ||
applyMiddleware, | ||
compose, | ||
applyMiddleware: redux.applyMiddleware, | ||
compose: redux.compose, | ||
createStore, | ||
eventLogReducer | ||
} |
{ | ||
"name": "flux-capacitor", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Redux-like data storage in the backend. Easy to use, event-based, functional. Gives you control over time and data.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ # Flux Capacitor | ||
Redux-like data storage in the backend. Easy to use, event-based, functional. Gives you control over time and data. | ||
Event-based, functional data store for the backend. Gives you control over time and data. | ||
@@ -10,0 +10,0 @@ This package includes the core library. Please refer to the |
137379
15