bump react and typescript versions

This commit is contained in:
Artur Tamborski 2021-01-17 13:34:45 +01:00
parent 2818b521a5
commit 5dafe543a4
8 changed files with 14 additions and 31 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
# production # production
/build /build
.eslintcache
# misc # misc
.DS_Store .DS_Store

View File

@ -1,6 +1,6 @@
{ {
"name": "crosski", "name": "crosski",
"version": "0.1.0", "version": "0.2.0",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
@ -8,16 +8,16 @@
"test": "react-scripts test" "test": "react-scripts test"
}, },
"dependencies": { "dependencies": {
"typescript": "^4.0.5",
"@types/node": "^12.0.0", "@types/node": "^12.0.0",
"@types/react": "^16.9.53", "@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8", "@types/react-dom": "^16.9.8",
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"react-images-upload": "^1.2.8", "react-scripts": "^4.0.1",
"react-scripts": "4.0.0",
"sass": "^1.29.0", "sass": "^1.29.0",
"tesseract.js": "^2.1.4", "tesseract.js": "^2.1.4",
"typescript": "^4.0.3" "react-images-upload": "^1.2.8"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [

View File

@ -1,5 +1,3 @@
import React from 'react';
import {Selection} from '../App/App' import {Selection} from '../App/App'
import './Line.scss'; import './Line.scss';

View File

@ -1,5 +1,3 @@
import React from 'react';
import Wide from './crosski_wide.svg' import Wide from './crosski_wide.svg'
import './Logo.scss'; import './Logo.scss';

View File

@ -1,14 +0,0 @@
import { ReportHandler } from 'web-vitals';
export default function reportWebVitals(onPerfEntry?: ReportHandler) {
if (!onPerfEntry)
return;
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}

View File

@ -1 +0,0 @@
import '@testing-library/jest-dom';

View File

@ -17,7 +17,7 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"noEmit": true, "noEmit": true,
"jsx": "react", "jsx": "react-jsx",
"sourceMap": true, "sourceMap": true,
"declaration": true, "declaration": true,
"noUnusedLocals": true, "noUnusedLocals": true,

View File

@ -8875,7 +8875,7 @@ react-app-polyfill@^2.0.0:
regenerator-runtime "^0.13.7" regenerator-runtime "^0.13.7"
whatwg-fetch "^3.4.1" whatwg-fetch "^3.4.1"
react-dev-utils@^11.0.0: react-dev-utils@^11.0.1:
version "11.0.1" version "11.0.1"
resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-11.0.1.tgz#30106c2055acfd6b047d2dc478a85c356e66fe45" resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-11.0.1.tgz#30106c2055acfd6b047d2dc478a85c356e66fe45"
integrity sha512-rlgpCupaW6qQqvu0hvv2FDv40QG427fjghV56XyPcP5aKtOAPzNAhQ7bHqk1YdS2vpW1W7aSV3JobedxuPlBAA== integrity sha512-rlgpCupaW6qQqvu0hvv2FDv40QG427fjghV56XyPcP5aKtOAPzNAhQ7bHqk1YdS2vpW1W7aSV3JobedxuPlBAA==
@ -8947,10 +8947,10 @@ react-refresh@^0.8.3:
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f" resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg== integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
react-scripts@4.0.0: react-scripts@^4.0.1:
version "4.0.0" version "4.0.1"
resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-4.0.0.tgz#36f3d84ffff708ac0618fd61e71eaaea11c26417" resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-4.0.1.tgz#34974c0f4cfdf1655906c95df6a04d80db8b88f0"
integrity sha512-icJ/ctwV5XwITUOupBP9TUVGdWOqqZ0H08tbJ1kVC5VpNWYzEZ3e/x8axhV15ZXRsixLo27snwQE7B6Zd9J2Tg== integrity sha512-NnniMSC/wjwhcJAyPJCWtxx6CWONqgvGgV9+QXj1bwoW/JI++YF1eEf3Upf/mQ9KmP57IBdjzWs1XvnPq7qMTQ==
dependencies: dependencies:
"@babel/core" "7.12.3" "@babel/core" "7.12.3"
"@pmmmwh/react-refresh-webpack-plugin" "0.4.2" "@pmmmwh/react-refresh-webpack-plugin" "0.4.2"
@ -8994,8 +8994,9 @@ react-scripts@4.0.0:
postcss-normalize "8.0.1" postcss-normalize "8.0.1"
postcss-preset-env "6.7.0" postcss-preset-env "6.7.0"
postcss-safe-parser "5.0.2" postcss-safe-parser "5.0.2"
prompts "2.4.0"
react-app-polyfill "^2.0.0" react-app-polyfill "^2.0.0"
react-dev-utils "^11.0.0" react-dev-utils "^11.0.1"
react-refresh "^0.8.3" react-refresh "^0.8.3"
resolve "1.18.1" resolve "1.18.1"
resolve-url-loader "^3.1.2" resolve-url-loader "^3.1.2"
@ -10626,7 +10627,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
typescript@^4.0.3: typescript@^4.0.5:
version "4.1.3" version "4.1.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg== integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==