Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Yooooomi committed Aug 25, 2024
1 parent 428b55e commit 144eb47
Show file tree
Hide file tree
Showing 9 changed files with 1,603 additions and 1,561 deletions.
31 changes: 15 additions & 16 deletions apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,30 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.0",
"@mui/icons-material": "5.15.12",
"@mui/material": "5.15.12",
"@mui/system": "5.15.12",
"@mui/x-date-pickers": "6.19.6",
"@reduxjs/toolkit": "2.2.1",
"axios": "1.6.7",
"clsx": "2.1.0",
"date-fns": "3.4.0",
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@mui/icons-material": "5.16.7",
"@mui/material": "5.16.7",
"@mui/system": "5.16.7",
"@mui/x-date-pickers": "7.14.0",
"@reduxjs/toolkit": "2.2.7",
"axios": "1.7.5",
"clsx": "2.1.1",
"date-fns": "3.6.0",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-infinite-scroll-component": "^6.1.0",
"react-redux": "9.1.0",
"react-router-dom": "6.22.3",
"recharts": "2.12.2",
"redux": "5.0.1",
"web-vitals": "3.5.2"
"react-redux": "9.1.2",
"react-router-dom": "6.26.1",
"recharts": "2.12.7",
"redux": "5.0.1"
},
"devDependencies": {
"@types/node": "20.11.26",
"@types/react-copy-to-clipboard": "5.0.7",
"@types/react-date-range": "1.4.9",
"@types/react-dom": "18.2.21",
"@types/react-dom": "18.3.0",
"@your_spotify/dev": "*",
"react-scripts": "^5.0.1"
},
Expand Down
6 changes: 0 additions & 6 deletions apps/client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createRoot } from "react-dom/client";
import { Provider } from "react-redux";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import store from "./services/redux";

const element = document.getElementById("root");
Expand All @@ -13,8 +12,3 @@ root.render(
<App />
</Provider>,
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
15 changes: 0 additions & 15 deletions apps/client/src/reportWebVitals.ts

This file was deleted.

16 changes: 8 additions & 8 deletions apps/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
"@typescript-eslint/eslint-plugin": "8.2.0",
"@typescript-eslint/parser": "8.2.0",
"@vercel/ncc": "^0.38.1",
"concurrently": "8.2.2",
"eslint": "8.57.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.0",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "3.2.5",
"prettier": "3.3.3",
"ts-node": "10.9.2",
"typescript": "5.4.2"
"typescript": "5.5.4"
}
}
14 changes: 7 additions & 7 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"axios": "1.6.7",
"axios": "1.7.5",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"express": "4.18.3",
"express": "4.19.2",
"jsonwebtoken": "9.0.2",
"migrate": "2.1.0",
"mongodb": "6.5.0",
"mongoose": "8.2.1",
"mongodb": "6.8.0",
"mongoose": "8.5.4",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"uuid": "9.0.1",
"uuid": "10.0.0",
"zod": "^3.22.4"
},
"devDependencies": {
Expand All @@ -31,9 +31,9 @@
"@types/cors": "2.8.17",
"@types/jsonwebtoken": "9.0.6",
"@types/morgan": "1.9.9",
"@types/multer": "1.4.11",
"@types/multer": "1.4.12",
"@types/node": "20.11.26",
"@types/uuid": "9.0.8",
"@types/uuid": "10.0.0",
"@your_spotify/dev": "*"
}
}
9 changes: 9 additions & 0 deletions apps/server/src/database/queries/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import mongoose from "mongoose";
import { MongoInfos } from "./meta.types";

export async function getMongoInfos(): Promise<MongoInfos> {
if (!mongoose.connection.db) {
throw new Error("Not connected to database, this should not happen");
}
const admin = mongoose.connection.db.admin();
const infos = await admin.buildInfo();
return infos as MongoInfos;
Expand All @@ -11,6 +14,9 @@ export async function getCompatibilityVersion(): Promise<{
featureCompatibilityVersion: { version: string };
ok: number;
}> {
if (!mongoose.connection.db) {
throw new Error("Not connected to database, this should not happen");
}
const admin = mongoose.connection.db.admin();
const compat = await admin.command({
getParameter: 1,
Expand All @@ -23,6 +29,9 @@ export async function getCompatibilityVersion(): Promise<{
}

export async function setFeatureCompatibilityVersion(version: string) {
if (!mongoose.connection.db) {
throw new Error("Not connected to database, this should not happen");
}
const admin = mongoose.connection.db.admin();
await admin.command({ setFeatureCompatibilityVersion: version });
}
1 change: 1 addition & 0 deletions apps/server/src/database/queries/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const getMostListenedArtist = async (
{
$project: {
...getGroupByDateProjection(user.settings.timezone),
durationMs: 1,
primaryArtistId: 1,
id: 1,
},
Expand Down
1 change: 0 additions & 1 deletion apps/server/src/spotify/looper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const loop = async (user: User) => {
RETRY,
30,
);
console.log("HEADERS", JSON.stringify(response.headers, null, " "));
const { data } = response;
items.push(...data.items);
nextUrl = data.next;
Expand Down
Loading

0 comments on commit 144eb47

Please sign in to comment.