Skip to content

Commit f8a14e7

Browse files
committed
upgrade dependencies
1 parent 1750fd4 commit f8a14e7

File tree

5 files changed

+2753
-2084
lines changed

5 files changed

+2753
-2084
lines changed

package.json

+32-31
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,38 @@
99
"author": "Christophe Duchesne-Ashworth <[email protected]>",
1010
"license": "MIT",
1111
"private": false,
12+
"type": "module",
1213
"files": [
1314
"/lib"
1415
],
1516
"devDependencies": {
16-
"@babel/core": "^7.16.0",
17-
"@babel/plugin-syntax-jsx": "^7.16.0",
18-
"@babel/preset-typescript": "^7.16.0",
19-
"@rollup/plugin-commonjs": "^21.0.1",
20-
"@rollup/plugin-node-resolve": "^13.0.6",
21-
"@storybook/addon-actions": "^6.3.12",
22-
"@storybook/addon-essentials": "^6.3.12",
23-
"@storybook/addon-links": "^6.3.12",
24-
"@storybook/react": "^6.3.12",
25-
"@types/react": "^17.0.33",
26-
"@types/react-dom": "^17.0.10",
27-
"@typescript-eslint/eslint-plugin": "^5.4.0",
28-
"@typescript-eslint/parser": "^5.4.0",
29-
"babel-loader": "^8.2.3",
30-
"eslint": "^8.2.0",
31-
"eslint-plugin-react": "^7.27.1",
32-
"postcss": "^8.3.11",
33-
"react": "^17.0.2",
34-
"react-dom": "^17.0.2",
35-
"rollup": "^2.58.3",
17+
"@babel/core": "^7.21.3",
18+
"@babel/plugin-syntax-jsx": "^7.18.6",
19+
"@babel/preset-typescript": "^7.21.0",
20+
"@rollup/plugin-commonjs": "^24.0.1",
21+
"@rollup/plugin-node-resolve": "^15.0.1",
22+
"@storybook/addon-actions": "^6.5.16",
23+
"@storybook/addon-essentials": "^6.5.16",
24+
"@storybook/addon-links": "^6.5.16",
25+
"@storybook/react": "^6.5.16",
26+
"@types/react": "^18.0.31",
27+
"@types/react-dom": "^18.0.11",
28+
"@typescript-eslint/eslint-plugin": "^5.57.0",
29+
"@typescript-eslint/parser": "^5.57.0",
30+
"babel-loader": "^9.1.2",
31+
"eslint": "^8.37.0",
32+
"eslint-plugin-react": "^7.32.2",
33+
"postcss": "^8.4.21",
34+
"react": "^18.2.0",
35+
"react-dom": "^18.2.0",
36+
"rollup": "^3.20.2",
3637
"rollup-plugin-peer-deps-external": "^2.2.4",
37-
"rollup-plugin-postcss": "^4.0.1",
38-
"rollup-plugin-scss": "3",
39-
"rollup-plugin-typescript2": "^0.30.0",
40-
"sass": "^1.43.4",
41-
"ts-node": "^10.4.0",
42-
"typescript": "^4.4.4"
38+
"rollup-plugin-postcss": "^4.0.2",
39+
"rollup-plugin-scss": "4",
40+
"rollup-plugin-typescript2": "^0.34.1",
41+
"sass": "^1.60.0",
42+
"ts-node": "^10.9.1",
43+
"typescript": "^5.0.2"
4344
},
4445
"peerDependencies": {
4546
"react": "^17.0.2",
@@ -55,10 +56,10 @@
5556
"lint:fix": "yarn eslint src/**/*.ts src/**/*.tsx --fix"
5657
},
5758
"dependencies": {
58-
"@testing-library/jest-dom": "^5.14.1",
59-
"@testing-library/react": "^12.1.2",
60-
"@types/jest": "^27.0.2",
61-
"jest": "^27.3.1",
62-
"ts-jest": "^27.0.7"
59+
"@testing-library/jest-dom": "^5.16.5",
60+
"@testing-library/react": "^14.0.0",
61+
"@types/jest": "^29.5.0",
62+
"jest": "^29.5.0",
63+
"ts-jest": "^29.0.5"
6364
}
6465
}

rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import postcss from "rollup-plugin-postcss";
66
import scss from 'rollup-plugin-scss';
77
import autoprefixer from 'autoprefixer';
88

9-
const packageJson = require("./package.json");
9+
import packageJson from "./package.json" assert { type: "json" };
1010

1111
export default {
1212
input: "src/index.ts",
@@ -35,4 +35,4 @@ export default {
3535
]
3636
}),
3737
]
38-
};
38+
};

src/hoc/with-context.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Context, FunctionComponent } from 'react';
22

33
type ContextProvider<C> = () => C
44

5-
export function withContext<C, P>(
5+
export function withContext<C, P extends JSX.IntrinsicAttributes>(
66
contextProvider: ContextProvider<C>,
77
context: Context<C>,
88
): (WrappedComponent: FunctionComponent<P>) => FunctionComponent<P> {

tsconfig.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
77
"jsx": "react",
88
"declaration": true,
99
"moduleResolution": "node",
10+
"resolveJsonModule": true,
1011
"noUnusedLocals": true,
1112
"noUnusedParameters": true,
1213
"esModuleInterop": true,
1314
"noImplicitReturns": true,
1415
"noImplicitThis": true,
1516
"noImplicitAny": true,
1617
"strictNullChecks": true,
17-
"suppressImplicitAnyIndexErrors": true,
1818
"allowSyntheticDefaultImports": true
1919
},
2020
"include": ["src"],
21-
"exclude": ["node_modules", "lib"]
22-
}
21+
"exclude": ["node_modules", "lib"],
22+
"typeRoot": ["node_modules/@types", "package.json"]
23+
}

0 commit comments

Comments
 (0)