Skip to content

Commit be128ca

Browse files
authored
Use shared Renovate preset and update pnpm to v10 (#561)
* Utilize shared Renovate preset * Specify minimum release age to comply with Renovate preset * Switch to pnpm v10 * Activate injectWorkspacePackages * Update pnpm-lock.yaml * Fix FromAs casing warnings * Add eslint as direct devDependency & run eslint * Regenerate pnpm-lock.yaml
1 parent 36bfbc8 commit be128ca

10 files changed

Lines changed: 2338 additions & 3313 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LABEL application="airnode-feed" description="Airnode feed container"
4646
FROM build AS deployed-airnode-feed
4747

4848
RUN pnpm --filter=@api3/airnode-feed --prod deploy deployed-airnode-feed
49-
FROM node:20-slim as airnode-feed
49+
FROM node:20-slim AS airnode-feed
5050
WORKDIR /app
5151

5252
# Update package lists and install wget
@@ -67,7 +67,7 @@ LABEL application="signed-api" description="Signed API container"
6767
FROM build AS deployed-signed-api
6868

6969
RUN pnpm --filter=@api3/signed-api --prod deploy deployed-signed-api
70-
FROM node:20-slim as signed-api
70+
FROM node:20-slim AS signed-api
7171
WORKDIR /app
7272

7373
# Update package lists and install wget

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "signed-api",
33
"version": "4.1.0",
44
"engines": {
5-
"node": ">=18.20.5"
5+
"node": ">=18.20.5",
6+
"pnpm": "^10.26.2"
67
},
78
"repository": {
89
"type": "git",
@@ -28,6 +29,7 @@
2829
"devDependencies": {
2930
"@api3/commons": "1.1.2",
3031
"@api3/eslint-plugin-commons": "^3.0.0",
32+
"eslint": "^8.57.1",
3133
"@types/jest": "^30.0.0",
3234
"@types/node": "^24.10.1",
3335
"husky": "^9.1.7",
@@ -39,5 +41,5 @@
3941
"ts-node": "^10.9.2",
4042
"typescript": "^5.9.3"
4143
},
42-
"packageManager": "pnpm@9.15.9"
44+
"packageManager": "pnpm@10.26.2"
4345
}

packages/airnode-feed/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"@api3/commons": "^1.1.2",
3737
"@api3/ois": "^3.0.0",
3838
"@api3/promise-utils": "^0.4.0",
39-
"axios": "^1.13.5",
40-
"dotenv": "^17.3.1",
39+
"axios": "^1.13.4",
40+
"dotenv": "^17.2.4",
4141
"ethers": "^5.8.0",
4242
"express": "^5.2.1",
4343
"lodash": "^4.17.23",

packages/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@api3/airnode-feed": "workspace:*",
2323
"@api3/promise-utils": "^0.4.0",
2424
"@api3/signed-api": "workspace:*",
25-
"axios": "^1.13.5",
25+
"axios": "^1.13.4",
2626
"ethers": "^5.8.0",
2727
"express": "^5.2.1",
2828
"lodash": "^4.17.23",

packages/signed-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@api3/airnode-feed": "workspace:*",
3939
"@api3/commons": "^1.1.2",
4040
"@api3/promise-utils": "^0.4.0",
41-
"@aws-sdk/client-s3": "^3.990.0",
42-
"dotenv": "^17.3.1",
41+
"@aws-sdk/client-s3": "^3.984.0",
42+
"dotenv": "^17.2.4",
4343
"ethers": "^5.8.0",
4444
"express": "^5.2.1",
4545
"lodash": "^4.17.23",

packages/signed-api/src/in-memory-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const put = (signedData: InternalSignedData) => {
9393
// efficient to use a priority queue, but the proper solution is not to store the data in memory.
9494
const signedDatas = cache.signedDataCache[airnode]![templateId]!;
9595
const index = signedDatas.findIndex((data) => Number.parseInt(data.timestamp, 10) > Number.parseInt(timestamp, 10));
96-
if (index < 0) signedDatas.push(signedData);
96+
if (index === -1) signedDatas.push(signedData);
9797
else signedDatas.splice(index, 0, signedData);
9898
};
9999

packages/signed-api/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export const startServer = (config: Config, port: number) => {
8383
const stack = err.stack ?? new Error('Unexpected non-error value encountered').stack;
8484
logger.error('An unexpected handler error occurred.', { err, stack });
8585

86-
res.status(err.status || 500).json({
86+
res.status(err.status ?? 500).json({
8787
error: {
88-
message: err.message || 'An unexpected handler error occurred.',
88+
message: err.message ?? 'An unexpected handler error occurred.',
8989
},
9090
});
9191
});

0 commit comments

Comments
 (0)