Reference

Changelog

All notable changes to Fileway

View the canonical source on GitHub →

All notable changes to Fileway are documented here. Releases are cut from main via the automated release workflow with npm provenance (SLSA) attestation on every publish.

Upcoming: v1.0.0

The first stable release. Target scope, tracked on the roadmap:

  • Stable public API: ⏳ not yet. The core contract was cleaned up in v0.5.0, but v0.6.0 and v0.7.0 added new public API (list, stat, copy and move; plugins and events; client.handler; app-signed links) that needs real-world use before it is frozen. At 1.0, UploadOptions, UploadResult<TMeta>, BaseDriver, FilewayClient and the plugin and links types lock in; after that, breaking changes become semver-major.
  • True streaming uploads: ✅ landed for all drivers. Local pipes straight to disk with backpressure; S3 uses aws-chunked per-chunk SigV4 signing when options.size is known and bounded-memory multipart uploads otherwise; GCS uses resumable sessions, Azure staged blocks, Supabase TUS in 6 MiB chunks, and Cloudinary chunked uploads, each holding one chunk in memory at a time.
  • Upload cancellation: ✅ landed for all drivers: options.signal rejects with AbortError and cleans up partial artifacts.
  • Middleware stream transformation: ✅ landed: beforeUpload can return a replacement stream (and/or options), which is what the driver uploads. The known size is dropped when the stream is replaced unless the middleware returns the new length.
  • Operational hardening: ✅ landed: progress events (options.onProgress), typed errors (StorageError codes), retries with backoff and idle timeouts (retry config), lost-response recovery, dependency-free logger/onError hooks, and per-operation events for plugins.
  • Signed downloads: ✅ landed for every driver via getPresignedUrl: native signed URLs on S3, GCS, Azure, Supabase and Cloudinary, and app-signed links for Local and other storage that cannot sign, plus signed upload links.

Expected: once the public API is frozen and has gone through real-world feedback via GitHub Discussions.

v0.9.0 (2026-11-24)

Features

  • client.features and ctx.features for plugins: what the client can do with its driver (list, stat, copy, move, range, downloadLinks, uploadLinks, maxUploadBytes), counting fallbacks such as move as copy then delete. Useful for hiding actions a driver does not support.

v0.8.1 (2026-11-24)

Features

  • ctx.basePath for plugins: where client.handler is mounted (for example /api/fileway), so a plugin can tell a service which URL serves its routes.

v0.8.0 (2026-11-24)

Features

  • Direct upload links. getPresignedUploadUrl({ ..., direct: true }) returns a link straight to the bucket on S3 (and R2, MinIO), Google Cloud Storage and Azure, so large browser uploads skip your app's bandwidth and your host's request size limit. The browser call is the same fetch(link.url, { method, headers, body }). S3 needs the exact size and rejects any other length; Google Cloud enforces maxSize with a signed x-goog-content-length-range header; Azure cannot limit the size, so its links expire within 15 minutes. Direct uploads skip middleware, plugins and the upload event. Links keep going through your app by default when links is configured; without links, drivers that support it return direct links.
  • PresignedUpload.path: where the file will be stored, returned with every upload link.
  • waitUntil on FilewayClient and ctx.waitUntil for plugins. Pass the platform's waitUntil (from @vercel/functions or cloudflare:workers) and promises returned by onEvent, or handed to ctx.waitUntil, keep running after the response on serverless platforms.
  • Drivers: optional BaseDriver.getPresignedUploadUrl and DriverCapabilities.directUpload (enforcesSize, maxExpiresIn), implemented by the S3, Google Cloud and Azure drivers.

v0.7.0 (2026-11-10)

Features

  • Plugins (RFC 0002, part 1). plugins: [...] on FilewayClient: one object that can listen to events, add upload middleware and serve HTTP routes. Use it for audit trails, usage metering, metrics, webhooks or your own file API.
  • Events. Every operation produces one FilewayEvent when it finishes, after retries: operation, outcome (success, error, aborted), path, size, duration, attempts, driver and error code. onEvent is never awaited and never fails an operation.
  • actor and tags on every client method record who an operation was for. They are copied onto the event and never passed to drivers.
  • client.handler: a web-standard request handler that serves plugin routes under basePath (default /api/fileway). Mount it in Next.js (export const { GET, POST } = client.handler), Workers, Bun, Deno or Hono.
  • App-signed links (RFC 0004). With links: { secret, origin }, getPresignedUrl works for drivers that cannot presign (Local, network disks): your app signs the link and client.handler serves it, with Range support for seeking. mode: "always" routes every driver's links through your app. Images, PDF, audio and video open inline; HTML, SVG and scripts always download; responses carry nosniff and, except for PDFs, a sandbox CSP.
  • client.getPresignedUploadUrl(): a signed PUT link for one file, fixing its name, folder, id, type and size limit. Uploads run through middleware, plugins and events.
  • Range reads: get(path, { range }) and DriverCapabilities (range, maxUploadBytes), implemented by every built-in driver.

