Skip to content

Commit 1db5ba6

Browse files
Upgrade all deps, Koyeb sponsoring (#9)
* remove GraphQL completely * remove all unessary deps * updating all deps, some deps deprecated + vulnerable, but everything compiles and works * koyeb sponsoring
1 parent 8933924 commit 1db5ba6

File tree

13 files changed

+2966
-10374
lines changed

13 files changed

+2966
-10374
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Build and deploy API
22

33
on:
4-
# Trigger the workflow on push or pull request,
5-
# but only for the main branch
64
push:
75
branches: [ main ]
8-
pull_request:
9-
branches: [ main ]
106

117
jobs:
128
build-and-deploy:
@@ -16,11 +12,10 @@ jobs:
1612
- uses: actions/checkout@v3
1713
- uses: actions/setup-node@v3
1814
with:
19-
node-version: 18
20-
cache: 'npm' # caching global packages data
15+
node-version: 22
2116

22-
- run: npm ci --legacy-peer-deps
23-
- run: npm run grunt
17+
- run: npm ci
18+
- run: npm run build
2419

2520
- name: Deploy API to book-monkey5/api5-build (main branch)
2621
if: ${{ github.event_name == 'push' }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018-2020 Johannes Hoppe, Ferdinand Malcher, Danny Koppenhagen
3+
Copyright (c) 2018-2024 Johannes Hoppe, Ferdinand Malcher, Danny Koppenhagen
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

package-lock.json

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

package.json

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,33 @@
99
},
1010
"scripts": {
1111
"prestart": "grunt",
12-
"grunt": "grunt",
12+
"build": "grunt",
1313
"start": "node ./dist/start.js",
1414
"start:dev": "grunt && concurrently \"grunt watch\" \"nodemon\""
1515
},
1616
"dependencies": {
17-
"body-parser": "^1.19.0",
18-
"cookie-parser": "^1.4.5",
17+
"body-parser": "^1.20.2",
1918
"cors": "^2.8.5",
20-
"date-fns": "^2.23.0",
2119
"errorhandler": "^1.5.1",
22-
"express": "^4.17.1",
23-
"express-graphql": "^0.9.0",
24-
"graphql": "^15.0.0",
25-
"graphql-tools": "^5.0.0",
26-
"lodash": "^4.17.15",
27-
"method-override": "^3.0.0",
20+
"express": "^4.19.2",
21+
"lodash": "^4.17.21",
2822
"morgan": "^1.10.0",
29-
"pug": "^2.0.4",
30-
"swagger-ui-express": "4.1.4",
31-
"web-push": "^3.4.3"
23+
"pug": "^3.0.3",
24+
"swagger-ui-express": "5.0.1",
25+
"web-push": "^3.6.7"
3226
},
3327
"devDependencies": {
34-
"@types/body-parser": "1.19.0",
35-
"@types/cookie-parser": "^1.4.2",
36-
"@types/errorhandler": "1.5.0",
37-
"@types/lodash": "^4.14.149",
38-
"@types/method-override": "0.0.31",
39-
"@types/morgan": "^1.9.0",
40-
"@types/web-push": "^3.3.0",
41-
"concurrently": "^5.1.0",
42-
"grunt": "^1.1.0",
28+
"@types/body-parser": "1.19.5",
29+
"@types/errorhandler": "1.5.3",
30+
"@types/lodash": "^4.17.5",
31+
"@types/morgan": "^1.9.9",
32+
"@types/web-push": "^3.6.3",
33+
"concurrently": "^8.2.2",
34+
"grunt": "^1.6.1",
4335
"grunt-contrib-copy": "^1.0.0",
4436
"grunt-contrib-watch": "^1.1.0",
4537
"grunt-ts": "^6.0.0-beta.22",
46-
"nodemon": "^2.0.3",
47-
"typescript": "^3.8.3"
38+
"nodemon": "^3.1.3",
39+
"typescript": "^5.4.5"
4840
}
4941
}

package.prod.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,17 @@
66
"start": "node start.js"
77
},
88
"engines": {
9-
"node": "18.x"
9+
"node": "22.x"
1010
},
1111
"dependencies": {
12-
"body-parser": "^1.19.0",
13-
"cookie-parser": "^1.4.5",
12+
"body-parser": "^1.20.2",
1413
"cors": "^2.8.5",
15-
"date-fns": "^2.23.0",
1614
"errorhandler": "^1.5.1",
17-
"express": "^4.17.1",
18-
"express-graphql": "^0.9.0",
19-
"graphql": "^15.0.0",
20-
"graphql-tools": "^5.0.0",
21-
"lodash": "^4.17.15",
22-
"method-override": "^3.0.0",
15+
"express": "^4.19.2",
16+
"lodash": "^4.17.21",
2317
"morgan": "^1.10.0",
24-
"pug": "^2.0.4",
25-
"swagger-ui-express": "4.1.4",
26-
"web-push": "^3.4.3"
18+
"pug": "^3.0.3",
19+
"swagger-ui-express": "5.0.1",
20+
"web-push": "^3.6.7"
2721
}
2822
}

public/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ button#reset:hover {
2929
visibility: hidden;
3030
}
3131

32+
p.sponsor {
33+
margin-top: 2rem !important;
34+
padding: 1rem;
35+
font-style: italic;
36+
background-color: #ededed;
37+
}
38+
39+
.heart {
40+
float: right;
41+
width: 80px;
42+
}
43+
44+
3245

3346
/* https://github.com/sindresorhus/github-markdown-css */
3447

src/graphql/resolvers.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/graphql/routes.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/graphql/schema.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/graphql/types.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)