Skip to content

Releases: opennextjs/opennextjs-cloudflare

@opennextjs/[email protected]

01 Oct 13:14
5783285
Compare
Choose a tag to compare

Patch Changes

@opennextjs/[email protected]

26 Sep 08:35
e0886d1
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #907 ba4cac5 Thanks @vicb! - refactor: only try to purge the cache when invalidation is configured

@opennextjs/[email protected]

23 Sep 19:12
2529c20
Compare
Choose a tag to compare

Patch Changes

  • #901 17a4bea Thanks @vicb! - chore: bump wrangler to ^4.38.0

  • #903 7fced0f Thanks @vicb! - fix: enable using workerd process v2

    process v2 is an updated version of node:process active by default after 2025-09-15

@opennextjs/[email protected]

23 Sep 06:19
f8280e4
Compare
Choose a tag to compare

Patch Changes

  • #888 51322a8 Thanks @james-elicx! - fix: remote flag not working for preview command's cache population

    Previously, passing the --remote flag when running opennextjs-cloudflare preview --remote would not result in the remote preview binding being populated, and would throw errors due to a missing preview flag when populating Workers KV. The remote flag is now supported for the cache popoulation step when running the preview command.

    • opennextjs-cloudflare preview --remote will populate the remote binding for the preview ID specified in your Wrangler config.
    • opennextjs-cloudflare preview will continue to populate the local binding in your Wrangler config.

@opennextjs/[email protected]

18 Sep 12:37
f1c73cc
Compare
Choose a tag to compare

@opennextjs/[email protected]

09 Sep 18:44
3f7edda
Compare
Choose a tag to compare

Patch Changes

@opennextjs/[email protected]

09 Sep 14:02
dc3dbe7
Compare
Choose a tag to compare

Patch Changes

@opennextjs/[email protected]

05 Sep 11:21
3be30a4
Compare
Choose a tag to compare

Minor Changes

  • #862 728ad99 Thanks @james-elicx! - feat: support for a custom OpenNext config path with the --openNextConfigPath flag

Patch Changes

@opennextjs/[email protected]

02 Sep 17:43
9b28913
Compare
Choose a tag to compare

Patch Changes

@opennextjs/[email protected]

01 Sep 11:08
38d462b
Compare
Choose a tag to compare

Minor Changes

  • #848 f80c801 Thanks @sommeeeer! - Ensure that the initial request.signal is passed to the wrapper

    request.signal.onabort is now supported in route handlers. It requires that the signal from the original worker's request is passed to the handler. It will then pass along that AbortSignal through the streamCreator in the wrapper. This signal will destroy the response sent to NextServer when a client aborts, thus triggering the signal in the route handler.

    See the changelog in Cloudflare here.

    Note:
    If you have a custom worker, you must update your code to pass the original request.signal to the handler. You also need to enable the compatibility flag enable_request_signal to use this feature.

    For example:

    // Before:
    return handler(reqOrResp, env, ctx);
    
    // After:
    return handler(reqOrResp, env, ctx, request.signal);
  • #850 ce5c7b4 Thanks @dario-piotrowicz! - Add option for regional cache to skip tagCache on cache hits

    When the tag regional cache finds a value in the incremental cache, checking such value in the tagCache can be skipped, this helps reducing response times at the tradeoff that the user needs to either use the automatic cache purging or manually purge the cache when appropriate. For this the bypassTagCacheOnCacheHit option is being added to the RegionalCache class.

    Example:

    import { defineCloudflareConfig } from "@opennextjs/cloudflare";
    import d1NextTagCache from "@opennextjs/cloudflare/overrides/tag-cache/d1-next-tag-cache";
    import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue";
    import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
    import { withRegionalCache } from "@opennextjs/cloudflare/overrides/incremental-cache/regional-cache";
    
    export default defineCloudflareConfig({
    	incrementalCache: withRegionalCache(r2IncrementalCache, {
    		mode: "long-lived",
    		bypassTagCacheOnCacheHit: true,
    	}),
    	tagCache: d1NextTagCache,
    	queue: memoryQueue,
    });

Patch Changes