Skip to content

Conversation

workers-frameworks
Copy link
Contributor

@workers-frameworks workers-frameworks commented Apr 29, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@opennextjs/[email protected]

Minor Changes

  • #613 2d82fad Thanks @conico974! - Bump aws to 3.6.0

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

Patch Changes

  • #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 improvements

    • enableCacheInterception can be enabled using defineCloudflareConfig, it loads ISR/SSG pages from cache without waiting for the js page bundle to load. PPR is not supported at the moment
    • routePreloadingBehavior is now set to withWaitUntil, which means a single route js will be lazy loaded on cold start, but other routes will be preloaded using waitUntil for better performance
  • #639 c4d278e Thanks @conico974! - polyfill import.meta.url

  • #622 f5264d2 Thanks @james-elicx! - feat: use getPlatformProxy 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

Copy link

pkg-pr-new bot commented Apr 29, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@612

commit: b7e312b

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manual release

@workers-frameworks workers-frameworks force-pushed the changeset-release/main branch 18 times, most recently from 21d2ea4 to e792fa6 Compare May 6, 2025 12:40
@workers-frameworks workers-frameworks force-pushed the changeset-release/main branch from e792fa6 to b7e312b Compare May 6, 2025 13:11
@vicb vicb closed this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants