Skip to content

Conversation

@nicknisi
Copy link
Member

@nicknisi nicknisi commented Aug 8, 2025

This pull request updates the version of the @workos-inc/authkit-react-router package from 0.8.0 to 0.8.1. The change ensures consistency in versioning across the package metadata and internal references.

Updates:

Version bump:

  • Updated the version field in package.json to 0.8.1.
  • Changed the internal VERSION constant in src/workos.ts to 0.8.1.

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 implements a version bump from 0.8.0 to 0.8.1 for the @workos-inc/authkit-react-router package. The changes update two key files to maintain version consistency:

  1. package.json: Updates the version field to "0.8.1"
  2. src/workos.ts: Updates the internal VERSION constant to '0.8.1'

This version bump is part of a patch release that addresses a critical bug fix (referenced as #36 fixing #35) related to session refresh functionality. The issue was that refreshSession and updateSession functions were preserving stale user data from existing sessions instead of using fresh data returned by the WorkOS authenticateWithRefreshToken API.

The VERSION constant in src/workos.ts plays an important role in the codebase - it's used in the appInfo metadata when creating WorkOS instances (lines 23-26), allowing WorkOS to track which version of the client library is making requests. This helps with debugging, analytics, and ensuring compatibility between the client library and WorkOS services.

The changes ensure that when applications call refreshSession after updating user attributes (like firstName, lastName via workos.userManagement.updateUser), the refreshed session will contain the updated user data rather than stale information from the previous session.

Confidence score: 5/5

  • This PR is extremely safe to merge with minimal risk as it only updates version numbers
  • Score reflects simple, straightforward version consistency changes with no logic modifications
  • No files require special attention as these are standard version bump changes

2 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

@nicknisi nicknisi requested a review from dandorman August 8, 2025 17:18
@nicknisi nicknisi merged commit 4cf1ada into main Aug 8, 2025
6 checks passed
@nicknisi nicknisi deleted the v0.8.1 branch August 8, 2025 18:46
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