Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/fix-ui-min-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@clerk/ui': patch
---

Fix MIN_CLERK_JS_VERSION to match current clerk-js version until major release
Update `MIN_CLERK_JS_VERSION` to `6.0.0` for Core 3 release
3 changes: 1 addition & 2 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// TODO(USER-4603): Bump to '6.0.0' before Core 3 release
export const MIN_CLERK_JS_VERSION = '5.114.0';
export const MIN_CLERK_JS_VERSION = '6.0.0';
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

@clerk/clerk-js 6.0.0 npm package release date published

💡 Result:

A stable @clerk/clerk-js@6.0.0 release does not appear to be published on npm (it’s not listed among published versions). The earliest 6.0.0 pre-release builds (e.g., 6.0.0-canary... / 6.0.0-snapshot...) were published starting January 22, 2026 (with additional 6.0.0 pre-releases on January 23–24, 2026). [1]


🏁 Script executed:

#!/bin/bash
# Search for tests that reference MIN_CLERK_JS_VERSION
rg -n "MIN_CLERK_JS_VERSION" --type ts --type tsx --type js --type jsx -i

Repository: clerk/javascript

Length of output: 87


🏁 Script executed:

#!/bin/bash
# Search for any references to clerk-js version checking in tests
rg -n "clerk.?js.*version|6\.0\.0" --type ts --type tsx --type js --type jsx -i | head -30

Repository: clerk/javascript

Length of output: 87


🏁 Script executed:

#!/bin/bash
# Search for MIN_CLERK_JS_VERSION references in tests
rg -n "MIN_CLERK_JS_VERSION" | grep -i test

Repository: clerk/javascript

Length of output: 705


🏁 Script executed:

#!/bin/bash
# Search for any version gate checks or MIN_CLERK_JS_VERSION usage
rg -n "MIN_CLERK_JS_VERSION" -A 3 -B 1

Repository: clerk/javascript

Length of output: 4073


🏁 Script executed:

#!/bin/bash
# Check if there are tests that validate version compatibility
rg -n "clerk.?js.*version|versionGate|minVersion" -i | head -20

Repository: clerk/javascript

Length of output: 2654


Blocker: @clerk/clerk-js 6.0.0 is not yet published on npm.

Setting MIN_CLERK_JS_VERSION to '6.0.0' will cause version check failures for users since only pre-release versions (6.0.0-canary/snapshot) from January 2026 currently exist. Confirm this PR merges when the stable 6.0.0 release is available, or use a released version instead.

(Test coverage for the min-version gate exists and is comprehensive—this concern only addresses version availability.)

🤖 Prompt for AI Agents
In `@packages/ui/src/constants.ts` at line 1, MIN_CLERK_JS_VERSION is set to
'6.0.0' which isn't published; change the constant MIN_CLERK_JS_VERSION in
constants.ts to a currently released stable `@clerk/clerk-js` version (or revert
to the previous value) so the min-version gate won't fail, and add a TODO
comment referencing the intended bump so it can be updated to '6.0.0' once the
stable release is published; ensure any tests that assert this constant are
updated accordingly.


export const USER_PROFILE_NAVBAR_ROUTE_ID = {
ACCOUNT: 'account',
Expand Down
Loading