From 23eb9e717a7cfcf44cdc8b90559254b9216caadd Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 10 Sep 2024 06:08:25 +0000 Subject: [PATCH 1/5] Link to bento --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81c823c..ebde422 100644 --- a/README.md +++ b/README.md @@ -148,13 +148,13 @@ you can use the `include` property, #### Bento support -If you need Serverless Bento, you can change `src` and `checksumPrefix` properties: +If you need Serverless [Bento], set the `src` and `checksumPrefix` properties, ```json { "blobpack": { "name": "benthos-lambda", - "version": "4.10.0", + "version": "1.2.0", "platform": "linux_amd64", "checksumPrefix": "bento", "src": "https://github.com/warpstreamlabs/bento/releases/download" @@ -162,6 +162,8 @@ If you need Serverless Bento, you can change `src` and `checksumPrefix` properti } ``` +[Bento]: https://warpstreamlabs.github.io/bento/ + ### CLI ``` From b182d9930e4694b3bf5b3b4eaa923d4a96f8e0b8 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 10 Sep 2024 06:11:00 +0000 Subject: [PATCH 2/5] Use ?? over typeof --- lib/config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/config.js b/lib/config.js index 0c9b5a6..901b81f 100644 --- a/lib/config.js +++ b/lib/config.js @@ -10,11 +10,10 @@ export const loadConfig = async (configPath) => { ) } - if (typeof config.checksumPrefix === 'undefined') { - config.checksumPrefix = 'benthos' + return { + ...config, + checksumPrefix: config.checksumPrefix ?? 'benthos' } - - return config } export const loadJson = async (name) => { From 69ca380077125fbe0c3bbe3cf47e9de6d70fd88c Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 10 Sep 2024 06:12:45 +0000 Subject: [PATCH 3/5] Update format action --- .github/workflows/format.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7f80e54..123e954 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,24 +1,25 @@ --- -name: format +name: Format on: push: branches-ignore: - - master + - main workflow_dispatch: {} jobs: - fix: + commit: + name: Format code runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} token: ${{ secrets.GH_TOKEN }} - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v5 + uses: crazy-max/ghaction-import-gpg@v6 with: git_user_signingkey: true git_commit_gpgsign: true @@ -31,9 +32,10 @@ jobs: - name: Format run: npm run format - name: Commit - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 + if: always() with: - commit_message: Run format + commit_message: Format code commit_user_name: ${{ secrets.GIT_USER_NAME }} commit_user_email: ${{ secrets.GIT_USER_EMAIL }} - commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}> + commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}> \ No newline at end of file From 58d6c6fa8b9c0a6f36198631f56294aaa20b1396 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 10 Sep 2024 06:17:24 +0000 Subject: [PATCH 4/5] Format code --- .github/workflows/format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 123e954..abb62b8 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -38,4 +38,4 @@ jobs: commit_message: Format code commit_user_name: ${{ secrets.GIT_USER_NAME }} commit_user_email: ${{ secrets.GIT_USER_EMAIL }} - commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}> \ No newline at end of file + commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}> From 7e65fd49c6f67134980b59e5f31433fc98658967 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 10 Sep 2024 06:18:55 +0000 Subject: [PATCH 5/5] Update CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32cf514..dc118a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/). +## 1.3.0 / 2024-09-09 + +### Added + +- New config option `checksumPrefix` to support compatible distributions like Bento. + ## 1.2.4 / 2022-11-28 - No changes.