Skip to content

Commit 3d35e72

Browse files
committed
Update dependencies
Also get rid of old babel plugins that are no longer needed
1 parent a4bf665 commit 3d35e72

File tree

5 files changed

+23
-48
lines changed

5 files changed

+23
-48
lines changed

.babelrc

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"presets": [
3-
[
4-
"@babel/env",
5-
{
6-
"targets": {
7-
"browsers": [
8-
"last 2 versions",
9-
"firefox esr",
10-
"not ie<11",
11-
"not ie_mob>0"
12-
]
13-
}
14-
}
15-
]
16-
],
17-
"plugins": [
18-
"@babel/plugin-syntax-object-rest-spread"
19-
]
2+
"presets": ["@babel/env"]
203
}

.eslintrc.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
extends:
2-
- 'indico'
3-
- 'indico/babel'
4-
- 'plugin:jest/recommended'
5-
61
env:
72
browser: true
83
es6: true
94

10-
plugins:
11-
- jest
5+
parserOptions:
6+
sourceType: module
7+
ecmaVersion: latest
8+
9+
extends:
10+
- 'indico'

package.json

+11-18
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name": "redux-router-querystring",
3-
"version": "0.0.11",
3+
"version": "0.1.0",
44
"description": "Redux middleware and reducer that handle synchronization between query strings and state.",
55
"main": "dist/index.js",
66
"scripts": {
77
"build": "rm -rf dist/ && babel src/ --out-dir dist/",
88
"prepare": "npm run build",
99
"eslint": "eslint src/",
10-
"test": "jest tests/ --coverage",
1110
"dev": "babel src/ --watch --out-dir dist/ --verbose"
1211
},
1312
"repository": {
@@ -28,23 +27,17 @@
2827
},
2928
"homepage": "https://github.com/indico/redux-router-querystring#readme",
3029
"dependencies": {
31-
"lodash.get": "^4.4.2",
32-
"lodash.merge": "^4.6.1",
33-
"lodash.set": "^4.3.2",
34-
"moment": "^2.22.2",
35-
"qs": "^6.5.2",
36-
"validator": "^9.4.1"
30+
"lodash": "^4.17.21",
31+
"moment": "^2.30.1",
32+
"qs": "^6.12.0",
33+
"validator": "^13.11.0"
3734
},
3835
"devDependencies": {
39-
"@babel/cli": "^7.0.0-beta.51",
40-
"@babel/core": "^7.0.0-beta.51",
41-
"@babel/plugin-syntax-object-rest-spread": "^7.0.0-beta.55",
42-
"@babel/preset-env": "^7.0.0-beta.51",
43-
"babel-eslint": "^8.2.5",
44-
"eslint": "^5.0.1",
45-
"eslint-config-indico": "^1.1.0",
46-
"eslint-plugin-babel": "^5.0.0",
47-
"eslint-plugin-import": "^2.13.0",
48-
"eslint-plugin-jest": "^21.17.0"
36+
"@babel/cli": "^7.24.1",
37+
"@babel/core": "^7.24.3",
38+
"@babel/preset-env": "^7.24.3",
39+
"eslint": "^8.57.0",
40+
"eslint-config-indico": "^2.0.0",
41+
"eslint-plugin-import": "^2.29.1"
4942
}
5043
}

src/routing.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import qs from 'qs';
2-
import merge from 'lodash.merge';
3-
import getDeep from 'lodash.get';
4-
import setDeep from 'lodash.set';
2+
import merge from 'lodash/merge';
3+
import getDeep from 'lodash/get';
4+
import setDeep from 'lodash/set';
55
import {mapQueryFields} from './validation';
66

77

@@ -54,7 +54,7 @@ export const queryStringMiddleware = (history, {reduxPathname, routes}, config =
5454
allowDots: true
5555
});
5656
const dataList = routesConfig.filter(
57-
({listen}) => Array.isArray(listen) ? listen.includes(action.type) : listen === action.type
57+
({listen}) => (Array.isArray(listen) ? listen.includes(action.type) : listen === action.type)
5858
).map(({select, serialize}) => {
5959
const qsState = select(state);
6060
let data = _pruneNullLeaves(qsState);

src/validation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import moment from 'moment';
22
import validatorModule from 'validator';
3-
import setDeep from 'lodash.set';
3+
import setDeep from 'lodash/set';
44

55

66
const funcs = Object.entries(validatorModule)

0 commit comments

Comments
 (0)