-
Notifications
You must be signed in to change notification settings - Fork 11
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/update medusa sdk #50
Chore/update medusa sdk #50
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I just noticed that are still some references to the old syntax in the docs. I will fix them later. |
Hey Buddy, Thanks for this amazing work! I will test it later this week and release a new major version :) |
Hey Jakub! I'm glad to help. I imported the module locally in a project and it worked great. We should check that the config options types are ok since I did a cast there, and also do the versioning and maybe bump some packages. Feel free to let me know if there is something else to do. 😃 |
hello,
|
@@ -2,10 +2,7 @@ import { serverMedusaClient } from '#medusa/server' | |||
|
|||
export default eventHandler(async (event) => { |
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.
question: Is this change intentional? Can we maybe have instead a new playground example of regions fetch instead of replacing the one that will fetch customer on the server side? :)
Amazing job @dimitrio-m .I have left one comment and apart from that it looks good! The casting is ok :) After the comment, I will proceed with releasing a new version soon. |
Bump @dimitrio-m :) |
Hi @Baroshem, are we waiting on action with this still? Do you know when this may be available to the General Public through the module? |
I was waiting for response from @dimitrio-m but I can also just do it myself and release it this week. Stay tuned :) |
Hello, I updated the module to use the new Javascript SDK. The new SDK docs are a bit challenging, so I had to verify in the code a lot of the functionality and the API. Please be aware of this and test the changes yourself too and let me know if I should modify something or maybe add more tests in the playground.
Types of changes
Description
This change is required due to the launch for Medusa 2.0. The new version also ships with a new Javascript SDK that replaces
@medusa/medusajs
.The playground now works with a local instance of Medusa.
Please verify the module typing, I had some Typescript erros on the composable and server files so I made a cast in lines 10 and 15.
Resolves: #49
Checklist: