github cloudflare/workers-sdk miniflare@3.20240524.2

Patch Changes

  • #5922 bdbb7f8 Thanks @dario-piotrowicz! - fix: Allow the magic proxy to handle functions returning functions

    Previously functions returning functions would not be handled by the magic proxy,
    the changes here enable the above, allowing for code such as the following:

    	const mf = new Miniflare(/* ... */);
    
    	const { functionsFactory } = await mf.getBindings<Env>();
    	const fn = functionsFactory.getFunction();
    	const functionResult = fn();

    This also works with the native workers RPC mechanism, allowing users to
    return functions in their RPC code.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.