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

refactor: add migration guide #611

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
7c8cd44
ci: set next-major branch as base branch for bump action (#468)
smoya Feb 11, 2022
f48c76f
Merge master into next-major
asyncapi-bot Feb 11, 2022
6c0ad79
Merge master into next-major
asyncapi-bot Feb 11, 2022
a1a63e9
Merge master into next-major
asyncapi-bot Feb 11, 2022
802a420
docs: add first statements about parserjs v2 and intent-driven usage …
smoya Feb 16, 2022
2d9ae9d
Merge master into next-major
asyncapi-bot Mar 2, 2022
11e7d18
Merge master into next-major
asyncapi-bot Mar 3, 2022
f1cdb92
feat: remove all previous parser code letting a fresh start for 2.0.0…
smoya Mar 8, 2022
e40fafc
chore: init architecture (#484)
magicmatatjahu Mar 8, 2022
d3d0a3e
refactor: add info and dependant models (#485)
smoya Mar 9, 2022
f08ad28
refactor: add stringify functionality (#486)
magicmatatjahu Mar 9, 2022
136a632
refactor: init parse, lint and validate functions (#487)
magicmatatjahu Mar 9, 2022
9769ac4
refactor: interface and implementations for each major spec version (…
smoya Mar 11, 2022
ddc0383
refactor: init custom parser functionality (#489)
magicmatatjahu Mar 11, 2022
f1989d6
refactor: add needed mixins (#491)
magicmatatjahu Mar 16, 2022
96dd8cf
refactor: adjust mixins to the IntentAPI (#499)
magicmatatjahu Mar 21, 2022
875354f
refactor: add models for server object (#497)
Souvikns Mar 25, 2022
6e959f5
refactor: add metadata to models (#496)
magicmatatjahu Mar 25, 2022
032735b
refactor: port server-variable model to ts (#507)
Souvikns Apr 4, 2022
40c40ee
refactor: add Parser class (#511)
magicmatatjahu Apr 5, 2022
6b208c7
refactor: port security scheme model to ts (#513)
Souvikns Apr 28, 2022
81cf16f
refactor: add all missed interfaces (#538)
magicmatatjahu Apr 28, 2022
f70b5c0
refactor: port message, operation, correlation-id and security-requir…
magicmatatjahu May 6, 2022
11b54c7
refactor: port channel, channel-parameter and schema models (#547)
magicmatatjahu May 9, 2022
c0ed58d
refactor: port components model (#548)
magicmatatjahu May 16, 2022
06f273e
refactor: stop with v3 implementation (#551)
magicmatatjahu May 17, 2022
6743a89
refactor: add missed methods to models (#553)
magicmatatjahu May 19, 2022
d65e484
refactor: add AsyncAPI Schema Parser (#573)
smoya Jul 27, 2022
7b2969b
refactor: fix AsyncAPI Schema Parser error path (#580)
smoya Aug 25, 2022
354df12
refactor: add RAML Schema Parser (#577)
smoya Aug 26, 2022
8c976e8
refactor: add Avro Schema Parser (#576)
smoya Aug 26, 2022
11bc7eb
refactor: add OpenAPI Schema Parser (#578)
smoya Aug 26, 2022
1764391
refactor: integrate custom schemas with parser and spectral (#579)
magicmatatjahu Aug 29, 2022
0f8bd39
refactor: add schemaFormat method to the Message model (#582)
magicmatatjahu Aug 31, 2022
a40b685
refactor: remove mixins and add AsyncAPI TS types (#581)
magicmatatjahu Aug 31, 2022
28ef37b
refactor: add rule to check if AsyncAPI document is defined or not (#…
magicmatatjahu Sep 1, 2022
b5ce5d9
refactor: adapt components to parser-api (#586)
smoya Sep 1, 2022
cc46e8f
refactor: add SecurityRequirement(s) models (#588)
smoya Sep 1, 2022
bba5972
refactor: simplify operation traits based on parser-api (#590)
smoya Sep 5, 2022
14458ef
refactor: add filters to some collections (#592)
smoya Sep 6, 2022
3db1d09
refactor: add extensions method to the bindings (#587)
magicmatatjahu Sep 6, 2022
303f411
refactor: add old api (#589)
magicmatatjahu Sep 6, 2022
1bfe9e1
refactor: use @swc/jest to speedup test execution (#594)
magicmatatjahu Sep 6, 2022
23e2e63
refactor: enable eslint and make package tree-shakable (#595)
magicmatatjahu Sep 6, 2022
b06414c
refactor: handle circular references in schemas (#591)
magicmatatjahu Sep 8, 2022
29463e5
refactor: merge `master` into `next-major` (#600)
smoya Sep 8, 2022
5f5e9d6
refactor: fix some bugs and smells (#602)
smoya Sep 8, 2022
e7f8ace
refactor: another round on merging and fixing conflicts (#603)
smoya Sep 9, 2022
a27ed4a
refactor: cleanup interfaces + add missing methods from parser-api (#…
smoya Sep 12, 2022
71e8672
refactor: update Readme.md v1 (#601)
magicmatatjahu Sep 12, 2022
b2b8e2a
refactor: add browser version of package and write docs for it (#596)
magicmatatjahu Sep 12, 2022
d69d6c5
refactor: add iterator for traversing an AsyncAPI doc (#604)
smoya Sep 13, 2022
1265ae6
refactor: add migration function from v2 to v1 API (#607)
magicmatatjahu Sep 15, 2022
d33debd
refactor: add fromURL and fromFile utils (#610)
magicmatatjahu Sep 15, 2022
820fae3
refactor: export cjs and esm modules (#615)
magicmatatjahu Sep 15, 2022
7b4554b
refactor: improve internal code (#614)
magicmatatjahu Sep 15, 2022
9fd048e
refactor: fix TS imports and change name of migrator to converter (#618)
magicmatatjahu Sep 19, 2022
5c29587
refactor: add migration guide
magicmatatjahu Sep 14, 2022
4835a0e
add link to migration guide
magicmatatjahu Sep 14, 2022
83c5cf9
improbe migration guide
magicmatatjahu Sep 15, 2022
e68f578
move migration guide to docs folder
magicmatatjahu Sep 15, 2022
60b6c85
add migration guide
magicmatatjahu Sep 15, 2022
284b9ed
refactor: add migration guide
magicmatatjahu Sep 14, 2022
bce11b5
add link to migration guide
magicmatatjahu Sep 14, 2022
e268071
improbe migration guide
magicmatatjahu Sep 15, 2022
00b5827
move migration guide to docs folder
magicmatatjahu Sep 15, 2022
999ed24
tl;dr
magicmatatjahu Sep 15, 2022
98ded6f
tl;dr
magicmatatjahu Sep 15, 2022
2eb23f6
update migration guide
magicmatatjahu Sep 19, 2022
66451d5
update migration guide
magicmatatjahu Sep 19, 2022
4d20157
update migration guide
magicmatatjahu Sep 19, 2022
79b5c84
update migration guide
magicmatatjahu Sep 19, 2022
87061e5
update migration guide
magicmatatjahu Sep 19, 2022
103fcb6
refactor: add tests for old api (#622)
magicmatatjahu Sep 22, 2022
6fc8b21
refactor: add possibility to pass custom resolvers (unstable) (#593)
magicmatatjahu Sep 23, 2022
4580db5
refactor: apply latest changes to the avro schema parser (#623)
magicmatatjahu Sep 23, 2022
add289e
refactor: add missed tests for custom operations (#634)
magicmatatjahu Oct 4, 2022
73bd4fb
refactor: exports extras and missed things (#635)
magicmatatjahu Oct 4, 2022
562360c
refactor: implement schemas and all* methods in AsyncAPIDocument clas…
magicmatatjahu Oct 4, 2022
b03f1da
refactor: update Readme.md (#636)
magicmatatjahu Oct 4, 2022
e44b7d2
feat!: release first RC of 2.0.0-next-major version (#640)
magicmatatjahu Oct 5, 2022
303d7fc
fix: prepublishOnly script (#641)
magicmatatjahu Oct 5, 2022
4aaf6d0
chore(release): v2.0.0-next-major.2 (#642)
asyncapi-bot Oct 5, 2022
97c61cb
fix: change schema.uid() method to schema.id() (#643)
smoya Oct 6, 2022
10e50f8
chore(release): v2.0.0-next-major.3 (#644)
asyncapi-bot Oct 6, 2022
963dc4e
fix: update Spectral ruleset fixing examples validation (#646)
smoya Oct 7, 2022
ea92482
ci: fix Sonarcloud bug with HTML page (#647)
smoya Oct 7, 2022
e3f1274
chore(release): v2.0.0-next-major.4 (#648)
asyncapi-bot Oct 7, 2022
690cbea
feat: treat $id as id in schema model and add possibility to pass res…
magicmatatjahu Oct 7, 2022
2844966
chore(release): v2.0.0-next-major.5 (#649)
asyncapi-bot Oct 7, 2022
a9b3c27
fix: set lockfile version to 2 fixing issues with @asyncapi/parser de…
smoya Oct 10, 2022
1e4553f
chore(release): v2.0.0-next-major.6 (#651)
asyncapi-bot Oct 10, 2022
3479a32
feat: export `AsyncAPISchema` and `v2` types (#656)
smoya Oct 20, 2022
0134f21
chore(release): v2.0.0-next-major.7 (#659)
asyncapi-bot Oct 20, 2022
f96e769
fix: change metadata of models and fix minor things (#663)
magicmatatjahu Oct 27, 2022
81b25ae
chore(release): v2.0.0-next-major.8 (#668)
asyncapi-bot Oct 27, 2022
2915e4a
fix: add missed methods to the SecurityScheme model (#669)
magicmatatjahu Nov 8, 2022
4f18144
chore(release): v2.0.0-next-major.9 (#670)
asyncapi-bot Nov 8, 2022
d9c3be0
fix: handle complex circular reference cases (#671)
magicmatatjahu Nov 8, 2022
7d48a76
chore(release): v2.0.0-next-major.10 (#672)
asyncapi-bot Nov 8, 2022
8abd7c0
test: add tests for 224 and 360 issues (#676)
magicmatatjahu Nov 15, 2022
ef6f1f5
feat: add isOldAsyncAPIDocument helper (#687)
magicmatatjahu Dec 13, 2022
cdf83de
chore(release): v2.0.0-next-major.11 (#688)
asyncapi-bot Dec 13, 2022
6f126ad
after review
magicmatatjahu Dec 14, 2022
725ac03
apply suggestions
magicmatatjahu Dec 20, 2022
b135b9c
ci: add cli to ignore repos in bump workflow (#701)
magicmatatjahu Jan 31, 2023
066b9b4
feat: move spectral ruleset to source code (#699)
magicmatatjahu Feb 3, 2023
eb36c8c
chore(release): v2.0.0-next-major.12 (#713)
asyncapi-bot Feb 3, 2023
6b43317
fix: message-examples rule and check unused security schemes in 2.x.x…
magicmatatjahu Feb 3, 2023
d33ba66
chore(release): v2.0.0-next-major.13 (#715)
asyncapi-bot Feb 3, 2023
e3f0289
ci: ignore java-template in bumping (#718)
magicmatatjahu Feb 6, 2023
4f671a8
fix: update models with latest parser-api (#723)
magicmatatjahu Feb 9, 2023
8951247
chore(release): v2.0.0-next-major.14 (#724)
asyncapi-bot Feb 9, 2023
9e6da02
feat: validate unparsed AsyncAPI document (#720)
magicmatatjahu Feb 9, 2023
060c104
chore(release): v2.0.0-next-major.15 (#725)
asyncapi-bot Feb 9, 2023
9ae9b28
fix: pin @openapi-contrib/openapi-schema-to-json-schema to ~3.2.0 (#741)
smoya Mar 30, 2023
9c61cf2
chore(release): v2.0.0-next-major.16 (#742)
asyncapi-bot Mar 30, 2023
5f825f2
fix: change severity for channel name validation rule (#747)
smoya Apr 18, 2023
6e75a3b
chore(release): v2.0.0-next-major.17 (#752)
asyncapi-bot Apr 18, 2023
c6e3ca6
Merge branch 'master' into next-major
smoya Apr 20, 2023
787eafe
chore: merge `master` into `next-major` #755
jonaslagoni Apr 20, 2023
8ee7473
feat!: remove schema parsers from this repository (#756)
smoya Apr 24, 2023
e52165d
chore(release): v2.0.0-next-major.18 (#757)
asyncapi-bot Apr 24, 2023
2a3af45
docs: remove /docs dir (#758)
smoya Apr 24, 2023
a949f04
Merge branch 'master' into next-major
smoya Apr 27, 2023
ec54077
chore: merge `master` into `next-major` (#763)
jonaslagoni Apr 27, 2023
676af4d
chore: update @asyncapi/specs to v5.0.0
smoya Apr 28, 2023
e84427b
Merge remote-tracking branch 'origin/master' into update-specs
smoya Apr 28, 2023
f0a49c5
Merge pull request #767 from smoya/update-specs
derberg Apr 28, 2023
6a8ab0d
Merge branch 'next-major' into next/migration-guide
magicmatatjahu May 4, 2023
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
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
37 changes: 37 additions & 0 deletions .github/workflows/link-check-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow is centrally managed in https:/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

name: Check Markdown links (Weekly)

on:
workflow_dispatch:
schedule:
# At 00:00 UTC on every Monday
- cron: '0 0 * * 0'

jobs:
External-link-validation-weekly:
if: startsWith(github.repository, 'asyncapi/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# Checks the status of hyperlinks in .md files
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'

# A configuration file can be included, indicating the properties of the link check action
# More information can be found here: https:/tcort/markdown-link-check#config-file-format
# Create mlc_config.json file in the root of the directory

- name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
27 changes: 27 additions & 0 deletions .github/workflows/link-check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow is centrally managed in https:/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

name: Check Markdown links

on:
pull_request_target:
types: [synchronize, ready_for_review, opened, reopened]
paths:
- '**.md'

jobs:
External-link-validation-on-PR:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes' # Only modified files are checked on PRs

# A configuration file can be included, indicating the properties of the link check action
# More information can be found here: https:/tcort/markdown-link-check#config-file-format
# Create mlc_config.json file in the root of the directory
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
node_modules
.vscode
.nyc_output
coverage
.DS_Store
test/sample_browser/bundle.js
dist/bundle.js
/docs/api.md
/coverage
/lib
/esm
/cjs
/browser
*.tgz
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