Skip to content

Commit 4f7bdab

Browse files
committed
Merge branch 'develop' into openapi-diff
2 parents bf99297 + 2d101c8 commit 4f7bdab

31 files changed

+4211
-3302
lines changed

.eslintrc.json

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

.github/workflows/action-lint.yml

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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 22
24+
node-version: 24
2525
- name: Setup Environment
2626
run: cp .env.example .env.local
2727
- name: Install Dependencies

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
persist-credentials: false
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 24
2125
- name: Install modules
2226
run: npm install
2327
- name: Run ESLint

.github/workflows/run-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 22
24+
node-version: 24
2525
- name: Install Dependencies
2626
run: npm install
2727
- name: Run Unit Tests

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.13.1
1+
24

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.8.1-alpine AS base
1+
FROM node:24-alpine AS base
22

33
# Install dependencies only when needed
44
FROM base AS deps

__test__/auth/AuthjsAccountsOAuthTokenRepository.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test("It gets token for user ID and provider", async () => {
1414
async disconnect() {},
1515
}
1616
},
17-
async query(_query, values: any[] = []) {
17+
async query(_query, values: readonly unknown[] = []) {
1818
queryProvider = values[0]
1919
queryUserId = values[1]
2020
return {
@@ -44,7 +44,7 @@ test("It does not set token", async () => {
4444
async disconnect() {},
4545
}
4646
},
47-
async query(_query, _values: any[] = []) {
47+
async query(_query, _values: readonly unknown[] = []) {
4848
didSetToken = true
4949
return { rows: [] }
5050
}
@@ -67,7 +67,7 @@ test("It does not delete token", async () => {
6767
async disconnect() {},
6868
}
6969
},
70-
async query(_query, _values: any[] = []) {
70+
async query(_query, _values: readonly unknown[] = []) {
7171
didDeleteToken = true
7272
return { rows: [] }
7373
}

__test__/auth/OAuthTokenRepository.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ test("It reads the auth token for the specified user", async () => {
88
db: {
99
async connect() {
1010
return {
11-
async query(_query: string, _values: any[] = []) {
11+
async query(_query: string, _values: readonly unknown[] = []) {
1212
return { rows: [] }
1313
},
1414
async disconnect() {},
1515
}
1616
},
17-
async query(_query: string, values: any[] = []) {
17+
async query(_query: string, values: [string, string]) {
1818
readProvider = values[0]
1919
readUserId = values[1]
2020
return {
@@ -36,20 +36,20 @@ test("It reads the auth token for the specified user", async () => {
3636
test("It stores the auth token for the specified user", async () => {
3737
let storedProvider: string | undefined
3838
let storedUserId: string | undefined
39-
let storedAccessToken: any | undefined
40-
let storedRefreshToken: any | undefined
39+
let storedAccessToken: string | undefined
40+
let storedRefreshToken: string | undefined
4141
const sut = new OAuthTokenRepository({
4242
provider: "github",
4343
db: {
4444
async connect() {
4545
return {
46-
async query(_query: string, _values: any[] = []) {
46+
async query(_query: string, _values: readonly unknown[] = []) {
4747
return { rows: [] }
4848
},
4949
async disconnect() {},
5050
}
5151
},
52-
async query(_query: string, values: any[] = []) {
52+
async query(_query: string, values: [string, string, string, string]) {
5353
storedProvider = values[0]
5454
storedUserId = values[1]
5555
storedAccessToken = values[2]
@@ -76,13 +76,13 @@ test("It deletes the auth token for the specified user", async () => {
7676
db: {
7777
async connect() {
7878
return {
79-
async query(_query: string, _values: any[] = []) {
79+
async query(_query: string, _values: readonly unknown[] = []) {
8080
return { rows: [] }
8181
},
8282
async disconnect() {},
8383
}
8484
},
85-
async query(_query: string, values: any[] = []) {
85+
async query(_query: string, values: [string, string]) {
8686
deletedUserId = values[1]
8787
return { rows: [] }
8888
}

__test__/common/github/OAuthTokenRefreshingGitHubClient.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ test("It does not refresh an OAuth token when the initial request was successful
285285
},
286286
oauthTokenRefresher: {
287287
async refreshOAuthToken(_refreshToken) {
288+
didRefreshOAuthToken = true
288289
return {
289290
accessToken: "newAccessToken",
290291
refreshToken: "newRefreshToken"

0 commit comments

Comments
 (0)