Skip to content

Conversation

@Convly
Copy link
Member

@Convly Convly commented Jan 13, 2025

What does it do?

Rename instances of StrapiSDK by Strapi and strapiSDK by strapi.

Update in code, tests, documentation and comments.

Why is it needed?

Adopt a more conventional a developer-friendly naming for the SDK constructor.

How to test it?

The tests should work as usual, it's advised to manually test the built library with an example

@Convly Convly added pr: enhancement Refactorings / perfs / testing / translations source: client Source is the main client object labels Jan 13, 2025
@Convly Convly force-pushed the enhancement/sdk-constructor branch from bb886ad to d8970fa Compare January 13, 2025 15:04
Copy link
Contributor

@innerdvations innerdvations left a comment

Choose a reason for hiding this comment

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

LGTM! It's a lot cleaner this way

@jhoward1994
Copy link
Contributor

jhoward1994 commented Jan 20, 2025

Very minor but I think this might need updating too?

https://github.com/strapi/sdk-js/blob/d8970faa12490391e7b76b2873ce05b88441e727/src/sdk.ts#L325-L326

@Convly
Copy link
Member Author

Convly commented Jan 22, 2025

Very minor but I think this might need updating too?

https://github.com/strapi/sdk-js/blob/d8970faa12490391e7b76b2873ce05b88441e727/src/sdk.ts#L325-L326

Nice catch, updated!

Base automatically changed from feat/http-api-v2 to main January 22, 2025 14:08
@Convly Convly merged commit 9ac67c7 into main Jan 22, 2025
7 checks passed
@Convly Convly deleted the enhancement/sdk-constructor branch January 22, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement Refactorings / perfs / testing / translations source: client Source is the main client object

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants