Skip to content

fix(lambdas): upgrade major version dependencies #4549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ updates:
patterns:
- "@nx/*"
- "nx/*"
eslint:
patterns:
- "eslint*"
- "@typescript-eslint-*"
vite:
patterns:
- "vite*"
- "@vite/*"

ignore:
- dependency-name: "@middy/core"
update-types: ["version-update:semver-major"]
- dependency-name: "eslint"
update-types: ["version-update:semver-major"]
commit-message:
prefix: "fix(lambda)"
prefix-development: "chore(lambda)"
23 changes: 0 additions & 23 deletions lambdas/.eslintrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion lambdas/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"<THIRD_PARTY_MODULES>",
"^[./]"
]
}
}
42 changes: 42 additions & 0 deletions lambdas/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// @ts-check

// Import required modules using CommonJS require syntax
const { FlatCompat } = require('@eslint/eslintrc');
const js = require('@eslint/js');
const path = require('path');

// Setup FlatCompat for backward compatibility with .eslintrc.* format
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});

// Create the ESLint 9.x flat config
module.exports = [
js.configs.recommended,
...compat.extends(
'plugin:@typescript-eslint/recommended'
),
{
// Global linting settings
languageOptions: {
parser: require('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
},
plugins: {
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
'prettier': require('eslint-plugin-prettier'),
},
rules: {
'prettier/prettier': 'error',
},
},
{
// Files to ignore
ignores: ['**/node_modules/**', '**/dist/**', '**/.nx/**', '**/coverage/**'],
},
];

2 changes: 1 addition & 1 deletion lambdas/functions/control-plane/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@aws-lambda-powertools/parameters": "^2.18.0",
"@aws-sdk/client-ec2": "^3.787.0",
"@aws-sdk/client-sqs": "^3.787.0",
"@middy/core": "^4.7.0",
"@middy/core": "^6.1.6",
"@octokit/auth-app": "7.2.1",
"@octokit/core": "6.1.5",
"@octokit/plugin-throttling": "10.0.0",
Expand Down
4 changes: 2 additions & 2 deletions lambdas/functions/gh-agent-syncer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@aws-github-runner/aws-powertools-util": "*",
"@aws-sdk/client-s3": "^3.787.0",
"@aws-sdk/lib-storage": "^3.787.0",
"@middy/core": "^4.7.0",
"@middy/core": "^6.1.6",
"@octokit/rest": "21.1.1",
"axios": "^1.8.3"
"axios": "^1.8.4"
},
"nx": {
"includedScripts": [
Expand Down
2 changes: 1 addition & 1 deletion lambdas/functions/termination-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@aws-github-runner/aws-powertools-util": "*",
"@aws-sdk/client-ec2": "^3.787.0",
"@middy/core": "^4.7.0"
"@middy/core": "^6.1.6"
},
"nx": {
"includedScripts": [
Expand Down
6 changes: 3 additions & 3 deletions lambdas/functions/webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"@types/express": "^5.0.0",
"@types/node": "^22.14.0",
"@vercel/ncc": "0.38.3",
"body-parser": "^1.20.3",
"express": "^4.21.2",
"body-parser": "^2.2.0",
"express": "^5.1.0",
"ts-node-dev": "^2.0.0"
},
"dependencies": {
"@aws-github-runner/aws-powertools-util": "*",
"@aws-github-runner/aws-ssm-util": "*",
"@aws-sdk/client-sqs": "^3.787.0",
"@middy/core": "^4.7.0",
"@middy/core": "^6.1.6",
"@octokit/rest": "21.1.1",
"@octokit/types": "^14.0.0",
"@octokit/webhooks": "^13.8.0",
Expand Down
2 changes: 1 addition & 1 deletion lambdas/libs/aws-powertools-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/aws-lambda": "^8.10.147",
"@types/node": "^22.14.0",
"body-parser": "^1.20.3"
"body-parser": "^2.2.0"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.18.0",
Expand Down
3 changes: 2 additions & 1 deletion lambdas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@octokit/types": "^13.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@nx/eslint": "20.7.1",
"@nx/js": "^20.7.1",
"@nx/vite": "^20.7.1",
Expand All @@ -32,7 +33,7 @@
"@typescript-eslint/parser": "^8.26.1",
"@vitest/coverage-v8": "^3.0.8",
"chalk": "^5.4.1",
"eslint": "^8.57.1",
"eslint": "^9.25.0",
"eslint-plugin-prettier": "5.2.5",
"nx": "20.6.4",
"prettier": "^3.5.3",
Expand Down
Loading