Releases: opennextjs/opennextjs-cloudflare
@opennextjs/[email protected]
@opennextjs/[email protected]
@opennextjs/[email protected]
Minor Changes
-
#696
de6a6cdThanks @vicb! - Add theroutePreloadingBehaviorto the options ofdefineCloudflareConfig.The default is set to "none" as other values might increase CPU usage on cold starts.
Patch Changes
-
#700
56e9366Thanks @vicb! - perf: drop@ampproject/toolbox-optimizerto reduce the server bundle size -
#689
64a10a6Thanks @sommeeeer! - fix: Ensure the protocol is correct for redirects in server actions during preview mode -
#710
903ad45Thanks @vicb! - perf: drop babel to reduce the server bundle size
@opennextjs/[email protected]
Minor Changes
-
#655
2c819c6Thanks @conico974! - Automatic Cache API purge -
#500
5142788Thanks @conico974! - add regional replicas for the sharded tag cache -
#496
298fd4eThanks @conico974! - add an optional cache for the durable queue
Patch Changes
@opennextjs/[email protected]
Patch Changes
-
#675
e6040bcThanks @conico974! - add acloudflare.dangerousDisableConfigValidationconfig option to not throw on validation of the config -
#674
ec9ea58Thanks @conico974! - fix blockConcurrencyWhile on DO queue -
#672
9188e67Thanks @conico974! - bump aws to 3.6.2. More details about the fixes can be found here: https://github.com/opennextjs/opennextjs-aws/blob/main/packages/open-next/CHANGELOG.md#362
@opennextjs/[email protected]
Patch Changes
-
#666
e87d8bbThanks @conico974! - fix fetch insideuse cachein ISR -
#599
7b06a42Thanks @james-elicx! - Fix multiple Windows path issues.
@opennextjs/[email protected]
Patch Changes
-
#656
a20d2dfThanks @conico974! - revert to using an external middlewareThis will reduce cpu time for anything coming from the routing layer (i.e. redirects, rewrites, middleware response or when using cache interception)
@opennextjs/[email protected]
Patch Changes
- #648
cb3a2f2Thanks @conico974! - fix cache population hanging
@opennextjs/[email protected]
-
#613
2d82fadThanks @conico974! - Bump aws to 3.6.0Introduce support for the composable cache
BREAKING CHANGE: The interface for the Incremental cache has changed. The new interface use a Cache type instead of a boolean to distinguish between the different types of caches. It also includes a new Cache type for the composable cache. The new interface is as follows:
export type CacheEntryType = "cache" | "fetch" | "composable"; export type IncrementalCache = { get<CacheType extends CacheEntryType = "cache">( key: string, cacheType?: CacheType ): Promise<WithLastModified<CacheValue<CacheType>> | null>; set<CacheType extends CacheEntryType = "cache">( key: string, value: CacheValue<CacheType>, isFetch?: CacheType ): Promise<void>; delete(key: string): Promise<void>; name: string; };
NextModeTagCache also get a new function
getLastRevalidatedused for the composable cache:getLastRevalidated(tags: string[]): Promise<number>;
-
#640
af60deaThanks @vicb! - fix: escape shell arguments when populating the cache -
#628
a169b76Thanks @conico974! - fix issues with build conditions and wasm -
#619
09aaf35Thanks @conico974! - global timer functions now use the one from node:timers -
#593
faca3e1Thanks @vicb! - Use the workerd build condition by default -
#641
e07a2edThanks @conico974! - some performance improvementsenableCacheInterceptioncan be enabled usingdefineCloudflareConfig, it loads ISR/SSG pages from cache without waiting for the js page bundle to load. PPR is not supported at the momentroutePreloadingBehavioris now set towithWaitUntil, which means a single route js will be lazy loaded on cold start, but other routes will be preloaded usingwaitUntilfor better performance
-
#639
c4d278eThanks @conico974! - polyfill import.meta.url -
#622
f5264d2Thanks @james-elicx! - feat: usegetPlatformProxyfor cache population prefix vars -
#616
f129602Thanks @james-elicx! - feat: prefix for kv cache keys -
#644
899bae0Thanks @conico974! - fix cache population for R2 -
#626
de9e05aThanks @james-elicx! - feat: bulk insert cache entries to KV
@opennextjs/[email protected]
Changes
-
#608
055a61bThanks @conico974! - Add a newwithFiltertag cache to allow to filter the tags used -
#591
0361672Thanks @vicb! - Add an example of creating a custom workerCreating a custom worker enable adding DO, handlers (scheduled, queue, ...)
-
#607
15f1160Thanks @conico974! - fix page router shared context to use the correct one