Skip to content

@cloudflare/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Mar 12:30
· 72 commits to main since this release
46e53ec

Minor Changes

  • 739e2a7: make (no-op) caches available in dev mode

    update setupDevPlatform to also add a caches object to the global scope
    so that it can be used during development in a production-like manner

    note: the implementation of caches is currently a no-op one

Patch Changes

  • 90e140c: Make the getRequestContext's error message more helpful during local development

    During local development add information in the getRequestContext's error
    message reminding the user to setup the dev platform via setupDevPlatform
    in their config file

  • 5187973: Make getRequestContext and getOptionalRequestContext throw if used inside the Node.js runtime

    Currently if users run getRequestContext or getOptionalRequestContext in the Node.js runtime
    they get a generic error saying that the request context could not be found, improve such behavior
    by having the functions throw instead, clearly informing the user that the problem is the wrong
    runtime being used

  • 9b1d951: Fix bundled wasm imports that are not located inside the function's directory.

  • b46977c: Fix the Next.js originalRequest bug for an unminified edge function generated by Vercel.