drupflare/worker - v1.0.0
    Preparing search index...

    Type Alias CatalogEntry

    one catalog entry: a pre-packed module and what it needs

    type CatalogEntry = {
        bytes?: number;
        core: string;
        name: string;
        needs?: readonly ModuleCapability[];
        php?: string;
        r2: string;
        requires?: string[];
        version: string;
    }
    Index
    bytes?: number

    uncompressed bytes, so a caller can refuse before reading

    core: string

    the Drupal core constraint this pack was built against

    name: string

    composer name, e.g. drupal/pathauto

    needs?: readonly ModuleCapability[]

    Runtime capabilities this module needs at REQUEST time.

    A DIFFERENT CLASS FROM core AND php, which are version constraints answerable by comparing two strings. These are capability constraints, and they are what the oracle could not see: a module can satisfy every version constraint, install cleanly, and then fail the first time a visitor uses it because the runtime cannot do the thing it assumes.

    cron is softer still: cron runs from the Durable Object alarm with automated_cron.interval = 0, so a cron-driven module is UNWIRED rather than impossible.

    php?: string

    the PHP constraint this pack declares, when it declares one

    r2: string

    the R2 key prefix; the mount appends .pf.json and .pf.bin

    requires?: string[]

    other catalog modules this one needs, by composer name

    version: string