Packages

@flue/react

2.3.1 · 18 Nov 2026Apache-2.0187.9k / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

18 Sep 2026Where it was published

2.3.1 is the newest release of 2.x.

In short

1 new1 internal

Release note

Minor Changes

  • sendMessage now passes through every send control client.send() accepts (idempotencyKey, initialData, uid, signal, …) and resolves with the admission receipt (AgentSendResult) instead of void.

    Retry a send safely by keeping the key and reusing it when the request's outcome is uncertain:

    const agent = useFlueAgent({ url });
    const key = `prompt-${crypto.randomUUID()}`; // persist before sending
    
    try {
      const receipt = await agent.sendMessage('hello', { idempotencyKey: key });
      // receipt.submissionId correlates with settlements; receipt.deduplicated
      // is true when this retry converged on an already-admitted send.
    } catch {
      // A network failure does not prove the server rejected the prompt —
      // retry later with the same key to converge on the original submission.
    }

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.