Skip to content

Commit ebf75c6

Browse files
committed
Merge branch 'main' into feat/parser
2 parents e94d6c8 + ea94200 commit ebf75c6

File tree

103 files changed

+13812
-13909
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+13812
-13909
lines changed

.github/scripts/release_patch_package_json.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ if (process.argv.length < 3) {
1818
const basePath = resolve(process.argv[2]);
1919
const packageJsonPath = join(basePath, 'package.json');
2020
const alphaPackages = [];
21-
const betaPackages = [
22-
'@aws-lambda-powertools/idempotency',
23-
'@aws-lambda-powertools/batch',
24-
];
21+
const betaPackages = [];
2522

2623
(() => {
2724
try {
@@ -39,6 +36,8 @@ const betaPackages = [
3936
bugs,
4037
keywords,
4138
dependencies,
39+
peerDependencies,
40+
peerDependenciesMeta,
4241
exports,
4342
typesVersions,
4443
main,
@@ -67,6 +66,8 @@ const betaPackages = [
6766
bugs,
6867
keywords,
6968
dependencies,
69+
peerDependencies,
70+
peerDependenciesMeta,
7071
main,
7172
types,
7273
files,

.github/workflows/reusable-publish-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ jobs:
9494
- name: Copy API Docs
9595
run: |
9696
cp -r api site/
97+
- name: Create Artifact (Site)
98+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
99+
with:
100+
name: site
101+
path: site
97102
- name: Deploy Docs (Version)
98103
env:
99104
VERSION: ${{ inputs.version }}
@@ -121,7 +126,7 @@ jobs:
121126
# 1. Download the versions.json file from S3
122127
# 2. Find any reference to the alias and delete it from the versions file
123128
# 3. This is voodoo (don't use JQ):
124-
# - we assign the input as $o and the new version/alias as $n,
129+
# - we assign the input as $o and the new version/alias as $n,
125130
# - we check if the version number exists in the file already (for republishing docs)
126131
# - if it's an alias (stage/latest/*) or old version, we do nothing and output $o (original input)
127132
# - if it's a new version number, we add it at position 0 in the array.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [1.13.0](https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.12.1...v1.13.0) (2023-09-18)
7+
8+
### Bug Fixes
9+
10+
- **batch:** Update processor to pass only context to handler ([#1637](https://github.com/aws-powertools/powertools-lambda-typescript/issues/1637)) ([6fa09b2](https://github.com/aws-powertools/powertools-lambda-typescript/commit/6fa09b2638bf247fd595db51ac3d1aa1252d3379))
11+
- **docs:** update versions.json jq query ([4e6f662](https://github.com/aws-powertools/powertools-lambda-typescript/commit/4e6f662b244a941a911c1ed5973bef11d7610093))
12+
- **parameters:** return type when options without transform is used ([#1671](https://github.com/aws-powertools/powertools-lambda-typescript/issues/1671)) ([b2fe341](https://github.com/aws-powertools/powertools-lambda-typescript/commit/b2fe34150a0d896f1755ca30cbe89175cdb66ff2))
13+
14+
### Features
15+
16+
- **batch:** rename AsyncBatchProcessor to default BatchProcessor ([#1683](https://github.com/aws-powertools/powertools-lambda-typescript/issues/1683)) ([e253755](https://github.com/aws-powertools/powertools-lambda-typescript/commit/e253755d09f50a75cde805168845f52d8b85af28))
17+
618
## [1.12.1](https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.12.0...v1.12.1) (2023-07-25)
719

820
**Note:** Version bump only for package aws-lambda-powertools-typescript

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ You can use the library in both TypeScript and JavaScript code bases.
3535
* **[Logger](https://docs.powertools.aws.dev/lambda-typescript/latest/core/logger/)** - Structured logging made easier, and a middleware to enrich log items with key details of the Lambda context
3636
* **[Metrics](https://docs.powertools.aws.dev/lambda-typescript/latest/core/metrics/)** - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
3737
* **[Parameters](https://docs.powertools.aws.dev/lambda-typescript/latest/utilities/parameters/)** - High-level functions to retrieve one or more parameters from AWS SSM Parameter Store, AWS Secrets Manager, AWS AppConfig, and Amazon DynamoDB
38-
* **[Idempotency (beta)](https://docs.powertools.aws.dev/lambda-typescript/latest/utilities/idempotency/)** - Class method decorator, Middy middleware, and function wrapper to make your Lambda functions idempotent and prevent duplicate execution based on payload content
39-
* **[Batch Processing (beta)](https://docs.powertools.aws.dev/lambda-typescript/latest/utilities/batch/)** - Utility to handle partial failures when processing batches from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams.
38+
* **[Idempotency](https://docs.powertools.aws.dev/lambda-typescript/latest/utilities/idempotency/)** - Class method decorator, Middy middleware, and function wrapper to make your Lambda functions idempotent and prevent duplicate execution based on payload content
39+
* **[Batch Processing](https://docs.powertools.aws.dev/lambda-typescript/latest/utilities/batch/)** - Utility to handle partial failures when processing batches from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams.
4040

4141
## Getting started
4242

docs/core/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ This functionality will include the following keys in your structured logs:
119119
=== "Decorator"
120120

121121
!!! info
122-
Decorators can only be attached to a class declaration, method, accessor, property, or parameter. Therefore, if you prefer to write your handler as a standard function rather than a Class method, use the middleware or the manual instrumentation instead. See the [official TypeScript documentation](https://www.typescriptlang.org/docs/handbook/decorators.html) for more details.
122+
Powertools decorators can only be attached to class methods and follow the experimetal decorators proposal implementation found in TypeScript 4.x. As such, you need to enable the `experimentalDecorators` compiler option in your `tsconfig.json` file to use them.
123123

124124
```typescript hl_lines="8"
125125
--8<-- "docs/snippets/logger/decorator.ts"

docs/core/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ You can add default dimensions to your metrics by passing them as parameters in
212212
=== "with logMetrics decorator"
213213

214214
!!! info
215-
Decorators can only be attached to a class declaration, method, accessor, property, or parameter. Therefore, if you prefer to write your handler as a standard function rather than a Class method, use the middleware or the manual instrumentation instead. See the [official TypeScript documentation](https://www.typescriptlang.org/docs/handbook/decorators.html) for more details.
215+
Powertools decorators can only be attached to class methods and follow the experimetal decorators proposal implementation found in TypeScript 4.x. As such, you need to enable the `experimentalDecorators` compiler option in your `tsconfig.json` file to use them.
216216

217217
```typescript hl_lines="12"
218218
--8<-- "docs/snippets/metrics/defaultDimensionsDecorator.ts"

docs/core/tracer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ You can quickly start by importing the `Tracer` class, initialize it outside the
9898
=== "Decorator"
9999

100100
!!! info
101-
Decorators can only be attached to a class declaration, method, accessor, property, or parameter. Therefore, if you prefer to write your handler as a standard function rather than a Class method, use the middleware or the manual instrumentation instead. See the [official TypeScript documentation](https://www.typescriptlang.org/docs/handbook/decorators.html) for more details.
101+
Powertools decorators can only be attached to class methods and follow the experimetal decorators proposal implementation found in TypeScript 4.x. As such, you need to enable the `experimentalDecorators` compiler option in your `tsconfig.json` file to use them.
102102

103103
```typescript hl_lines="8"
104104
--8<-- "docs/snippets/tracer/decorator.ts"

0 commit comments

Comments
 (0)