Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reset with the next-major branch #637

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0fb6dec
docs: add first statements about parserjs v2 and intent-driven usage …
smoya Feb 16, 2022
60f1ef4
feat: remove all previous parser code letting a fresh start for 2.0.0…
smoya Mar 8, 2022
81cc4ec
chore: init architecture (#484)
magicmatatjahu Mar 8, 2022
fbd4715
refactor: add info and dependant models (#485)
smoya Mar 9, 2022
aa98e07
refactor: add stringify functionality (#486)
magicmatatjahu Mar 9, 2022
e3809c0
refactor: init parse, lint and validate functions (#487)
magicmatatjahu Mar 9, 2022
edc8529
refactor: interface and implementations for each major spec version (…
smoya Mar 11, 2022
f03ccbe
refactor: init custom parser functionality (#489)
magicmatatjahu Mar 11, 2022
5bd8e6e
refactor: add needed mixins (#491)
magicmatatjahu Mar 16, 2022
d7e6bb0
refactor: adjust mixins to the IntentAPI (#499)
magicmatatjahu Mar 21, 2022
d749906
refactor: add models for server object (#497)
Souvikns Mar 25, 2022
ae786f8
refactor: add metadata to models (#496)
magicmatatjahu Mar 25, 2022
f0aabee
refactor: port server-variable model to ts (#507)
Souvikns Apr 4, 2022
e788a1d
refactor: add Parser class (#511)
magicmatatjahu Apr 5, 2022
7f0fed5
refactor: port security scheme model to ts (#513)
Souvikns Apr 28, 2022
a199414
refactor: add all missed interfaces (#538)
magicmatatjahu Apr 28, 2022
9c339ec
refactor: port message, operation, correlation-id and security-requir…
magicmatatjahu May 6, 2022
c269c27
refactor: port channel, channel-parameter and schema models (#547)
magicmatatjahu May 9, 2022
6bf2d35
refactor: port components model (#548)
magicmatatjahu May 16, 2022
e7e02fa
refactor: stop with v3 implementation (#551)
magicmatatjahu May 17, 2022
338fdb2
refactor: add missed methods to models (#553)
magicmatatjahu May 19, 2022
b16f02d
refactor: add AsyncAPI Schema Parser (#573)
smoya Jul 27, 2022
bf5a885
refactor: fix AsyncAPI Schema Parser error path (#580)
smoya Aug 25, 2022
a6680df
refactor: add RAML Schema Parser (#577)
smoya Aug 26, 2022
67f98a2
refactor: add Avro Schema Parser (#576)
smoya Aug 26, 2022
7deed1c
refactor: add OpenAPI Schema Parser (#578)
smoya Aug 26, 2022
f6b9989
refactor: integrate custom schemas with parser and spectral (#579)
magicmatatjahu Aug 29, 2022
ab7e103
refactor: add schemaFormat method to the Message model (#582)
magicmatatjahu Aug 31, 2022
033c880
refactor: remove mixins and add AsyncAPI TS types (#581)
magicmatatjahu Aug 31, 2022
4e1d57a
refactor: add rule to check if AsyncAPI document is defined or not (#…
magicmatatjahu Sep 1, 2022
2298d61
refactor: adapt components to parser-api (#586)
smoya Sep 1, 2022
ca7363b
refactor: add SecurityRequirement(s) models (#588)
smoya Sep 1, 2022
0c70963
refactor: simplify operation traits based on parser-api (#590)
smoya Sep 5, 2022
3656738
refactor: add filters to some collections (#592)
smoya Sep 6, 2022
9c2e6e8
refactor: add extensions method to the bindings (#587)
magicmatatjahu Sep 6, 2022
a145693
refactor: add old api (#589)
magicmatatjahu Sep 6, 2022
2d5b2c0
refactor: use @swc/jest to speedup test execution (#594)
magicmatatjahu Sep 6, 2022
12e0cd3
refactor: enable eslint and make package tree-shakable (#595)
magicmatatjahu Sep 6, 2022
8c6dfc9
refactor: handle circular references in schemas (#591)
magicmatatjahu Sep 8, 2022
ec0c175
refactor: merge `master` into `next-major` (#600)
smoya Sep 8, 2022
57ae8d7
refactor: fix some bugs and smells (#602)
smoya Sep 8, 2022
2645223
refactor: another round on merging and fixing conflicts (#603)
smoya Sep 9, 2022
fb4188c
refactor: cleanup interfaces + add missing methods from parser-api (#…
smoya Sep 12, 2022
43bf0df
refactor: update Readme.md v1 (#601)
magicmatatjahu Sep 12, 2022
565d8ea
refactor: add browser version of package and write docs for it (#596)
magicmatatjahu Sep 12, 2022
a56ea22
refactor: add iterator for traversing an AsyncAPI doc (#604)
smoya Sep 13, 2022
595f74d
refactor: add migration function from v2 to v1 API (#607)
magicmatatjahu Sep 15, 2022
017458d
refactor: add fromURL and fromFile utils (#610)
magicmatatjahu Sep 15, 2022
b7e3d6d
refactor: export cjs and esm modules (#615)
magicmatatjahu Sep 15, 2022
dc185f7
refactor: improve internal code (#614)
magicmatatjahu Sep 15, 2022
571fac9
refactor: fix TS imports and change name of migrator to converter (#618)
magicmatatjahu Sep 19, 2022
993c603
refactor: add tests for old api (#622)
magicmatatjahu Sep 22, 2022
489ea0c
refactor: add possibility to pass custom resolvers (unstable) (#593)
magicmatatjahu Sep 23, 2022
3d2e017
refactor: apply latest changes to the avro schema parser (#623)
magicmatatjahu Sep 23, 2022
be56c53
remove unnecessary folders
magicmatatjahu Oct 3, 2022
2fefeac
fix tests
magicmatatjahu Oct 3, 2022
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
  •  
  •  
  •  
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
39 changes: 31 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
parser: "@typescript-eslint/parser"

env:
node: true
es6: true
mocha: true
jest: 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 @@ -23,6 +28,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 @@ -31,6 +37,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 @@ -48,7 +58,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 @@ -60,7 +69,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 @@ -91,7 +99,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 @@ -100,10 +107,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
1 change: 1 addition & 0 deletions .github/workflows/automerge-orphans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
identify-orphans:
if: startsWith(github.repository, 'asyncapi/')
name: Find orphans and notify
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ on:

jobs:
autoupdate-for-bot:
if: startsWith(github.repository, 'asyncapi/')
name: Autoupdate autoapproved PR created in the upstream
runs-on: ubuntu-latest
steps:
- name: Autoupdating
uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: '${{ secrets.GH_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GH_TOKEN_BOT_EVE }}'
PR_FILTER: "labelled"
PR_LABELS: "autoupdate"
PR_READY_STATE: "ready_for_review"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- `/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.
- `/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:
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/if-nodejs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ jobs:
- if: steps.packagejson.outputs.exists == 'true'
name: Run test
run: npm test
- 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
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Release workflow failed in testing job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}

release:
needs: [test-nodejs]
Expand Down Expand Up @@ -84,3 +93,12 @@ jobs:
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npm run release
- 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
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Release workflow failed in release job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
18 changes: 17 additions & 1 deletion .github/workflows/if-nodejs-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- 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"
- if: steps.packagejson.outputs.exists == 'true'
name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
Expand All @@ -46,4 +53,13 @@ jobs:
author: asyncapi-bot <[email protected]>
title: 'chore(release): ${{github.event.release.tag_name}}'
body: 'Version bump in package.json for release [${{github.event.release.tag_name}}](${{github.event.release.html_url}})'
branch: version-bump/${{github.event.release.tag_name}}
branch: version-bump/${{github.event.release.tag_name}}
- 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
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Unable to bump the version in package.json after the release'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
3 changes: 2 additions & 1 deletion .github/workflows/link-check-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
External-link-validation-weekly:
if: startsWith(github.repository, 'asyncapi/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -33,4 +34,4 @@ jobs:
fields: repo,action,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
if: failure() # Only, on failure, send a message on the Slack Docs Channel (if there are broken links)
if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
6 changes: 4 additions & 2 deletions .github/workflows/stale-issues-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ on:

jobs:
stale:
if: startsWith(github.repository, 'asyncapi/')
name: Mark issue or PR as stale
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4.0.0
- uses: actions/stale@v5.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
Expand Down Expand Up @@ -40,4 +41,5 @@ jobs:
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: keep-open
exempt-pr-labels: keep-open
exempt-pr-labels: keep-open
close-issue-reason: not_planned
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
node_modules
.vscode
.nyc_output
coverage
.DS_Store
test/sample_browser/bundle.js
/docs
/coverage
/lib
/esm
/cjs
/browser
8 changes: 3 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
test/
.DS_Store
*.swp
.github
.all-contributorsrc
.editorconfig
coverage
.nyc_output
assets/logo.png
scripts
vscode
vscode
coverage
node_modules
2 changes: 2 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Disable specific duplicate code since it would introduce more complexity to reduce it.
sonar.cpd.exclusions=src/models/**/*.ts
Loading