v0.6.0 (2026-11-10)

Features

  • List, stat, copy and move (RFC 0001). client.list({ prefix, recursive, limit, cursor }) returns one page of files and folders; client.listAll() iterates every file, following cursors; client.stat(path) returns a file's details or null; client.copy(from, to) and client.move(from, to) copy and rename on the same storage. All of them retry, log, honor signal, and pass through driver-specific options.
  • Every driver supports them: Local, S3 (multipart copy above 5 GiB), Google Cloud Storage (objects.rewrite), Azure (Copy Blob, waiting for background copies), Supabase (native copy and move) and Cloudinary (list and rename; no copy).
  • A retried copy or move recovers a lost response: a copy that already landed is not reported as a conflict, and a move whose source is gone succeeds when the destination exists.
  • New error code conflict: a copy or move onto an existing path without overwrite: true. Not retried. Exhaustive switch statements over StorageErrorCode need the new case.
  • Driver contract: optional BaseDriver.list, copy and move. Drivers with only copy get move as copy plus delete. @fileway/core exports encodeCursor and decodeCursor for driver authors.

v0.5.0 (2026-11-02)

Breaking changes (pre-1.0 API cleanup)

This is the last planned breaking release before 1.0: it settles the public API so 1.0 can freeze it.

  • delete() returns Promise<void> on the client and every driver. Deleting a missing object is no longer reported (it was false on most drivers and always true on S3); any other failure still throws.
  • Cancellation reaches the request. Every BaseDriver method except upload takes options?: { signal }, and the client passes the caller's signal to the driver, so get, delete, head and the rest abort the request in flight instead of only stopping retries. With retry.idleTimeoutMs, a timed-out attempt's request is now cancelled too.
  • Driver-specific options pass through the client. client.get, delete, getUrl and getPresignedUrl accept the driver's own options (e.g. Cloudinary's { deliveryType, resourceType }), like upload already did.
  • uploadToken left UploadOptions. The client passes it to drivers as a third argument: upload(stream, options, context?: UploadContext).
  • FilewayClient is generic over the driver, not the config: FilewayClient<S3Driver> instead of FilewayClient<{ driver: S3Driver }>. Inferred usage (new FilewayClient({ driver })) is unchanged.
  • Middleware: afterUpload(result, options) now receives the options the driver got, and MiddlewareHook<TMeta> types result.meta from the driver for inline hooks.
  • New error codes rate-limited (HTTP 429 and provider throttling such as S3 SlowDown, Azure ServerBusy, Cloudinary 420) and timeout (an idle-timed-out attempt, previously network). Both are retried. Exhaustive switch statements over StorageErrorCode need the two new cases.
  • Smaller public surface. @fileway/core no longer exports isRetryable, sleep, delayWithJitter, withProgress or validateUploadId; check err.code instead of isRetryable. The new drivers no longer export their error classifiers or parseConnectionString.

Other changes

  • S3Meta and LocalMeta are exported names for the drivers' metadata types.
  • S3Driver accepts maxSizeBytes, like the other drivers.
  • Error messages no longer contain em dashes.

Migrating from 0.4

// delete: no boolean any more
const existed = await client.delete(path);     // before
await client.delete(path);                      // after

// annotations: the type parameter is the driver
let client: FilewayClient<{ driver: S3Driver }>; // before
let client: FilewayClient<S3Driver>;             // after

// custom drivers
async upload(stream, options) { store(options.uploadToken) }                  // before
async upload(stream, options, context) { store(context?.uploadToken) }        // after
async delete(path): Promise<boolean>                                          // before
async delete(path, options?: OperationOptions): Promise<void>                 // after, pass options?.signal to fetch

// retries
if (isRetryable(err)) { /* ... */ }                                           // before
if (err instanceof StorageError && ["network", "timeout", "rate-limited", "provider-error"].includes(err.code)) { /* ... */ } // after

