Download Latest Version flags@4.0.6 source code.tar.gz (10.2 MB)
Email in envelope

Get an email when there's a new version of Flags SDK

Home / flags@4.0.6
Name Modified Size InfoDownloads / Week
Parent folder
flags@4.0.6 source code.tar.gz 2026-04-03 10.2 MB
flags@4.0.6 source code.zip 2026-04-03 10.6 MB
README.md 2026-04-03 620 Bytes
Totals: 3 Items   20.8 MB 2

Patch Changes

  • c08f3e5: Improve performance by caching next/headers imports.

    Previously every flag evaluation in Next.js App Router would run await import("next/headers"). The imported module is cached by the runtime, but we would still go through the event loop unnecessarily.

    Now we cache the resolved module in a local variable so only the first call awaits the dynamic import; subsequent calls skip the microtask entirely.

  • c08f3e5: Reduce microtask queue overhead in flag evaluation by replacing the async IIFE around decide() with a direct call and Promise.resolve().

Source: README.md, updated 2026-04-03