Skip to content
Compare
Choose a tag to compare
@workers-devprod workers-devprod released this 04 Jun 16:33
· 1214 commits to main since this release
6a4f20d

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.