Skip to content

Releases

v1.0.5-beta.2

Choose a tag to compare

@inside83 inside83 released this 15 Nov 15:51

Release v1.0.5-beta.2 (Reproducible build & package alignment)

PeeStream WordPress & DooPlay v1.0.5-beta.1

Choose a tag to compare

@inside83 inside83 released this 15 Nov 15:14

Release v1.0.5-beta.1: HMAC-SHA256 signature verification, binary-safe case-sensitive URL deduplication, fail-safe archive migration, DooPlay repeatable_fields atomicity, and 174 harness tests passing.

PeeStream WP/DooPlay v1.0.3

Choose a tag to compare

@inside83 inside83 released this 11 Nov 22:01

Release v1.0.3: Multi-Server Atomicity, Manual Migration Locking, Idempotent Queue Reservation, and UTC Timezone Consistency

Overview

This release resolves all findings from the latest independent architectural and concurrency review. It hardens multi-server processing within a single post, harmonizes manual and automated migration locking, ensures strict DB schema compliance verification, and enforces consistent UTC timestamping across different server timezones.

What's Changed

  • Harmonized Concurrency Locking: ajax_process_batch() is now protected with acquire_lock(120), heartbeat lease extensions (extend_lock()), and guaranteed unlock in finally, making AJAX Start Migration, AJAX Check Queue, and WP-Cron completely mutually exclusive.
  • Multi-Server Post Atomicity: Posts containing multiple competitor servers (e.g. Streamtape, MixDrop, and VOE) now process each server link individually and atomically. Fresh post metadata is reloaded before each modification, distinct backup snapshots are created per link in wp_peestream_migration_backups, and each server link can be surgically rolled back without corrupting or resetting the others.
  • Idempotent Queue Pre-Reservation & UNIQUE Constraint: Added UNIQUE KEY uq_post_orig (post_id, original_url(191)) to wp_peestream_migration_queue. Tasks are atomically pre-reserved prior to calling /api/upload/url, eliminating redundant remote upload calls on concurrent executions.
  • Strict DB Schema Compliance Verification: create_tables() strictly verifies the presence of all required columns across all three plugin tables as well as both unique indexes (uq_fc_event, uq_post_orig). Schema version is bumped to 104 and is only upgraded upon verified compliance.
  • Consistent UTC Timestamps & Timezone Safety: All timestamp writes and comparison cutoffs (recover_partial_failures(), process_queue_batch()) now use consistent UTC (current_time('mysql', true) and gmdate()), eliminating bugs caused by WordPress local timezone offsets (gmt_offset).
  • Eliminated Webhook Draft Crash Window: Passed metadata directly in wp_insert_post( 'meta_input' => ... ) and added title-based draft querying, preventing duplicate draft creation even if an unexpected server timeout occurs immediately after post insertion.
  • Verified Server Attachment in Webhook: attach_server_to_post() verifies that repeatable_fields persisted to the database; failures return HTTP 500 and set audit status to 'failed' instead of 'processed'.

Package Checksum (SHA-256)

  • peestream-wp-dooplay_v1.0.3.zip: 1d94d4b35ce5517e8c3f04000b52ee780cde0c1a038fe3ef1324db156662ea87

PeeStream WordPress & DooPlay Addon v1.0.2

Choose a tag to compare

@inside83 inside83 released this 11 Nov 19:56

PeeStream WordPress & DooPlay Addon v1.0.2

Official verified stable release addressing all architectural and concurrency review findings.

Note: Version 1.0.1 was a pre-release build pending final architectural review. Version 1.0.2 is the recommended, fully verified production release.

Key Fixes and Hardening:

  1. Queue Lock Lease Extension & Time Budgeting:
    • Replaced fixed 120s queue lock timeout with per-task heartbeat lease extension (extend_lock) and batch time budgeting (max_execution_time).
    • Slow API responses can no longer cause an active worker's lock to expire and be usurped by a concurrent worker.
  2. Owner-Token Conditional Atomic Lock Release:
    • Implemented conditional atomic SQL deletion (DELETE FROM wp_options WHERE option_name = %s AND option_value LIKE %s).
    • Workers strictly release only their own lock tokens, preventing interference with active workers.
  3. Verified Post Meta Persistence:
    • In both manual AJAX and background WP-Cron queue processing, DooPlay repeatable_fields updates are strictly verified (fresh_meta === target_meta) before marking queue items as completed.
  4. Partial Failure Recovery & Crash Protection:
    • Backups are written with status in_progress prior to post modification and promoted to completed only after post meta is confirmed saved.
    • Added recover_partial_failures() to automatically identify and flag interrupted jobs as apply_failed without corrupting post data.
  5. Legacy Backup Mode Migration & Rollback Safeguards:
    • Enforced DEFAULT 'unknown' on schema version 103 for the backup mode column; migrated historical empty backup modes to 'unknown'.
    • In ajax_rollback(), if an old backup recorded mode as replace but the original URL is already present in the post, it is safely reclassified to primary to avoid server duplication.
  6. Webhook Crash Recovery & Draft Deduplication:
    • Added immediate post link persistence (_peestream_webhook_filecode and post_id audit column) right after wp_insert_post().
    • Subsequent webhook retries re-use existing draft posts, preventing duplicate post creation.
  7. Decoupled DB Schema Versioning:
    • Upgraded to DB_SCHEMA_VERSION = 103, saving the schema option strictly after all tables and column modifications return verified success.

Checksums:

  • Archive: peestream-wp-dooplay_v1.0.2.zip
  • SHA-256: 8e7bbcbd49183915730c5e658ddb3e959fc14333cdd3ccc28d1010ea7fe50cb2

PeeStream WordPress & DooPlay Addon v1.0.1

Choose a tag to compare

@inside83 inside83 released this 11 Nov 19:00

PeeStream WordPress & DooPlay Addon v1.0.1 - Release Hardening

  • Decoupled DB schema version (102) from plugin version (1.0.1).
  • Added atomic process locking via add_option with owner token and CAS recovery.
  • Fixed AJAX lock release before wp_send_json_success() / wp_die().
  • Added primary mode interim conflict detection if original URL was removed by editor.
  • Webhook idempotency and retry with atomic CAS takeover on timed-out reservations.
  • Backward compatibility for legacy backups with safe fallback to manual_review.
  • 100% test suite passing (104/104 tests).
  • SHA-256: 6aa867304b11856fd8413cac609bfa98eb386a87538245641adecdd35060cd6f