Why the older version has been removed & why a rework ? #32
Stun3R
announced in
Announcements
Replies: 1 comment
|
Very cool work, @Stun3R. Very impressive! 🆒😎 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
👋🏻 Welcome
First, thank you for the interest you put in this project!
As you may know, I already wrote an SDK for Strapi and it had the same name (
strapi-sdk-js), same package name & same documentation link...You may ask "why you didn't released a new version and let the older one?".
The answer is simple:
The first version doesn't suit me anymore in relation to the skills I had at the time I had to develop it. The project lacks readability, the code wasn't very clean (everything in one file). This project needed to be more professional, the documentation wasn't clear either and some features were missing...
That's why I decided to not released a V2 as I wanted to rework it from scratch.
What were the overall ideas ?
What is it finally ?
Strapi SDK is a beautiful Typescript project which support CRUD, GraphQL & authentication methods. For the authentication part you can chose between the local storage & cookies in order to store your Strapi JWT.
Because this package has been designed using Typescript, it natively supports it. You have access to all the types used for the development and in all his methods.
The CLI part has been removed from the package since it cost too much memory and was too heavy for a SDK. You were forced to use
GraphQLin your Strapi API in order to make it works... So I decided to create another package for it which is strapi-generate-types.I kept the generation feature in mind and I'm working hard on it! You'll have the ability to install a plugin on your Strapi API which will expose your content types. The SDK will trigger on load this plugin's endpoint in order to generate shortcuts methods like
strapi.articles.find()and Typescript's types. 🚀What's next ?
As I said I'm working on the generation feature and currently maintaining the core features.
Don't hesitate to open a Discussion or an ISSUE in order to give some feedback! ❤️
Useful links
All reactions