8000 Release v3.6.0 · opennextjs/opennextjs-aws · GitHub
[go: up one dir, main page]

Skip to content
8000

v3.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Apr 10:11
8bb7e74

Changes

BREAKING CHANGE

This only affects custom overrides for the incremental or tag cache
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>;
0