Skip to content

chore: RPLT-946 update to nodejs latest #11556

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
tagRegex: '(?<package>.*)_(?<version>.*)'

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Set Version
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rollback-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn install && git checkout -- .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
fetch-depth: 0

- name: Set Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '22.x'

- name: Install
run: yarn
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/app-marketplace-cms/cdk/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createStack = async () => {
undefined,
undefined,
undefined,
aws_lambda.Runtime.NODEJS_18_X,
aws_lambda.Runtime.NODEJS_20_X,
)
dynamodb.grantReadWriteData(httpLambda)

Expand All @@ -51,7 +51,7 @@ export const createStack = async () => {
undefined,
undefined,
512,
aws_lambda.Runtime.NODEJS_18_X,
aws_lambda.Runtime.NODEJS_20_X,
)

const authorizer = new aws_apigateway.RequestAuthorizer(stack, 'app-marketplace-authorizer', {
Expand Down
4 changes: 2 additions & 2 deletions packages/app-marketplace-cms/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))
export default defineConfig([
{
entry: {'app/http': 'src/http.ts'},
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down Expand Up @@ -46,7 +46,7 @@ export default defineConfig([
},
{
entry: {'authorizer/index': '../utils-authorizer/src/handler.ts'},
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))

export default defineConfig({
entry: ['src/index.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: true,
esbuildOptions: (opts) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cognito-custom-mail-lambda/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ custom:

provider:
name: aws
runtime: 'nodejs18.x'
runtime: 'nodejs22.x'
stage: ${opt:stage, 'dev'}
region: eu-west-2
deploymentBucket:
Expand Down
2 changes: 1 addition & 1 deletion packages/cognito-custom-mail-lambda/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))

export default defineConfig({
entry: ['src/app.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/deployment-service/cdk/lib/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const createStack = async () => {
undefined,
undefined,
512,
aws_lambda.Runtime.NODEJS_18_X,
aws_lambda.Runtime.NODEJS_20_X,
)

const authorizer = new cdk.aws_apigateway.RequestAuthorizer(stack, 'deployment-service-authorizer', {
Expand All @@ -250,7 +250,7 @@ export const createStack = async () => {
vpc,
duration: options.timeout,
ram: options.RAM,
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
})
options.policies.forEach((policy) => lambda.addToRolePolicy(policy))

Expand Down Expand Up @@ -283,7 +283,7 @@ export const createStack = async () => {
name: 'cloud-deployment-migration',
entrypoint: 'bundle/migration-run.zip',
handler: createFileLoc('migration-run', 'migrationRun'),
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
env,
vpc,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class DnsCertificateUpdate extends Construct {
)

const certificateUpdateLambda = new aws_lambda.Function(paasEuWest2Stack, `${id}-eventbridge-update-lambda`, {
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
handler: 'packages/deployment-service/dist/dns-eventbridge.handle',
vpc,
code: aws_lambda.Code.fromAsset('bundle/dns-eventbridge.zip'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ResolveProductionOACCustomResource extends Construct {
code: aws_lambda.Code.fromAsset('bundle/resolve-production-apply-OAC-to-all-distros.zip'),
memorySize: 512,
timeout: Duration.minutes(15),
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ResolveProductionS3BucketPermissionsCustomResource extends Construc
code: aws_lambda.Code.fromAsset('bundle/resolve-production-s3-bucket-permissions.zip'),
memorySize: 1024,
timeout: Duration.seconds(60),
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
environment: {
PAAS_ACCOUNT_ID: scope.account,
IAAS_ACCOUNT_ID: iaasAccountId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ResolveProductionS3BucketPoliciesCustomResource extends Construct {
code: aws_lambda.Code.fromAsset('bundle/resolve-production-s3-bucket-policies.zip'),
memorySize: 1024,
timeout: Duration.seconds(60),
runtime: aws_lambda.Runtime.NODEJS_18_X,
runtime: aws_lambda.Runtime.NODEJS_20_X,
environment: {
PAAS_ACCOUNT_ID: scope.account,
IAAS_ACCOUNT_ID: iaasAccountId,
Expand Down
6 changes: 3 additions & 3 deletions packages/deployment-service/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))
export default defineConfig([
{
entry: ['src/http.ts', 'src/sqs.ts', 'src/sns.ts', 'src/migration-run.ts', 'src/dns-eventbridge.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down Expand Up @@ -45,7 +45,7 @@ export default defineConfig([
entry: {
'authorizer/index': '../utils-authorizer/src/handler.ts',
},
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand All @@ -59,7 +59,7 @@ export default defineConfig([
'src/resolve-production-s3-bucket-policies.ts',
'src/resolve-production-apply-OAC-to-all-distros.ts',
],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-server/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pkgJson = JSON.parse(readFileSync('package.json', 'utf-8'))
export default defineConfig([
{
entry: {'authorizer/index': '../utils-authorizer/src/handler.ts'},
target: 'node18',
target: 'node22',
clean: true,
minify: true,
esbuildOptions: (opts) => {
Expand All @@ -16,7 +16,7 @@ export default defineConfig([
},
{
entry: {'graphql-server/index': 'src/index.ts'},
target: 'node18',
target: 'node22',
clean: true,
// minify: true,
noExternal: Object.keys(pkgJson.dependencies),
Expand Down
4 changes: 2 additions & 2 deletions packages/payments-service/cdk/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const createStack = async () => {
undefined,
undefined,
undefined,
aws_lambda.Runtime.NODEJS_18_X,
aws_lambda.Runtime.NODEJS_20_X,
)

const lambdaAuthorizer = createFunction(
Expand All @@ -65,7 +65,7 @@ export const createStack = async () => {
undefined,
undefined,
undefined,
aws_lambda.Runtime.NODEJS_18_X,
aws_lambda.Runtime.NODEJS_20_X,
)

const authorizer = new apigateway.RequestAuthorizer(stack, 'payments-service-authorizer', {
Expand Down
4 changes: 2 additions & 2 deletions packages/payments-service/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))
export default defineConfig([
{
entry: ['src/core/server.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand All @@ -26,7 +26,7 @@ export default defineConfig([
},
{
entry: ['src/core/authorizer.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/security-header-lambda/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ custom:

provider:
name: aws
runtime: ${opt:runtime, 'nodejs18.x' }
runtime: ${opt:runtime, 'nodejs22.x' }
stage: ${opt:stage, 'dev'}
region: 'us-east-1'
lambdaHashingVersion: '20201221'
Expand Down
2 changes: 1 addition & 1 deletion packages/security-header-lambda/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'))

export default defineConfig({
entry: ['src/index.ts'],
target: 'node18',
target: 'node22',
clean: true,
minify: config.NODE_ENV === 'production',
esbuildOptions: (opts) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"@wyw-in-js/vite": "^0.5.5",
"ajv": "^8.17.1",
"autoprefixer": "^10.4.20",
"aws-cdk": "^2.162.1",
"aws-cdk-lib": "^2.162.0",
"aws-cdk": "^2.1007.0",
"aws-cdk-lib": "^2.189.0",
"aws-jwt-verify": "^4.0.1",
"aws-sdk": "^2.1691.0",
"babel-jest": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-scripts/src/cdk/components/lambda-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const createFunction = (
vpc?: ec2.Vpc,
duration?: number,
ram?: number,
runtime?: lambda.Runtime,
runtime?: lambda.Runtime, // @deprecated now uses lambda.Runtime.NODEJS_LATEST
): lambda.Function => {
return new lambda.Function(scope, functionName, {
timeout: cdk.Duration.seconds(duration || 30),
Expand All @@ -31,7 +31,7 @@ export const createFunction = (
handler,
vpc,
code: typeof entry === 'string' ? lambda.Code.fromAsset(entry) : entry,
runtime: runtime || lambda.Runtime.NODEJS_18_X,
runtime: lambda.Runtime.NODEJS_LATEST,
logRetention: logs.RetentionDays.ONE_MONTH,
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/use-reapit-data/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
target: 'node18',
target: 'node22',
clean: true,
minify: true,
dts: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils-common/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
target: 'node18',
target: 'node22',
clean: true,
minify: true,
dts: true,
Expand Down
Loading