Skip to content

Conversation

@dandorman
Copy link
Contributor

Description

Version bump for #466

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@dandorman dandorman requested a review from a team as a code owner July 31, 2025 22:43
@dandorman dandorman requested a review from tribble July 31, 2025 22:43
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR performs a straightforward version bump from 5.26.0 to 5.26.1, releasing the JWKS client caching optimization implemented in issue #466. The change updates only the version string in the package metadata file (workos/__about__.py).

The underlying functionality being released introduces a performance improvement to the WorkOS Python SDK's session handling. The optimization uses @lru_cache(maxsize=None) on the _get_jwks_client function in workos/session.py, which caches PyJWKClient instances per JWKS URL globally. Previously, each session instance created its own JWKS client, leading to inefficient resource usage even though individual clients cached their results. The new implementation allows JWKS clients to be reused across session instances when they share the same JWKS URL.

This follows semantic versioning correctly as a patch release (5.26.0 → 5.26.1) since it's a performance optimization that doesn't change the public API or introduce breaking changes. The change fits into the SDK's architecture by improving resource efficiency in the session management layer without affecting the external interface.

Confidence score: 5/5

  • This is an extremely safe version bump with no risk of production issues
  • Only updates a version string with no code changes, and the underlying optimization is a well-established caching pattern
  • No files need additional attention - this is a standard release process

1 file reviewed, no comments

Edit Code Review Bot Settings | Greptile

@dandorman dandorman merged commit 2f52b53 into main Jul 31, 2025
6 checks passed
@dandorman dandorman deleted the v5.26.1 branch July 31, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants