Packages

miniflare

4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed

Your version

3.20240129.1

6 Feb 2024Where it was published

3.20250718.3 is the newest release of 3.x.

In short

1 new

Release note

Minor Changes

  • Add a getCf method to Miniflare instances

    add a new getCf method attached to instances of Miniflare, this getCf returns
    the cf object that the Miniflare instance provides to the actual workers and it
    depends of the core option of the same name

    Example:

    import { Miniflare } from "miniflare";
    
    const mf = new Miniflare({ ... });
    
    const cf = await mf.getCf();
    
    console.log(`country = ${cf.country} ; colo = ${cf.colo}`); // logs 'country = GB ; colo = LHR'

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.