-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: update parser-js to v2 #615
Conversation
✅ Deploy Preview for modest-rosalind-098b67 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
4de0acb
to
a4e1aef
Compare
src/services/parser.service.ts
Outdated
await this.subscribeToSettings(); | ||
await this.parseSavedDocuments(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't wait because subscription is a procedure, not function :) So I don't think so that this is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarCloud complains about this being missing.
src/index.tsx
Outdated
@@ -32,7 +32,7 @@ function configureMonacoEnvironment() { | |||
}; | |||
} | |||
|
|||
async function bootstrap() { | |||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change bootstrap
function to something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarCloud complains (marks as a bug) with something like this iirc: "Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we see, Sonarcloud was written by Java people 😆 Ok.
Something doesn't work. When I remove |
ab1ce46
to
768b01c
Compare
Being honest, I don't understand why changing the following lines back to what it was previously fixes the issue: 768b01c |
✅ Deploy Preview for asyncapi-studio-design-system ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
0b2fa93
to
2f45428
Compare
2f45428
to
04ec1f9
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/rtm |
🎉 This PR is included in version @asyncapi/studio-v1.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @asyncapi/studio-v1.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Replaces #572
Description
This PR updates @asyncapi/parser to v2 and uses the recently released custom schema parsers.
Note: this PR does not change Studio to start using the new Parser-API but keeps using the old wrapper
const oldDocument = convertToOldAPI(document);
.Related issue(s)
asyncapi/parser-js#585