Comparing version 3.1.2 to 4.0.0-beta1
import { ObservableMap } from 'mobx'; | ||
export default function getRootStore(): ObservableMap<any>; | ||
export default function getRootStore(): ObservableMap<any, any>; |
@@ -8,3 +8,3 @@ "use strict"; | ||
schemaVersion: schemaVersion, | ||
rootStore: mobx_1.map({}), | ||
rootStore: mobx_1.observable.map({}), | ||
nextActionId: 0, | ||
@@ -11,0 +11,0 @@ subscriptions: {}, |
@@ -1,2 +0,2 @@ | ||
import { useStrict } from 'mobx'; | ||
import useStrict from './useStrict'; | ||
export { default as ActionCreator } from './interfaces/ActionCreator'; | ||
@@ -3,0 +3,0 @@ export { default as ActionMessage } from './interfaces/ActionMessage'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var mobx_1 = require("mobx"); | ||
exports.useStrict = mobx_1.useStrict; | ||
var useStrict_1 = require("./useStrict"); | ||
exports.useStrict = useStrict_1.default; | ||
var actionCreator_1 = require("./actionCreator"); | ||
@@ -24,2 +24,2 @@ exports.action = actionCreator_1.action; | ||
exports.flow = orchestrator_1.default; | ||
mobx_1.useStrict(true); | ||
useStrict_1.default(true); |
@@ -29,3 +29,3 @@ "use strict"; | ||
verify: function () { return modifiedObject[event.index] === event.newValue; }, | ||
objectName: modifiedObject.$mobx.name, | ||
objectName: event.name, | ||
propertyName: event.index, | ||
@@ -39,7 +39,7 @@ undo: function () { | ||
undoStep = { | ||
verify: function () { return modifiedObject.get(event.name) === event.newValue; }, | ||
objectName: modifiedObject.$mobx.name, | ||
propertyName: event.name, | ||
verify: function () { return modifiedObject.get(event.key) === event.newValue; }, | ||
objectName: event.name, | ||
propertyName: event.key, | ||
undo: function () { | ||
modifiedObject.set(event.name, event.oldValue); | ||
modifiedObject.set(event.key, event.oldValue); | ||
}, | ||
@@ -50,7 +50,7 @@ }; | ||
undoStep = { | ||
verify: function () { return modifiedObject[event.name] === event.newValue; }, | ||
objectName: modifiedObject.$mobx.name, | ||
propertyName: event.name, | ||
verify: function () { return modifiedObject[event.key] === event.newValue; }, | ||
objectName: event.name, | ||
propertyName: event.key, | ||
undo: function () { | ||
modifiedObject[event.name] = event.oldValue; | ||
modifiedObject[event.key] = event.oldValue; | ||
}, | ||
@@ -70,3 +70,3 @@ }; | ||
}, | ||
objectName: modifiedObject.$mobx.name, | ||
objectName: event.name, | ||
propertyName: event.index, | ||
@@ -84,7 +84,7 @@ undo: function () { | ||
undoStep = { | ||
verify: function () { return modifiedObject.get(event.name) === event.newValue; }, | ||
objectName: modifiedObject.$mobx.name, | ||
propertyName: event.name, | ||
verify: function () { return modifiedObject.get(event.key) === event.newValue; }, | ||
objectName: event.name, | ||
propertyName: event.key, | ||
undo: function () { | ||
modifiedObject.delete(event.name); | ||
modifiedObject.delete(event.key); | ||
}, | ||
@@ -95,7 +95,7 @@ }; | ||
undoStep = { | ||
verify: function () { return modifiedObject[event.name] === event.newValue; }, | ||
objectName: modifiedObject.$mobx.name, | ||
propertyName: event.name, | ||
verify: function () { return modifiedObject[event.key] === event.newValue; }, | ||
objectName: event.name, | ||
propertyName: event.key, | ||
undo: function () { | ||
delete modifiedObject[event.name]; | ||
delete modifiedObject[event.key]; | ||
}, | ||
@@ -107,7 +107,7 @@ }; | ||
undoStep = { | ||
verify: function () { return !modifiedObject.has(event.name); }, | ||
objectName: modifiedObject.$mobx.name, | ||
propertyName: event.name, | ||
verify: function () { return !modifiedObject.has(event.key); }, | ||
objectName: event.name, | ||
propertyName: event.key, | ||
undo: function () { | ||
modifiedObject.set(event.name, event.oldValue); | ||
modifiedObject.set(event.key, event.oldValue); | ||
}, | ||
@@ -114,0 +114,0 @@ }; |
{ | ||
"name": "satcheljs", | ||
"version": "3.1.2", | ||
"version": "4.0.0-beta1", | ||
"description": "Store implementation for functional reactive flux.", | ||
@@ -34,4 +34,4 @@ "lint-staged": { | ||
"lint-staged": "~4.0.1", | ||
"mobx": "~2.6.5", | ||
"mobx-react": "~4.0.3", | ||
"mobx": "^4.3.1", | ||
"mobx-react": "^5.2.0", | ||
"npm-run-all": "^4.0.2", | ||
@@ -49,4 +49,4 @@ "prettier": "~1.5.2", | ||
"peerDependencies": { | ||
"mobx": "^2.6.5", | ||
"mobx-react": "^4.0.3", | ||
"mobx": "^4.3.1", | ||
"mobx-react": "^5.2.0", | ||
"react": ">=15.4.0", | ||
@@ -53,0 +53,0 @@ "react-dom": ">=15.4.0" |
@@ -63,3 +63,3 @@ # Satchel | ||
<div> | ||
getStore().todos.map(todo => <div>{todo.text}</div>) | ||
{getStore().todos.map(todo => <div>{todo.text}</div>)} | ||
</div> | ||
@@ -66,0 +66,0 @@ ); |
Sorry, the diff of this file is not supported yet
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
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
153255
90
1029
2