Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
8e80a8d
feat!: release 2.0.0 (#598)
smoya Apr 28, 2023
562dbaf
ci: update of files from global .github repo (#769)
asyncapi-bot Apr 28, 2023
942ef10
feat!: release v2.0.0 (#768)
smoya Apr 28, 2023
20be09d
chore(release): v2.0.0 (#770)
asyncapi-bot Apr 28, 2023
b4a1461
ci: update of files from global .github repo (#773)
asyncapi-bot May 24, 2023
035a9f3
ci: update of files from global .github repo (#774)
asyncapi-bot May 24, 2023
322f368
fix: update @asyncapi/specs to 5.0.1 version (#776)
asyncapi-bot May 30, 2023
481b24e
chore(release): v2.0.1 (#777)
asyncapi-bot May 30, 2023
75f8c36
fix: skip message object example validation for non default schemaFor…
chrispatmore Jun 6, 2023
9b88641
fix: update @asyncapi/specs to 5.1.0 version (#779)
asyncapi-bot Jun 7, 2023
b2213f9
chore(release): v2.0.2 (#783)
asyncapi-bot Jun 7, 2023
74cfce1
fix: null check when checking schemaFormat in array items (#786)
chrispatmore Jun 14, 2023
472f1a6
chore(release): v2.0.3 (#788)
asyncapi-bot Jun 14, 2023
922403f
docs: explanation on how to deal with tests failing on windows (#575)
Ruchip16 Jun 14, 2023
52d6093
docs: add Ruchip16 as a contributor for doc (#791)
allcontributors[bot] Jun 14, 2023
c6f0a10
docs: add migration guide (#789)
jonaslagoni Jun 26, 2023
6f84151
docs: add spectral ruleset docs (#790)
jonaslagoni Jun 28, 2023
efd6522
chore: update generated docs (#795)
asyncapi-bot Jun 28, 2023
aaf2360
ci: update of files from global .github repo (#796)
asyncapi-bot Jun 29, 2023
9ea9317
chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 (#805)
dependabot[bot] Jul 18, 2023
c4cb9f2
chore: remove @derberg from `CODEOWNERS` (#808)
derberg Jul 25, 2023
0382c65
refactor: match Spectral formats based on schemas found in @asyncapi/…
smoya Aug 1, 2023
298b289
feat: validate message object examples with spectral schemas (#782)
chrispatmore Aug 3, 2023
6940b2b
chore(release): v2.1.0 (#826)
asyncapi-bot Aug 3, 2023
43a5b05
chore: remove me as maintainer (#852)
fmvilas Aug 30, 2023
54a60d1
chore(deps-dev): bump @babel/traverse from 7.19.3 to 7.23.2 (#883)
dependabot[bot] Oct 18, 2023
151ac62
fix: add missing stoplight dependencies (#882)
woylie Oct 20, 2023
83ab71c
chore(release): v2.1.1 (#885)
asyncapi-bot Oct 20, 2023
58f9db6
chore: update @asyncapi/avro-schema-parser to 3.0.4 version (#886)
asyncapi-bot Oct 20, 2023
07924b5
chore(deps-dev): bump browserify-sign from 4.2.1 to 4.2.2 (#887)
dependabot[bot] Oct 28, 2023
d614ffa
ci: update of files from global .github repo (#894)
asyncapi-bot Nov 7, 2023
5c79a5b
ci: update of files from global .github repo (#899)
asyncapi-bot Nov 15, 2023
dd24773
fix: remove unused deps to fix CVE-2020-15366 (#904)
hainenber Nov 19, 2023
eac892a
chore(release): v2.1.2 (#906)
asyncapi-bot Nov 19, 2023
b30750b
chore: update @asyncapi/avro-schema-parser to 3.0.5 version (#907)
asyncapi-bot Nov 19, 2023
5c833ce
docs: add hainenber as a contributor for security (#905)
allcontributors[bot] Nov 24, 2023
fc11b3e
feat!: add support for AsyncAPI v3 (#526)
jonaslagoni Dec 1, 2023
b70c795
chore(release): v3.0.0 (#922)
asyncapi-bot Dec 1, 2023
ac53fdc
chore: update @asyncapi/avro-schema-parser to 3.0.6 version (#923)
asyncapi-bot Dec 1, 2023
af29cd7
fix: update @asyncapi/specs to 6.1.0 version (#925)
asyncapi-bot Dec 4, 2023
dfe6940
chore(release): v3.0.1 (#926)
asyncapi-bot Dec 4, 2023
6df938e
chore: update @asyncapi/avro-schema-parser to 3.0.7 version (#927)
asyncapi-bot Dec 4, 2023
ceeca38
fix: update @asyncapi/specs to 6.2.0 version (#928)
asyncapi-bot Dec 13, 2023
bc2adcd
chore: update @asyncapi/avro-schema-parser to 3.0.8 version (#931)
asyncapi-bot Dec 13, 2023
8202e30
ci: update of files from global .github repo (#932)
asyncapi-bot Dec 13, 2023
ac168a9
fix: trigger release (#930)
smoya Dec 13, 2023
ca29fe9
chore(release): v3.0.2 (#934)
asyncapi-bot Dec 13, 2023
2671f1a
chore: update @asyncapi/avro-schema-parser to 3.0.9 version (#935)
asyncapi-bot Dec 13, 2023
380777b
fix: update @asyncapi/specs to 6.2.1 version (#939)
asyncapi-bot Jan 29, 2024
bb78ede
chore(release): v3.0.3 (#940)
asyncapi-bot Jan 29, 2024
2548d8e
chore: update @asyncapi/avro-schema-parser to 3.0.10 version (#941)
asyncapi-bot Jan 29, 2024
15013d3
fix: update @asyncapi/specs to 6.3.0 version (#942)
asyncapi-bot Jan 30, 2024
a05f6a0
chore(release): v3.0.4 (#943)
asyncapi-bot Jan 30, 2024
9742b81
chore: update @asyncapi/avro-schema-parser to 3.0.11 version (#944)
asyncapi-bot Jan 30, 2024
ca43701
fix: update @asyncapi/specs to 6.4.0 version (#945)
asyncapi-bot Feb 4, 2024
8f426f8
chore(release): v3.0.5 (#946)
asyncapi-bot Feb 4, 2024
e5cfaad
chore: update @asyncapi/avro-schema-parser to 3.0.12 version (#947)
asyncapi-bot Feb 4, 2024
41ddb9d
fix: iterating between operations, channels and messages (#948)
jonaslagoni Feb 16, 2024
9059de2
chore(release): v3.0.6 (#949)
asyncapi-bot Feb 16, 2024
c35bfd2
chore: update @asyncapi/avro-schema-parser to 3.0.13 version (#950)
asyncapi-bot Feb 16, 2024
8841a19
fix: update @asyncapi/specs to 6.5.0 version (#951)
asyncapi-bot Feb 21, 2024
2c8a955
chore(release): v3.0.7 (#952)
asyncapi-bot Feb 21, 2024
3797a7b
chore: update @asyncapi/avro-schema-parser to 3.0.14 version (#953)
asyncapi-bot Feb 21, 2024
12ab3dc
chore: update @asyncapi/avro-schema-parser to 3.0.15 version (#954)
asyncapi-bot Feb 27, 2024
8cdb8bd
feat: separate file system operations into a separate file
kennethaasan Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 20 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,27 @@
"bug",
"code"
]
},
{
"login": "Ruchip16",
"name": "Ruchi Pakhle",
"avatar_url": "https://avatars.githubusercontent.com/u/72685035?v=4",
"profile": "https://github.com/Ruchip16",
"contributions": [
"doc"
]
},
{
"login": "hainenber",
"name": "Đỗ Trọng Hải",
"avatar_url": "https://avatars.githubusercontent.com/u/41283691?v=4",
"profile": "https://github.com/hainenber",
"contributions": [
"security"
]
}
],
"contributorsPerLine": 4,
"skipCi": false
"skipCi": false,
"commitType": "docs"
}
14 changes: 8 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
node_modules
dist
lib/browser.js
scripts
coverage
.nyc_output
test/sample_browser/
.vscode
.DS_Store
/docs
/coverage
/lib
/esm
/cjs
/browser
38 changes: 31 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
parser: "@typescript-eslint/parser"

env:
node: true
es6: true
jest: true
mocha: true
browser: true

plugins:
- "@typescript-eslint"
- sonarjs
- mocha
- security
- github

extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:sonarjs/recommended
- plugin:mocha/recommended
- plugin:security/recommended

parserOptions:
Expand All @@ -24,6 +30,7 @@ rules:
no-mixed-requires: 0
no-process-exit: 0
no-warning-comments: 0
no-use-before-define: 0
curly: 0
no-multi-spaces: 0
no-alert: 0
Expand All @@ -32,6 +39,10 @@ rules:
func-style: 0
max-nested-callbacks: 0
camelcase: 0
no-dupe-class-members: 0
security/detect-object-injection: 0
sonarjs/no-small-switch: 0
sonarjs/no-nested-template-literals: 0

# Warnings
no-debugger: 1
Expand All @@ -49,7 +60,6 @@ rules:
no-empty-character-class: 2
no-self-compare: 2
valid-typeof: 2
no-unused-vars: [2, { "args": "none" }]
handle-callback-err: 2
no-shadow-restricted-names: 2
no-new-require: 2
Expand All @@ -61,7 +71,6 @@ rules:
radix: 2
wrap-iife: [2, outside]
no-shadow: 0
no-use-before-define: [2, nofunc]
no-path-concat: 2
valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]

Expand Down Expand Up @@ -92,7 +101,6 @@ rules:
arrow-spacing: [2, {before: true, after: true}]
no-class-assign: 2
no-const-assign: 2
no-dupe-class-members: 2
no-this-before-super: 2
no-var: 2
object-shorthand: [2, always]
Expand All @@ -101,10 +109,26 @@ rules:
prefer-spread: 2
prefer-template: 2

# TypeScript
"@typescript-eslint/no-empty-interface": "off"
"@typescript-eslint/no-use-before-define": ["off"]
"@typescript-eslint/no-empty-function": "off"
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/explicit-module-boundary-types": "off"
"@typescript-eslint/no-this-alias": "off"
"@typescript-eslint/no-unnecessary-type-constraint": "off"
"@typescript-eslint/ban-types": "off"

overrides:
- files: "test/**"
- files:
- "test/**"
- "*.spec.ts"
- "*.test.ts"
rules:
prefer-arrow-callback: 0
sonarjs/no-duplicate-string: 0
security/detect-object-injection: 0
security/detect-non-literal-fs-filename: 0
security/detect-non-literal-fs-filename: 0
"@typescript-eslint/no-non-null-assertion": 0
"@typescript-eslint/no-unused-vars": 0
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
GITHUB_LOGIN: asyncapi-bot
MERGE_LABELS: ""
MERGE_LABELS: "!do-not-merge"
MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})"
MERGE_RETRIES: "20"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
- if: steps.packagejson.outputs.exists == 'true'
name: Bumping latest version of this package in other repositories
uses: derberg/npm-dependency-manager-for-your-github-org@v4
uses: derberg/npm-dependency-manager-for-your-github-org@26a4f13d740254719971325046822a169aaa7441 # using v5.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v5.0.0
with:
github_token: ${{ secrets.GH_TOKEN }}
committer_username: asyncapi-bot
committer_email: info@asyncapi.io
# html-template - temporary until react component releases 1.0, then it can be removed
repos_to_ignore: html-template,cli,studio
repos_to_ignore: spec,bindings
16 changes: 8 additions & 8 deletions .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!
At the moment the following comments are supported in pull requests:

- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
- \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
})

create_help_comment_issue:
Expand All @@ -51,10 +51,10 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!
At the moment the following comments are supported in issues:

- `/good-first-issue {js | ts | java | go | docs | design | ci-cd} ` or `/gfi {js | ts | java | go | docs | design | ci-cd} ` - label an issue as a `good first issue`.
example: `/gfi js` or `/good-first-issue ci-cd`
})
- \`/good-first-issue {js | ts | java | go | docs | design | ci-cd}\` or \`/gfi {js | ts | java | go | docs | design | ci-cd}\` - label an issue as a \`good first issue\`.
example: \`/gfi js\` or \`/good-first-issue ci-cd\``
})
37 changes: 25 additions & 12 deletions .github/workflows/if-nodejs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,28 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
shell: bash
- if: steps.packagejson.outputs.exists == 'true'
name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Run test
run: npm test
run: npm test --if-present
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
Expand All @@ -69,26 +73,35 @@ jobs:

release:
needs: [test-nodejs]
name: Publish to any of NPM, Github, and Docker Hub
name: Publish to any of NPM, Github, or Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
- if: steps.packagejson.outputs.exists == 'true'
name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Add plugin for conventional commits for semantic-release
run: npm install --save-dev conventional-changelog-conventionalcommits@5.0.0
- if: steps.packagejson.outputs.exists == 'true'
name: Publish to any of NPM, Github, and Docker Hub
id: release
Expand All @@ -101,7 +114,7 @@ jobs:
GIT_AUTHOR_EMAIL: info@asyncapi.io
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: info@asyncapi.io
run: npm run release
run: npx semantic-release@19.0.4
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
Expand All @@ -110,4 +123,4 @@ jobs:
fields: repo,action,workflow
text: 'Release workflow failed in release job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
16 changes: 10 additions & 6 deletions .github/workflows/if-nodejs-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
# in case release is created from release branch then we need to checkout from given branch
# if @semantic-release/github is used to publish, the minimum version is 7.2.0 for proper working
ref: ${{ github.event.release.target_commitish }}
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
- if: steps.packagejson.outputs.exists == 'true'
name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Assets generation
run: npm run generate:assets
run: npm run generate:assets --if-present
- if: steps.packagejson.outputs.exists == 'true'
name: Bump version in package.json
# There is no need to substract "v" from the tag as version script handles it
Expand All @@ -45,7 +49,7 @@ jobs:
run: VERSION=${{github.event.release.tag_name}} npm run bump:version
- if: steps.packagejson.outputs.exists == 'true'
name: Create Pull Request with updated asset files including package.json
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore(release): ${{github.event.release.tag_name}}'
Expand Down
Loading