Skip to content

Releases: opennextjs/opennextjs-cloudflare

@opennextjs/[email protected]

18 Feb 16:21
1d0a7d0
Compare
Choose a tag to compare

Patch Changes

@opennextjs/[email protected]

17 Feb 10:30
531ec1e
Compare
Choose a tag to compare

Patch Changes

  • #372 522076b Thanks @dario-piotrowicz! - add "async mode" to getCloudflareContext

    Add an async option to getCloudflareContext({async}) to run it in "async mode", the difference being that the returned value is a
    promise of the Cloudflare context instead of the context itself

    The main of this is that it allows the function to also run during SSG (since the missing context can be created on demand).

@opennextjs/[email protected]

14 Feb 05:42
08e48db
Compare
Choose a tag to compare

Patch Changes

  • ad895ed: fix: vercel og patch not moving to right node_modules directory

    There are two separate places where the node_modules could be. One is a package-scoped node_modules which does not always exist - if it doesn't exist, the server functions-scoped node_modules is used.

@opennextjs/[email protected]

12 Feb 10:19
5a3555e
Compare
Choose a tag to compare

Minor Changes

  • 82bb588: feat: basic in-memory de-duping revalidation queue

Patch Changes

  • 2e48d4f: fix: make sure that fetch cache sets are properly awaited

    Next.js does not await promises that update the incremental cache for fetch requests,
    that is needed in our runtime otherwise the cache updates get lost, so this change
    makes sure that the promise is properly awaited via waitUntil

  • 0c26049: fix path to file template in open-next.config.ts.

@opennextjs/[email protected]

10 Feb 15:34
c3dc401
Compare
Choose a tag to compare

Patch Changes

  • ac8b271: fix waitUntil

    Calling waitUntil/after was failing when mulitple requests were handled concurrently.
    This is fixed by pulling opennextjs/opennextjs-aws#733

  • 761a312: import randomUUID from node:crypto to support NodeJS 18

@opennextjs/[email protected]

07 Feb 16:56
6a3e35e
Compare
Choose a tag to compare

Patch Changes

  • 420b598: Fix asset cache path

  • a19b34d: perf: reduce CPU and memory usage by limiting code to AST parsing

  • f30a5fe: bump @opennextjs/aws dependency to https://pkg.pr.new/@opennextjs/aws@727

  • 6791cea: Use kebab-case for the KV Cache.

  • a630aea: fix: enable using the direct queue for isr

    The direct mode is not recommended for use in production as it does not de-dupe requests.

  • f30a5fe: Fix: make sure that the kvCache doesn't serve stale cache values from assets when there is no KV binding

@opennextjs/[email protected]

06 Feb 11:28
8faa62e
Compare
Choose a tag to compare

Patch Changes

  • 9561277: fix: remove dynamic require for map file

    ESBuild tries to load all files in the chunks folder with require("./chunks/" + var).
    This is an error when the folder contains map file.

@opennextjs/[email protected]

05 Feb 07:21
e1b3711
Compare
Choose a tag to compare

Patch Changes

  • 1ccff65: bump @opennextjs/aws dependency to https://pkg.pr.new/@opennextjs/aws@724

    this bump fixes rewrites to external urls not working when the external urls
    point to resources hosted on the Cloudflare network

  • 30374b9: fix: Drop the module condition from ESBuild

    Because Next (via nft) does not use the module condition, ESBuild should not use it.
    Otherwise we might end up with missing files and a broken build.

@opennextjs/[email protected]

03 Feb 14:58
ef8d5b6
Compare
Choose a tag to compare

Patch Changes

  • 6103547: fix: provide a proper error message when using getCloudflareContext in static routes

    getCloudflareContext can't be used in static routes, currently a misleading error
    message incorrectly tells the developer that they haven't called initOpenNextCloudflareForDev
    in their config file, this change updates such error message to properly clarify what
    the issue is (and how to solve it)

  • 0a6191d: fix the encoding of __NEXT_PRIVATE_STANDALONE_CONFIG

  • da7f8d8: fix: enable PPR with wrangler dev

  • 714172d: fix: trailing slash redirect

  • 0892679: fix: inline optional dependencies when bundling the server

@opennextjs/[email protected]

31 Jan 06:58
68c7d6d
Compare
Choose a tag to compare

Patch Changes

  • 9d45ee8: fix the error message of getCloudflareContext

    Hardcode function names that would get mangled otherwise.

  • ac52954: bump the wrangler peer dependency (so to avoid multiple Using vars defined in .dev.vars logs during local development)