Skip to content

Commit

Permalink
chore: bump deps (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored May 20, 2024
1 parent 814ed80 commit 9ebfe68
Show file tree
Hide file tree
Showing 15 changed files with 954 additions and 789 deletions.
34 changes: 17 additions & 17 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = defineConfig({
root: true,
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:n/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:regexp/recommended',
],
Expand All @@ -23,7 +23,6 @@ module.exports = defineConfig({
eqeqeq: ['warn', 'always', { null: 'never' }],
'no-debugger': ['error'],
'no-empty': ['warn', { allowEmptyCatch: true }],
'no-process-exit': 'off',
'no-useless-escape': 'off',
'prefer-const': [
'warn',
Expand All @@ -32,37 +31,38 @@ module.exports = defineConfig({
},
],

'node/no-missing-import': [
'n/no-process-exit': 'off',
'n/no-missing-import': [
'error',
{
allowModules: ['types', 'estree', 'less', 'sass', 'stylus'],
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts'],
},
],
'node/no-missing-require': [
'n/no-missing-require': [
'error',
{
// for try-catching yarn pnp
allowModules: ['pnpapi', 'vite'],
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts'],
},
],
'node/no-extraneous-import': [
'n/no-extraneous-import': [
'error',
{
allowModules: ['vite', 'less', 'sass', 'vitest'],
},
],
'node/no-extraneous-require': [
'n/no-extraneous-require': [
'error',
{
allowModules: ['vite'],
},
],
'node/no-deprecated-api': 'off',
'node/no-unpublished-import': 'off',
'node/no-unpublished-require': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'n/no-deprecated-api': 'off',
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
'n/no-unsupported-features/es-syntax': 'off',

'@typescript-eslint/ban-ts-comment': 'off', // TODO: we should turn this on in a new PR
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR
Expand Down Expand Up @@ -122,25 +122,25 @@ module.exports = defineConfig({
files: ['**/build.config.ts'],
rules: {
'no-undef': 'off',
'node/no-missing-import': 'off',
'n/no-missing-import': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
{
files: ['playground/**'],
rules: {
'node/no-extraneous-import': 'off',
'node/no-extraneous-require': 'off',
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
'n/no-extraneous-import': 'off',
'n/no-extraneous-require': 'off',
'n/no-missing-import': 'off',
'n/no-missing-require': 'off',
// engine field doesn't exist in playgrounds
'node/no-unsupported-features/es-builtins': [
'n/no-unsupported-features/es-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0',
},
],
'node/no-unsupported-features/node-builtins': [
'n/no-unsupported-features/node-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0',
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4.0.0

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v4
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4.0.0

- name: Set node version to 18
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4.0.0

- name: Set node version to 16.x
uses: actions/setup-node@v4
Expand Down
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,29 @@
"ci-publish": "tsx scripts/publishCI.ts"
},
"devDependencies": {
"@eslint-types/typescript-eslint": "^6.12.0",
"@eslint-types/import": "^2.29.0-1",
"@eslint-types/typescript-eslint": "^7.5.0",
"@eslint-types/import": "^2.29.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.10.3",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@vitejs/release-scripts": "^1.3.1",
"eslint": "^8.55.0",
"eslint-define-config": "^2.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-regexp": "^2.1.2",
"eslint": "^8.57.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-regexp": "^2.5.0",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"picocolors": "^1.0.0",
"playwright-chromium": "^1.40.1",
"picocolors": "^1.0.1",
"playwright-chromium": "^1.44.0",
"prettier": "^3.0.3",
"simple-git-hooks": "^2.9.0",
"tsx": "^4.6.2",
"typescript": "^5.3.2",
"unbuild": "^2.0.0",
"vite": "^5.0.5",
"vitest": "^1.0.4"
"simple-git-hooks": "^2.11.1",
"tsx": "^4.10.5",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false"
Expand Down
11 changes: 7 additions & 4 deletions packages/plugin-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@
},
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme",
"dependencies": {
"@babel/core": "^7.23.5",
"@babel/plugin-transform-react-jsx-self": "^7.23.3",
"@babel/plugin-transform-react-jsx-source": "^7.23.3",
"@babel/core": "^7.24.5",
"@babel/plugin-transform-react-jsx-self": "^7.24.5",
"@babel/plugin-transform-react-jsx-source": "^7.24.1",
"@types/babel__core": "^7.20.5",
"react-refresh": "^0.14.0"
"react-refresh": "^0.14.2"
},
"peerDependencies": {
"vite": "^4.2.0 || ^5.0.0"
},
"devDependencies": {
"unbuild": "^2.0.0"
}
}
10 changes: 5 additions & 5 deletions playground/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@mdx-js/rollup": "^3.0.0",
"@types/react": "^18.2.41",
"@types/react-dom": "^18.2.17",
"@mdx-js/rollup": "^3.0.1",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vitejs/vite-plugin-react-playground",
"private": true,
"version": "1.0.0",
"type": "module",
"devDependencies": {
"kill-port": "^1.6.1",
"node-fetch": "^3.3.2"
Expand Down
6 changes: 3 additions & 3 deletions playground/react-classic/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@vitejs/test-react-classic",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"debug": "node --inspect-brk vite",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "workspace:*"
Expand Down
12 changes: 6 additions & 6 deletions playground/react-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "@vitejs/test-react-emotion",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"debug": "node --inspect-brk vite",
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-switch": "^7.0.0"
},
"devDependencies": {
"@babel/plugin-proposal-pipeline-operator": "^7.23.3",
"@babel/plugin-proposal-pipeline-operator": "^7.24.1",
"@emotion/babel-plugin": "^11.11.0",
"@vitejs/plugin-react": "workspace:*"
},
Expand Down
6 changes: 3 additions & 3 deletions playground/react-env/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@vitejs/test-react-env",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"debug": "node --inspect-brk vite",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "workspace:*"
Expand Down
6 changes: 3 additions & 3 deletions playground/react-sourcemap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vitejs/test-react-sourcemap",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev:classic": "USE_CLASSIC=1 vite",
Expand All @@ -11,8 +11,8 @@
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion playground/react/jsx-entry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsx-entry",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "Button.jsx"
}
6 changes: 3 additions & 3 deletions playground/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vitejs/test-react",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand All @@ -10,8 +10,8 @@
},
"dependencies": {
"jsx-entry": "file:./jsx-entry",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "workspace:*"
Expand Down
7 changes: 3 additions & 4 deletions playground/ssr-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@vitejs/test-ssr-react",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "node server",
Expand All @@ -13,9 +12,9 @@
"debug": "node --inspect-brk server"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.1"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
"@vitejs/plugin-react": "workspace:*",
Expand Down
Loading

0 comments on commit 9ebfe68

Please sign in to comment.