Skip to content

Commit 3c18480

Browse files
fix: update dependencies with security vulnerabilities (#47)
* Update dependencies on redux and react-redux to remove dependency in insecure version of lodash-es * Update lerna and dependencies to remove dependency on insecure version of lodash.template * Filter out redux internal actions for setting page title in tests
1 parent d0d0fa6 commit 3c18480

25 files changed

Lines changed: 616 additions & 558 deletions

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@
5858
"jest": "^24.8.0",
5959
"jest-cli": "^24.8.0",
6060
"jest-localstorage-mock": "^2.4.0",
61-
"lerna": "^3.14.1",
61+
"lerna": "^3.15.0",
6262
"lint-staged": "^7.2.0",
6363
"npm-publish-git": "git://github.com/hedgepigdaniel/npm-publish-git.git",
6464
"prettier": "^1.14.2",
6565
"prop-types": "^15.6.2",
6666
"react": "^16.8.0",
6767
"react-dom": "^16.8.0",
6868
"react-hot-loader": "^4.8.8",
69-
"react-redux": "^7.0.3",
69+
"react-redux": "^7.1.0",
7070
"react-test-renderer": "^16.1.1",
71-
"redux": "^3.6.0",
71+
"redux": "^4.0.4",
7272
"redux-thunk": "^2.2.0",
7373
"rimraf": "^2.6.1",
7474
"source-map-loader": "^0.2.4",

packages/boilerplate/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"react": "^16.8.0",
2929
"react-dom": "^16.8.0",
3030
"react-hot-loader": "^4.8.8",
31-
"react-redux": "^7.0.3",
31+
"react-redux": "^7.1.0",
3232
"react-universal-component": "^3.0.3",
33-
"redux": "^3.7.2",
33+
"redux": "^4.0.4",
3434
"redux-devtools-extension": "^2.13.5",
3535
"serve-favicon": "^2.4.5",
3636
"source-map-support": "^0.5.6",

packages/integration-tests/__helpers__/createTest.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,14 @@ export const setupStore = (routesMap, initialPath, opts) => {
228228
const middlewareFunc = options.middlewareFunc
229229
delete options.middlewareFunc
230230

231-
const title = (state, action = {}) =>
232-
action.payload !== undefined
231+
const title = (state, action = {}) => {
232+
if (action.type.indexOf('@@redux') === 0) {
233+
return state || '<initial_title>'
234+
}
235+
return action.payload !== undefined
233236
? `${action.type} - ${JSON.stringify(action.payload)}`
234237
: action.type
238+
}
235239

236240
const {
237241
middleware,

packages/integration-tests/__tests__/integration/__snapshots__/SPA.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Object {
6666
"universal": false,
6767
"url": "/first",
6868
},
69-
"title": "@@redux/INIT",
69+
"title": "<initial_title>",
7070
}
7171
`;
7272

packages/integration-tests/__tests__/integration/__snapshots__/arrayCallback.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Object {
6262
"universal": false,
6363
"url": "/first",
6464
},
65-
"title": "@@redux/INIT",
65+
"title": "<initial_title>",
6666
}
6767
`;
6868

@@ -200,7 +200,7 @@ Object {
200200
"universal": false,
201201
"url": "/first",
202202
},
203-
"title": "@@redux/INIT",
203+
"title": "<initial_title>",
204204
}
205205
`;
206206

packages/integration-tests/__tests__/integration/__snapshots__/dontDoubleDispatch.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Object {
203203
"universal": false,
204204
"url": "/first",
205205
},
206-
"title": "@@redux/INIT",
206+
"title": "<initial_title>",
207207
}
208208
`;
209209

packages/integration-tests/__tests__/integration/__snapshots__/formatRoutes.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Object {
151151
"universal": false,
152152
"url": "/missed",
153153
},
154-
"title": "@@redux/INIT",
154+
"title": "<initial_title>",
155155
}
156156
`;
157157

@@ -291,7 +291,7 @@ Object {
291291
"universal": false,
292292
"url": "/first",
293293
},
294-
"title": "@@redux/INIT",
294+
"title": "<initial_title>",
295295
}
296296
`;
297297

@@ -572,7 +572,7 @@ Object {
572572
"universal": false,
573573
"url": "/first",
574574
},
575-
"title": "@@redux/INIT",
575+
"title": "<initial_title>",
576576
}
577577
`;
578578

packages/integration-tests/__tests__/integration/__snapshots__/hydrate.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Object {
7474
"universal": false,
7575
"url": "/first",
7676
},
77-
"title": "@@redux/INIT",
77+
"title": "<initial_title>",
7878
}
7979
`;
8080

packages/integration-tests/__tests__/integration/__snapshots__/inheritedCallbacks.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Object {
7474
"universal": false,
7575
"url": "/first",
7676
},
77-
"title": "@@redux/INIT",
77+
"title": "<initial_title>",
7878
}
7979
`;
8080

@@ -268,7 +268,7 @@ Object {
268268
"universal": false,
269269
"url": "/first",
270270
},
271-
"title": "@@redux/INIT",
271+
"title": "<initial_title>",
272272
}
273273
`;
274274

@@ -464,7 +464,7 @@ Object {
464464
"universal": false,
465465
"url": "/first",
466466
},
467-
"title": "@@redux/INIT",
467+
"title": "<initial_title>",
468468
}
469469
`;
470470

packages/integration-tests/__tests__/integration/__snapshots__/redirects.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Object {
6666
"universal": false,
6767
"url": "/first",
6868
},
69-
"title": "@@redux/INIT",
69+
"title": "<initial_title>",
7070
}
7171
`;
7272

@@ -333,7 +333,7 @@ Object {
333333
"universal": false,
334334
"url": "/first",
335335
},
336-
"title": "@@redux/INIT",
336+
"title": "<initial_title>",
337337
}
338338
`;
339339

0 commit comments

Comments
 (0)