powertools-lambda-typescript
powertools-lambda-typescript copied to clipboard
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
### Summary As of now the project uses a combination of `eslint` and `prettier` to lint and format code. This works well enough, however there are newer alternatives like [biome](https://biomejs.dev)...
### Is this related to an existing feature request or issue? _No response_ ### Which AWS Lambda Powertools utility does this relate to? Other ### Summary # Parser Utility for...
### Summary There are many different validation libraries available and we decided to use zod because of the combination of popularity, adoption, open source health and security. This is ideal...
## Description of your changes This PR adds type exports for the built in schemas. I have slightly changed the names by adding `Event` suffix. This is similar to the...
## Description of your changes This PR adds documentation section for the parser utility. The main structure is aligned with the current python documentation, except "Advanced use cases", since we...
### Use case I want the incoming log event to be automatically logged for me when `POWERTOOLS_LOGGER_LOG_EVENT` is set to true and I'm not using middy or a handler class....
### Use case Especially for small lambdas, adding `middy` as a dependency might not be worth it. Also, `middy` doesn't provide good type checking for middlewares. But manual instrumentation is...
### Use case When using zod schema we can extract type from the schema: ```typescript import { z } from 'zod'; const orderSchema = z.object({ id: z.number().positive(), description: z.string(), items:...
### What were you searching in the docs? The documentation should include a section dedicated to the upcoming parser utility. ### Is this related to an existing documentation section? _No...
### Use case When parsing custom schema in the envelope we currently propagate any error from zod back to the user. When there is an error, the mental process is...