Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.9.1

25 Sep 2023Where it was published

3.114.17 is the newest release of 3.x.

In short

3 new1 fixed

Security

3 advisories affect 3.9.1; 3.114.17 fixes them

Release note

Patch Changes

  • Add AI binding that will be used to interact with the AI project.

    Example wrangler.toml

    name = "ai-worker"  
    main = "src/index.ts"
    
    [ai]  
    binding = "AI"

    Example script:

    import Ai from "@cloudflare/ai"
    
    export default {  
        async fetch(request: Request, env: Env): Promise<Response> {  
            const ai = new Ai(env.AI);
    
            const story = await ai.run({  
                model: 'llama-2',  
                input: {  
                    prompt: 'Tell me a story about the future of the Cloudflare dev platform'  
                }  
            });
    
        return new Response(JSON.stringify(story));  
        },  
    };
    
    export interface Env {  
        AI: any;  
    }
    
  • Remove warning around using D1's binding, and clean up the epilogue when running D1 commands

  • Add WebGPU support through miniflare update

  • Added AI related CLI commands

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.