github opennextjs/opennextjs-aws v3.6.0

latest releases: v3.7.6, @opennextjs/aws@3.7.6, v3.7.5...
4 months ago

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>;

Don't miss a new opennextjs-aws release

NewReleases is sending notifications on new releases.