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

feat: rewrite to TS and start using Jest #115

Merged
merged 8 commits into from
Mar 21, 2022

Conversation

magicmatatjahu
Copy link
Member

@magicmatatjahu magicmatatjahu commented Mar 16, 2022

Description

  • rewrite package to the TS
  • start using Jest
  • expose types
  • add needed scripts

NOTE: PR hasn't any breaking changes. It's old code with TS types.

Related issue(s)
Resolves #106
Resolves #107

@magicmatatjahu magicmatatjahu added the enhancement New feature or request label Mar 16, 2022
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

I think it makes sense as converter will grow in complexity, especially with 3.0 🤣

I support it, of course while being awake 👇🏼
Screenshot 2022-03-17 at 13 09 32

The only thing is missing is the pre publish script that would run a build script during release.
I'm also thinking, minimum should be that we release it as feat as you expose 2 new interfaces (btw update readme) there that were not in the package before. Also, maybe remove CLI and we do 1.0 release.

@magicmatatjahu
Copy link
Member Author

@derberg 😘 Thanks dude!

I forgot about that prepublish script to transpile TS, thanks!

About CLI I wrote about my plan here #100 (comment) So in the next month when we will release 2.4.0 I will remove CLI and release 1.0.0 :)

@magicmatatjahu
Copy link
Member Author

@derberg Thanks for review! I added to the Readme example how to use package with exported types and also added prepublishOnly script.

@sonarqubecloud
Copy link

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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@derberg
Copy link
Member

derberg commented Mar 21, 2022

what about my comment

I'm also thinking, minimum should be that we release it as feat as you expose 2 new interfaces

@magicmatatjahu magicmatatjahu changed the title refactor: rewrite to TS and start using Jest feat: rewrite to TS and start using Jest Mar 21, 2022
@magicmatatjahu
Copy link
Member Author

@derberg Sorry, done 😅

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

:shipit:

if you want to update it manually in studio, then remember to stop https://github.com/asyncapi/converter-js/actions/workflows/bump.yml after release of converter. Or just block update PR in studio once it is created

@magicmatatjahu
Copy link
Member Author

@derberg Thanks for tip, however It won't be needed, because there isn't breaking change :)

@magicmatatjahu
Copy link
Member Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 1d43660 into asyncapi:master Mar 21, 2022
@magicmatatjahu magicmatatjahu deleted the rewrite-to-ts branch March 21, 2022 11:25
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to Jest Rewrite to TS
3 participants