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

Replace WPAPI with bespoke Agent #47

Merged
merged 2 commits into from
Aug 3, 2023
Merged

Replace WPAPI with bespoke Agent #47

merged 2 commits into from
Aug 3, 2023

Conversation

soup-bowl
Copy link
Owner

While the WP-API library was a good way to get this project going, it seems to have since been abandoned by WordPress as no significant commits have happened in more than 2 years. With a rather... Strange way of handling pagination, I've been having troubles ensuring type-compatibility.

Unless something significant changes and the project comes back into support, I've wrote a small agent to replicate the features I was using, but without needing to pack in the dependency.

@soup-bowl soup-bowl added the enhancement New feature or request label Aug 3, 2023
@soup-bowl soup-bowl self-assigned this Aug 3, 2023
@soup-bowl soup-bowl linked an issue Aug 3, 2023 that may be closed by this pull request
@soup-bowl soup-bowl marked this pull request as draft August 3, 2023 07:50
@soup-bowl soup-bowl marked this pull request as ready for review August 3, 2023 11:45
@soup-bowl soup-bowl merged commit f3c2d69 into main Aug 3, 2023
@soup-bowl soup-bowl deleted the replace-wpapi branch August 3, 2023 11:48
@tblobaum
Copy link

tblobaum commented Nov 4, 2023

Hey there. Where is the code for the small agent?

@soup-bowl
Copy link
Owner Author

@tblobaum this whole PR is dealing with the small agent, but specifically the primary code for the agent is in src/api/wordpress.ts. This isn't currently a separate library as it handles just the API calls the frontend makes and is not feature-complete like the abandoned original library was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace wpapi dependency
2 participants