Skip to content

Commit c81f1de

Browse files
committed
feat: update all dependencies
1 parent 1b7b2cc commit c81f1de

40 files changed

Lines changed: 1797 additions & 972 deletions

package-lock.json

Lines changed: 1697 additions & 891 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,38 @@
1717
"license": "MIT",
1818
"dependencies": {
1919
"@codam/fast42": "^2.1.6",
20-
"@prisma/client": "^5.20.0",
21-
"@quixo3/prisma-session-store": "^3.1.13",
22-
"body-parser": "^1.20.4",
23-
"canvas": "^3.2.0",
24-
"dotenv": "^16.4.5",
25-
"express": "^4.22.1",
20+
"@prisma/adapter-pg": "^7.5.0",
21+
"@prisma/client": "^7.5.0",
22+
"@quixo3/prisma-session-store": "^3.1.19",
23+
"body-parser": "^2.2.2",
24+
"canvas": "^3.2.1",
25+
"dotenv": "^17.3.1",
26+
"express": "^5.2.1",
2627
"express-session": "^1.19.0",
2728
"helmet": "^8.1.0",
2829
"node-cache": "^5.1.2",
2930
"nunjucks": "^3.2.4",
3031
"passport": "^0.7.0",
31-
"passport-oauth2": "^1.8.0"
32+
"passport-oauth2": "^1.8.0",
33+
"pg": "^8.20.0"
3234
},
3335
"devDependencies": {
3436
"@semantic-release-plus/docker": "^3.1.3",
3537
"@semantic-release/changelog": "^6.0.3",
36-
"@semantic-release/commit-analyzer": "^13.0.0",
38+
"@semantic-release/commit-analyzer": "^13.0.1",
3739
"@semantic-release/git": "^10.0.1",
38-
"@semantic-release/github": "^10.0.6",
40+
"@semantic-release/github": "^12.0.6",
3941
"@semantic-release/npm": "^13.1.5",
40-
"@types/chart.js": "^2.9.41",
42+
"@types/chart.js": "^4.0.1",
4143
"@types/cookie-session": "^2.0.49",
42-
"@types/express": "^4.17.21",
43-
"@types/express-session": "^1.18.0",
44+
"@types/express": "^5.0.6",
45+
"@types/express-session": "^1.18.2",
4446
"@types/nunjucks": "^3.2.6",
45-
"@types/passport": "^1.0.16",
46-
"@types/passport-oauth2": "^1.4.17",
47-
"@types/uuid": "^10.0.0",
48-
"prisma": "^5.20.0",
47+
"@types/passport": "^1.0.17",
48+
"@types/passport-oauth2": "^1.8.0",
49+
"@types/uuid": "^11.0.0",
50+
"prisma": "^7.5.0",
4951
"semantic-release": "^25.0.3",
50-
"typescript": "^5.4.5"
52+
"typescript": "^5.9.3"
5153
}
5254
}

prisma.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import "dotenv/config";
2+
import type { PrismaConfig } from "prisma";
3+
import { env } from "prisma/config";
4+
5+
export default {
6+
schema: "prisma/schema.prisma",
7+
migrations: {
8+
path: "prisma/migrations",
9+
},
10+
datasource: {
11+
url: env("PRISMA_DB_URL"),
12+
},
13+
} satisfies PrismaConfig;

prisma/schema.prisma

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ generator client {
44

55
datasource db {
66
provider = "postgresql"
7-
url = env("PRISMA_DB_URL")
87
}
98

109
// ********************************************* //

src/dev/create_codam_titles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import readline from 'readline';
2-
import { PrismaClient } from '@prisma/client';
3-
const prisma = new PrismaClient();
2+
import { prisma } from '../handlers/db';
43

54
const main = async function(): Promise<void> {
65
console.warn('Are you from the Codam (42 Amsterdam) campus? If not, please do not run this script as it is Codam-specific and may break our system on Intra. Are you sure you want to continue? (yes/no)');

src/dev/create_quiz_questions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { PrismaClient } from '@prisma/client';
21
import { getCoalitionIds } from '../utils';
3-
const prisma = new PrismaClient();
2+
import { prisma } from '../handlers/db';
43

54
const deleteExistingQuizQuestions = async function(): Promise<void> {
65
await prisma.codamCoalitionTestAnswer.deleteMany({});

src/dev/create_rankings.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { PrismaClient } from '@prisma/client';
2-
const prisma = new PrismaClient();
1+
import { prisma } from '../handlers/db';
32

43
const deleteExistingRankings = async function(): Promise<void> {
54
await prisma.codamCoalitionRanking.deleteMany({});

src/dev/delete_all_results.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { PrismaClient } from '@prisma/client';
2-
const prisma = new PrismaClient();
1+
import { prisma } from '../handlers/db';
32
import readline from 'readline';
43

54
const main = async function(): Promise<void> {

src/dev/delete_all_scores.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { PrismaClient } from '@prisma/client';
2-
const prisma = new PrismaClient();
1+
import { prisma } from '../handlers/db';
32
import readline from 'readline';
43

54
const main = async function(): Promise<void> {

src/dev/delete_all_sessions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { PrismaClient } from '@prisma/client';
2-
const prisma = new PrismaClient();
1+
import { prisma } from '../handlers/db';
32
import readline from 'readline';
43

54
const main = async function(): Promise<void> {

0 commit comments

Comments
 (0)