@wvb/deno
API reference for @wvb/deno.
Classes
BundleProtocol
Serves files from a BundleSource as HTTP responses — GET/HEAD, content-type, HTTP Range (206), and index.html directory-index fallback.
BundleSource
A bundle source over a builtinDir (read-only) and remoteDir (writable).
LocalProtocol
Proxies requests for custom hosts to localhost URLs (for dev servers with hot reload).
Remote
HTTP client for a remote bundle server — list, get metadata, and download bundles.
Updater
Coordinates updates between a BundleSource and a Remote: check, download to the remote dir, and activate.
Functions
loadLib
Load the native library from an explicit path and cache it
loadLibViaPlug
Download the platform cdylib from a release via @denosaurs/plug, verify it, cache it, and load it.
platformLibFileName
Platform cdylib filename: libwvb_deno.dylib (macOS) / libwvb_deno.so (Linux) / wvb_deno.dll (Windows).
toResponse
Convert an HttpResponse to a web Response (for use inside a Deno.serve handler).
Interfaces
BundleManifestMetadata
Cache-validation / integrity metadata for a bundle version.
BundleSourceConfig
BundleSourceVersion
The current version of a bundle and which source provides it.
BundleUpdateInfo
Information about an available update.
HttpOptions
HTTP client options (mirrors @wvb/node's HttpOptions; defaultHeaders not yet supported).
HttpResponse
A served HTTP response (mirrors @wvb/node's HttpResponse, with Uint8Array for the body).
ListBundleItem
A bundle version from BundleSource.listBundles (flat shape, matching @wvb/node).
ListRemoteBundleInfo
Bundle info from list operations.
LoadLibViaPlugOptions
RemoteBundleInfo
Complete bundle info from the remote server.
RemoteDownload
Result of a remote bundle download: info + raw .wvb bytes.
RemoteOptions
SignatureVerifierOptions
Declarative signature verifier: an algorithm + the public key to verify bundle signatures with.
SignatureVerifyingKeyOptions
Public key configuration: data is the PEM text for PEM formats, or the key bytes otherwise.
UpdaterOptions
Type Aliases
BundleSourceType
Which source a bundle version comes from.
HttpMethod
HTTP method accepted by a protocol handler (case-insensitive on the wire).
IntegrityPolicy
Integrity verification policy.
SignatureAlgorithm
Digital signature algorithm for bundle verification (mirrors @wvb/node).
VerifyingKeyFormat
Format of the public key.