Update redux 3 -> 4

Changelog-entry: Update redux 3 -> 4
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-05-12 14:18:02 +02:00
parent 50586cdb42
commit ef5762864f
5 changed files with 11 additions and 15 deletions

View File

@ -20,7 +20,7 @@ import { v4 as uuidV4 } from 'uuid';
import * as flashState from '../../models/flash-state'; import * as flashState from '../../models/flash-state';
import * as selectionState from '../../models/selection-state'; import * as selectionState from '../../models/selection-state';
import { store } from '../../models/store'; import { Actions, store } from '../../models/store';
import * as analytics from '../../modules/analytics'; import * as analytics from '../../modules/analytics';
import { open as openExternal } from '../../os/open-external/services/open-external'; import { open as openExternal } from '../../os/open-external/services/open-external';
import { FlashAnother } from '../flash-another/flash-another'; import { FlashAnother } from '../flash-another/flash-another';
@ -33,7 +33,7 @@ function restart(goToMain: () => void) {
// Reset the flashing workflow uuid // Reset the flashing workflow uuid
store.dispatch({ store.dispatch({
type: 'SET_FLASHING_WORKFLOW_UUID', type: Actions.SET_FLASHING_WORKFLOW_UUID,
data: uuidV4(), data: uuidV4(),
}); });

View File

@ -26,6 +26,7 @@ import { Actions, store } from './store';
export function resetState() { export function resetState() {
store.dispatch({ store.dispatch({
type: Actions.RESET_FLASH_STATE, type: Actions.RESET_FLASH_STATE,
data: {},
}); });
} }
@ -46,6 +47,7 @@ export function isFlashing(): boolean {
export function setFlashingFlag() { export function setFlashingFlag() {
store.dispatch({ store.dispatch({
type: Actions.SET_FLASHING_FLAG, type: Actions.SET_FLASHING_FLAG,
data: {},
}); });
} }

View File

@ -130,6 +130,7 @@ export function deselectDrive(driveDevice: string) {
export function deselectImage() { export function deselectImage() {
store.dispatch({ store.dispatch({
type: Actions.DESELECT_IMAGE, type: Actions.DESELECT_IMAGE,
data: {},
}); });
} }

17
npm-shrinkwrap.json generated
View File

@ -8305,11 +8305,6 @@
"lodash": ">=3.7.0" "lodash": ">=3.7.0"
} }
}, },
"lodash-es": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz",
"integrity": "sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ=="
},
"lodash.capitalize": { "lodash.capitalize": {
"version": "4.2.1", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz",
@ -11093,14 +11088,12 @@
} }
}, },
"redux": { "redux": {
"version": "3.7.2", "version": "4.0.5",
"resolved": "https://registry.npmjs.org/redux/-/redux-3.7.2.tgz", "resolved": "https://registry.npmjs.org/redux/-/redux-4.0.5.tgz",
"integrity": "sha512-pNqnf9q1hI5HHZRBkj3bAngGZW/JMCmexDlOxw4XagXY2o1327nHH54LoTjiPJ0gizoqPDRqWyX/00g0hD6w+A==", "integrity": "sha512-VSz1uMAH24DM6MF72vcojpYPtrTUu3ByVWfPL1nPfVRb5mZVTve5GnNCUV53QM/BZ66xfWrm0CTWoM+Xlz8V1w==",
"requires": { "requires": {
"lodash": "^4.2.1", "loose-envify": "^1.4.0",
"lodash-es": "^4.2.1", "symbol-observable": "^1.2.0"
"loose-envify": "^1.1.0",
"symbol-observable": "^1.0.3"
} }
}, },
"regenerator-runtime": { "regenerator-runtime": {

View File

@ -67,7 +67,7 @@
"pretty-bytes": "^5.3.0", "pretty-bytes": "^5.3.0",
"react": "^16.8.5", "react": "^16.8.5",
"react-dom": "^16.8.5", "react-dom": "^16.8.5",
"redux": "^3.5.2", "redux": "^4.0.5",
"rendition": "^11.24.2", "rendition": "^11.24.2",
"request": "^2.81.0", "request": "^2.81.0",
"resin-corvus": "^2.0.5", "resin-corvus": "^2.0.5",