Releases: opennextjs/opennextjs-cloudflare
@opennextjs/cloudflare@1.0.1
Patch Changes
- #648
cb3a2f2
Thanks @conico974! - fix cache population hanging
@opennextjs/cloudflare@1.0.0
-
#613
2d82fad
Thanks @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
getLastRevalidated
used for the composable cache:getLastRevalidated(tags: string[]): Promise<number>;
-
#640
af60dea
Thanks @vicb! - fix: escape shell arguments when populating the cache -
#628
a169b76
Thanks @conico974! - fix issues with build conditions and wasm -
#619
09aaf35
Thanks @conico974! - global timer functions now use the one from node:timers -
#593
faca3e1
Thanks @vicb! - Use the workerd build condition by default -
#641
e07a2ed
Thanks @conico974! - some performance improvementsenableCacheInterception
can 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 momentroutePreloadingBehavior
is now set towithWaitUntil
, which means a single route js will be lazy loaded on cold start, but other routes will be preloaded usingwaitUntil
for better performance
-
#639
c4d278e
Thanks @conico974! - polyfill import.meta.url -
#622
f5264d2
Thanks @james-elicx! - feat: usegetPlatformProxy
for cache population prefix vars -
#616
f129602
Thanks @james-elicx! - feat: prefix for kv cache keys -
#644
899bae0
Thanks @conico974! - fix cache population for R2 -
#626
de9e05a
Thanks @james-elicx! - feat: bulk insert cache entries to KV
@opennextjs/cloudflare@1.0.0-beta.4
Changes
-
#608
055a61b
Thanks @conico974! - Add a newwithFilter
tag cache to allow to filter the tags used -
#591
0361672
Thanks @vicb! - Add an example of creating a custom workerCreating a custom worker enable adding DO, handlers (scheduled, queue, ...)
-
#607
15f1160
Thanks @conico974! - fix page router shared context to use the correct one
@opennextjs/cloudflare@1.0.0-beta.3
Changes
-
#581
c7c5d3d
Thanks @vicb! - fix(tagCache): gracefully handle empty tag list -
#563
2ce6454
Thanks @vicb! - Extract the worker init code to a separate file -
#551
8841641
Thanks @SamyPesse! - SetCache-Tag
on the entries created by the regional cache, to be purged using the Cloudflare API or dashboard. -
#579
68d6bb4
Thanks @vicb! -patchNextMinimal
is no more required with the latest@opennextjs/aws
bump -
#559
b002d80
Thanks @james-elicx! - feat:upload
command for worker versions' -
#574
d310919
Thanks @vicb! - bump @opennextjs/aws to 3.5.7 -
#564
6343fb4
Thanks @conico974! - bump @opennextjs/aws to 3.5.6
@opennextjs/cloudflare@1.0.0-beta.2
Changes
-
#546
9adc3a3
Thanks @james-elicx! - feat: populate kv incremental cache -
#547
25ade6f
Thanks @james-elicx! - feat: static assets incremental cache
@opennextjs/cloudflare@1.0.0-beta.1
@opennextjs/cloudflare@1.0.0-beta.0
Minor Changes
-
#526
8b40268
Thanks @vicb! - Prepare for release 1.0.0-beta.0Bump
@opennextjs/aws
to 3.5.4BREAKING CHANGES
DurableObjectQueueHandler
renamed toDOQueueHandler
NEXT_CACHE_DO_QUEUE_MAX_NUM_REVALIDATIONS
renamed toNEXT_CACHE_DO_QUEUE_MAX_RETRIES
D1TagCache
has been removed, useD1NextModeTagCache
instead.- The
enableShardReplication
andshardReplicationOptions
options passed toShardedDOTagCache
have been folded intoshardReplication
. A value forshardReplication
must be specified to enable
replications. The value must be an object with the number of soft and hard replicas.
@opennextjs/cloudflare@0.6.6
Patch Changes
-
#520
3bd200a
Thanks @vicb! - Defineprocess.version
andprocess.versions.node
-
#522
79fadc4
Thanks @vicb! - Log exceptions inrequirePage
andNodeModuleLoader
whenOPEN_NEXT_DEBUG=1
-
#523
19dedc7
Thanks @vicb! - fix: process.env has a higher loading priority than .env files -
#469
aef8e51
Thanks @Juuldamen! - Adds support for passing options toinitOpenNextCloudflareForDev()
. This allows you to configure how your Cloudflare bindings will behave during local development.For example, the below configuration will persist the local state of bindings to a custom directory. Which can be useful if you want to share the state between different apps that reuse the same bindings in a monorepo.
initOpenNextCloudflareForDev({ persist: { path: "../../.wrangler/state/v3/custom-dir", }, });
You can find the configuration type with it's available options here in the Wrangler source code.
@opennextjs/cloudflare@0.6.5
@opennextjs/cloudflare@0.6.4
Patch Changes
- #512
96efdc1
Thanks @james-elicx! - fix: yarn v4 not passing args to wrangler correctly