New drivers

All three are zero-dependency (fetch and Web Crypto only), run on Node.js, Bun, Deno and edge runtimes, stream with bounded memory, and support presigned URLs, typed errors, lost-response recovery and getUploadStatus.

  • @fileway/gcs (docs): Google Cloud Storage. Authenticates with a service account key (JWT signed in-process, token cached) or your own getAccessToken. Small files go up in one request, larger ones through a resumable session; V4 signed URLs.
  • @fileway/azure (docs): Azure Blob Storage. Shared Key, SAS token or connection string (including UseDevelopmentStorage=true for Azurite). Block uploads with Put Block List, service SAS download links, and pending status while blocks are staged. Integration tests run against Azurite in CI.
  • @fileway/supabase (docs): Supabase Storage. A secret key on the server, or a publishable key plus a user's JWT so RLS applies. Resumable TUS uploads in 6 MiB chunks for large files, Supabase signed URLs.

Changes

  • S3: forceMultipart now defaults to true for a storage.googleapis.com endpoint. Google Cloud Storage's S3 interop stores aws-chunked signatures inside the object, so a streamed single PUT would corrupt it.

v0.4.0 (2026-10-26)

Features

  • Lost-response recovery. When an upload fails with a retryable error, FilewayClient now checks whether the provider stored the object anyway (the response was lost, not the upload). If it did, the upload succeeds with that object instead of re-sending it or failing. This works even without streamFactory.
  • Stable upload IDs. Each upload() call gets one id, reused by every retry, so a retry can never store a second copy. Pass your own UploadOptions.id to make uploads idempotent across processes; reusing an ID overwrites that object.
  • client.getUploadStatus(id, { filename, path }) reports complete (with the stored object), pending, missing or unsupported, straight from the storage provider.
  • retry.idleTimeoutMs (opt-in): cancels an attempt that makes no progress for that long and retries it as a network failure, so a hung connection no longer waits forever. For uploads it measures inactivity (it resets on every chunk read, then limits the wait for the reply), so slow but moving uploads are not cut off; other operations get a per-attempt time limit. The caller's own signal stays final.
  • Driver contract: new optional BaseDriver.pathFor, head and isPending, implemented by all three drivers. Custom drivers that add pathFor and head get recovery and status checks automatically.

Changes

  • Uploads stamp a per-call uploadToken on the object (S3 metadata x-amz-meta-fileway-upload-token, Cloudinary context fileway_upload_token) so recovery never mistakes an older upload with the same ID for this one. Drivers and middleware now see id and uploadToken in the upload options.
  • Cloudinary: uploads send public_id (the upload ID) with overwrite=true, so new public IDs are UUIDs (or your id) instead of Cloudinary's short random IDs.
  • Local: files are written to a temporary *.partial file and renamed into place when complete, so a failed retry never truncates or deletes a finished file.

v0.3.0 (2026-10-26)

This release contains breaking changes (allowed before 1.0 as a minor bump). Read the breaking changes and migration notes before upgrading.

Breaking changes

  • delete throws on real failures. All drivers return false only when the file does not exist; auth, network and provider failures now throw a StorageError (and are retried by the client when transient). S3 returns true whenever the object is gone, since S3 does not report whether it existed. Local delete with a path escaping the storage directory now throws a ValidationError instead of returning false.
  • maxSizeBytes violations use the size-exceeded code (Local and Cloudinary) instead of ValidationError/validation.
  • Plain errors are no longer retried by default. Among non-StorageError failures, only TypeError (what fetch throws on network failure) retries unless retry.retryGenericErrors is set. Set it to true for the old behavior.
  • Cloudinary getUrl/get/delete/getPresignedUrl throw when the Admin API lookup fails (auth, rate limit, outage) instead of silently assuming an image asset.
  • A middleware that returns a new stream must return its size to keep one. Length-preserving transforms (checksums, validation) should return size: options.size; otherwise the size is dropped (S3 then uses multipart, and progress has no total).
  • Cloudinary getPresignedUrl returns a different URL (see Fixes); use getSignedUrl for the old format.

Migration

  • Wrap delete calls in try/catch if you relied on false for failures; false now only means the file did not exist.
  • Check err.code === "size-exceeded" (not instanceof ValidationError) for maxSizeBytes violations.
  • Set retry: { retryGenericErrors: true } to keep retrying plain errors.
  • In beforeUpload middleware that returns a same-length stream, also return size: options.size.
  • Use CloudinaryDriver.getSignedUrl() where you need the old non-expiring signed delivery URL.

