-
Notifications
You must be signed in to change notification settings - Fork 353
ci(repo): Version packages #6077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
52cf628
to
260ee94
Compare
260ee94
to
063c5c1
Compare
063c5c1
to
90c1dca
Compare
90c1dca
to
e9c7e43
Compare
e9c7e43
to
87df5c4
Compare
87df5c4
to
dca8904
Compare
📝 Walkthrough## Walkthrough
This update primarily consists of version bumps and changelog updates across multiple packages, reflecting dependency upgrades and minor patch releases. Several changeset metadata files were deleted, including those documenting machine authentication features, payment history tabs, Stripe Elements error handling fixes, and organization selection safeguards. New changelog entries document dependency updates, internal type reorganizations, and the introduction of machine authentication support in select packages. No changes to exported or public entities were made.
## Changes
| Files/Groups | Change Summary |
|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| .changeset/brown-masks-admire.md<br>.changeset/every-cows-think.md<br>.changeset/free-times-refuse.md<br>.changeset/happy-icons-float.md<br>.changeset/hungry-eagles-doubt.md<br>.changeset/large-adults-juggle.md<br>.changeset/petite-sites-see.md<br>.changeset/social-carrots-melt.md<br>.changeset/sour-onions-wear.md<br>.changeset/two-trains-pull.md<br>.changeset/wide-aliens-take.md<br>.changeset/yummy-socks-join.md<br>.changeset/petite-ravens-see.md<br>.changeset/great-windows-collect.md<br>.changeset/mean-apes-do.md<br>.changeset/tiny-cameras-battle.md<br>.changeset/violet-views-sip.md<br>.changeset/gentle-crews-warn.md<br>.changeset/honest-cougars-bet.md<br>.changeset/chatty-wombats-rest.md<br>.changeset/green-peaches-sneeze.md<br>.changeset/dark-cougars-burn.md<br>.changeset/mean-items-retire.md<br>.changeset/itchy-keys-shake.md<br>.changeset/rotten-ghosts-build.md<br>.changeset/sad-lines-share.md | Deleted changeset metadata files, including empty files and files documenting previous updates such as machine authentication features, payment history tabs, Stripe Elements error handling fix, prevention of invalid organization selection, JSDoc additions, fixes to token property handling, and bug fixes in testing. |
| packages/agent-toolkit/CHANGELOG.md<br>packages/astro/CHANGELOG.md<br>packages/backend/CHANGELOG.md<br>packages/chrome-extension/CHANGELOG.md<br>packages/clerk-js/CHANGELOG.md<br>packages/elements/CHANGELOG.md<br>packages/expo-passkeys/CHANGELOG.md<br>packages/expo/CHANGELOG.md<br>packages/express/CHANGELOG.md<br>packages/fastify/CHANGELOG.md<br>packages/localizations/CHANGELOG.md<br>packages/nextjs/CHANGELOG.md<br>packages/nuxt/CHANGELOG.md<br>packages/react-router/CHANGELOG.md<br>packages/react/CHANGELOG.md<br>packages/remix/CHANGELOG.md<br>packages/shared/CHANGELOG.md<br>packages/tanstack-react-start/CHANGELOG.md<br>packages/testing/CHANGELOG.md<br>packages/themes/CHANGELOG.md<br>packages/types/CHANGELOG.md<br>packages/vue/CHANGELOG.md | Added new changelog entries for patch or minor releases documenting dependency upgrades, internal type reorganizations, payment history tab additions, Stripe Elements error handling fix, machine authentication support, JSDoc enhancements, and bug fixes across multiple packages. |
| packages/agent-toolkit/package.json<br>packages/astro/package.json<br>packages/backend/package.json<br>packages/chrome-extension/package.json<br>packages/clerk-js/package.json<br>packages/elements/package.json<br>packages/expo-passkeys/package.json<br>packages/expo/package.json<br>packages/express/package.json<br>packages/fastify/package.json<br>packages/localizations/package.json<br>packages/nextjs/package.json<br>packages/nuxt/package.json<br>packages/react-router/package.json<br>packages/react/package.json<br>packages/remix/package.json<br>packages/shared/package.json<br>packages/tanstack-react-start/package.json<br>packages/testing/package.json<br>packages/themes/package.json<br>packages/types/package.json<br>packages/vue/package.json | Incremented package version numbers to reflect new patch or minor releases; no other changes to package metadata or configuration. |
## Possibly related PRs
- clerk/javascript#6101: Implements localization support and UI text cleanup for commerce-related strings including payment history, directly related to deleted changelog entries in this update.
- clerk/javascript#6073: Introduces the restriction preventing `setActive({ organization: null })` calls when organization selection is forced, corresponding to a deleted changeset in this update.
- clerk/javascript#6103: Adds and tests preservation of active organization when `setActive({ organization: null })` is called under forced organization selection, matching a removed changelog entry here.
## Suggested reviewers
- panteliselef
- wobsoriano 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (79)
💤 Files with no reviewable changes (35)
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (41)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (5)
packages/express/package.json (1)
3-3
: Minor release for @clerk/express introducing machine authentication.
Version bump from 1.6.0 to 1.7.0 correctly reflects the newacceptsToken
option and token type support. Please verify theCHANGELOG.md
and update the README/documentation to illustrate the machine auth usage.packages/backend/CHANGELOG.md (1)
7-8
: Minor hyphenation nitpick
Consider standardizing “Re-organize” to “Reorganize” to match the style of other action verbs (e.g., “Improve”, “Resolve”).packages/react-router/CHANGELOG.md (2)
7-12
: Normalize list indentation in Minor Changes
The continuation lines under the first bullet (the descriptive text and “Example usage:”) are indented only two spaces and follow a blank line, which may break the list structure. Consider merging them into the same paragraph as the bullet or increasing the indent to four spaces so they render correctly as part of the list item.
13-32
: Unindent code fence for clarity
The```ts
block is indented beneath the list context, which may render it incorrectly as a nested element. Unindent the code fence to the document margin to ensure proper formatting and readability.packages/fastify/CHANGELOG.md (1)
9-10
: Consider formatting theacceptsToken
option details as a list.
Breaking out the allowed values into bullet points can improve readability:- `acceptsToken`: - a single token type - an array of token types - `'any'` to accept all supported tokens
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (56)
.changeset/brown-masks-admire.md
(0 hunks).changeset/every-cows-think.md
(0 hunks).changeset/free-times-refuse.md
(0 hunks).changeset/happy-icons-float.md
(0 hunks).changeset/hungry-eagles-doubt.md
(0 hunks).changeset/large-adults-juggle.md
(0 hunks).changeset/petite-sites-see.md
(0 hunks).changeset/social-carrots-melt.md
(0 hunks).changeset/sour-onions-wear.md
(0 hunks).changeset/two-trains-pull.md
(0 hunks).changeset/wide-aliens-take.md
(0 hunks).changeset/yummy-socks-join.md
(0 hunks)packages/agent-toolkit/CHANGELOG.md
(1 hunks)packages/agent-toolkit/package.json
(1 hunks)packages/astro/CHANGELOG.md
(1 hunks)packages/astro/package.json
(1 hunks)packages/backend/CHANGELOG.md
(1 hunks)packages/backend/package.json
(1 hunks)packages/chrome-extension/CHANGELOG.md
(1 hunks)packages/chrome-extension/package.json
(1 hunks)packages/clerk-js/CHANGELOG.md
(1 hunks)packages/clerk-js/package.json
(1 hunks)packages/elements/CHANGELOG.md
(1 hunks)packages/elements/package.json
(1 hunks)packages/expo-passkeys/CHANGELOG.md
(1 hunks)packages/expo-passkeys/package.json
(1 hunks)packages/expo/CHANGELOG.md
(1 hunks)packages/expo/package.json
(1 hunks)packages/express/CHANGELOG.md
(1 hunks)packages/express/package.json
(1 hunks)packages/fastify/CHANGELOG.md
(1 hunks)packages/fastify/package.json
(1 hunks)packages/localizations/CHANGELOG.md
(1 hunks)packages/localizations/package.json
(1 hunks)packages/nextjs/CHANGELOG.md
(1 hunks)packages/nextjs/package.json
(1 hunks)packages/nuxt/CHANGELOG.md
(1 hunks)packages/nuxt/package.json
(1 hunks)packages/react-router/CHANGELOG.md
(1 hunks)packages/react-router/package.json
(1 hunks)packages/react/CHANGELOG.md
(1 hunks)packages/react/package.json
(1 hunks)packages/remix/CHANGELOG.md
(1 hunks)packages/remix/package.json
(1 hunks)packages/shared/CHANGELOG.md
(1 hunks)packages/shared/package.json
(1 hunks)packages/tanstack-react-start/CHANGELOG.md
(1 hunks)packages/tanstack-react-start/package.json
(1 hunks)packages/testing/CHANGELOG.md
(1 hunks)packages/testing/package.json
(1 hunks)packages/themes/CHANGELOG.md
(1 hunks)packages/themes/package.json
(1 hunks)packages/types/CHANGELOG.md
(1 hunks)packages/types/package.json
(1 hunks)packages/vue/CHANGELOG.md
(1 hunks)packages/vue/package.json
(1 hunks)
💤 Files with no reviewable changes (12)
- .changeset/wide-aliens-take.md
- .changeset/every-cows-think.md
- .changeset/hungry-eagles-doubt.md
- .changeset/social-carrots-melt.md
- .changeset/happy-icons-float.md
- .changeset/free-times-refuse.md
- .changeset/brown-masks-admire.md
- .changeset/sour-onions-wear.md
- .changeset/yummy-socks-join.md
- .changeset/large-adults-juggle.md
- .changeset/two-trains-pull.md
- .changeset/petite-sites-see.md
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.md`: Follow all instructions, patterns and conventions that are defined in these MD files.
**/*.md
: Follow all instructions, patterns and conventions that are defined in these MD files.
packages/vue/CHANGELOG.md
packages/agent-toolkit/CHANGELOG.md
packages/expo-passkeys/CHANGELOG.md
packages/react-router/CHANGELOG.md
packages/astro/CHANGELOG.md
packages/fastify/CHANGELOG.md
packages/themes/CHANGELOG.md
packages/backend/CHANGELOG.md
packages/tanstack-react-start/CHANGELOG.md
packages/nuxt/CHANGELOG.md
packages/elements/CHANGELOG.md
packages/testing/CHANGELOG.md
packages/shared/CHANGELOG.md
packages/react/CHANGELOG.md
packages/localizations/CHANGELOG.md
packages/remix/CHANGELOG.md
packages/chrome-extension/CHANGELOG.md
packages/express/CHANGELOG.md
packages/nextjs/CHANGELOG.md
packages/clerk-js/CHANGELOG.md
packages/types/CHANGELOG.md
packages/expo/CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: semgrep-cloud-platform/scan
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (76)
packages/types/package.json (1)
3-3
: Version bump approved.
The patch bump to 4.60.1 correctly aligns with the intended release.packages/shared/package.json (1)
3-3
: Version bump approved.
Updating to 3.9.7 is consistent with the coordinated patch release across Clerk packages.packages/expo-passkeys/package.json (1)
3-3
: Version bump approved.
Incrementing to 0.3.10 matches the dependency updates for @clerk/types and @clerk/shared.packages/react-router/package.json (1)
3-3
: Version bump approved.
Moving to 1.6.0 aligns with the new machine authentication support and dependency sync.packages/tanstack-react-start/package.json (1)
3-3
: Version bump approved.
Updating to 0.17.0 is in line with the added machine authentication feature and ecosystem updates.packages/types/CHANGELOG.md (1)
3-8
: Changelog entry is correct and follows existing conventions.The new
## 4.60.1
section is placed above4.60.0
with a properly formatted “### Patch Changes” header and bullet.packages/testing/package.json (1)
3-3
: Patch version bump is valid.Incrementing from 1.8.0 to 1.8.1 aligns with a patch release and matches the dependency updates.
packages/remix/package.json (1)
3-3
: Patch version bump is valid.Updating to 4.8.1 follows semantic versioning for a patch release and aligns with the changelog entries.
packages/themes/package.json (1)
3-3
: Patch version bump is valid.The version update to 2.2.50 correctly reflects a patch release with only dependency adjustments.
packages/fastify/package.json (1)
3-3
: Minor version bump is valid.Bumping from 2.3.0 to 2.4.0 appropriately denotes the introduction of machine authentication support as a minor feature.
packages/localizations/package.json (1)
3-3
: Patch version bump is valid.Updating to 3.16.5 aligns with the payment history tab feature and the synchronized dependency bumps.
packages/nextjs/package.json (1)
3-3
: Patch release version bump looks good.The version increment from 6.21.0 to 6.21.1 correctly follows semver for a patch release and aligns with the intended internal type reorganizations and dependency upgrades.
packages/expo/package.json (1)
3-3
: Patch release version bump looks good.Updating from 2.13.0 to 2.13.1 is appropriate for the dependency alignment and minor fixes in this package.
packages/nuxt/package.json (1)
3-3
: Patch release version bump looks good.The bump from 1.7.0 to 1.7.1 correctly reflects the patch updates and internal dependency upgrades.
packages/backend/package.json (1)
3-3
: Patch release version bump looks good.Incrementing from 2.0.0 to 2.0.1 aligns with the bugfixes around machine token discriminated unions and matching dependency updates.
packages/astro/package.json (1)
3-3
: Patch release version bump looks good.Advancing the version from 2.9.0 to 2.9.1 properly corresponds to the internal dependency updates without API changes.
packages/clerk-js/package.json (1)
3-3
: Patch version bump for @clerk/clerk-js.
Version increment from 5.68.0 to 5.68.1 aligns with this patch release. Please verify that thepackages/clerk-js/CHANGELOG.md
has been updated to reflect the payment history tab addition and the Stripe Elements error handling fix.packages/agent-toolkit/package.json (1)
3-3
: Patch version bump for @clerk/agent-toolkit.
Version updated from 0.1.0 to 0.1.1 as expected. Confirm that the changelog entry inpackages/agent-toolkit/CHANGELOG.md
documents the updates to internal dependencies (@clerk/types
,@clerk/backend
,@clerk/shared
).packages/vue/package.json (1)
3-3
: Patch version bump for @clerk/vue.
Version updated from 1.8.7 to 1.8.8. Ensure the correspondingCHANGELOG.md
inpackages/vue
notes the dependency alignment with@clerk/[email protected]
and@clerk/[email protected]
.packages/react/package.json (1)
3-3
: Patch version bump for @clerk/clerk-react.
Version updated from 5.31.9 to 5.31.10 as part of the coordinated ecosystem updates. Confirm that theCHANGELOG.md
inpackages/react
is updated and that no breaking changes were introduced.packages/shared/CHANGELOG.md (1)
3-9
: Change log entry is correct and well-formatted.Version 3.9.7 and the bump of
@clerk/[email protected]
align with the coordinated dependency updates across packages.packages/expo-passkeys/CHANGELOG.md (2)
3-3
: Bump patch version in changelog
The new0.3.10
entry is correctly added at the top according to semantic versioning.
7-9
: Document updated dependencies
The@clerk/[email protected]
and@clerk/[email protected]
updates are accurately recorded for this patch.packages/elements/package.json (1)
3-3
: Increment package version
The version has been correctly updated to0.23.33
for this patch release.packages/chrome-extension/package.json (1)
3-3
: Increment package version
The version has been correctly bumped to2.4.12
for this patch release.packages/vue/CHANGELOG.md (2)
3-3
: Bump patch version in changelog
The new1.8.8
entry is correctly added at the top in line with other packages.
7-9
: Document updated dependencies
The@clerk/[email protected]
and@clerk/[email protected]
dependency bumps are accurately listed.packages/themes/CHANGELOG.md (1)
3-8
: Changelog entry is correctly formatted and completeThe new patch release
2.2.50
and the dependency bump to@clerk/[email protected]
align with the PR objectives and follow the existing changelog conventions.packages/nuxt/CHANGELOG.md (1)
3-11
: Changelog entry is correctly formatted and completeThe new patch release
1.7.1
and updates to@clerk/[email protected]
,@clerk/[email protected]
,@clerk/[email protected]
, and@clerk/[email protected]
accurately reflect the PR’s dependency changes and maintain consistency with prior entries.packages/react/CHANGELOG.md (3)
3-3
: Confirm version bump
The new## 5.31.10
entry correctly follows the prior5.31.9
release and aligns with semantic versioning.
5-5
: Changelog section header is correct
The### Patch Changes
header matches the established convention for documenting patch updates.
7-9
: Validate dependencies update
The dependencies have been bumped to@clerk/[email protected]
and@clerk/[email protected]
as intended. Please ensure these versions resolve successfully in CI.packages/astro/CHANGELOG.md (3)
3-4
: Changelog header alignment
The new## 2.9.1
section header follows the existing release order and formatting.
5-6
: Section heading style
The### Patch Changes
subheading is consistent with prior entries.
7-11
: Dependency versions synchronization
Updated dependencies to@clerk/[email protected]
,@clerk/[email protected]
, and@clerk/[email protected]
match the rest of the release batch.packages/elements/CHANGELOG.md (1)
3-10
: Changelog entry looks good and follows conventions.The version header, patch section, commit link formatting, and indentation align with existing entries.
packages/testing/CHANGELOG.md (1)
3-11
: Changelog entry for 1.8.1 is correct
The new version header, patch changes section, and dependency list adhere to the existing format and are ordered properly above 1.8.0.packages/agent-toolkit/CHANGELOG.md (1)
3-11
: Changelog entry for 0.1.1 is correct
The version bump and updated dependencies follow the established markdown conventions and appear in the correct sequence.packages/expo/CHANGELOG.md (1)
3-11
: Changelog entry meets conventions
The new## 2.13.1
section is formatted correctly—version heading,### Patch Changes
, commit references, and indented dependency list all align with existing patterns.packages/localizations/CHANGELOG.md (3)
3-6
: Verify heading levels and spacing for the new version entry.The new
## 3.16.5
section and### Patch Changes
heading match the existing style, with blank lines before and after each heading.
7-8
: Clarify localization scope in the description.The entry says “Add payment history tab to UserProfile and OrgProfile,” which reads like a UI change. In this localization package, it would be more accurate to reference the addition of translation keys for the payment history tab (e.g.,
userProfile.paymentHistoryTab
). Please confirm and update the text to reflect localization additions.
9-11
: Dependency bump looks correct.The
@clerk/types
dependency has been updated to4.60.1
with the proper commit reference.packages/clerk-js/CHANGELOG.md (4)
7-7
: Approve payment history entry
The new bullet for adding the payment history tab toUserProfile
andOrgProfile
is clear, correctly formatted, and accurately linked.
11-15
: Confirm dependency version updates
Please verify that the versions listed under “Updated dependencies” (@clerk/[email protected]
,@clerk/[email protected]
,@clerk/[email protected]
) align with the actual package versions in their respectivepackage.json
files and the commit19e9e11
.
9-9
:⚠️ Potential issueRemove obsolete fix entry
The “Fix Stripe Elements error handling” change was reverted in this release, but the changelog still lists it. Please remove this bullet to avoid confusion.Proposed diff:
- - Fix Stripe Elements error handling ([#6074](https://github.com/clerk/javascript/pull/6074)) by [@aeliox](https://github.com/aeliox)
Likely an incorrect or invalid review comment.
3-6
:✅ Verification successful
Verify version bump consistency
Ensure the## 5.68.1
header here matches the actualversion
field inpackages/clerk-js/package.json
.
🏁 Script executed:
#!/bin/bash # Check that package.json version is in sync with the changelog grep -R '"version": "5.68.1"' -n packages/clerk-js/package.jsonLength of output: 90
Version bump consistency verified
The## 5.68.1
header inpackages/clerk-js/CHANGELOG.md
matches theversion
field inpackages/clerk-js/package.json
. No further action required.packages/backend/CHANGELOG.md (4)
3-4
: Version header follows established convention
The new## 2.0.1
entry matches the formatting of previous releases.
5-6
: Patch Changes heading is consistent
Using### Patch Changes
aligns with the structure used throughout the changelog.
9-10
: Patch description is clear
The bullet accurately captures the fix for machine token property mixing in discriminated unions.
11-14
: Dependency update formatting is correct
The nested list is properly indented and the dependencies are alphabetically ordered.packages/remix/CHANGELOG.md (1)
3-11
: Changelog format and version bump look correct
The new 4.8.1 entry follows semver conventions and properly lists the patched dependency updates.packages/chrome-extension/CHANGELOG.md (2)
3-4
: Changelog heading updated for v2.4.12
The new version entry is correctly positioned and follows the existing format.
5-10
: Patch changes for v2.4.12 recorded accurately
Dependency bumps and commit links match the PR objectives and adhere to the established convention.packages/nextjs/CHANGELOG.md (5)
3-4
: Changelog version bump correctThe new patch version heading
## 6.21.1
is appropriately added at the top of the section.
5-6
: Patch changes section addedThe
### Patch Changes
header correctly introduces the list of fixes and updates for this patch release.
7-7
: Internal types reorganization documentedThe bullet describing the reorganization of internal types for machine authentication is clear and matches the referenced PR.
9-9
: Machine token property fix documentedThe bullet about resolving machine token property mixing in discriminated unions succinctly captures the fix from the linked PR.
11-16
: Dependencies upgrade list accurateThe updated dependencies list correctly reflects the bumped package versions and commit references, adhering to the existing changelog format.
packages/react-router/CHANGELOG.md (2)
3-3
: Confirm version heading consistency
Ensure that the## 1.6.0
header aligns with the repository’s changelog conventions (e.g., whether release dates or tag links should accompany version numbers).
34-38
: Patch Changes formatting is correct
ThePatch Changes
section properly lists updated dependencies with commit links and consistent indentation. No adjustments needed here.packages/fastify/CHANGELOG.md (3)
3-5
: Changelog version bump is correctly formatted.
Version header (## 2.4.0
) and the "Minor Changes" section follow the repository conventions.
33-37
: Dependency versions are correct.
The updated versions (@clerk/[email protected]
,@clerk/[email protected]
,@clerk/[email protected]
) align with the PR objectives and other package bumps.
7-7
:✅ Verification successful
Ensure consistency in machine authentication description across SDKs.
The bullet text here should mirror the wording used in other Clerk packages (e.g.,@clerk/express
,@clerk/react-router
) to maintain uniform changelog messaging.Run:
🏁 Script executed:
#!/bin/bash # Verify that the same phrasing appears in other package changelogs grep -R "Introduces machine authentication" -n packagesLength of output: 3244
No changes required—changelog wording is already consistent
The “Introduces machine authentication…” entry in packages/fastify/CHANGELOG.md matches the exact phrasing used in backend, express, nextjs, react-router, and tanstack-react-start.packages/express/CHANGELOG.md (5)
3-3
: Header correctly reflects the new version.
The## 1.7.0
header follows the established changelog conventions.
7-7
: Minor Changes entry is clear and descriptive.
The new bullet succinctly outlines the machine authentication feature and token types.
9-11
: Usage instructions are precise and accurate.
The explanation of theacceptsToken
option covers all valid input forms.
13-29
: Example snippet is well-formatted and comprehensive.
The TypeScript code fence and inline comments clearly demonstrategetAuth
usage.
33-36
: Patch changes dependency list aligns with other packages.
The versions for@clerk/types
,@clerk/backend
, and@clerk/shared
match the release plan.packages/tanstack-react-start/CHANGELOG.md (8)
3-3
: No action needed on version header.
5-5
: No action needed on “Minor Changes” heading.
7-7
: Feature introduction clearly described.
The bullet concisely summarizes the new machine authentication support and its backward‐compatible default.
9-9
: Guidance onacceptsToken
usage is clear.
The description covers single type, array, or'any'
options effectively.
11-11
: Example usage section properly introduced.
The “Example usage:” label correctly signals the following snippet.
33-33
: No action needed on “Patch Changes” heading.
35-35
: Patch bullet correctly introduces dependency updates.
The commit references are formatted properly.
36-39
: Dependencies list is accurate for v0.17.0.
All four internal packages have been bumped as expected.
const fastify = Fastify(); | ||
|
||
fastify.get('/path', (request, reply) => { | ||
const authObject = getAuth(req, { acceptsToken: 'any' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix variable name mismatch in example usage.
The handler parameter is named request
, but getAuth
is called with req
. This will throw a reference error.
-fastify.get('/path', (request, reply) => {
- const authObject = getAuth(req, { acceptsToken: 'any' });
+fastify.get('/path', (request, reply) => {
+ const authObject = getAuth(request, { acceptsToken: 'any' });
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
const authObject = getAuth(req, { acceptsToken: 'any' }); | |
fastify.get('/path', (request, reply) => { | |
const authObject = getAuth(request, { acceptsToken: 'any' }); |
🤖 Prompt for AI Agents
In packages/fastify/CHANGELOG.md at line 20, the example code uses a variable
named `req` which does not match the handler parameter named `request`. To fix
this, replace `req` with `request` in the call to `getAuth` to ensure the
variable name matches and prevent a reference error.
```ts | ||
import { createServerFn } from '@tanstack/react-start'; | ||
import { getAuth } from '@clerk/tanstack-react-start/server'; | ||
import { getWebRequest } from '@tanstack/react-start/server'; | ||
|
||
const authStateFn = createServerFn({ method: 'GET' }).handler(async () => { | ||
const request = getWebRequest(); | ||
const auth = await getAuth(request, { acceptsToken: 'any' }); | ||
|
||
if (authObject.tokenType === 'session_token') { | ||
console.log('this is session token from a user'); | ||
} else { | ||
console.log('this is some other type of machine token'); | ||
console.log('more specifically, a ' + authObject.tokenType); | ||
} | ||
|
||
return {}; | ||
}); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix variable mismatch in example snippet.
The snippet declares const auth = await getAuth(...)
but then refers to authObject.tokenType
. Align the variable names to avoid confusion.
Proposed diff:
- const auth = await getAuth(request, { acceptsToken: 'any' });
+ const authObject = await getAuth(request, { acceptsToken: 'any' });
@@
- if (authObject.tokenType === 'session_token') {
+ if (auth.tokenType === 'session_token') {
...
Or consistently use auth.tokenType
in all checks.
Committable suggestion skipped: line range outside the PR's diff.
🤖 Prompt for AI Agents
In packages/tanstack-react-start/CHANGELOG.md around lines 13 to 31, the example
code declares the variable as 'auth' but later references
'authObject.tokenType', causing a variable mismatch. To fix this, replace all
instances of 'authObject' with 'auth' so the variable usage is consistent
throughout the snippet.
dca8904
to
50d8f24
Compare
5934307
to
7912d9c
Compare
7912d9c
to
472b174
Compare
472b174
to
317b123
Compare
e9f6241
to
bc4fcdf
Compare
bc4fcdf
to
2396cda
Compare
2396cda
to
e392f66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
e392f66
to
373e9d7
Compare
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@clerk/[email protected]
Minor Changes
Improve
subject
property handling for machine auth objects. (#6099) by @wobsorianoUsage:
Respect
acceptsToken
when returning unauthenticated session or machine object. (#6112) by @wobsorianoPatch Changes
Re-organize internal types for the recently added "machine authentication" feature. (#6067) by @wobsoriano
Fix calculation of handshake URL when proxy URL is set on the ClerkProvider (#6119) by @jacekradko
Add JSdoc comments for user methods. (#6091) by @NWylynko
Updating type of Verification.status (#6110) by @jacekradko
Resolve machine token property mixing in discriminated unions (#6079) by @wobsoriano
Updated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
<APIKeys />
component. This component will initially be in early access and not recommended for production usage just yet. (#5858) by @wobsorianoPatch Changes
Add payment history tab to UserProfile and OrgProfile (#6075) by @aeliox
Maintain current active organization when
setActive({ organization: null })
is called with force organization selection enabled (#6103) by @LauraBeatrisAdd
.v0.dev
as prefered origin for oauth flows with popup. (#6118) by @mwickettDo not allow
setActive({ organization: null })
when organization selection is forced (#6073) by @LauraBeatrisFix Stripe Elements error handling (#6074) by @aeliox
Use error metadata for invalid change plan screen on
Checkout
component. (#6102) by @panteliselefAdd localizations for some commerce strings, general cleanups (#6101) by @aeliox
Display info tooltip for past due amounts at checkout. (#6097) by @panteliselef
Updated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
Add
<APIKeys />
component. This component will initially be in early access and not recommended for production usage just yet. (#5858) by @wobsorianoRespect
acceptsToken
when returning unauthenticated session or machine object. (#6112) by @wobsorianoPatch Changes
Re-organize internal types for the recently added "machine authentication" feature. (#6067) by @wobsoriano
Resolve machine token property mixing in discriminated unions (#6079) by @wobsoriano
Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
<APIKeys />
component. This component will initially be in early access and not recommended for production usage just yet. (#5858) by @wobsorianoPatch Changes
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Minor Changes
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,b0e47f1
,fa96943
,18bcb64
,684f3bd
,6e0f879
,48be55b
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,138f733
,18bcb64
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,b0e47f1
,fa96943
,18bcb64
,138f733
,18bcb64
,684f3bd
,6e0f879
,48be55b
,48be55b
,2c6f805
,97749d5
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
Add payment history tab to UserProfile and OrgProfile (#6075) by @aeliox
Add TypeScript types and en-US localization for upcoming
<APIKeys />
component. This component will initially be in early access. (#5858) by @wobsorianoAdd localizations for some commerce strings, general cleanups (#6101) by @aeliox
Introduce
commerce.checkout.pastDueNotice
localization key. (#6097) by @panteliselefUpdated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
Parse partial
plan
inClerkAPIError.meta
(#6102) by @panteliselefUpdated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
Bug fix: Toggling the period switch would not match the requested period
startCheckout({ period })
. (#6102) by @panteliselefUpdated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:@clerk/[email protected]
Patch Changes
Add payment history tab to UserProfile and OrgProfile (#6075) by @aeliox
Add TypeScript types and en-US localization for upcoming
<APIKeys />
component. This component will initially be in early access. (#5858) by @wobsorianoAdd missing semibold FontWeightScale type (#6114) by @jacekradko
Parse partial
plan
inClerkAPIError.meta
(#6102) by @panteliselefAdd localizations for some commerce strings, general cleanups (#6101) by @aeliox
Introduce
commerce.checkout.pastDueNotice
localization key. (#6097) by @panteliselef@clerk/[email protected]
Patch Changes
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:Summary by CodeRabbit
<APIKeys />
component (early access) in several packages.