Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias BuildBundleOptions

    what buildBundle takes

    type BuildBundleOptions = {
        blockRows?: number;
        datasets: readonly Dataset[];
        maxBytes?: number;
        routes?: readonly Route[];
        store: BundleStore;
        url: URL;
        version: number;
    }
    Index
    blockRows?: number

    rows per block; the protocol default when absent

    datasets: readonly Dataset[]

    the datasets given to createSpool; a principal dataset is left out, since a pack is public

    maxBytes?: number

    most compressed bytes of one block; the frame cap a reader accepts when absent

    routes?: readonly Route[]

    the routes the pack answers; their path and query index tables go into the pack

    url: URL

    the URL the datasets' seed functions receive; their path and origin only

    version: number

    the version the pack is built for; the caller keeps it unique per content