Features

  • S3: temporary credentials. credentials.sessionToken is sent and signed as x-amz-security-token (and X-Amz-Security-Token in presigned URLs), enabling STS, Lambda/ECS roles and SSO.
  • Cloudinary: chunked uploads with bounded memory. Files larger than chunkSize (default 20 MiB, minimum 5 MiB) upload in chunks via X-Unique-Upload-Id + Content-Range instead of being buffered whole, and maxSizeBytes is enforced while streaming.
  • Cloudinary: bounded lookup cache: cacheSize (default 1000) caps the in-memory resource-type/version/format cache with least-recently-used eviction.
  • Cloudinary: delivery types. Upload as upload (public), authenticated or private via the driver's deliveryType config or a per-upload deliveryType option. getUrl/get sign URLs for non-public assets, delete uses the asset's delivery type, and lookups can be filtered by type. meta.deliveryType reports it.
  • Driver-specific upload options through the client: FilewayClient.upload now accepts the driver's own upload options (e.g. Cloudinary's deliveryType) on top of UploadOptions.
  • Cancellable retries: delete, get, getUrl and getPresignedUrl on FilewayClient accept { signal }; aborting stops further attempts and interrupts a pending retry delay.

Fixes

  • S3: long multipart uploads no longer fail partway through. Each request (create, every part, complete, abort) is now signed with the time it is sent. Previously all were signed with the upload's start time, so uploads running longer than ~15 minutes were rejected with RequestTimeTooSkewed.
  • Retries no longer re-apply middleware. Each upload retry now runs beforeUpload middleware on the caller's original options instead of the previous attempt's transformed ones (e.g. a path-prefixing middleware no longer prefixes twice).
  • Cloudinary: getPresignedUrl now actually expires. Cloudinary ignores expires_at on res.cloudinary.com delivery URLs, so the previous links never expired. It now returns a signed private download URL (api.cloudinary.com/v1_1/<cloud>/<type>/download) that stops working at expires_at. The previous signed delivery URL is available as CloudinaryDriver.getSignedUrl() (non-expiring).
  • S3: a part with no ETag now fails clearly (with a hint about browser CORS ExposeHeaders) instead of completing with an invalid substitute ETag.
  • S3: forcePathStyle is now honored: true gives path-style AWS URLs; false with a custom endpoint gives virtual-hosted URLs. Defaults are unchanged.
  • Cloudinary search lookups quote and escape public IDs, so IDs with spaces, quotes or colons resolve to the right asset.
  • version exported from @fileway/core now reports the real package version.
  • Middleware that replaces the stream no longer leaves a stale size. Previously a beforeUpload returning a stream of a different length (e.g. gzip) kept the caller's options.size, so S3 uploads failed with a size mismatch and progress totals were wrong. The size is now dropped unless the middleware returns it (size on the result, or a changed options.size).

Docs site

  • Redesigned the landing page and docs in a light-first style with Fileway's amber accent, with a light/dark theme toggle.
  • Docs pages gained "Copy Markdown" and "Open" actions (backed by per-page Markdown at /md/<page>.md), a section label above each title, and a "Was this page helpful?" row.
  • The header logo is now a 4 KB image instead of a 571 KB one.

v0.2.1 (2026-09-03)

  • Automatic retries with backoff: FilewayClient retries transient failures at the client layer via a new retry config ({ maxRetries, baseDelayMs, maxDelayMs, multiplier, jitter, retryHttpStatuses, retryGenericErrors }). delete, get, getUrl, and getPresignedUrl retry automatically (idempotent); upload retries only when UploadOptions.streamFactory is provided to re-produce the stream per attempt (a ReadableStream is single-use). Uses exponential backoff with full jitter (interruptible by abort). Only network, provider-error, and HTTP 429/5xx statuses retry; validation/config/auth-failed/not-found/bucket-not-found/size-exceeded/AbortError never do. Exports isRetryable(err, config) for reuse, and retry as an Operation. Each retry logs a warn; onError fires only on the final failure.

v0.2.0 (2026-09-03)

BREAKING: Package rename: @fileway/driver-local, @fileway/driver-s3, and @fileway/driver-cloudinary are now @fileway/local, @fileway/s3, and @fileway/cloudinary. The old package names are deprecated on npm; install the new names instead.

