Skip to content

Commit 8f9501b

Browse files
authored
Merge branch 'main' into feat/logger-clear-state-method
2 parents ca76e12 + 76303c5 commit 8f9501b

File tree

352 files changed

+11261
-6812
lines changed

Some content is hidden

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

352 files changed

+11261
-6812
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/blob/v0.212.0/containers/javascript-node/.devcontainer/base.Dockerfile
2-
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node@sha256:ec1e123dee944ce1e3b939b70bb9ab258458f6bf4028f8682e6690e22d9bb87f
2+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node@sha256:cad3951c5a6ff844e5b080541b5a0fee63fc18b21adc9f4854a7b50b9775f4fd
33

44
# Install fnm to manage Node.js versions
55
RUN curl -fsSL https://fnm.vercel.app/install -o /tmp/install \

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug report
22
description: Report a reproducible bug to help us improve
33
title: "Bug: TITLE"
4-
labels: ["type/bug", "triage"]
4+
labels: ["bug", "triage"]
55
projects: ["aws-powertools/7"]
66
body:
77
- type: markdown
@@ -11,16 +11,16 @@ body:
1111
1212
Please add as much information as possible to help us reproduce, and remove any potential sensitive data.
1313
- type: textarea
14-
id: expected_behaviour
14+
id: expected_behavior
1515
attributes:
16-
label: Expected Behaviour
17-
description: Please share details on the behaviour you expected
16+
label: Expected Behavior
17+
description: Please share details on the behavior you expected
1818
validations:
1919
required: true
2020
- type: textarea
21-
id: current_behaviour
21+
id: current_behavior
2222
attributes:
23-
label: Current Behaviour
23+
label: Current Behavior
2424
description: Please share details on the current issue
2525
validations:
2626
required: true
@@ -58,7 +58,7 @@ body:
5858
id: version
5959
attributes:
6060
label: Powertools for AWS Lambda (TypeScript) version
61-
placeholder: "latest, 1.3.0"
61+
placeholder: "latest, 2.1.0"
6262
value: latest
6363
validations:
6464
required: true
@@ -77,8 +77,8 @@ body:
7777
attributes:
7878
label: Packaging format used
7979
options:
80-
- Lambda Layers
8180
- npm
81+
- Lambda Layers
8282
multiple: true
8383
validations:
8484
required: true

.github/ISSUE_TEMPLATE/documentation_improvements.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Documentation improvements
22
description: Suggest a documentation update to improve everyone's experience
33
title: "Docs: TITLE"
4-
labels: ["area/documentation", "triage"]
4+
labels: ["documentation", "triage"]
55
projects: ["aws-powertools/7"]
66
body:
77
- type: markdown
@@ -27,7 +27,6 @@ body:
2727
attributes:
2828
label: How can we improve?
2929
description: Please share your thoughts on how we can improve this experience
30-
render: Markdown
3130
validations:
3231
required: true
3332
- type: textarea

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest an idea for Lambda Powertools
33
title: "Feature request: TITLE"
4-
labels: ["type/feature-request", "triage"]
4+
labels: ["feature-request", "triage"]
55
projects: ["aws-powertools/7"]
66
body:
77
- type: markdown

.github/ISSUE_TEMPLATE/maintenance.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Maintenance
22
description: Suggest an activity to help address tech debt, governance, and anything internal
33
title: "Maintenance: TITLE"
4-
labels: ["type/internal", "triage"]
4+
labels: ["internal", "triage"]
55
projects: ["aws-powertools/7"]
66
body:
77
- type: markdown
@@ -31,6 +31,9 @@ body:
3131
- Automation
3232
- Governance
3333
- Tests
34+
- Commons
35+
- Event Handler
36+
- Parser
3437
- Tracer
3538
- Logger
3639
- Metrics
@@ -39,7 +42,6 @@ body:
3942
- JMESPath
4043
- Batch Processing
4144
- Validation
42-
- Parser
4345
- Other
4446
- type: textarea
4547
id: suggestion

.github/ISSUE_TEMPLATE/rfc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Request for Comments (RFC)
22
description: Feature design and detailed proposals
33
title: "RFC: TITLE"
4-
labels: ["type/RFC", "triage"]
4+
labels: ["RFC", "triage"]
55
projects: ["aws-powertools/7"]
66
body:
77
- type: markdown
@@ -18,6 +18,12 @@ body:
1818
attributes:
1919
label: Which Powertools for AWS Lambda (TypeScript) utility does this relate to?
2020
options:
21+
- Automation
22+
- Governance
23+
- Tests
24+
- Batch
25+
- Commons
26+
- Event Handler
2127
- Tracer
2228
- Logger
2329
- Metrics

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,28 @@
1-
<!---
2-
Instructions:
3-
1. Make sure you follow our Contributing Guidelines: https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CONTRIBUTING.md
4-
2. Please follow the template, and do not remove any section/item. If something is not applicable leave it empty, but leave it in the PR.
5-
3. -->
1+
## Summary
62

7-
## Description of your changes
3+
### Changes
84

9-
<!---
10-
Include here a summary of the change.
5+
> Please provide a summary of what's being changed
116
12-
Please include also relevant motivation and context.
7+
<!-- What is this PR solving? Write a clear description or reference the issue(s) it addresses. -->
138

14-
Add any applicable code snippets, links, screenshots, or other resources
15-
that can help us verify your changes.
16-
-->
9+
> Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed
1710
18-
### Related issues, RFCs
19-
20-
<!---
21-
Add here the number (i.e. #42) to the Github Issue or RFC that is related to this PR.
22-
23-
Don't include any other text, otherwise the Github Issue will not be detected.
24-
25-
Note: If no issue is present the PR might get blocked and not be reviewed.
26-
-->
2711
**Issue number:**
2812

29-
## Checklist
30-
31-
- [ ] [My changes meet the tenets criteria](https://docs.powertools.aws.dev/lambda/typescript/#tenets)
32-
- [ ] I have performed a *self-review* of my own code
33-
- [ ] I have *commented* my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
34-
- [ ] I have made corresponding changes to the *documentation*
35-
- [ ] My changes generate *no new warnings*
36-
- [ ] I have *added tests* that prove my change is effective and works
37-
- [ ] The PR title follows the [conventional commit semantics](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/.github/semantic.yml#L2)
38-
39-
### Breaking change checklist
40-
41-
***Is it a breaking change?:*** NO
13+
<!-------
14+
Before creating the pull request, please make sure you do the following:
4215
43-
- [ ] I have documented the migration process
44-
- [ ] I have added, implemented necessary warnings (if it can live side by side)
16+
- Read the Contributing Guidelines at https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CONTRIBUTING.md#sending-a-pull-request
17+
- Check that there isn't already a PR that addresses the same issue. If you find a duplicate, please leave a comment under the existing PR so we can discuss how to move forward
18+
- Check that the change meets the project's tenets https://docs.powertools.aws.dev/lambda/typescript/latest/#tenets
19+
- Add a PR title that follows the conventional commit semantics - https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/.github/semantic.yml#L2
20+
- If relevant, add tests that prove that the change is effective and works
21+
- Whenever relevant, make sure to comment functions/methods/types and make appropriate changes to the documentation
22+
------->
4523

4624
---
4725

4826
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
4927

50-
**Disclaimer**: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.
28+
**Disclaimer**: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

.github/actions/cached-node-modules/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ runs:
3434
- name: Build packages
3535
# Regardless of whether the cache was hit or not, we need to build the packages, unless the caller says otherwise
3636
if: inputs.build == 'true'
37-
# We build the shared package first, then the others in parallel to speed up the process
37+
# We build the commons and jmspath packages first, then the others in parallel to speed up the process
3838
# even though we could just run `npm run build` in the root folder and build them in
3939
# sequence, but still in the correct order.
4040
run: |
41-
npm run build -w packages/commons
41+
npm run build -w packages/commons
42+
npm run build -w packages/jmespath
4243
npm run build -w packages/logger & \
4344
npm run build -w packages/tracer & \
4445
npm run build -w packages/metrics & \
4546
npm run build -w packages/parameters & \
4647
npm run build -w packages/idempotency & \
4748
npm run build -w packages/batch & \
4849
npm run build -w packages/testing & \
49-
npm run build -w packages/jmespath
50+
npm run build -w packages/parser
5051
shell: bash

.github/boring-cyborg.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,78 @@
11
##### Labeler ##########################################################################################################
22
labelPRBasedOnFilePath:
3-
area/logger:
3+
logger:
44
- packages/logger/src/*
55
- packages/logger/src/**/*
6-
area/tracer:
6+
tracer:
77
- packages/tracer/src/*
88
- packages/tracer/src/**/*
9-
area/metrics:
9+
metrics:
1010
- packages/metrics/src/*
1111
- packages/metrics/src/**/*
12-
area/idempotency:
12+
idempotency:
1313
- packages/idempotency/src/*
1414
- packages/idempotency/src/**/*
15-
area/parameters:
15+
parameters:
1616
- packages/parameters/src/*
1717
- packages/parameters/src/**/*
18-
area/parser:
18+
parser:
1919
- packages/parser/src/*
2020
- packages/parser/src/**/*
21-
area/validator:
21+
validator:
2222
- packages/validator/src/*
2323
- packages/validator/src/**/*
24-
area/batch:
24+
batch:
2525
- packages/batch/src/*
2626
- packages/batch/src/**/*
27-
area/commons:
27+
commons:
2828
- packages/commons/src/*
2929
- packages/commons/src/**/*
3030

31-
area/layers:
31+
layers:
3232
- layers/src/*
3333
- layers/src/**/*
3434
- layers/bin/*
3535
- layers/cdk.json
3636

37-
type/tests:
37+
tests:
3838
- packages/logger/tests/*
3939
- packages/logger/tests/**/*
40-
- packages/logger/jest.config.js
40+
- packages/logger/jest.config.cjs
4141
- packages/tracer/tests/*
4242
- packages/tracer/tests/**/*
43-
- packages/tracer/jest.config.js
43+
- packages/tracer/jest.config.cjs
4444
- packages/metrics/tests/*
4545
- packages/metrics/tests/**/*
46-
- packages/metrics/jest.config.js
46+
- packages/metrics/jest.config.cjs
4747
- packages/idempotency/tests/*
4848
- packages/idempotency/tests/**/*
49-
- packages/idempotency/jest.config.js
49+
- packages/idempotency/jest.config.cjs
5050
- packages/parameters/tests/*
5151
- packages/parameters/tests/**/*
52-
- packages/parameters/jest.config.js
52+
- packages/parameters/jest.config.cjs
5353
- packages/parser/tests/*
5454
- packages/parser/tests/**/*
55-
- packages/parser/jest.config.js
55+
- packages/parser/jest.config.cjs
5656
- packages/validator/tests/*
5757
- packages/validator/tests/**/*
58-
- packages/validator/jest.config.js
58+
- packages/validator/jest.config.cjs
5959
- packages/batch/tests/*
6060
- packages/batch/tests/**/*
61-
- packages/batch/jest.config.js
61+
- packages/batch/jest.config.cjs
6262
- packages/commons/tests/*
6363
- packages/commons/tests/**/*
64-
- packages/commons/jest.config.js
65-
- layers/jest.config.js
64+
- packages/commons/jest.config.cjs
65+
- layers/jest.config.cjs
6666
- layers/tests/*
6767
- layers/tests/**/*
6868

69-
area/documentation:
69+
documentation:
7070
- docs/*
7171
- docs/**/*
7272
- mkdocs.yml
73-
- typedoc.js
7473
- examples/app/*
7574

76-
area/automation:
75+
automation:
7776
- .github/scripts/*
7877
- .github/scripts/**/*
7978
- .github/workflows/*
@@ -84,7 +83,7 @@ labelPRBasedOnFilePath:
8483
- .github/boring-cyborg.yml
8584
- .github/semantic.yml
8685

87-
type/internal:
86+
internal:
8887
- .github/CODEOWNERS
8988
- .github/PULL_REQUEST_TEMPLATE.md
9089
- .github/ISSUE_TEMPLATE/*
@@ -96,7 +95,7 @@ labelPRBasedOnFilePath:
9695
- LICENSE-THIRD-PARTY
9796
- lerna.json
9897
- .nvmrc
99-
- .eslintrc.js
98+
- .eslintrc.cjs
10099
- .eslintignore
101100
- .npmignore
102101
- .gitpod.yml
@@ -124,7 +123,7 @@ labelPRBasedOnFilePath:
124123
- layers/README.md
125124
- examples/app/tsconfig*.json
126125

127-
type/dependencies:
126+
dependencies:
128127
- package.json
129128
- package-lock.json
130129
- packages/tracer/package.json

.github/dependabot.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
version: 2
22
updates:
33
- package-ecosystem: docker
4-
directory: /.devcontainer
4+
directories:
5+
- "/.devcontainer"
6+
- "/docs"
57
labels: [ ]
68
schedule:
79
interval: daily
810

911
- package-ecosystem: github-actions
10-
directory: /
11-
labels: [ ]
12-
schedule:
13-
interval: daily
14-
15-
- package-ecosystem: docker
16-
directory: /docs
12+
directories:
13+
- "/"
1714
labels: [ ]
1815
schedule:
1916
interval: daily
2017

2118
- package-ecosystem: pip
22-
directory: /docs
19+
directories:
20+
- "/docs"
2321
labels: [ ]
2422
schedule:
2523
interval: daily
@@ -28,7 +26,8 @@ updates:
2826
update-types: ["version-update:semver-major"]
2927

3028
- package-ecosystem: npm
31-
directory: /
29+
directories:
30+
- "/"
3231
labels: [ ]
3332
schedule:
3433
interval: daily

0 commit comments

Comments
 (0)