unstale

pypi / async-lru

async-lru

What changed in async-lru 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

1 breaking4 new APIs and options6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

async-lru 211 changes

Breaking changes 1

  • Using the cache from a different loop raises RuntimeError.

    2.2.0release notes

New APIs and options 4

  • A parameter for custom cache key computation was added.

    2.4.0release notes

  • Adds a warning emitted when auto-reset occurs because the event loop changed.

    2.3.0release notes

  • Adds a read-only key lookup API.

    2.3.0release notes

  • A jitter parameter randomises TTL.

    2.2.0release notes

Fixes and other changes 6

  • On Python 3.14, cached functions expose __annotate__ instead of __annotations__; read their annotations with annotationlib.get_annotations().

    2.4.0release notes

  • Fixed a NameError when decorating a function whose annotations refer to names defined later, on Python 3.14.

    2.4.0release notes

  • Forwards the wait argument for bound methods.

    2.3.0release notes

  • Cross-loop cache access now auto-resets and rebinds to the current event loop.

    2.3.0release notes

  • Fixed a DeprecationWarning from asyncio.iscoroutinefunction.

    2.1.0release notes

  • Fixed cancellation of a task when all tasks waiting on it have been cancelled.

    2.1.0release notes