Skip to content

Conversation

@Convly
Copy link
Member

@Convly Convly commented Apr 8, 2025

What does it do?

  • Renamed Strapi to StrapiClient to better understand its purpose
  • Renamed StrapiConfig to StrapiClientConfig to follow the associated class' change
  • Moved the client's files accessor from a getter to a property by making it public and renaming it from _files to files
  • Added backward compatibility by keeping aliases of previously exported types, added todo to make sure they get removed in v2

Why is it needed?

Cleanup, improve developer experience.

How to test it?

Everything should work just like previous versions, new types should be available

@Convly Convly added pr: enhancement Refactorings / perfs / testing / translations source: client-types Source is types labels Apr 8, 2025
@Convly Convly requested a review from alexandrebodin April 8, 2025 13:37
Copy link
Member

@alexandrebodin alexandrebodin left a comment

Choose a reason for hiding this comment

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

I like it, the exports stuff could also help for testing internals potentialy by exposing the index.ts for testing

@Convly Convly merged commit 1677756 into main Apr 8, 2025
7 checks passed
@Convly Convly deleted the enhancement/better-client-api branch April 8, 2025 21:28
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-types Source is types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants