Skip to content

Commit 3591ac0

Browse files
authored
feat: major internal restructuring and cleanup (#33)
Release-As: 0.1.0
1 parent b2e29f5 commit 3591ac0

File tree

117 files changed

+3319
-3360
lines changed

Some content is hidden

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

117 files changed

+3319
-3360
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,43 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8-
open-pull-requests-limit: 5
8+
day: "sunday"
9+
time: "05:00"
10+
timezone: "UTC"
11+
open-pull-requests-limit: 1
912
commit-message:
1013
prefix: "chore(deps)"
1114
include: "scope"
12-
labels:
13-
- "dependencies"
14-
reviewers:
15-
- "pierrevensy"
16-
assignees:
17-
- "pierrevensy"
15+
labels: ["dependencies"]
16+
reviewers: ["pierrevensy"]
17+
assignees: ["pierrevensy"]
18+
groups:
19+
minor-updates:
20+
patterns:
21+
- "*"
22+
update-types:
23+
- "minor"
24+
- "patch"
1825

1926
# Check for updates to GitHub Actions
2027
- package-ecosystem: "github-actions"
2128
directory: "/"
2229
schedule:
2330
interval: "weekly"
24-
open-pull-requests-limit: 5
31+
day: "sunday"
32+
time: "06:00"
33+
timezone: "UTC"
34+
open-pull-requests-limit: 1
2535
commit-message:
2636
prefix: "chore(actions)"
2737
include: "scope"
28-
labels:
29-
- "github-actions"
30-
reviewers:
31-
- "pierrevensy"
32-
assignees:
33-
- "pierrevensy"
38+
labels: ["github-actions"]
39+
reviewers: ["pierrevensy"]
40+
assignees: ["pierrevensy"]
41+
groups:
42+
minor-updates:
43+
patterns:
44+
- "*"
45+
update-types:
46+
- "minor"
47+
- "patch"

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820
- name: Setup Node.js
1921
uses: actions/setup-node@v4
2022
with:
@@ -27,6 +29,10 @@ jobs:
2729
run: npm run test:cvg
2830
- name: Build library
2931
run: npm run build
32+
- name: SonarQube Scan
33+
uses: SonarSource/sonarqube-scan-action@v5
34+
env:
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3036

3137
release-please:
3238
runs-on: ubuntu-latest

.github/workflows/pr.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ on:
44
pull_request:
55
branches:
66
- main
7+
types: [opened, synchronize, reopened]
8+
9+
permissions:
10+
contents: read
711

812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Checkout code
1317
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1420
- name: Setup Node.js
1521
uses: actions/setup-node@v4
1622
with:
@@ -22,4 +28,9 @@ jobs:
2228
- name: Run tests
2329
run: npm run test:cvg
2430
- name: Build library
25-
run: npm run build
31+
run: npm run build
32+
- name: SonarQube Scan
33+
if: github.actor != 'dependabot[bot]'
34+
uses: SonarSource/sonarqube-scan-action@v5
35+
env:
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -27,4 +31,4 @@ jobs:
2731
- name: Publish to NPM
2832
run: npm publish --access public
2933
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ All notable changes to the "Stone.js AWS Lambda Adapter" extension will be docum
1010

1111
### Features
1212

13-
* implement aws adapters ([8695eb2](https://github.com/stonemjs/aws-lambda-adapter/commit/8695eb2c7960769d56015943ac0839e787f176d2))
13+
* implement aws adapters ([8695eb2](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/commit/8695eb2c7960769d56015943ac0839e787f176d2))

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The **Conventional Commits** format is structured as follows:
4646
```
4747

4848
- **`<type>`**: Specifies the type of change. Common types are `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`.
49-
- **`<scope>`**: (Optional) A short, descriptive word for what part of the code is affected (e.g., `auth`, `aws-lambda-adapter`).
49+
- **`<scope>`**: (Optional) A short, descriptive word for what part of the code is affected (e.g., `auth`, `aws-lambda-http-adapter`).
5050
- **`<description>`**: A brief description of the change.
5151
- **`Body`**: (Optional) Provides more detailed information about the commit.
5252
- **`Footer`**: (Optional) Used to reference issues or indicate breaking changes.
@@ -56,7 +56,7 @@ The **Conventional Commits** format is structured as follows:
5656
The **type** field in a Conventional Commit message is what allows you to derive the next semantic version:
5757

5858
- **`feat`**: A new feature. Increments the **MINOR** version (e.g., `1.2.0`).
59-
- Example: `feat(aws-lambda-adapter): add async pipe handling support`
59+
- Example: `feat(aws-lambda-http-adapter): add async pipe handling support`
6060

6161
- **`fix`**: A bug fix. Increments the **PATCH** version (e.g., `1.2.1`).
6262
- Example: `fix(api): resolve issue with null values in responses`
@@ -65,29 +65,29 @@ The **type** field in a Conventional Commit message is what allows you to derive
6565
- Example: `docs(readme): update installation instructions`
6666

6767
- **`style`**: Changes related to code style (e.g., formatting, missing semicolons). No version increment.
68-
- Example: `style(aws-lambda-adapter): reformat code according to ESLint rules`
68+
- Example: `style(aws-lambda-http-adapter): reformat code according to ESLint rules`
6969

7070
- **`refactor`**: A code change that does not add a feature or fix a bug. No version increment.
7171
- Example: `refactor(auth): simplify token validation logic`
7272

7373
- **`test`**: Changes related to testing (e.g., adding missing tests, refactoring tests). No version increment.
74-
- Example: `test(aws-lambda-adapter): add unit tests for error handling`
74+
- Example: `test(aws-lambda-http-adapter): add unit tests for error handling`
7575

7676
- **`chore`**: Maintenance tasks that do not affect the functionality of the code (e.g., updating dependencies, build-related changes). No version increment.
7777
- Example: `chore(deps): update lodash to version 4.17.21`
7878

7979
- **`BREAKING CHANGE`**: Use this in the footer if the commit introduces a breaking API change, which increments the **MAJOR** version.
8080
- Example:
8181
```
82-
feat(aws-lambda-adapter): change pipe API to accept configuration object
82+
feat(aws-lambda-http-adapter): change pipe API to accept configuration object
8383
84-
BREAKING CHANGE: The aws-lambda-adapter now requires a configuration object instead of individual parameters.
84+
BREAKING CHANGE: The aws-lambda-http-adapter now requires a configuration object instead of individual parameters.
8585
```
8686
8787
### Example Commit Messages
8888
1. **New Feature**:
8989
```
90-
feat(aws-lambda-adapter): add support for multiple output formats
90+
feat(aws-lambda-http-adapter): add support for multiple output formats
9191
```
9292
This will trigger a **MINOR** version bump.
9393

0 commit comments

Comments
 (0)