feat: upgrade dependencies

BREAKING CHANGE:
- react-scripts upgraded to v5
- semantic-release upgraded to v19
- dropped support for Node <= 15
pull/8/head
kaireewu 4 years ago
parent e22bbe70ea
commit eeff4c0eaf
No known key found for this signature in database
GPG Key ID: E904B5FF4F40BC01

@ -21,10 +21,6 @@
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.6.4", "@ant-design/icons": "^4.6.4",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "16.0.0", "@types/node": "16.0.0",
"@types/react": "^17.0.0", "@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0", "@types/react-dom": "^17.0.0",
@ -34,15 +30,13 @@
"react": "^17.0.2", "react": "^17.0.2",
"react-app-rewired": "^2.2.1", "react-app-rewired": "^2.2.1",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-intl-universal": "^2.4.2", "react-intl-universal": "^2.5.3",
"react-scripts": "5.0.0", "react-scripts": "^5.0.1",
"typescript": "^4.1.2", "typescript": "^4.1.2"
"web-vitals": "^1.0.1"
}, },
"scripts": { "scripts": {
"start": "react-app-rewired start", "start": "react-app-rewired start",
"build": "react-app-rewired build", "build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {
@ -66,6 +60,6 @@
"devDependencies": { "devDependencies": {
"@semantic-release/changelog": "^6.0.0", "@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0", "@semantic-release/git": "^10.0.0",
"semantic-release": "^18.0.0" "semantic-release": "^19.0.3"
} }
} }

@ -2,11 +2,11 @@ import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; // import reportWebVitals from './reportWebVitals';
ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render(<App />, document.getElementById('root'));
// If you want to start measuring performance in your app, pass a function // If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log)) // to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals(); // reportWebVitals();

@ -1,15 +0,0 @@
import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
Loading…
Cancel
Save