Skip to content
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ npm run test:watch
### Runtime Dependencies

- **[@aws-sdk/client-dynamodb](https://www.npmjs.com/package/@aws-sdk/client-dynamodb)** - AWS SDK v3 DynamoDB client
- **[@aws-sdk/client-sns](https://www.npmjs.com/package/@aws-sdk/client-sns)** - AWS SDK v3 SNS client
- **[@aws-sdk/lib-dynamodb](https://www.npmjs.com/package/@aws-sdk/lib-dynamodb)** - DynamoDB document client utilities
- **[zod](https://www.npmjs.com/package/zod)** - TypeScript-first schema validation
- **[pino](https://getpino.io/)** - Low overhead, fast logger for JavaScript
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AWS CDK infrastructure for this project.
## Technology Stack

- **AWS CDK:** v2
- **Language:** TypeScript 5.9+
- **Node.js:** v24+
- **Language:** TypeScript
- **Node.js:** v24+ (see .nvmrc)
- **Package Manager:** npm
- **Testing:** Jest
- **Validation:** Zod
Expand Down Expand Up @@ -43,7 +43,7 @@ Before you begin, ensure you have the following installed and configured:

```bash
# Install NVM (if not already installed)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

# Install and use the Node.js version specified in .nvmrc
nvm install
Expand Down
1 change: 1 addition & 0 deletions infrastructure/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config: Config = {
'!**/*.spec.ts',
'!**/node_modules/**',
'!**/cdk.out/**',
'!**/dist/**',
'!jest.config.ts',
'!jest.setup.ts',
],
Expand Down
267 changes: 133 additions & 134 deletions infrastructure/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
},
"devDependencies": {
"@types/jest": "30.0.0",
"@types/node": "24.10.1",
"aws-cdk": "2.1033.0",
"esbuild": "0.27.0",
"@types/node": "25.0.2",
"aws-cdk": "2.1100.0",
"esbuild": "0.27.1",
"jest": "30.2.0",
"rimraf": "6.1.2",
"ts-jest": "29.4.6",
"ts-node": "10.9.2",
"typescript": "5.9.3"
},
"dependencies": {
"aws-cdk-lib": "2.231.0",
"constructs": "10.4.3",
"aws-cdk-lib": "2.232.2",
"constructs": "10.4.4",
"dotenv": "17.2.3",
"source-map-support": "0.5.21",
"zod": "4.1.13"
"zod": "4.2.1"
}
}
898 changes: 481 additions & 417 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,27 @@
"devDependencies": {
"@types/aws-lambda": "8.10.159",
"@types/jest": "30.0.0",
"@types/node": "24.10.1",
"@typescript-eslint/eslint-plugin": "8.48.1",
"@typescript-eslint/parser": "8.48.1",
"eslint": "9.39.1",
"@types/node": "25.0.2",
"@typescript-eslint/eslint-plugin": "8.50.0",
"@typescript-eslint/parser": "8.50.0",
"eslint": "9.39.2",
"eslint-config-prettier": "10.1.8",
"globals": "16.5.0",
"husky": "9.1.7",
"jest": "30.2.0",
"prettier": "3.7.3",
"prettier": "3.7.4",
"rimraf": "6.1.2",
"ts-jest": "29.4.6",
"ts-node": "10.9.2",
"typescript": "5.9.3",
"typescript-eslint": "8.48.1"
"typescript-eslint": "8.50.0"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "3.940.0",
"@aws-sdk/lib-dynamodb": "3.940.0",
"@aws-sdk/client-dynamodb": "3.952.0",
"@aws-sdk/client-sns": "3.952.0",
"@aws-sdk/lib-dynamodb": "3.952.0",
"pino": "10.1.0",
"pino-lambda": "4.4.1",
"zod": "4.1.13"
"zod": "4.2.1"
}
}
14 changes: 5 additions & 9 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import pino from 'pino';
import { pinoLambdaDestination } from 'pino-lambda';
import { pinoLambdaDestination, StructuredLogFormatter } from 'pino-lambda';

import { config } from './config';

/**
* Initialize Pino logger with Lambda destination
* Initialize Pino Lambda destination
* @see https://www.npmjs.com/package/pino-lambda#best-practices
*/
const _lambdaDestination = pinoLambdaDestination();
const _lambdaDestination = pinoLambdaDestination({
formatter: new StructuredLogFormatter(),
});

/**
* Pino logger instance
*/
const _logger = pino(
{
level: config.LOGGING_LEVEL,
formatters: {
level: (label) => {
return { level: label };
},
},
timestamp: pino.stdTimeFunctions.isoTime,
},
_lambdaDestination,
);
Expand Down
Loading