From 9846b483ccce579b00eb80a1496e04b52ea4a259 Mon Sep 17 00:00:00 2001 From: Woonggi Min Date: Wed, 24 Jan 2024 11:40:40 +0900 Subject: [PATCH] Update dependencies in package.json and pnpm-lock.yaml --- package.json | 4 +-- pnpm-lock.yaml | 46 +++++++++++++++---------------- src/App.tsx | 4 +-- tsconfig.json | 2 +- vite.config.ts => vite.config.mts | 0 5 files changed, 28 insertions(+), 28 deletions(-) rename vite.config.ts => vite.config.mts (100%) diff --git a/package.json b/package.json index 9d1ec39..a908854 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "react-router-dom": "^6.20.0", "redux": "^4.2.1", "typescript": "^5.3.2", - "vite": "^5.0.4", + "vite": "^5.0.12", "vite-plugin-svgr": "^4.2.0", - "vite-tsconfig-paths": "^4.2.1" + "vite-tsconfig-paths": "^4.3.1" }, "scripts": { "dev": "vite", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 88098a2..9d51f15 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,14 +51,14 @@ dependencies: specifier: ^5.3.2 version: 5.3.2 vite: - specifier: ^5.0.4 - version: 5.0.4 + specifier: ^5.0.12 + version: 5.0.12 vite-plugin-svgr: specifier: ^4.2.0 - version: 4.2.0(typescript@5.3.2)(vite@5.0.4) + version: 4.2.0(typescript@5.3.2)(vite@5.0.12) vite-tsconfig-paths: - specifier: ^4.2.1 - version: 4.2.1(typescript@5.3.2)(vite@5.0.4) + specifier: ^4.3.1 + version: 4.3.1(typescript@5.3.2)(vite@5.0.12) devDependencies: '@typescript-eslint/eslint-plugin': @@ -69,7 +69,7 @@ devDependencies: version: 6.13.1(eslint@8.54.0)(typescript@5.3.2) '@vitejs/plugin-react-swc': specifier: ^3.5.0 - version: 3.5.0(vite@5.0.4) + version: 3.5.0(vite@5.0.12) eslint: specifier: ^8.54.0 version: 8.54.0 @@ -1282,13 +1282,13 @@ packages: server-only: 0.0.1 dev: false - /@vitejs/plugin-react-swc@3.5.0(vite@5.0.4): + /@vitejs/plugin-react-swc@3.5.0(vite@5.0.12): resolution: {integrity: sha512-1PrOvAaDpqlCV+Up8RkAh9qaiUjoDUcjtttyhXDKw53XA6Ve16SOp6cCOpRs8Dj8DqUQs6eTW5YkLcLJjrXAig==} peerDependencies: vite: ^4 || ^5 dependencies: '@swc/core': 1.3.100 - vite: 5.0.4 + vite: 5.0.12 transitivePeerDependencies: - '@swc/helpers' dev: true @@ -3079,8 +3079,8 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - /postcss@8.4.31: - resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} + /postcss@8.4.33: + resolution: {integrity: sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.7 @@ -3572,12 +3572,12 @@ packages: typescript: 5.3.2 dev: true - /tsconfck@2.1.2(typescript@5.3.2): - resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==} - engines: {node: ^14.13.1 || ^16 || >=18} + /tsconfck@3.0.1(typescript@5.3.2): + resolution: {integrity: sha512-7ppiBlF3UEddCLeI1JRx5m2Ryq+xk4JrZuq4EuYXykipebaq1dV0Fhgr1hb7CkmHt32QSgOZlcqVLEtHBG4/mg==} + engines: {node: ^18 || >=20} hasBin: true peerDependencies: - typescript: ^4.3.5 || ^5.0.0 + typescript: ^5.0.0 peerDependenciesMeta: typescript: optional: true @@ -3691,7 +3691,7 @@ packages: react: 18.2.0 dev: false - /vite-plugin-svgr@4.2.0(typescript@5.3.2)(vite@5.0.4): + /vite-plugin-svgr@4.2.0(typescript@5.3.2)(vite@5.0.12): resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==} peerDependencies: vite: ^2.6.0 || 3 || 4 || 5 @@ -3699,15 +3699,15 @@ packages: '@rollup/pluginutils': 5.1.0 '@svgr/core': 8.1.0(typescript@5.3.2) '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) - vite: 5.0.4 + vite: 5.0.12 transitivePeerDependencies: - rollup - supports-color - typescript dev: false - /vite-tsconfig-paths@4.2.1(typescript@5.3.2)(vite@5.0.4): - resolution: {integrity: sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==} + /vite-tsconfig-paths@4.3.1(typescript@5.3.2)(vite@5.0.12): + resolution: {integrity: sha512-cfgJwcGOsIxXOLU/nELPny2/LUD/lcf1IbfyeKTv2bsupVbTH/xpFtdQlBmIP1GEK2CjjLxYhFfB+QODFAx5aw==} peerDependencies: vite: '*' peerDependenciesMeta: @@ -3716,15 +3716,15 @@ packages: dependencies: debug: 4.3.4 globrex: 0.1.2 - tsconfck: 2.1.2(typescript@5.3.2) - vite: 5.0.4 + tsconfck: 3.0.1(typescript@5.3.2) + vite: 5.0.12 transitivePeerDependencies: - supports-color - typescript dev: false - /vite@5.0.4: - resolution: {integrity: sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==} + /vite@5.0.12: + resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -3752,7 +3752,7 @@ packages: optional: true dependencies: esbuild: 0.19.8 - postcss: 8.4.31 + postcss: 8.4.33 rollup: 4.6.1 optionalDependencies: fsevents: 2.3.3 diff --git a/src/App.tsx b/src/App.tsx index 267e035..f322fee 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import { Outlet, Route, Routes, useNavigate } from 'react-router-dom'; import { useState, useEffect } from 'react'; -import toast, { Toaster, useToasterStore } from "react-hot-toast"; +import toast, { Toaster, useToasterStore } from 'react-hot-toast'; import { Navbar } from './components'; import * as S from './styles/app'; import { Analytics } from '@vercel/analytics/react'; @@ -37,7 +37,7 @@ export default function App() { } const { toasts } = useToasterStore(); - useEffect(() => { + useEffect(() => { toasts .filter((t) => t.visible) // Only consider visible toasts .filter((_, i) => i >= TOAST_LIMIT) // Is toast index over limit diff --git a/tsconfig.json b/tsconfig.json index 1183a88..6296077 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,5 +18,5 @@ "jsx": "react-jsx", "types": ["vite/client"] }, - "include": ["src/**/*", "vite.config.ts"] + "include": ["src/**/*", "vite.config.mts"] } diff --git a/vite.config.ts b/vite.config.mts similarity index 100% rename from vite.config.ts rename to vite.config.mts