·
1214 commits
to main
since this release
Patch Changes
-
#5922
bdbb7f8
Thanks @dario-piotrowicz! - fix: Allow the magic proxy to handle functions returning functionsPreviously 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.