Skip to content

Commit

Permalink
dep: upgrade core-js / babel and others (#11992)
Browse files Browse the repository at this point in the history
* dep: up browserslist

* dep: up `core-js` to `3.34.0`

* dep: up babel deps

* dep: precompile babel

* dep: up typescript and dumi

* dep: up father

* fix: tsc type

* dep: up `caniuse-lite`

* dep: precompile `caniuse-lite`

* dep: precompile babel

* chore: remove useless code

* ci: fix

* fix: type

* fix: type

* fix: type

* fix: type

* chore: revert father

* fix: server render

* chore: revert typescript

* chore: revert
  • Loading branch information
fz6m authored Dec 27, 2023
1 parent 7592e7a commit 0299512
Show file tree
Hide file tree
Showing 38 changed files with 7,200 additions and 8,721 deletions.
1 change: 0 additions & 1 deletion did-you-know/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"devDependencies": {
"terminal-link": "^3.0.0"
},
"packageManager": "[email protected]",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 3 additions & 1 deletion docs/.dumi/components/Hero/GithubStar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import CountUp from 'react-countup';
const LS_KEY = 'github-stars';

export const GithubStar = () => {
const [count, setCount] = useState(localStorage.getItem(LS_KEY) || '12K+');
const [count, setCount] = useState(
(typeof window !== 'undefined' && localStorage.getItem(LS_KEY)) || '14K+',
);

useEffect(() => {
(async () => {
Expand Down
4 changes: 4 additions & 0 deletions docs/.dumi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": ["**/*"]
}
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"styled-components": "6.0.0-rc.0"
},
"devDependencies": {
"dumi": "^2.2.5"
"dumi": "^2.2.16"
}
}
2 changes: 1 addition & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"@@/*": [".dumi/tmp/*"]
}
},
"include": [".dumi/**/*", ".dumirc.ts"]
"include": [".dumirc.ts"]
}
1 change: 0 additions & 1 deletion examples/antd-pro-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"prettier": "^2.8.4",
"start-server-and-test": "^1.15.2",
"swagger-ui-dist": "^4.14.2",
"typescript": "^4.9.4",
"umi-presets-pro": "^1.0.5",
"umi-serve": "^1.9.11"
},
Expand Down
3 changes: 1 addition & 2 deletions examples/create-umi-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"prettier": "^2.8.4",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.3",
"start-server-and-test": "^1.15.2",
"typescript": "^4.9.4"
"start-server-and-test": "^1.15.2"
}
}
3 changes: 1 addition & 2 deletions examples/create-umi-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@types/react-dom": "^18.0.10",
"cross-env": "^7.0.3",
"cypress": "^12.0.0",
"start-server-and-test": "^1.15.2",
"typescript": "^4.9.4"
"start-server-and-test": "^1.15.2"
}
}
1 change: 0 additions & 1 deletion examples/mfsu-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"cypress": "^12.6.0",
"rimraf": "3.0.2",
"start-server-and-test": "^1.15.2",
"typescript": "^4.9.4",
"wait-on": "^6.0.1"
}
}
10 changes: 5 additions & 5 deletions examples/mfsu-independent-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"react-dom": "^18.1.0"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@umijs/mfsu": "workspace:*",
"babel-loader": "^9.1.2",
"babel-loader": "^9.1.3",
"cross-env": "^7.0.3",
"cypress": "^12.0.0",
"esbuild": "0.17.19",
Expand Down
10 changes: 5 additions & 5 deletions examples/mfsu-independent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"react-dom": "^18.1.0"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@umijs/mfsu": "workspace:*",
"babel-loader": "^9.1.2",
"babel-loader": "^9.1.3",
"esbuild": "0.17.19",
"html-webpack-plugin": "^5.5.0",
"webpack": "^5.75.0",
Expand Down
1 change: 0 additions & 1 deletion examples/plugin-antd-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"cypress": "^12.6.0",
"rimraf": "3.0.2",
"start-server-and-test": "^1.15.2",
"typescript": "^4.9.4",
"wait-on": "^6.0.1"
}
}
3 changes: 1 addition & 2 deletions examples/test-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@types/jest": "^29.2.5",
"@types/testing-library__jest-dom": "^5.14.5",
"jest": "^29.4.3",
"ts-node": "^10",
"typescript": "^4.9.4"
"ts-node": "^10"
}
}
1 change: 0 additions & 1 deletion examples/test-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@types/react-test-renderer": "^18.0.0",
"@vitejs/plugin-react": "3.0.1",
"react-test-renderer": "^18.2.0",
"typescript": "^4.9.4",
"vitest": "^0.16.0"
}
}
3 changes: 1 addition & 2 deletions examples/with-monaco-editor-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"typescript": "^4.9.4"
"@types/react-dom": "^18.0.10"
}
}
3 changes: 1 addition & 2 deletions examples/with-monaco-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"devDependencies": {
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"typescript": "^4.9.4"
"@types/react-dom": "^18.0.10"
}
}
3 changes: 1 addition & 2 deletions examples/with-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"typescript": "^4.9.4"
"@types/react-dom": "^18.0.10"
}
}
3 changes: 1 addition & 2 deletions examples/with-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"sass": "^1.57.1",
"typescript": "^4.9.4"
"sass": "^1.57.1"
}
}
3 changes: 1 addition & 2 deletions examples/with-stylus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"stylus": "^0.60.0",
"typescript": "^4.9.4"
"stylus": "^0.60.0"
}
}
3 changes: 1 addition & 2 deletions examples/with-zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"typescript": "^4.9.4"
"@types/react-dom": "^18.0.10"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
"@umijs/server": "workspace:*",
"@umijs/utils": "workspace:*",
"@vercel/ncc": "0.33.3",
"browserslist": "4.21.5",
"browserslist": "4.22.2",
"dts-packer": "^0.0.3",
"expect-playwright": "^0.8.0",
"father": "^4.1.5",
"father": "4.1.5",
"git-repo-info": "^2.1.1",
"husky": "^8.0.3",
"jest": "^29.4.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-preset-umi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"test": "umi-scripts jest-turbo"
},
"dependencies": {
"@babel/runtime": "7.23.2",
"@babel/runtime": "7.23.6",
"@bloomberg/record-tuple-polyfill": "0.0.4",
"@umijs/bundler-utils": "workspace:*",
"@umijs/utils": "workspace:*",
"core-js": "3.28.0"
"core-js": "3.34.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 0299512

Please sign in to comment.