Skip to content

Commit 43f5481

Browse files
authored
Merge branch 'main' into 4100-appsync-graphql-batch
2 parents 13ebb91 + 35bc4b4 commit 43f5481

Some content is hidden

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

67 files changed

+5885
-12372
lines changed

.github/actions/create-pr/action.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/actions/create-pr/create_pr_for_staged_changes.sh

Lines changed: 0 additions & 148 deletions
This file was deleted.

.github/boring-cyborg.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ labelPRBasedOnFilePath:
8888
- SECURITY.md
8989
- LICENSE
9090
- LICENSE-THIRD-PARTY
91-
- lerna.json
9291
- .nvmrc
9392
- .biome.json
9493
- .npmignore

.github/workflows/make-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
6666
- name: Publish to npm
6767
run: |
68-
NPM_CONFIG_PROVENANCE=true npx lerna publish from-package --git-head ${{ github.sha }} --yes
68+
npm publish --workspaces --provenance
6969
- name: Set release version
7070
id: set-release-version
7171
run: |
72-
VERSION=$(cat lerna.json | jq .version -r)
72+
VERSION=$(cat packages/commons/package.json | jq .version -r)
7373
echo RELEASE_VERSION="$VERSION" >> "$GITHUB_OUTPUT"
7474
7575
# This job creates a new git tag using the released version (v1.18.1)

.github/workflows/make-version.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Make Version
22

33
on:
4-
workflow_dispatch: { }
4+
workflow_dispatch:
5+
inputs:
6+
release-type:
7+
description: 'Release type (major, minor, patch)'
8+
required: false
59

610
permissions:
711
contents: read
@@ -14,39 +18,40 @@ jobs:
1418
contents: write
1519
pull-requests: write
1620
runs-on: ubuntu-latest
21+
env:
22+
NODE_VERSION: "22"
1723
outputs:
18-
RELEASE_VERSION: ${{ steps.set-release-version.outputs.RELEASE_VERSION }}
24+
RELEASE_VERSION: ${{ steps.version-n-changelog.outputs.new-version }}
1925
steps:
2026
- name: Checkout code
2127
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2228
with:
2329
ref: ${{ github.ref }}
24-
fetch-depth: 0 # fetch all history, commits and tags, lerna scans it to the last tag and looks at commits, we need all of it to determine the next version
25-
- name: Setup NodeJS
30+
fetch-depth: 0 # fetch all history, commits and tags, so we can determine the next version
31+
- name: Setup Node.js
2632
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2733
with:
28-
node-version: "22"
34+
node-version: ${{ env.NODE_VERSION }}
2935
cache: "npm"
3036
- name: Setup dependencies
31-
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
32-
- name: Version
33-
id: bump-version
34-
run: npx lerna version --conventional-commits --force-publish --no-git-tag-version --no-push --no-commit-hooks --yes
37+
uses: aws-powertools/actions/.github/actions/cached-node-modules@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
build: "false"
41+
- name: Version and changelog
42+
id: version-n-changelog
43+
uses: aws-powertools/actions/.github/actions/version-n-changelog@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0
44+
with:
45+
release-type: ${{ github.event.inputs.release-type }}
3546
- name: Update user agent version
3647
run: |
37-
VERSION=$(cat lerna.json | jq .version -r)
38-
echo -e "// this file is auto generated, do not modify\nexport const PT_VERSION = '$VERSION';" > packages/commons/src/version.ts
48+
echo -e "// this file is auto generated, do not modify\nexport const PT_VERSION = '${{ steps.version-n-changelog.outputs.new-version }}';" > packages/commons/src/version.ts
3949
- name: Stage changes
4050
run: git add .
41-
- name: Set release version
42-
id: set-release-version
43-
run: |
44-
VERSION=$(cat lerna.json | jq .version -r)
45-
echo RELEASE_VERSION="$VERSION" >> "$GITHUB_OUTPUT"
4651
- name: Create PR
4752
id: create-pr
48-
uses: ./.github/actions/create-pr
53+
uses: aws-powertools/actions/.github/actions/create-pr@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0
4954
with:
5055
temp_branch_prefix: "ci-bump"
51-
pull_request_title: "chore(ci): bump version to ${{ steps.set-release-version.outputs.RELEASE_VERSION }}"
56+
pull_request_title: "chore(ci): bump version to ${{ steps.version-n-changelog.outputs.new-version }}"
5257
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ossf_scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343

