Repository navigation
Releases
Octoload 0.3.1
Security and maintenance release, including the accumulated 0.3 changes since npm 0.2.1.
- Fix upload resurrection and bound metadata requests.
- Isolate npm OIDC publishing from builds and repository scripts, with archive integrity checks and registry readback.
- Add upload observability, cancellation, timeouts, and explicit recovery.
- Use tracked SQL migrations and strengthen storage-key and listing indexes.
- Require DELETE for React Router image deletion.
- Refresh dependencies and validate package, storage, database, and browser behavior in CI.
Review the upgrade and migration guidance before upgrading from 0.2.1: https://github.com/kahwee/octoload/tree/54d1d883e378b8c4bbde77c22d7a2d474f2e405f/docs
Source: 54d1d88. This release triggers npm publication through GitHub Actions; registry publication is verified separately.
Octoload 0.3.0 — upload observability and recovery candidate
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.tgzChanges
- Timed
onEventhooks,onError, phase-specificUploadFailure, and correlated client/server request IDs. Hook exceptions and rejected promises do not interrupt uploads. - AbortSignal cancellation; configurable API and single-PUT timeouts; explicit
recoverUploadfor 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.
Octoload 0.2.1
Octoload 0.2.1 adds persistent PGlite scaffolding and hardens upload failure handling. PostgreSQL remains the default, and SQLite remains supported.
- Use
octoload init --driver pglitefor a persistent PGlite connection and migration configuration. - Failed deletions hide records before touching storage and remain retryable; metadata updates reject deletion races.
- Framework handlers redact unexpected provider errors and prevent caching private responses. Browser abort and timeout events settle without finalization.
- SQLite and PGlite examples verify data survives closing and reopening a disk database.
Validation: 294 tests, build/type/docs/package checks, Node 24 checks, actual private R2 upload → finalize → download → delete with both databases, 64 signature mutations rejected, and concurrent uploads with one winner.
Image validation checks object size and content type; it does not decode image bytes. See the documented content-validation trade-off.
Install: pnpm add octoload@0.2.1.
Octoload 0.2.0: SQLite and hardened uploads
Octoload 0.2.0 adds SQLite alongside PostgreSQL, with matching Drizzle schemas, CLI scaffolds, and runnable examples. PostgreSQL remains the default; use --dialect sqlite for SQLite.
Upload URLs now bind size and content type and require create-only writes. Ready-only reads, metadata validation, private not-found responses, and database-error redaction strengthen the upload lifecycle. The legacy add command preserves dependency pins and environment values; multipart helpers reject invalid counts before allocation.
Upgrade bucket CORS to allow If-None-Match and Content-Type, and forward every returned upload header. Existing PostgreSQL applications keep their schema; SQLite connections must enable foreign keys.
Verified: 251 tests on Node 24 and 26, package/scaffold checks, PGlite and SQLite constraints/races, and actual private R2 uploads through both databases with byte comparison, replay rejection, and deletion. Browser/session integration, network PostgreSQL pooling, and live S3 parity remain separate deployment checks.
Octoload intentionally checks object metadata without decoding image bytes. Matching-size non-image payloads can be accepted; image decoding remains future work to keep the package lightweight. Credentials are not included in the release.
pnpm add octoload@0.2.0