Skip to content

feat: upgrade @asyncapi/parser to v2.0.0 and use the new parser-api - #960

Merged
asyncapi-bot merged 25 commits into
asyncapi:masterfrom
smoya:chore/updateParsers
May 18, 2023
Merged

asyncapi-bot merged 25 commits into
asyncapi:masterfrom
smoya:chore/updateParsers

Conversation

@smoya

@smoya smoya commented May 2, 2023 •

Copy link
Copy Markdown
Member

Replaces #833

Description

Use Parser-JS v2, and new Custom Schema Parsers:

  • add new template config field apiVersion.
  • update relevant source code to handle new and old API
  • add some utils
  • update tests

Related issue(s)
Resolves #825
Part of asyncapi/parser-js#481

@smoya smoya changed the title Chore/update parsers feat: upgrade @asyncapi/parser to v2.0.0 and use the new parser-api May 2, 2023
derberg
derberg previously approved these changes May 10, 2023

@derberg derberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, generator config prop is needed. Basically imagine we do what @fmvilas mentioned in the other comment, that we make v2 default and release 2.0, without generator prop in the template, template users instead of clear info "that template is not compatible with 2.0" they will get some parser errors.

great work, probably https://github.com/asyncapi/generator/blob/master/test/__mocks__/%40asyncapi/parser.js can be removed

@smoya
smoya dismissed stale reviews from derberg and fmvilas via dbb27c4 May 12, 2023 19:09
derberg
derberg previously approved these changes May 15, 2023

@derberg derberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀
If there are no new comments before Wednesday feel free to merge on Wednesday

@derberg

derberg commented May 15, 2023

Copy link
Copy Markdown
Member

@Florence-Njeri @pratik2315 please have a look on docs changes, your approval is required

@smoya

smoya commented May 17, 2023 •

Copy link
Copy Markdown
Member Author

If there are no new comments before Wednesday feel free to merge on Wednesday

No comments since then, so I'm gonna merge this

@smoya

smoya commented May 17, 2023

Copy link
Copy Markdown
Member Author

/rtm

@derberg

derberg commented May 17, 2023

Copy link
Copy Markdown
Member

@smoya you can't merge until @Florence-Njeri or @pratik2315 approves

@smoya

smoya commented May 17, 2023

Copy link
Copy Markdown
Member Author

@smoya you can't merge until @Florence-Njeri or @pratik2315 approves

Yeah, I feel like an adventurer today 😅

Comment thread docs/configuration-file.md Resolved
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@smoya

smoya commented May 18, 2023

Copy link
Copy Markdown
Member Author

/rtm

@asyncapi-bot
asyncapi-bot merged commit 4b092d0 into asyncapi:master May 18, 2023
@smoya
smoya deleted the chore/updateParsers branch May 18, 2023 11:12
@asyncapi-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate new ParserAPI

7 participants