4444
# Upload the results to GitHub's code scanning dashboard.
4545
- name: "Upload to code-scanning"
46-
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
46+
uses: github/codeql-action/upload-sarif@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
4747
with:
4848
sarif_file: results.sarif

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
5151
- name: Publish to npm
5252
run: |
53-
NPM_CONFIG_PROVENANCE=true npx lerna publish from-package --force-publish ${{ github.event.input.package }} --git-head ${{ github.sha }} --yes
53+
npm publish --workspace ${{ github.event.input.package }} --provenance

.github/workflows/publish_layer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ jobs:
106106
- name: Replace layer versions in documentation
107107
run: |
108108
./.github/scripts/update_layer_arn.sh ${{ inputs.layer_documentation_version }}
109+
- name: Stage changes
110+
run: git add .
109111
- name: Create PR
110112
id: create-pr
111-
uses: ./.github/actions/create-pr
113+
uses: aws-powertools/actions/.github/actions/create-pr@da5bcb1a3d22f87bc48b570c818d26f44c0fc960 # v1.3.0
112114
with:
113-
files: 'docs/getting-started/lambda-layers.md'
114115
temp_branch_prefix: 'ci-layer-docs'
115116
pull_request_title: 'chore(ci): update layer ARN on documentation'
116117
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
lerna-debug.log*
87

98
# Dependency directories
109
node_modules

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Change Log
22

3+
## [2.24.1](https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.24.0...v2.24.1) (2025-07-29)
4+
5+
### Bug Fixes
6+
7+
- **metrics** revert changes when raise warning with overridden default dimensions ([#4226](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4226)) ([c9d6aa0](https://github.com/aws-powertools/powertools-lambda-typescript/commit/c9d6aa09acc666d09ed13ebef331502f4119dacc))
8+
- **metrics** emit warning when default dimensions are overwritten ([#4222](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4222)) ([a933a6a](https://github.com/aws-powertools/powertools-lambda-typescript/commit/a933a6af6135b79b855353bbaf265ab0a3be60da))
9+
- **parser** set zod peer range to 4.x ([#4196](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4196)) ([7a65fcf](https://github.com/aws-powertools/powertools-lambda-typescript/commit/7a65fcf9759ac1a1f072ef5442ee8b0767705a92))
10+
11+
### Improvements
12+
13+
- **metrics** replace EnvironmentVariablesService with cached #envConfig ([#4188](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4188)) ([919063b](https://github.com/aws-powertools/powertools-lambda-typescript/commit/919063bc10f15b55f84c183208274836ae1d367e))
14+
- **metrics** add runtime validations when adding dimensions ([#4181](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4181)) ([4226058](https://github.com/aws-powertools/powertools-lambda-typescript/commit/42260585eb84de373c6ae5daaf5d541dd5f78ec1))
15+
- **parameters** replace EnvironmentVariablesService class with helper functions in Parameters ([#4168](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4168)) ([ce4e618](https://github.com/aws-powertools/powertools-lambda-typescript/commit/ce4e6181ffed20153f3743707fdd31f68f392e0c))
16+
- **event-handler** replace EnvironmentVariablesService class with helper functions in Event Handler ([#4225](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4225)) ([d17818e](https://github.com/aws-powertools/powertools-lambda-typescript/commit/d17818e1b8b17a8307e61966ab857f9c05c49670))
17+
18+
### Features
19+
20+
- **event-handler** add route management system for ApiGw event handler ([#4211](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4211)) ([c2cbb64](https://github.com/aws-powertools/powertools-lambda-typescript/commit/c2cbb642ca3a4cc57ad0e80d9f1239e8f67d56e3))
21+
- **event-handler** add base router class ([#3972](https://github.com/aws-powertools/powertools-lambda-typescript/issues/3972)) ([3d4998c](https://github.com/aws-powertools/powertools-lambda-typescript/commit/3d4998cda6c1b8c1bea47d5c6a9fe760b6e957fb))
22+
23+
324
## [2.24.0](https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.23.0...v2.24.0) (2025-07-15)
425

526
### Improvements

0 commit comments

Comments
 (0)