Conversation
There was a problem hiding this comment.
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:
- package.json: Updates the version field to "0.8.1"
- 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
This pull request updates the version of the
@workos-inc/authkit-react-routerpackage from 0.8.0 to 0.8.1. The change ensures consistency in versioning across the package metadata and internal references.Updates:
refreshSessionusesuserfrom old session #35)Version bump:
versionfield inpackage.jsonto 0.8.1.VERSIONconstant insrc/workos.tsto 0.8.1.