Skip to content

Octoload 0.3.0 — upload observability and recovery candidate

Pre-release
Pre-release

Choose a tag to compare

@kahwee kahwee released this 03 Oct 22:21

Octoload 0.3.0 adds structured upload errors, event hooks, cancellation, timeouts, and explicit recovery after a lost PUT or finalize response. Recovery verifies the existing object and never repeats PUT.

This is a GitHub release candidate, with an installable tarball and SHA512 checksum attached. It has not been published to npm; npm latest remains 0.2.1.

pnpm add https://github.com/kahwee/octoload/releases/download/v0.3.0/octoload-0.3.0.tgz

Changes

  • Timed onEvent hooks, onError, phase-specific UploadFailure, and correlated client/server request IDs. Hook exceptions and rejected promises do not interrupt uploads.
  • AbortSignal cancellation; configurable API and single-PUT timeouts; explicit recoverUpload for authenticated owners.
  • Fix empty Chromium 204 responses, async progress-hook rejections, overflowing timeout values, stale recovery-handle reuse, and missing observability for early framework parameter failures.
  • Updated setup, observability, testing, and release documentation; browser E2E coverage in CI.

Upgrade notes

No schema migration is required. Upgrade client and server together. API requests now default to 30 seconds and single PUT to 120 seconds. Upload failures extend OctoloadError through UploadFailure; use its phase and code instead of upload-specific subclass checks. Recovery handles are single-use; keep the replacement error if recovery fails. See the upgrade guide.

Verification

  • Full repository verification: 318 tests, coverage thresholds, docs, packed exports, CLI/scaffolds, SQLite/PGlite migrations, and persistence examples.
  • All nine Chromium browser scenarios passed locally and against a real private R2 bucket.
  • Live SQLite/R2 and PGlite/R2 lifecycles passed, plus 64 rejected signature mutations and a 12-PUT conditional-write race.
  • Production-only and full dependency audits reported no known advisories.
  • Reviewed tarball installed in a fresh registry-backed consumer: all four ESM/CJS exports, CLI version, both framework scaffolds, and both SQL dialects passed.
  • npm publish dry run passed; npm authentication is not currently available in the release environment.

Browser E2E uses Next.js, SQLite, and a cookie-backed test session provider. Live S3 parity, production authentication, network PostgreSQL pooling, and multiple application processes remain deployment checks. Octoload verifies object metadata, not image bytes or checksums; the server upload flow remains single PUT.