fix(ui): update MIN_CLERK_JS_VERSION to 6.0.0 for Core 3 release#7827
fix(ui): update MIN_CLERK_JS_VERSION to 6.0.0 for Core 3 release#7827jacekradko wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| Name | Type |
|---|---|
| @clerk/ui | Patch |
| @clerk/chrome-extension | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
📝 WalkthroughWalkthroughThe pull request updates the Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/ui/src/constants.ts`:
- 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.
| @@ -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'; | |||
There was a problem hiding this comment.
🧩 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 -iRepository: 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 -30Repository: 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 testRepository: 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 1Repository: 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 -20Repository: 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.
WAITING to release this when Core 3 is done
Summary
MIN_CLERK_JS_VERSIONfrom5.114.0to6.0.0in@clerk/uiContext
The
MIN_CLERK_JS_VERSIONconstant was temporarily set to5.114.0because the version check (#7747) was merged before the major version bump. This updates it to6.0.0for the Core 3 release.Resolves USER-4603
Test plan
pnpm build --filter @clerk/uipassespnpm test --filter @clerk/uipasses (all 109 test files, 1548 tests)MIN_CLERK_JS_VERSIONconstant dynamically, so they automatically validate the new valueSummary by CodeRabbit