Releases: Freespoke/wordpress-plugin
Releases · Freespoke/wordpress-plugin
v2.2.0
What's Changed
Added
- Test Mode. A new "Test Mode" setting (Tools → Freespoke Publisher) submits posts to Freespoke end-to-end for validation without storing the resulting content — useful for verifying the integration. It can also be locked via a
FREESPOKE_TEST_MODEconstant, and a persistent admin notice warns while test mode is active. Submissions carry thetest_modeflag through to the API. - Automatic deletion on trash/delete. When a tracked post is trashed (
wp_trash_post) or permanently deleted (before_delete_post), the plugin now calls the Freespoke delete API to remove the previously-indexed content. Deletes are targeted by the post's permalink and its stored document id. - Document ID tracking. On job completion the plugin stores the indexed document id (
doc_id) in post meta (_freespoke_doc_id) and uses it to target deletes.
Changed
- Retryable vs. permanent error handling. Failed index jobs and API exceptions are now classified. Permanent failures (HTTP 4xx other than 408/429, and gRPC codes like
INVALID_ARGUMENT,NOT_FOUND,PERMISSION_DENIED,FAILED_PRECONDITION, etc.) set a no-retry flag so the cron job stops resubmitting until the post changes; transient failures (timeouts, 429, 5xx, network/parse errors) remain retryable. Pre-existing stored errors default to retryable for backwards compatibility. - Single submission per request.
onPostSavenow collapses the multiplewp_after_insert_postfires Gutenberg emits per publish (andwp_update_post()calls from other plugins'save_posthandlers) into a single submission, preventing duplicate index requests. This replaces the previous separatetransition_post_status(future→publish) handler.
Dependencies
- Bundled
freespoke/partnerSDK updated to include thedelete()method,test_modearticle flag, anddoc_idparsing. - Guzzle
7.10.0→7.10.4, guzzlehttp/psr72.9.0→2.10.2, guzzlehttp/promises2.3.0→2.4.1, symfony/deprecation-contracts3.6.0→3.7.0.
Full Changelog: https://github.com/Freespoke/wordpress-plugin/commits/v2.2.0
v2.1.0
Update wordpress-plugin from 0fb8b0d3
v2.0.1
Update wordpress-plugin from eef42533
v2.0.0
Update wordpress-plugin from f10144fb
v2.0.0-alpha1
Update release.yml