Security: path-traversal fix in @fileway/local: the storage directory containment check used a raw string prefix match (fullPath.startsWith(root)) which was vulnerable to sibling-directory escape (e.g., path: "../storage2" passing the guard when a sibling directory shares the name prefix). Replaced with a relative()-based check that correctly rejects all escapes. Added symlink following defense: any symlink component inside the storage directory is now rejected before any I/O, preventing read/write/delete of files outside the root via planted symlinks. 7 new regression tests.

Migration:

npm uninstall @fileway/driver-local @fileway/driver-s3 @fileway/driver-cloudinary
npm install @fileway/local @fileway/s3 @fileway/cloudinary

v0.1.0 (2026-07-31)

  • Optional logger + onError callbacks: FilewayClient config now accepts a dependency-free logger ({ debug?, info?, warn?, error? }) and an onError(error, context) hook, so you can plug in your own tooling (Pino, Sentry, Datadog) with a few lines and no adapter package. The logger receives "<operation> started/succeeded" info events (structured meta: operation, path, filename, size, id, url, durationMs) and error on failures; it is silent when omitted, and a throwing logger never breaks the operation it reports on. onError is awaited with the raw error plus { operation, durationMs, path, ... } context before the error is rethrown; it is skipped for aborts (AbortError is cancellation, not failure) but fires for ValidationError/config errors, and a throwing onError never masks the original error. New exports: Logger, LogLevel, Operation, ErrorContext in @fileway/core.
  • Typed error taxonomy: @fileway/core now exports a single StorageError (with the StorageErrorCode union: validation, config, not-found, bucket-not-found, auth-failed, size-exceeded, network, provider-error) carrying optional statusCode, provider, and cause, plus isAbortError(). ValidationError is now a StorageError subclass (code === "validation", instanceof behavior unchanged), and abort signals still surface as standard DOMException/AbortError. All drivers throw typed errors instead of generic Errors: S3 classifies AWS/MinIO XML <Code> responses (NoSuchBucket, NoSuchKey/NoSuchUpload, AccessDenied/InvalidAccessKeyId/SignatureDoesNotMatch/ExpiredToken/InvalidToken, EntityTooLarge) with an HTTP-status fallback, wraps non-abort fetch failures as network (preserving the cause), and throws config when credentials are missing; Cloudinary maps status (401/403 → auth-failed, upload 404 → bucket-not-found, get 404 → not-found, 413 → size-exceeded, else provider-error); Local classifies missing files as not-found; FilewayClient.getPresignedUrl throws config for drivers without presigned-URL support. Message strings are unchanged, so existing callers keep working. This is the foundation for retries (retry network/provider-error only).
  • @fileway/s3: presigned URLs: getPresignedUrl(path, { expiresIn }) (with a FilewayClient.getPresignedUrl passthrough) returns a time-limited, SigV4-signed GET URL so a file in a private bucket can be downloaded by anyone holding the link, with no credentials and no network call to sign it. Auth travels in the query string (X-Amz-Algorithm, X-Amz-Credential, X-Amz-Date, X-Amz-Expires, X-Amz-SignedHeaders=host, X-Amz-Signature) and only host is signed with an UNSIGNED-PAYLOAD hash. expiresIn defaults to 3600 seconds and must be an integer in 1..604800 (AWS's 7-day cap) or a ValidationError is thrown. Works with endpoint/forcePathStyle (MinIO, R2) and reuses the existing Web Crypto SigV4 primitives. Verified against AWS's documented presigned-URL example and a live MinIO round-trip.
  • @fileway/cloudinary: presigned URLs: getPresignedUrl(publicId, { expiresIn, deliveryType }) returns a Cloudinary signed delivery URL (the /s--SIG--/ path component plus ?expires_at=) using the same { resourceType, version } hint / upload-cache / Admin API resolution chain as getUrl. The signature is the first 8 characters of a URL-safe base64 SHA-1 digest of the resource path concatenated with the API secret, computed purely with Web Crypto. expiresIn defaults to 3600 and must be a positive integer. The signature restricts access only for assets with authenticated/private delivery (pass deliveryType); upload-type assets created by CloudinaryDriver.upload are already public, so their signed URLs resolve but do not gate access. Signature format verified against Cloudinary's documented delivery-signature example.
  • New optional BaseDriver.getPresignedUrl?: S3 and Cloudinary implement it; Local omits it and FilewayClient.getPresignedUrl throws a clear error for drivers without support.
  • Upload progress (onProgress): pass options.onProgress to client.upload() on any driver to receive { bytes, total?, progress? } as chunks flow through the stream (new exported UploadProgress type in @fileway/core). total/progress are reported only when options.size is known. Cadence is adaptive: chunks ≥ 256 KiB (or ≥ 5% of a known total) report immediately, smaller chunks coalesce to ~1 event per 100 ms, and an exact final event always fires (progress reaches exactly 1). No event fires on abort. Progress is counted at the client layer, so every driver gets it with zero driver changes; Cloudinary reports during its pre-signature Blob buffering (its fetch upload exposes no progress).
  • @fileway/cloudinary: resource type resolution for getUrl/delete/get: getUrl(publicId, options?) and delete(publicId, options?) now resolve an asset's resource_type/version via an explicit hint ({ resourceType, version }), the in-memory upload cache, then a one-time Cloudinary Admin API resources/search lookup (Basic auth) before defaulting to image. Assets uploaded by another process or before a restart no longer produce broken /image/ URLs or failed deletes for video/raw files. delete now uses the Admin API DELETE /resources/{type}/upload endpoint with the resolved type and returns false for unknown assets without issuing a destroy call.
  • Upload cancellation (AbortSignal): pass options.signal to client.upload() on any driver to cancel an in-flight upload. Drivers reject with a DOMException named AbortError (exported helper abortError() in @fileway/core). Local destroys both streams and unlinks the partial file; S3 aborts the request and, for multipart uploads, sends AbortMultipartUpload so no orphaned parts remain; Cloudinary aborts the upload request.
  • Streaming downloads (get(path)): new BaseDriver.get(path): Promise<ReadableStream<Uint8Array>> method on every driver, with a FilewayClient.get(path) passthrough. Files stream back pull-based with backpressure instead of being buffered whole. Local streams from disk (createReadStream → Readable.toWeb), S3 uses an authenticated SigV4 GET, and Cloudinary fetches the public CDN URL. Missing paths throw.
  • @fileway/s3: bounded-memory streaming uploads: pass options.size (≤ 5 GiB) and the payload is uploaded as a SigV4 aws-chunked body (STREAMING-AWS4-HMAC-SHA256-PAYLOAD); chunks are signed lazily as the stream is read, so memory stays constant regardless of file size.
  • @fileway/s3: multipart uploads: unknown sizes and objects > 5 GiB now stream through a multipart upload (CreateMultipartUpload → UploadPart → CompleteMultipartUpload) into part-sized buffers (default 8 MiB, minimum 5 MiB), so peak memory stays bounded even without a declared size. Configurable via partSize and forceMultipart.
  • @fileway/s3: size-mismatch safety: streams that end before/after the declared size abort the upload and throw a validation error instead of storing a corrupted object.
  • Launch docs: rewritten README.md, new CHANGELOG.md, and npm keywords on all four packages.

v0.0.5 (2026-07-31)

  • CI stability: build now runs before typecheck (drivers resolve @fileway/core types from build output); CI and release builds target only publishable packages (no docs build).
  • Cross-package version alignment at 0.0.5.

v0.0.4 (2026-07-31)

  • npm provenance via Trusted Publishers (OIDC): no stored NPM_TOKEN; every publish ships SLSA attestation signed by GitHub Actions.
  • MIT licensing added to all packages.
  • Package READMEs with npm version and bundle-size badges.

v0.0.3 (2026-07-31)

First public release of all four packages.

  • @fileway/core: zero-dependency client engine, types, middleware pipeline.
  • @fileway/s3: rewritten to zero runtime dependencies: hand-rolled SigV4 signing over pure fetch + Web Crypto, streaming ReadableStream<Uint8Array> bodies. Removed @aws-sdk/lib-storage and all node:* imports.
  • @fileway/cloudinary: rewritten to zero runtime dependencies: fetch + FormData + Web Crypto (crypto.subtle SHA-1 signatures). Removed the cloudinary SDK.
  • @fileway/local: native node:fs streams with path-traversal guards and size limits.
  • Cross-runtime support verified: Node.js, Bun, Cloudflare Workers (edge-runtime tests), and Deno.
  • Conditional exports (worker, deno, bun, import, require) on every package.

Was this page helpful?

On this page